glob: Declare variables at the very start of their scope.
[gnulib/ericb.git] / ChangeLog
blobabd5ebd31e7ab1d5452c638ce28bb20d1d5e4e00
1 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
3         glob: Declare variables at the very start of their scope.
4         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
5         its separate scope, so the functions will compile on Haiku.
7 2017-07-01  Bruno Haible  <bruno@clisp.org>
9         logbl: Work around a glibc bug on PowerPC64LE.
10         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
11         numbers.
12         * doc/posix-functions/logbl.texi: Update.
14 2017-06-29  Bruno Haible  <bruno@clisp.org>
16         stat, fstat: Compile stat-w32.c only on platforms that need it.
17         Suggested by Paul Eggert.
18         * modules/stat (configure.ac): Request stat-w32.o only on native
19         Windows.
20         * modules/fstat (configure.ac): Likewise.
22 2017-06-25  Bruno Haible  <bruno@clisp.org>
24         stat: Improve last change.
25         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
27 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
29         stat: port to xlc 12.01
30         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
31         12.01 complains "Compilation unit is empty."
33 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
35         xalloc-oversized: port to icc
36         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
37         __builtin_mul_overflow if ICC is defined, as this results in
38         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
39         20170213.
41 2017-06-19  Bruno Haible  <bruno@clisp.org>
43         classpath: Avoid including config.h twice, as it produces warnings.
44         Reported by John E. Malmberg <wb8tyw@gmail.com>.
45         * lib/classpath.h: Conditionalize the include of config.h.
47 2017-06-19  Bruno Haible  <bruno@clisp.org>
48             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
50         sched: Fix compilation failure on OpenVMS.
51         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
52         test whether <pthread.h> exists and defines struct sched_param.
53         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
55 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
57         diffseq: port to GCC 7 with --enable-gcc-warnings
58         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
59         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
60         not complain about big_snake being defined but not used.
62 2017-06-15  Bruno Haible  <bruno@clisp.org>
64         gettext-h: Update theoretical condition for use of variable size arrays.
65         Reported by Paul Eggert.
66         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
67         to include the theoretical condition for availability of variable size
68         arrays, if we could trust the value of __STDC_VERSION__.
70 2017-06-12  Bruno Haible  <bruno@clisp.org>
72         Relicense some modules under LGPLv2+.
73         Daiki Ueno's approval is in
74         https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00058.html.
75         * modules/uniwidth/base (License): Change to LGPLv2+.
76         * modules/uniwidth/width (License): Likewise.
78 2017-06-11  Bruno Haible  <bruno@clisp.org>
80         localename: Fix test failure on DragonFly BSD.
81         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
82         like FreeBSD.
84 2017-06-11  Bruno Haible  <bruno@clisp.org>
86         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
87         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
88         * lib/float.in.h: Likewise.
89         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
91 2017-06-11  Bruno Haible  <bruno@clisp.org>
93         gnulib-tool: Clean up after autotools.
94         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
95         useless directory left over by the Autotools.
97 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
99         getopt-posix: port to glibc 2.25.90
100         Problem reported by Daniel P. Berrange in:
101         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00003.html
102         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
103         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
104         #undef if __GETOPT_PREFIX is defined.
106 2017-06-11  Bruno Haible  <bruno@clisp.org>
108         strtod-obsolete: Fix license.
109         * modules/strtod-obsolete (License): Change to LGPL.
111 2017-06-10  Jim Meyering  <meyering@fb.com>
113         maint: update to work with GCC7's -Werror=implicit-fallthrough=
114         * lib/savewd.c (FALLTHROUGH): Define.
115         (savewd_save, savewd_restore): Use this, rather than a comment,
116         whenever one switch case falls through into the next.
118 2017-06-08  Bruno Haible  <bruno@clisp.org>
120         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
121         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
122         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
123         case.
125 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
127         doc: remove robots, add prereqs
128         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
129         builds.  Simon's robot site does not seem to be up, so remove
130         mentions of it for now.
132 2017-06-08  Bruno Haible  <bruno@clisp.org>
134         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
135         * gnulib-tool (func_symlink_target): New function, extracted from
136         func_symlink.
137         (func_symlink, func_symlink_if_changed): Use it.
139 2017-06-08  Bruno Haible  <bruno@clisp.org>
141         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
142         * gnulib-tool (func_ln_s): Determine cp_src correctly.
144 2017-06-07  Bruno Haible  <bruno@clisp.org>
146         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
147         Reported by John E. Malmberg <wb8tyw@gmail.com> in
148         <https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00029.html>.
149         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
150         override, pass 2 arguments to getcwd, not 3.
152 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
154         same-inode: port better to VMS 8.2 and later
155         Problem reported by John E. Malmberg in:
156         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00005.html
157         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
158         Use the usual POSIX definition.
159         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
161 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
163         error: fix POSIX violation for va_end
164         Problem reported by Bruno Haible in:
165         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00001.html
166         * lib/error.c (error_tail): Do not call va_end here.
167         (error, error_at_line): Call it here instead.
169 2017-05-28  Bruno Haible  <bruno@clisp.org>
171         c-strtod: Make it usable in C++ mode.
172         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
174 2017-05-25  Jim Meyering  <meyering@fb.com>
176         quotearg: fix compilation failure due to FALLTHROUGH misuse
177         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
178         macro back to /* fall through */ comment.  The macro can apply only
179         to a following case statement.  Reported by Assaf Gordon.
181 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
183         intprops: port to recent icc
184         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
185         but does not support __builtin_add_overflow etc.
186         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
187         Define to 0.
189 2017-05-23  Karl Berry  <karl@freefriends.org>
191         * config/srclist.txt (iconv.m4): sync broken, comment out
192         until (hopefully) the next gettext release.
194 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
196         Remove repeated words in comments.
198 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
200         fallthrough: reinstate a FALLTHROUGH instance in quotearg
201         quotearg.c: Reinstate this instance which is significant
202         when the if branch is not taken.
204 2017-05-21  Bruno Haible  <bruno@clisp.org>
206         gnulib-tool: Add options to create hard links.
207         * gnulib-tool (func_usage): Document options --hardlink,
208         --local-hardlink, --more-hardlinks.
209         (func_symlink): Renamed from func_ln.
210         (func_symlink_if_changed): Renamed from func_ln_if_changed.
211         (func_hardlink): New function.
212         (copymode, lcopymode): New variables.
213         (symbolic, lsymbolic): Remove variables.
214         (Options): Implement options --hardlink, --local-hardlink,
215         --more-hardlinks.
216         (func_should_link): Renamed from func_should_symlink. Set copyaction.
217         (func_add_file, func_update_file): Update invocation of
218         func_should_link. Invoke func_hardlink when appropriate.
219         (func_import): Update comments.
220         (func_create_testdir): Update invocation of func_should_link. Invoke
221         func_hardlink when appropriate.
222         Finally, invoke 'git update-index --refresh' to mitigate the effects of
223         the hard links on git.
225 2017-05-20  Bruno Haible  <bruno@clisp.org>
227         argp: Simplify bit manipulation.
228         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
229         on a signed integer type.
231 2017-05-20  Bruno Haible  <bruno@clisp.org>
233         Avoid wrong configure results with gcc -fsanitize=address.
234         This completes the work done on 2016-02-06 on this topic.
235         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
236         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
238         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
239         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
240         returning.
241         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
242         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
243         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
244         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
245         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
246         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
247         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
248         free allocated memory before returning.
249         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
250         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
251         objects before returning.
252         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
253         returning.
255 2017-05-20  Bruno Haible  <bruno@clisp.org>
257         gnulib-tool: Don't create hard links between gnulib and its testdirs.
258         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
260 2017-05-20  Bruno Haible  <bruno@clisp.org>
262         argp, tsearch tests: Fix file list.
263         * modules/argp-tests (Files): Add tests/macros.h.
264         * modules/tsearch-tests (Files): Likewise.
266 2017-05-20  Bruno Haible  <bruno@clisp.org>
268         getopt-posix tests: Remove redundant include.
269         * tests/test-getopt.h: Don't include "macros.h". It's already included
270         by tests/test-getopt-main.h.
272 2017-05-19  Jim Meyering  <meyering@fb.com>
274         dfa: two small simplifications
275         * lib/dfa.c (build_state): Avoid repeating longer expressions.
277 2017-05-18  Jim Meyering  <meyering@fb.com>
279         fallthrough: update for GCC 7/8
280         * lib/quotearg.c (FALLTHROUGH): New macro.
281         Use it whenever one switch case falls through into the next,
282         replacing "/* Fall through */" comments.  This exposed one
283         instance of an unwarranted "fall through" comment: unwarranted
284         because it preceded a "goto" label not a case statement.
285         * lib/freopen-safer.c (freopen_safer): Likewise.
286         * lib/fts.c (leaf_optimization_applies): Likewise.
287         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
288         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
289         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
290         tests/macros.h for the definition.
291         * tests/test-argp.c (group1_parser): Likewise.
292         * tests/test-getopt.h (getopt_loop): Likewise.
294 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
296         argp: fix shift bug
297         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
298         behavior on shift overflow, caught by gcc -fsanitize=undefined.
300         argp: fix pointer-subtraction bug
301         * lib/argp-help.c (hol_append): Don’t subtract pointers to
302         different arrays, as this can run afoul of -fcheck-pointer-bounds.
303         See the thread containing Bruno Haible’s report in:
304         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00171.html
306 2017-05-19  Bruno Haible  <bruno@clisp.org>
308         printf-posix tests: Avoid test failure with "gcc --coverage".
309         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
310         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
311         than 5000000.
312         * tests/test-fprintf-posix2.c (main): Likewise.
314 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
316         closeout: don’t close stderr when sanitizing
317         * NEWS: Document this.
318         * lib/closeout.c (__has_feature): New macro, if not already defined.
319         (SANITIZE_ADDRESS): New constant.
320         (close_stdout): Don’t close stderr if sanitizing addresses.
322 2017-05-19  Bruno Haible  <bruno@clisp.org>
324         get-rusage-data tests: Avoid failure on Linux/glibc.
325         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
326         on glibc systems.
328 2017-05-18  Bruno Haible  <bruno@clisp.org>
330         localename: Include necessary header files on Cygwin.
331         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
332         where NL_LOCALE_NAME is defined.
334 2017-05-18  Bruno Haible  <bruno@clisp.org>
336         gettext: Update macros from gettext git.
337         * m4/intldir.m4: Require Autoconf >= 2.60.
338         * m4/progtest.m4: Fix typos in copyright notice.
340 2017-05-18  Bruno Haible  <bruno@clisp.org>
342         copy-file tests: Fix link error (regression from 2017-05-01).
343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
344         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
345         $(LIB_CLOCK_GETTIME).
347 2017-05-18  Bruno Haible  <bruno@clisp.org>
349         unicase/special-casing: Fix incompatibility with gperf-3.0.4
350         (regression from 2017-02-13).
351         * lib/unicase/special-casing.in.h: Renamed from
352         lib/unicase/special-casing.h.
353         * modules/unicase/special-casing (Files): Add
354         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
355         (Makefile.am): Add rule for generating unicase/special-casing.h.
356         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
357         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
358         not "special-casing.h".
359         * lib/unicase/u*.c: Likewise.
361 2017-05-17  Bruno Haible  <bruno@clisp.org>
363         README: Don't ask people to read a TeXinfo file.
364         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
365         * README: Tell people how to read the HTML formatted manual.
367 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
369         parse-datetime: Fix memleak
370         * lib/parse-datetime.y (parse_datetime2): Cleanup on
371         localtime_rz() failure.
373 2017-05-16  Bruno Haible  <bruno@clisp.org>
375         javacomp: Fix handle leak.
376         Found by Coverity.
377         * lib/javacomp.c (get_classfile_version): Close fd before returning.
379 2017-05-16  Bruno Haible  <bruno@clisp.org>
381         relocate: Make it easier to reclaim allocated memory.
382         * lib/relocatable.h (relocate2): New declaration/macro.
383         * lib/relocatable.c (relocate2): New function.
384         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
385         relocate2 function.
386         * lib/localcharset.c (relocate2): Define fallback.
387         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
388         allocated memory.
389         * lib/javaversion.c (relocate2): Define fallback.
390         (javaexec_version): Invoke relocate2 instead of relocate. Free the
391         allocated memory.
393 2017-05-16  Bruno Haible  <bruno@clisp.org>
395         relocate: Simplify EMX specific code.
396         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
397         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
399 2017-05-16  Bruno Haible  <bruno@clisp.org>
401         sigpipe tests: Fix file list.
402         * modules/sigpipe-tests (Files): Add tests/macros.h.
404 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
406         manywarnings: update for GCC 7
407         * build-aux/gcc-warning.spec:
408         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
409         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
410         requires a non-comment fallthrough attribute.  This is a bit
411         cleaner than the comment versions.
412         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
413         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
414         Use it whenever one switch case falls through into the next.
415         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
416         Use FALLTHROUGH macro.
418 2017-05-15  Bruno Haible  <bruno@clisp.org>
420         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
421         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
422         @ALLOCA@, not @LTALLOCA@.
424 2017-05-15  Bruno Haible  <bruno@clisp.org>
426         sys_select: Avoid "was expanded before it was required" warning.
427         * modules/sys_select (configure.ac): Require, not invoke,
428         gl_HEADER_SYS_SELECT.
430 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
432         gnulib-tool: improve GNU Make debugging
433         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
434         Report autoconf diagnostics when it fails, in the output makefile.
436 2017-05-14  Bruno Haible  <bruno@clisp.org>
438         stat-time tests: Improve comment.
439         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
441 2017-05-14  Bruno Haible  <bruno@clisp.org>
443         same-inode: Adapt for windows-stat-inodes.
444         * lib/same-inode.h: Include <sys/types.h>.
445         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
446         * modules/same-inode (Depends-on): Add sys_types.
448 2017-05-14  Bruno Haible  <bruno@clisp.org>
450         windows-stat-inodes: New module.
451         * m4/windows-stat-inodes.m4: New file.
452         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
453         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
454         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
455         (_GL_WINDOWS_STAT_INODES): New macro.
456         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
457         (GetFileInformationByHandleExFunc): New variable.
458         (initialize): Initialize it.
459         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
460         st_ino appropriately.
461         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
462         a fallback, because it does not provide st_dev and st_ino values.
463         * modules/fstat (Depends-on): Add 'verify'.
464         * modules/windows-stat-inodes: New file.
465         * doc/windows-stat-inodes.texi: New file.
466         * doc/gnulib.texi: Include it.
467         * doc/posix-headers/sys_stat.texi: Mention the new module.
469 2017-05-14  Bruno Haible  <bruno@clisp.org>
471         stat-time tests: Workaround for native Windows.
472         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
473         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
474         New variables.
475         (initialize_filenames): New function.
476         (main): Invoke it.
477         (cleanup, prepare_test): Update.
479 2017-05-14  Bruno Haible  <bruno@clisp.org>
481         stat-time: Adapt for windows-stat-timespec.
482         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
483         entire st_ctim field.
485 2017-05-13  Jim Meyering  <meyering@fb.com>
487         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
488         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
489         file that uses the assume macro, claiming that verify.h is unused.
491 2017-05-13  Bruno Haible  <bruno@clisp.org>
493         Use symbolic values for _WIN32_WINNT.
494         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
495         * lib/sethostname.c (_WIN32_WINNT): Likewise.
497 2017-05-13  Bruno Haible  <bruno@clisp.org>
499         year2038: New module.
500         * m4/year2038.m4: New file.
501         * modules/year2038: New file.
502         * doc/year2038.texi: New file.
503         * doc/gnulib.texi: Include it.
505 2017-05-13  Bruno Haible  <bruno@clisp.org>
507         largefile: Simplify.
508         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
509         of _GL_WINDOWS_64_BIT_ST_SIZE.
511 2017-05-13  Bruno Haible  <bruno@clisp.org>
513         largefile: Improve and document.
514         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
515         the mingw headers already define 'stat' appropriately.
516         * modules/largefile (Description): Clarify.
517         * doc/largefile.texi: New file.
518         * doc/gnulib.texi: Include it.
519         * doc/posix-headers/sys_types.texi: Update.
521 2017-05-13  Bruno Haible  <bruno@clisp.org>
523         truncate: New module.
524         * lib/unistd.in.h (truncate): New declaration.
525         * lib/truncate.c: New file.
526         * m4/truncate.m4: New file.
527         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
528         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
529         REPLACE_TRUNCATE.
530         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
531         HAVE_TRUNCATE, REPLACE_TRUNCATE.
532         * modules/truncate: New file.
533         * tests/test-unistd-c++.cc (truncate): Test signature.
534         * doc/posix-functions/truncate.texi: Mention the new module.
536         * tests/test-truncate.c: New file.
537         * modules/truncate-tests: New file.
539 2017-05-13  Bruno Haible  <bruno@clisp.org>
541         windows-stat-timespec: New module.
542         * modules/windows-stat-timespec: New file.
543         * m4/windows-stat-timespec.m4: New file.
544         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
545         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
546         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
547         fields st_atim, st_mtim, st_ctim.
548         (st_atime, st_mtime, st_ctime): Define as macros.
549         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
550         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
551         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
552         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
553         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
554         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
555         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
556         FILETIME to 'struct timespec', not 'time_t'.
557         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
558         FILETIME to 'struct timespec', not 'time_t'.
559         * lib/stat-time.h (STAT_TIMESPEC): Define also if
560         _GL_WINDOWS_STAT_TIMESPEC.
561         * doc/windows-stat-timespec.texi: New file.
562         * doc/gnulib.texi: Include it.
564 2017-05-13  Bruno Haible  <bruno@clisp.org>
566         windows-stat-override: New module.
567         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
568         definition. Define GNULIB_defined_struct_stat.
569         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
570         link error if this symbol is used and the corresponding module is not
571         in use.
572         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
573         GNULIB_OVERRIDES_STRUCT_STAT.
574         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
575         GNULIB_OVERRIDES_STRUCT_STAT.
576         * modules/sys_stat (Makefile.am): Substitute
577         GNULIB_OVERRIDES_STRUCT_STAT.
578         * modules/windows-stat-override: New file.
580 2017-05-13  Bruno Haible  <bruno@clisp.org>
582         fstat: Fix module dependency conditions.
583         * modules/fstat (Depends-on): Fix typo.
585 2017-05-13  Bruno Haible  <bruno@clisp.org>
587         stat, fstat: Complete removal of old native Windows code.
588         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
589         * lib/fstat.c: Likewise.
590         * lib/stat-w32.c: Likewise.
592 2017-05-13  Bruno Haible  <bruno@clisp.org>
594         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
595         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
597 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
599         getopt-posix: port to mingw
600         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
601         Problem reported by Daniel P. Berrage in:
602         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00086.html
604 2017-05-11  Bruno Haible  <bruno@clisp.org>
606         gettimeofday: Increase precision on mingw.
607         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
608         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
609         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
610         GetSystemTimePreciseAsFileTime based implementation always.
611         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
612         mingw.
614 2017-05-11  Bruno Haible  <bruno@clisp.org>
616         poll: Fix confusion between SOCKETs and FDs on native Windows.
617         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
618         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
620 2017-05-11  Bruno Haible  <bruno@clisp.org>
622         doc: Clarify doc about socket functions on native Windows.
623         This reworks doc that was added on 2008-09-29.
624         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
625         clearer wording.
626         * doc/posix-functions/accept.texi: Use clearer wording.
627         * doc/posix-functions/bind.texi: Likewise.
628         * doc/posix-functions/connect.texi: Likewise.
629         * doc/posix-functions/getpeername.texi: Likewise.
630         * doc/posix-functions/getsockname.texi: Likewise.
631         * doc/posix-functions/getsockopt.texi: Likewise.
632         * doc/posix-functions/ioctl.texi: Likewise.
633         * doc/posix-functions/listen.texi: Likewise.
634         * doc/posix-functions/recv.texi: Likewise.
635         * doc/posix-functions/recvfrom.texi: Likewise.
636         * doc/posix-functions/send.texi: Likewise.
637         * doc/posix-functions/sendto.texi: Likewise.
638         * doc/posix-functions/setsockopt.texi: Likewise.
639         * doc/posix-functions/shutdown.texi: Likewise.
640         * doc/posix-functions/socket.texi: Likewise.
642 2017-05-10  Bruno Haible  <bruno@clisp.org>
644         poll: Fix link error on native Windows.
645         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
647 2017-05-10  Bruno Haible  <bruno@clisp.org>
649         time: Fix missing initialization of HAVE_TIMEZONE_T.
650         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
651         here...
652         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
653         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
654         gl_HEADER_SYS_TIME_H_DEFAULTS.
655         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
656         (configure.ac): Remove useless quoting.
658 2017-05-10  Bruno Haible  <bruno@clisp.org>
660         Implement a way to opt out from MSVC support, part 2.
661         * modules/msvc-inval (Include): Document recommended idiom.
662         * modules/msvc-nothrow (Include): Likewise.
664         Implement a way to opt out from MSVC support.
665         This is useful for Emacs.
666         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
667         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
668         * lib/error.c: Likewise.
669         * lib/fcntl.c: Likewise.
670         * lib/flock.c: Likewise.
671         * lib/fstat.c: Likewise.
672         * lib/fsync.c: Likewise.
673         * lib/ioctl.c: Likewise.
674         * lib/isapipe.c: Likewise.
675         * lib/lseek.c: Likewise.
676         * lib/nonblocking.c: Likewise.
677         * lib/poll.c: Likewise.
678         * lib/select.c: Likewise.
679         * lib/sockets.h: Likewise.
680         * lib/sockets.c: Likewise.
681         * lib/stdio-read.c: Likewise.
682         * lib/stdio-write.c: Likewise.
683         * lib/utimens.c: Likewise.
684         * lib/w32sock.h: Likewise.
685         * lib/w32spawn.h: Likewise.
686         * tests/test-cloexec.c: Likewise.
687         * tests/test-dup-safer.c: Likewise.
688         * tests/test-dup2.c: Likewise.
689         * tests/test-dup3.c: Likewise.
690         * tests/test-fcntl.c: Likewise.
691         * tests/test-pipe.c: Likewise.
692         * tests/test-pipe2.c: Likewise.
693         * lib/ftruncate.c: Likewise.
694         (chsize_nothrow): Renamed from chsize.
695         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
696         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
697         * lib/close.c: Likewise.
698         * lib/dup.c: Likewise.
699         * lib/fclose.c: Likewise.
700         * lib/raise.c: Likewise.
701         * tests/test-fgetc.c: Likewise.
702         * tests/test-fputc.c: Likewise.
703         * tests/test-fread.c: Likewise.
704         * tests/test-fwrite.c: Likewise.
705         * lib/getdtablesize.c: Likewise.
706         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
707         * lib/isatty.c: Don't include msvc-inval.h if
708         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
709         Include <io.h> as an alternative to msvc-nothrow.h.
710         * lib/read.c: Likewise.
711         * lib/write.c: Likewise.
712         * lib/dup2.c: Likewise.
713         (dup2_nothrow): New function.
714         (ms_windows_dup2): Use it.
715         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
716         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
717         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
718         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
719         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
720         * m4/read.m4 (gl_FUNC_READ): Likewise.
721         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
722         * doc/windows-without-msvc.texi: New file.
723         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
724         section.
726 2017-05-10  Bruno Haible  <bruno@clisp.org>
728         wait-process: Adjust native Windows support.
729         * lib/wait-process.c: Use the usual condition for recognizing a native
730         Windows platform.
732 2017-05-10  Bruno Haible  <bruno@clisp.org>
734         doc: New chapter "Native Windows Support".
735         * doc/gnulib.texi (Native Windows Support): New chapter.
736         * doc/windows-libtool.texi: Small wording changes.
737         * doc/windows-sockets.texi: Small wording and formatting changes.
739 2017-05-10  Bruno Haible  <bruno@clisp.org>
741         doc: Move section "Library version handling".
742         * doc/gnulib.texi: Move section "Library version handling"
743         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
745 2017-05-10  Bruno Haible  <bruno@clisp.org>
747         doc: Move section "Running self-tests under valgrind".
748         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
749         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
751 2017-05-10  Bruno Haible  <bruno@clisp.org>
753         doc: New chapter "Build Infrastructure Modules".
754         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
756 2017-05-10  Bruno Haible  <bruno@clisp.org>
758         Prepare for reordering sections in the manual.
759         * doc/gnulib.texi: Move several sections to separate files. Include
760         these files.
761         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
762         * doc/obsolete.texi: Likewise.
763         * doc/extra-tests.texi: Likewise.
764         * doc/transversal.texi: Likewise.
765         * doc/namespace.texi: Likewise.
766         * doc/check-version.texi: Likewise.
767         * doc/windows-sockets.texi: Likewise.
768         * doc/windows-libtool.texi: Likewise.
769         * doc/licenses-texi.texi: Likewise.
770         * doc/build-automation.texi: Likewise.
771         * doc/c-locale.texi: Likewise.
773 2017-05-10  Bruno Haible  <bruno@clisp.org>
775         Fix instructions how to update manual on www.gnu.org.
776         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
778 2017-05-09  Bruno Haible  <bruno@clisp.org>
780         tzset: Expand comment about TZ problem on native Windows.
781         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
782         Paul Eggert.
783         * lib/ctime.c (rpl_ctime): Likewise.
784         * lib/localtime.c (rpl_localtime): Likewise.
785         * lib/mktime.c (mktime): Likewise.
786         * lib/strftime-fixes.c (rpl_strftime): Likewise.
787         * lib/wcsftime.c (rpl_wcsftime): Likewise.
789 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
791         intprops: don’t depend on ‘verify’
792         Problem reported by Ævar Arnfjörð Bjarmason in:
793         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00054.html
794         * lib/intprops.h: Do not include verify.h, and move compile-time
795         checks from here ...
796         * tests/test-intprops.c (main): ... to here, if they’re not here
797         already.  Check widths of other standard integer types.
798         * modules/intprops (Depends-on): Remove ‘verify’.
800 2017-05-07  Bruno Haible  <bruno@clisp.org>
802         utimens: On native Windows, support 100ns resolution also if fd < 0.
803         * lib/utime.in.h: Include <time.h>.
804         (_gl_utimens_windows): New declaration.
805         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
806         (utime): Invoke it.
807         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
808         instead of utime.
809         * modules/utime (Depends-on): Add 'time'.
811 2017-05-07  Bruno Haible  <bruno@clisp.org>
813         utimens: Improve error code on native Windows.
814         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
815         error code EACCES, not EINVAL.
817 2017-05-07  Bruno Haible  <bruno@clisp.org>
819         utime: Handle more Windows error codes.
820         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
821         Based on explanations by Billy O'Neal.
823 2017-05-05  Bruno Haible  <bruno@clisp.org>
825         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
826         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
827         union.
828         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
829         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
830         value of cipher->IV.
832 2017-05-05  Bruno Haible  <bruno@clisp.org>
834         wctype-h-c++-tests: Update.
835         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
837 2017-05-05  Bruno Haible  <bruno@clisp.org>
839         wchar-c++-tests: Update.
840         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
842 2017-05-05  Bruno Haible  <bruno@clisp.org>
844         utime-h-c++-tests: New module.
845         * tests/test-utime-h-c++.cc: New file.
846         (utime): Declare, missing since 2017-04-30.
847         * modules/utime-h-c++-tests: New file.
849 2017-05-05  Bruno Haible  <bruno@clisp.org>
851         unistd-c++-tests: Update.
852         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
853         (read): Declare, missing since 2011-04-15.
854         (sethostname): Declare, missing since 2011-12-03.
856 2017-05-05  Bruno Haible  <bruno@clisp.org>
858         time-c++-tests: Update.
859         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
860         (localtime, gmtime): Declare, missing since 2017-04-30.
861         (ctime): Declare, missing since 2017-04-30.
862         (strftime): Declare, missing since 2017-04-30.
863         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
864         2015-07-24.
866 2017-05-05  Bruno Haible  <bruno@clisp.org>
868         sys_resource-c++-tests: New module.
869         * tests/test-sys_resource-c++.cc: New file.
870         (getrusage): Declare, missing since 2012-04-13.
871         * modules/sys_resource-c++-tests: New file.
873 2017-05-05  Bruno Haible  <bruno@clisp.org>
875         strings-c++-tests: New module.
876         * tests/test-strings-c++.cc: New file.
877         (ffs): Declare, missing since 2011-07-12.
878         * modules/strings-c++-tests: New file.
880 2017-05-05  Bruno Haible  <bruno@clisp.org>
882         string-c++-tests: Update.
883         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
884         (ffsll): Declare, missing since 2011-07-15.
886 2017-05-05  Bruno Haible  <bruno@clisp.org>
888         stdlib-c++-tests: Update.
889         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
890         2011-10-18.
891         (ptsname_r): Declare, missing since 2011-11-07.
892         (qsort_r): Declare, missing since 2014-08-29.
893         (random, srandom, initstate, setstate): Declare, missing since
894         2012-01-14.
895         (secure_getenv): Declare, missing since 2013-02-05.
897 2017-05-05  Bruno Haible  <bruno@clisp.org>
899         stdio-c++-tests: Update.
900         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
902 2017-05-05  Bruno Haible  <bruno@clisp.org>
904         signal-h-c++-tests: Update.
905         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
907 2017-05-05  Bruno Haible  <bruno@clisp.org>
909         math-c++-tests: Update.
910         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
911         (fma): Declare, missing since 2011-10-17.
912         (fmal): Declare, missing since 2011-10-17.
914 2017-05-05  Bruno Haible  <bruno@clisp.org>
916         locale-c++-tests: Update.
917         * tests/test-locale-c++.cc (localeconv): Declare, missing since
918         2012-03-25.
920 2017-05-05  Bruno Haible  <bruno@clisp.org>
922         inttypes-c++-tests: New module.
923         * tests/test-inttypes-c++.cc: New file.
924         (strtoimax): Declare, missing since 2012-01-05.
925         (strtoumax): Declare, missing since 2012-01-05.
926         * modules/inttypes-c++-tests: New file.
928 2017-05-05  Bruno Haible  <bruno@clisp.org>
930         dirent-c++-tests: Update.
931         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
932         (rewinddir): Declare, missing since 2011-09-13.
933         (dirfd): Declare, missing since 2010-03-08.
935 2017-05-04  Bruno Haible  <bruno@clisp.org>
937         argp: Fix mistake in 2017-04-23 commit.
938         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
939         assume that strerror_r returns 'int', not 'char *'.
941 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
943         argp: Fix typo.
944         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
946 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
948         utimens: port to Emacs + MS-Windows
949         Skip the new MS-Windows-specific code if Emacs.
950         * lib/utimens.c [EMACS_CONFIGUATION]:
951         Avoid new MS-Windows-specific code.
952         (USE_SETFILETIME): New macro.
953         (fdutimens): Use it.
955 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
957         tzset: update doc for TZ problems on MS-Windows
958         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
959         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
960         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
961         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
962         * doc/posix-functions/wcsftime.texi:
963         Mention some issues with TZ under MS-Windows.
965 2017-05-01  Bruno Haible  <bruno@clisp.org>
967         copy-file: Fix build error on mingw.
968         * modules/copy-file (Depends-on): Add 'close'.
970 2017-05-01  Bruno Haible  <bruno@clisp.org>
972         tzset: Work around TZ problem on native Windows.
973         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
974         Windows, set REPLACE_TZSET to 1.
975         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
976         invoke '_tzset' instead of 'tzset'.
977         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
979         * modules/time_rz (Depends-on): Add tzset.
980         * lib/time_rz.c (tzset): Remove fallback definition.
981         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
983 2017-05-01  Bruno Haible  <bruno@clisp.org>
985         mktime: Fix dependencies.
986         * modules/mktime (Depends-on): Add 'time'.
988 2017-05-01  Bruno Haible  <bruno@clisp.org>
990         New module 'localtime-buffer', split off from module 'gettimeofday'.
991         * lib/localtime-buffer.h: New file.
992         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
993         * lib/time.in.h (tzset): New declaration.
994         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
995         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
996         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
997         moved to lib/localtime-buffer.c or lib/tzset.c.
998         * m4/localtime-buffer.m4: New file.
999         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
1000         HAVE_TZSET, REPLACE_TZSET.
1001         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
1002         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
1003         gl_LOCALTIME_BUFFER_NEEDED.
1004         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
1005         since 2007-01-18.
1006         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
1007         tzset.
1008         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
1009         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
1010         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
1011         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
1012         * modules/localtime-buffer: New file.
1013         * modules/time (Depends-on): Remove 'gettimeofday'.
1014         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
1015         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
1016         * modules/tzset (Description): Enable hyperlink to POSIX spec.
1017         (Files): Add lib/tzset.c.
1018         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
1019         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
1020         gl_TIME_MODULE_INDICATOR.
1021         * modules/gettimeofday (Depends-on): Add localtime-buffer.
1023 2017-05-01  Bruno Haible  <bruno@clisp.org>
1025         copy-file: Preserve sub-second time stamps.
1026         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
1027         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
1028         transport the time stamps from the original file to the destination
1029         file.
1030         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
1031         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
1032         utime-h.
1034 2017-05-01  Bruno Haible  <bruno@clisp.org>
1036         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
1037         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
1038         also on MSVC.
1039         Reported by Eli Zaretskii <eliz@gnu.org>.
1041 2017-05-01  Bruno Haible  <bruno@clisp.org>
1043         wchar: Fix compilation error with the original mingw.org mingw.
1044         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
1045         <stddef.h> instead.
1046         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
1047         gl_WCTYPE_H.
1048         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
1049         gl_TYPE_WINT_T_PREREQ instead.
1050         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
1051         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
1052         Reported by Eli Zaretskii <eliz@gnu.org>.
1054 2017-04-30  Bruno Haible  <bruno@clisp.org>
1056         utimecmp: Add support for native Windows.
1057         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
1059 2017-04-30  Bruno Haible  <bruno@clisp.org>
1061         utimens: Add support for native Windows.
1062         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
1063         (fdutimens): Provide a native Windows implementation, like utime.c with
1064         added tv_nsec support.
1065         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
1066         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
1068 2017-04-30  Bruno Haible  <bruno@clisp.org>
1070         wcsftime: New module.
1071         * lib/wchar.in.h (wcsftime): New declaration.
1072         * lib/wcsftime.c: New file.
1073         * m4/wcsftime.m4: New file.
1074         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
1075         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
1076         HAVE_WCSFTIME, REPLACE_WCSFTIME.
1077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
1078         HAVE_WCSFTIME, REPLACE_WCSFTIME.
1079         * modules/wcsftime: New file.
1080         * doc/posix-functions/wcsftime.texi: Mention the new module.
1082 2017-04-30  Bruno Haible  <bruno@clisp.org>
1084         strftime-fixes: New module.
1085         * lib/time.in.h (strftime): New declaration.
1086         * lib/strftime-fixes.c: New file.
1087         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
1088         (gl_FUNC_STRFTIME): Remove macro.
1089         * m4/strftime-fixes.m4: New file.
1090         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
1091         REPLACE_STRFTIME.
1092         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
1093         REPLACE_STRFTIME.
1094         * modules/strftime-fixes: New file.
1095         * doc/posix-functions/strftime.texi: Mention the new module.
1097 2017-04-30  Bruno Haible  <bruno@clisp.org>
1099         mktime: Work around TZ problem on native Windows.
1100         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
1101         from the native Windows workaround.
1102         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
1103         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
1104         'guessing no'.
1105         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
1106         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
1107         NEED_MKTIME_WINDOWS.
1108         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
1109         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
1110         NEED_MKTIME_INTERNAL.
1111         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
1112         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
1113         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
1114         not REPLACE_MKTIME.
1115         * doc/posix-functions/mktime.texi: Mention the native Windows
1116         workaround.
1118 2017-04-30  Bruno Haible  <bruno@clisp.org>
1120         localtime: New module.
1121         * lib/time.in.h (localtime): Declare also if requested by module
1122         'localtime'.
1123         * lib/localtime.c: New file.
1124         * m4/localtime.m4: New file.
1125         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
1126         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
1127         * modules/localtime: New file.
1128         * doc/posix-functions/localtime.texi: Mention the new module.
1130 2017-04-30  Bruno Haible  <bruno@clisp.org>
1132         ctime: New module.
1133         * lib/time.in.h (ctime): New declaration.
1134         * lib/ctime.c: New file.
1135         * m4/ctime.m4: New file.
1136         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
1137         REPLACE_CTIME.
1138         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
1139         * modules/ctime: New file.
1140         * doc/posix-functions/ctime.texi: Mention the new module.
1142 2017-04-30  Bruno Haible  <bruno@clisp.org>
1144         gettimeofday: Provide higher resolution on native Windows.
1145         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
1146         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
1147         (initialize): Initialize it.
1148         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
1149         'struct timeval'. Don't use _ftime().
1150         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
1151         <sys/timeb.h> and _ftime.
1153 2017-04-30  Bruno Haible  <bruno@clisp.org>
1155         Document the problem with the Cygwin environment variable TZ.
1156         * doc/posix-functions/tzset.texi: Add note about TZ.
1157         * doc/posix-functions/ctime.texi: Likewise.
1158         * doc/posix-functions/localtime.texi: Likewise.
1159         * doc/posix-functions/mktime.texi: Likewise.
1160         * doc/posix-functions/strftime.texi: Likewise.
1161         * doc/posix-functions/wcsftime.texi: Likewise.
1162         * doc/pastposix-functions/ftime.texi: Likewise.
1164 2017-04-30  Bruno Haible  <bruno@clisp.org>
1166         utime-tests: New module.
1167         * tests/test-utime.c: New file, based on tests/test-utimens.h.
1168         * tests/test-utimens-common.h: Include <sys/stat.h>.
1169         * modules/utime-tests: New file.
1171 2017-04-29  Bruno Haible  <bruno@clisp.org>
1173         utime: New module.
1174         * lib/utime.in.h: Add comment for snippets.
1175         (utime): New declaration.
1176         * lib/utime.c: New file.
1177         * m4/utime.m4: New file.
1178         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
1179         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
1180         REPLACE_UTIME.
1181         * modules/utime-h (Depends-on): Add snippets.
1182         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
1183         Insert snippets.
1184         * modules/utime: New file.
1185         * doc/posix-functions/utime.texi: Mention the new module.
1187 2017-04-29  Bruno Haible  <bruno@clisp.org>
1189         utime-h: Modernize handling of 'struct utimbuf'.
1190         * lib/utime.in.h: Include next <utime.h> if it exists.
1191         (utimbuf): Define to _utimbuf on native Windows.
1192         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
1193         Set UTIME_H on native Windows.
1194         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
1195         * modules/utime-h (Depends-on): Add include_next.
1196         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
1197         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
1199         * lib/utimens.c (utimbuf): Remove fallback definition.
1200         * m4/utimens.m4 (gl_UTIMENS): Don't require
1201         gl_CHECK_TYPE_STRUCT_UTIMBUF.
1202         * m4/utimbuf.m4: Remove file.
1203         * modules/utimens (Files): Remove m4/utimbuf.m4.
1205 2017-04-29  Bruno Haible  <bruno@clisp.org>
1207         Make use of module 'utime-h'.
1208         * modules/copy-file (Depends-on): Add utime-h.
1209         * lib/copy-file.c: Assume that <utime.h> exists.
1210         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
1212         * modules/utimens (Depends-on): Add utime-h.
1213         * lib/utimens.c: Assume that <utime.h> exists.
1215 2017-04-29  Bruno Haible  <bruno@clisp.org>
1217         utime-h: New module.
1218         * m4/utime_h.m4: New file.
1219         * lib/utime.in.h: New file.
1220         * modules/utime-h: New file.
1221         * doc/posix-headers/utime.texi: Mention the new module.
1223         * tests/test-utime-h.c: New file.
1224         * modules/utime-h-tests: New file.
1226 2017-04-30  Bruno Haible  <bruno@clisp.org>
1228         Fix a few typos.
1229         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
1230         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
1231         * doc/posix-functions/fstat.texi: Fix a plural typo.
1232         * doc/posix-functions/stat.texi: Likewise.
1233         * m4/include_next.m4: Update comments.
1235 2017-04-29  Bruno Haible  <bruno@clisp.org>
1237         error: Fix mistake in 2017-04-23 commit.
1238         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
1239         assume that strerror_r returns 'int', not 'char *'.
1241 2017-04-29  Bruno Haible  <bruno@clisp.org>
1243         stat: Fix time_t values and other problems on native Windows platforms.
1244         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
1245         implementations of stat().
1246         * lib/stat.c: Include filename.h instead of dosname.h. Include
1247         malloca.h, stat-w32.h.
1248         (is_unc_root): New function.
1249         (rpl_stat): New implementation for native Windows. Remove
1250         REPLACE_FUNC_STAT_DIR code.
1251         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
1252         Don't define REPLACE_FUNC_STAT_DIR.
1253         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
1254         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
1255         (Depends-on): Remove dosname. Add filename, malloca.
1256         (configure.ac): Also compile lib/stat-w32.c.
1258 2017-04-29  Bruno Haible  <bruno@clisp.org>
1260         fstat: Fix time_t values on native Windows platforms.
1261         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
1262         * lib/stat-w32.h: New file.
1263         * lib/stat-w32.c: New file.
1264         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
1265         stat-w32.h instead.
1266         (fstat_nothrow): Remove function.
1267         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
1268         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
1269         always.
1270         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
1271         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
1272         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
1273         (configure.ac): Also compile lib/stat-w32.c.
1275 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1277         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
1278         Problem reported by Assaf Gordon and Gavin Smith in:
1279         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00157.html
1280         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
1281         #define this, too.
1283 2017-04-29  Bruno Haible  <bruno@clisp.org>
1285         strerror_r-posix: Fixes for MSVC 14.
1286         * lib/strerror_r.c: Include <stdarg.h>.
1287         (strerror_r): Provide error messages for errno values 100...140.
1288         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
1290 2017-04-28  Bruno Haible  <bruno@clisp.org>
1292         noreturn: New module.
1293         * lib/noreturn.h: New file.
1294         * modules/noreturn: New file.
1295         * tests/test-noreturn.c: New file.
1296         * modules/noreturn-tests: New file.
1297         * tests/test-noreturn-c++.cc: New file.
1298         * modules/noreturn-c++-tests: New file.
1300 2017-04-27  Bruno Haible  <bruno@clisp.org>
1302         wctype-h: Fix compilation error with the original mingw.org mingw.
1303         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
1304         HAVE_CRTDEFS_H.
1305         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
1306         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
1307         <stddef.h> instead.
1308         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
1310 2017-04-26  Pádraig Brady  <P@draigBrady.com>
1312         nap.h: Fix compilation on non windows platforms
1313         * tests/nap.h: Move misplaced endif.
1315 2017-04-26  Pádraig Brady  <P@draigBrady.com>
1316         and Paul Eggert  <eggert@cs.ucla.edu>
1318         time_rz: fix heap buffer overflow vulnerability
1319         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
1320         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
1321         whether there is enough buffer space available, thus avoiding
1322         the problematic promotion of signed to unsigned causing an invalid
1323         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
1324         the start of the buffer.
1325         * tests/test-parse-datetime.c (main): Add a test case written by
1326         Paul Eggert, which overwrites enough of the heap so that
1327         standard glibc will fail with "free(): invalid pointer"
1328         without the patch applied.
1330 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1332         xalloc: add missing integer overflow check
1333         * lib/xalloc.h (x2nrealloc): Also check for multiplication
1334         overflow when P is null.
1336 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1338         parse-datetime: make it standalone
1339         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
1340         (_GL_ATTRIBUTE_FORMAT): New macro.
1341         These are needed to get './gnulib-tool --test parse-datetime' to work.
1343 2017-04-23  Bruno Haible  <bruno@clisp.org>
1345         nap.h: Port to native Windows.
1346         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
1347         use nap_fd instead. On native Windows, close and reopen nap_fd.
1348         (nap_works): Don't compare the ctimes, because on native Windows, these
1349         are the creation times.
1350         (nap): Update.
1352 2017-04-23  Bruno Haible  <bruno@clisp.org>
1354         nap.h: Fix logic.
1355         * tests/nap.h (nap): Avoid signed integer overflow in loop.
1357 2017-04-23  Bruno Haible  <bruno@clisp.org>
1359         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
1360         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
1361         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
1362         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
1363         * lib/argp-help.c (__argp_failure): Likewise.
1365 2017-04-23  Bruno Haible  <bruno@clisp.org>
1367         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
1368         * m4/strerror_r.m4: Revert changes since 2016-10-16.
1369         * lib/strerror_r.c: Likewise.
1371 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1373         Target a C99 subset, not a C89 subset
1374         For many years Gnulib has targeted C89 and has resisted using C99
1375         features, as some Gnulib-using programs still wanted to target
1376         C89.  As this no longer seems to be the case, relax the porting
1377         requirements to allow some C99 features.  This is merely a change
1378         to the documentation, to give other Gnulib developers a chance to
1379         weigh in on the topic.
1380         * doc/extern-inline.texi (extern inline):
1381         * doc/gnulib-readme.texi (Portability guidelines):
1382         * doc/gnulib-tool.texi (Initial import):
1383         * doc/gnulib.texi (Header files):
1384         Modernize to talk about C99 and C11 instead of C89 and C99.
1385         * doc/gnulib-readme.texi (Portability guidelines):
1386         Now a section, not merely a subsection, so that it
1387         can be split up.  Modernize a bit.
1388         (C language versions, C99 features assumed)
1389         (C99 features avoided):
1390         New sections.
1392 2017-04-23  Bruno Haible  <bruno@clisp.org>
1394         doc: New section "Modules that modify the way other modules work".
1395         * doc/gnulib.texi (Modules that modify the way other modules work): New
1396         section.
1398 2017-04-23  Bruno Haible  <bruno@clisp.org>
1400         stat-time: Update comments.
1401         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
1402         * tests/test-utimens-common.h: Add reference regarding st_ctime on
1403         Windows.
1405 2017-04-01  Bruno Haible  <bruno@clisp.org>
1407         glob: Fix more memory leaks.
1408         * lib/glob.c (glob): Free allocated memory before returning.
1409         Reported by Coverity via Tim Rühsen.
1411 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1413         poll: improve fast check for out-of-range NFD
1414         * lib/poll.c: Do not include intprops.h.
1415         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
1416         * modules/poll (Depends-on): Remove intprops.
1418         ftoastr: cite a newer paper
1419         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
1420         instead of Loitsch 2010.
1422 2017-04-22  Bruno Haible  <bruno@clisp.org>
1424         poll: Enable argument check also in the Windows implementation.
1425         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
1426         Reported by Paul Eggert.
1428 2017-04-22  Bruno Haible  <bruno@clisp.org>
1430         getlogin_r: Work around bug in Mac OS X 10.12.
1431         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
1432         bug.
1433         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
1434         given size minus 1, call getlogin_r a second time, on a larger buffer.
1435         * modules/getlogin_r (Depends-on): Add malloca.
1436         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
1438 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1440         parse-datetime: fix %z and prefer signed int
1441         %z problem reported by Pádraig Brady in:
1442         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00103.html
1443         While fixing it, I decided to prefer signed ints to size_t, as
1444         they are less error-prone (e.g., ubsan catches overflow).
1445         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
1446         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
1447         counts, since signed integers make for better debugging.
1448         (date): Don’t assume %z works in printf formats.
1449         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
1450         sizes of buffers known to be small, e.g., because we’re using snprintf.
1451         (parse_datetime2): Simplify call to debug_mktime_not_ok.
1453 2017-04-22  Bruno Haible  <bruno@clisp.org>
1455         *printf: Work around rounding bug on Mac OS X.
1456         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
1457         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
1458         Mac OS X and FreeBSD.
1459         * doc/glibc-functions/*printf.texi: Likewise.
1461 2017-04-22  Bruno Haible  <bruno@clisp.org>
1463         vasnprintf tests: Avoid warnings.
1464         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
1465         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
1466         test.
1468 2017-04-22  Bruno Haible  <bruno@clisp.org>
1470         sys_file tests: Avoid warning.
1471         * tests/test-sys_file.c (main): Add a default clause to the switch
1472         statement.
1474 2017-04-22  Bruno Haible  <bruno@clisp.org>
1476         sethostname: Update doc.
1477         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
1478         Mac OS X.
1480 2017-04-22  Bruno Haible  <bruno@clisp.org>
1482         quotearg tests: Avoid warnings.
1483         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
1484         false.
1486 2017-04-22  Bruno Haible  <bruno@clisp.org>
1488         poll: Enable argument check.
1489         * lib/poll.c: Include intprops.h.
1490         (poll): Check value of nfd correctly.
1491         * modules/poll (Depends-on): Add intprops.
1493 2017-04-22  Bruno Haible  <bruno@clisp.org>
1495         get-rusage-data: Avoid warnings on Mac OS X.
1496         * lib/get-rusage-data.c: On Mac OS X, don't define
1497         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
1498         (get_rusage_data) [Mac OS X]: Just return 0.
1500 2017-04-22  Bruno Haible  <bruno@clisp.org>
1502         xbinary-io: Fix build error.
1503         * modules/xbinary-io (Depends-on): Add gettext-h.
1504         * lib/xbinary-io.c: Include gettext.h and define _().
1505         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
1506         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00089.html>.
1508 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1510         parse-datetime: overflow and debug cleanups
1511         This long patch was triggered by this bug report from Ruediger Meier:
1512         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00028.html
1513         I fixed the bug he noted, then found some others nearby, and then
1514         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
1515         up some of the code to follow GNU standards while I was at it.
1516         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
1517         use c_isdigit.
1518         (EPOCH_YEAR): Remove; unused.
1519         (TM_YEAR_BASE): Now an enum rather than a macro.
1520         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
1521         time zone offset, since timezones now are in terms of seconds and
1522         not minutes.
1523         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
1524         appropriate.  Verify that intmax_t is wide enough.
1525         (time_overflow, time_zone_str): New functions, used to deal
1526         more reliably with overflow.
1527         (dbg_printf): Add printf attribute, to help catch integer width errors.
1528         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
1529         (%union, to_hour, yylex, parse_datetime2):
1530         Use intmax_t instead of long int and/or long_time_t.
1531         All uses changed.
1532         (DBGBUFSIZE): Move earlier.
1533         (relative_time, set_hhmmss, parser_control):
1534         Just use int for nanoseconds and for time zones; that’s wide enough.
1535         (parser_control): Use bool for members like year_seen that can
1536         be booleans instead of counters.  All uses changed.
1537         Remove debug_default_input_timezone; no longer needed.
1538         All uses removed.
1539         (apply_relative_time): Return a bool overflow flag.
1540         All uses changed to check for overflow.
1541         (apply_relative_time, zone, date, relunit, relunit_snumber)
1542         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
1543         Check for integer overflow portably.
1544         (str_days): Use just int for N, as it’s wide enough.
1545         Prefer 2D char arrays to arrays of char * when it looks like
1546         2D is a win on typical platforms.
1547         Prefer snprintf to strncpy/strncat, for simplicity;
1548         all buffers are smaller than INT_MAX so this is safe.
1549         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
1550         (debug_print_current_time): Don’t assume tv_nsec is of type long,
1551         as this is not true on x32.  Output "." before any nanoseconds.
1552         (debug_print_current_time, parse_datetime2):
1553         Output local zones using a more-consistent format.
1554         (debug_print_current_time, date, parse_datetime2):
1555         (main) [TEST]:
1556         Don’t assume time_t is the same width as long.
1557         (print_rel_part): New function, replacing ...
1558         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
1559         (debug_print_relative_time): Use bool for boolean.
1560         (local_zone): dsts_seen now counts only tDST instances.
1561         (date): Fix printf of size_t to use %z.  Do not assume numeric
1562         tokens have negative values merely because the context suggests
1563         a syntax with "-" separating tokens.
1564         (time_zone_hhmm): Return bool success indicator, which checks for
1565         overflow.  Store result into PC->time_zone instead.  All callers
1566         changed.
1567         (tm_year_str): New function.  Return a bool success indicator and
1568         store the result into a buffer.  All callers changed.  Output the
1569         numerically correct string even if adding 1900 to the year would
1570         overflow.
1571         (to_tm_year): New function, replacing the old to_year.  All
1572         callers changed.
1573         (tm_diff): Sync with glibc.
1574         (lookup_word): Use to_uchar instead of doing it by hand.
1575         (TZBUFSIZE): Now local to the only function that needs it.
1576         (debug_strfdatetime): Simplify now that time zones are int seconds.
1577         (debug_strfdate): Work even if tm_year + 1900 would overflow.
1578         (get_effective_timezone): Remove.  All uses removed.
1579         (parse_datetime2): Use fprintf in pieces instead of snprintfing
1580         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
1581         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
1582         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
1583         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
1584         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
1585         * modules/parse-datetime (Depends-on): Add inttypes.
1587 2017-04-21  Bruno Haible  <bruno@clisp.org>
1589         gettext-h: Avoid -Wundef warning.
1590         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
1591         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
1592         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.
1594 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
1596         error: Avoid "function declaration isn't a prototype" warning.
1597         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
1599 2017-04-21  Bruno Haible  <bruno@clisp.org>
1601         vasnprintf: Fix for MSVC 14.
1602         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
1603         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
1604         of !HAVE_SNPRINTF_RETVAL_C99.
1606 2017-04-21  Bruno Haible  <bruno@clisp.org>
1608         mbrtowc tests: Fix test failures on MSVC 14.
1609         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
1610         behaviour for invalid input.
1612 2017-04-21  Bruno Haible  <bruno@clisp.org>
1614         mbsinit: Fix for MSVC 14.
1615         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
1616         implementation that is in sync with mbrtowc.c. On other platforms, use
1617         an adequate ad-hoc implementation.
1619 2017-04-21  Bruno Haible  <bruno@clisp.org>
1621         Fix test-mbrtowc5.sh failure on native Windows.
1622         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
1623         "C".
1625 2017-04-21  Bruno Haible  <bruno@clisp.org>
1627         Avoid accidental use of native Windows APIs on Cygwin.
1628         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
1629         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
1630         * lib/localename.c (WINDOWS_NATIVE): Likewise.
1632 2017-04-20  Bruno Haible  <bruno@clisp.org>
1634         Remove red warnings from the generated MODULES.html.
1635         * modules/fcntl (Description): Disambiguate function references.
1636         * modules/getcwd-lgpl (Description): Likewise.
1637         * modules/hostent (Description): Likewise.
1638         * modules/servent (Description): Likewise.
1639         * modules/tempname (Description): Likewise.
1641 2017-04-20  Bruno Haible  <bruno@clisp.org>
1643         verify tests: Fix spurious failure with parallel make.
1644         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
1645         EXTRA_PROGRAMS.
1646         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
1647         * tests/test-verify-try.c: New file.
1648         * modules/verify-tests (Files): Add it.
1649         (EXTRA_PROGRAMS): Add test-verify-try.
1650         (MOSTLYCLEANFILES): Update accordingly.
1651         Reported by Adam James Stewart <ajstewart@anl.gov>.
1653 2017-04-18  Bruno Haible  <bruno@clisp.org>
1655         vma-iter: Fix compilation error on Solaris 7.
1656         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
1657         like on IRIX, OSF/1.
1658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1660 2017-04-18  Bruno Haible  <bruno@clisp.org>
1662         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
1663         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
1664         included.
1665         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
1666         <sys/procfs.h>.
1667         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
1668         <sys/procfs.h> cannot be included.
1669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1671 2017-04-18  Bruno Haible  <bruno@clisp.org>
1673         getopt-gnu: Add comments.
1674         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
1675         * modules/getopt-gnu (configure.ac): Likewise.
1677 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
1679         regex: port better to Solaris 10
1680         Solaris 10 <locale.h> includes <libintl.h>, which #defines
1681         gettext, and this causes a double #define.
1682         Problem reported by Gavin Smith in:
1683         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00056.html
1684         * lib/regex_internal.h (gettext): #undef before #defining.
1686 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
1688         intprops: improve comments
1689         * lib/intprops.h: Improve and shorten commentary.
1690         For the record, if we ever run into a pedantic compiler that
1691         behaves differently from GCC when converting an out-of-range value
1692         to a signed integer, we can work around the problem with something
1693         like the following code, where UCT is the signed counterpart of T
1694         (UCT is sometimes narrower than UT) and all callers are changed
1695         accordingly:
1696         #if __SUNPRO_C <= 0x5120
1697         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
1698            ((t) ((ut) (a) op (ut) (b)))
1699         #else
1700         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
1701            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
1702             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
1703                + TYPE_MINIMUM (t)) \
1704             : (t) (uct) ((ut) (a) op (ut) (b)))
1705         #endif
1707 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
1709         intprops: try to avoid tickling similar bugs
1710         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
1711         needs to be the same width as T; it can be wider.
1712         Change callers so that UT is at least as wide as unsigned int,
1713         as I suspect that this is less likely to run into compiler bugs.
1715         intprops: port to Oracle Studio 12.3 x86
1716         Problem reported by Gavin Smith in:
1717         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html
1718         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
1719         Convert unsigned to signed via the usual rather than the standard way,
1720         to avoid a compiler bug in Oracle Studio 12.3 x86.
1722 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1724         getopt: prefer - to _ in new file names
1725         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
1726         * lib/getopt-core.h: Rename from lib/getopt_core.h.
1727         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
1728         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
1729         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
1730         All uses changed.
1732         getopt: port recent getopt changes to macOS
1733         Problem reported by Harald Maier (Bug#26398).
1734         The macOS C compiler uses __nonnull for its own purposes and that
1735         clashes with glibc's __nonnull.
1736         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
1737         * lib/getopt_cdefs.in.h (__nonnull): Remove.
1738         * lib/getopt_core.h (getopt):
1739         * lib/getopt_ext.h (getopt_long, getopt_long_only):
1740         Use _GL_ARG_NONNULL, not __nonnull.
1741         * lib/unistd.in.h: Move snippet hooks to before where the getopt
1742         .h files are included, so that _GL_ARG_NONNULL is defined in time.
1743         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
1744         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
1746 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1748         getopt-gnu: omit some duplicate code
1749         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
1750         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
1751         gnulib-tool already does this.
1752         * modules/getopt-gnu (configure.ac): Omit code duplicated from
1753         getopt-posix, which we depend on.
1755         getopt-posix: use angle-bracket include
1756         * lib/getopt1.c: Include <config.h>, not "config.h".
1758 2017-04-06  Zack Weinberg  <zackw@panix.com>
1760         getopt: annotate files with relationship to glibc
1762         As the final act in this patchset, adjust the message at the top of
1763         each file to indicate which files are synced with glibc.  (This has
1764         already been done for most of the headers.)
1766         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
1767         Mention in top-of-file boilerplate that these files are shared
1768         between glibc and gnulib.
1771         getopt: split up getopt.in.h and eliminate __need_getopt
1773         Over in glibc, all of the __need macros are being phased out in favor
1774         of small headers that declare only the necessary components, as this
1775         is much simpler and less prone to bugs.  As getopt is shared with
1776         glibc, gnulib needs to do the same for __need_getopt.
1778         __need_getopt is misnamed; what it really means is "we want only the
1779         getopt features specified in POSIX, not the GNU extensions".  glibc
1780         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
1781         these files can be shared verbatim with gnulib.  The portability
1782         wrapper, on the other hand, they have renounced altogether; glibc's
1783         getopt.h will no longer be shared with gnulib at all.  In exchange,
1784         certain glibc-specific quirks (having to do with __posix_getopt) no
1785         longer need appear in gnulib's headers at all.
1787         This patch merges getopt_core.h and getopt_ext.h from glibc, and
1788         splits up the current gnulib-side portability wrapper into three
1789         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
1790         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
1791         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
1792         unistd.in.h just use them.  All new files are clearly marked with
1793         whether they are shared with glibc.
1795         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
1796         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
1797         with glibc, and ...
1798         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
1799         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
1800         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
1801         instead of defining __need_getopt and including the full getopt.h.
1803         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
1804         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
1805         * modules/getopt-posix (Files): Add new headers and sort list.
1806         (Depends-on): No longer need snippet/arg-nonnull.
1807         (Makefile.am): Generate getopt_cdefs.h.
1810         getopt: better handling of ambiguous options
1812         glibc's getopt uses alloca to construct a linked list of possibilities
1813         for an "ambiguous" long option.  In gnulib, malloc should be used
1814         instead.  Providing for both cases complicates things a fair bit.
1816         This patch rewrites ambiguous-option handling to use a boolean vector
1817         instead of a linked list.  There is then only one allocation that
1818         might need freeing; in glibc it can honor __libc_use_alloca as usual,
1819         and in gnulib we define __libc_use_alloca to always be false, so we
1820         don't need ifdefs in the middle of the function.  This should also be
1821         slightly more efficient in the normal case of long options being fully
1822         spelled out -- I think most people aren't even aware they _can_
1823         sometimes abbreviate long options.
1825         One interesting consequence is that the list of possibilities is now
1826         printed in exactly the order they appear in the list of long options,
1827         instead of the first possibility being shuffled to the end.
1829         (The patch looks bigger than it really is because there's a fair bit
1830         of reindentation and code rearrangement.)
1832         * lib/getopt.c: When used standalone, define __libc_use_alloca
1833         as always false and alloca to abort if called.
1834         (process_long_option): Rewrite handling of ambiguous long options
1835         to use a single boolean vector, not a linked list; use
1836         __libc_use_alloca to decide whether to allocate this using alloca.
1839         getopt: refactor long-option handling
1841         There were two copies of the bulk of the code to handle long options.
1842         Now there is only one.
1844         This change temporarily removes the logic to avoid using alloca when
1845         standalone; the next patch in the series will restore it.
1847         * lib/getopt.c (process_long_option): New function split out
1848         from _getopt_internal_r.
1849         (_getopt_internal_r): Replace both copies of the long-option
1850         processing code with calls to process_long_option.
1853         getopt: tidy up _getopt_initialize a bit
1855         _getopt_data.__posixly_correct is completely redundant to
1856         _getopt_data.__ordering, and some work that logically belongs in
1857         _getopt_initialize was being done by _getopt_internal_r, making the
1858         code harder to understand.
1860         As a side effect, getenv will no longer be called if the first
1861         character of the options string is '+' or '-', which is probably a
1862         Good Thing.  (Perhaps we should have a flag character that
1863         specifically asks for the permutation behavior?)
1865         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
1866         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
1867         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
1870         getopt: merge from glibc: repetition reduction
1872         The definitions of the entry point functions 'getopt' and
1873         '__posix_getopt' can be made substantially less repetitive with a
1874         helper macro.
1876         While I was merging the const-correctness changes from gnulib into
1877         glibc I noticed there are still some unnecessary casts in
1878         _getopt_internal_r.
1880         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
1881         a macro.  Consistently cast 'argv' to 'char **' when calling
1882         _getopt_internal.
1883         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
1886         getopt: clean up error reporting
1888         getopt can print a whole bunch of error messages, and when used
1889         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
1890         cancellation point and getopt isn't, and also applying fprintf to a
1891         stream in wide-character mode is not allowed.  So every single error
1892         reporting case has an #ifdef _LIBC block in which it calls internal
1893         libc functions instead.  The counterpart patch series in glibc makes
1894         it possible to simplify all of that down to a set of #defines at the
1895         top of the file; core code is written as if it is safe to just call
1896         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
1897         call any *other* stdio functions.)
1899         * lib/getopt.c: When _LIBC is defined, define fprintf to
1900         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
1901         to _IO_funlockfile.  When neither _LIBC nor
1902         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
1903         funlockfile as no-ops.
1904         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
1905         standalone error-printing code can now be used for libc as well.
1906         Add an flockfile/funlockfile pair around one case where the error
1907         message is printed in several chunks.  Don't use fputc.
1910         getopt: fix fencepost error in ambiguous-W-option handling
1912         getopt_long contains an undocumented (AFAICT) feature in which, if you
1913         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
1914         treated as equivalent to '--foo'.  This is implemented with a partial
1915         second copy of the code for handling long options, and that code
1916         increments optind one too many times when recovering from an ambiguous
1917         abbreviated option, which can cause the main loop to walk past the end
1918         of argv and crash.
1920         I discovered this while writing a test case that tries to exercise all
1921         of getopt's error reporting paths; I wouldn't be surprised to learn
1922         that this feature is never used by real applications.
1924         * lib/getopt.c (_getopt_internal_r): Don't increment
1925         d->optind a second time when reporting ambiguous -W options.
1928         getopt: clean up getopt.c and getopt1.c file headers
1930         In getopt.c, there is no need to include wchar.h at all, and it is
1931         safe nowadays to assume that stdlib.h does declare getenv (several
1932         other gnulib modules make this assumption).
1934         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
1935         by using "" inclusions consistently, and there is no actual need to
1936         include stdlib.h (except in the #ifdef TEST block, where it should be
1937         unconditional), nor to provide a backup definition of NULL at all.
1939         * lib/getopt1.c: Simplify #ifdeffage at top of file.
1940         Move inclusion of stdlib.h to #ifdef TEST block and make
1941         unconditional.  Do not define NULL.
1942         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
1943         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
1944         * modules/getopt-gnu, modules/getopt-posix: Don't call
1945         gl_PREREQ_GETENV.
1948         getopt: harmonize comments with glibc
1950         The comments explaining how the behavior of 'getopt' varies depending
1951         on whether it's the standalone version and whether there are special
1952         characters at the beginning of the options string were inconsistent
1953         between gnulib and glibc, and also out of sync with the code.
1955         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
1958         getopt: remove USE_NONOPTION_FLAGS
1960         getopt includes code to parse an environment variable named
1961         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
1962         in decimal); but all of it has been #ifdefed out since 2001, with no
1963         official way to turn it back on.
1965         According to commentary in glibc's config.h.in, bash version 2.0
1966         set this environment variable to indicate argv elements that were
1967         the result of glob expansion and therefore should not be treated
1968         as options, but the feature was "disabled later" because "it
1969         caused problems".  According to bash's CHANGES file, "later" was
1970         release 2.01; it gives no more detail about what the problems
1971         were.
1973         Version 2.0 of bash was released on the last day of 1996, and version
1974         2.01 in June of 1997.  Twenty years later, I think it is safe to
1975         assume that this environment variable isn't coming back.
1977         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
1978         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
1979         __libc_argc and __libc_argv externs, which were only used by
1980         #ifdef USE_NONOPTION_FLAGS blocks.
1983         getopt: tabify, in preparation for merge with glibc
1985         glibc sticks to the GNU default of indenting with a mix of
1986         8-column tabs and spaces; make the gnulib copy match.
1988         getopt.h is not included because it is *not* going to be merged in its
1989         present form.
1991         * getopt.c, getopt1.c, getopt_int.h: Tabify.
1993 2017-04-02  Bruno Haible  <bruno@clisp.org>
1995         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
1996         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
1997         like it was done in modules/relocatable-lib on 2011-05-21 and in
1998         modules/relocatable-prog on 2011-08-15.
1999         Reported by Reuben Thomas <rrt@sc3d.org>.
2001 2017-03-31  Bruno Haible  <bruno@clisp.org>
2003         glob: Fix invalid free() call.
2004         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
2005         static storage to home_dir.
2006         Reported by Coverity via Tim Rühsen.
2008 2017-03-31  Bruno Haible  <bruno@clisp.org>
2010         glob: Fix memory leaks.
2011         * lib/glob.c (glob): Free allocated memory before returning.
2012         Reported by Coverity via Tim Rühsen.
2014 2017-03-31  Bruno Haible  <bruno@clisp.org>
2016         md5, sha1, sha256, sha512: Add comments regarding correctness.
2017         * lib/md5.h (buflen): Add comments regarding range.
2018         * lib/sha1.h (buflen): Likewise.
2019         * lib/sha256.h (buflen): Likewise.
2020         * lib/sha512.h (buflen): Likewise.
2021         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
2022         * lib/sha1.c (sha1_process_bytes): Likewise.
2023         * lib/sha256.c (sha256_process_bytes): Likewise.
2024         * lib/sha512.c (sha512_process_bytes): Likewise.
2025         Reported by Coverity via Tim Rühsen.
2027 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
2029         getopt: merge from glibc
2030         This does not change anything substantial; it merely simplifies
2031         hypothetical merges back to glibc.
2032         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
2033         Change copyright notice to match what is in glibc.
2034         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
2035         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
2036         __open_memstream rather than open_memstream and __glibc_likely
2037         instead of __builtin_expect.
2038         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
2040 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
2042         dfa: make [0-9] faster in non-C locales
2043         Problem reported by John P. Linderman (Bug#26193).
2044         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
2045         If both ends of the range are ASCII digits, do not worry about
2046         multi-character collating sequences and the like.  Be consistent
2047         about using isalpha as a precondition for setbit_case_fold_c.
2049 2017-03-19  Bruno Haible  <bruno@clisp.org>
2051         lock: Fix compilation error with HP-UX IA64 cc.
2052         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
2053         weak on non-glibc platforms.
2055 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2057         stdalign: tweak version# and test for HP-UX IA64
2058         Problems reported by Bruno Haible in:
2059         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00078.html
2060         * lib/stdalign.in.h (_Alignas):
2061         * m4/stdalign.m4 (gl_STDALIGN_H):
2062         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
2063         used octal (as that is how they document it), but it is decimal in
2064         practice now and the ancient implementations no longer matter.
2065         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
2067 2017-03-19  Bruno Haible  <bruno@clisp.org>
2069         vma-iter: Add support for Solaris.
2070         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
2071         approach.
2072         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
2073         * lib/get-rusage-as.c: Update comment about Solaris.
2074         * lib/get-rusage-data.c: Likewise.
2076 2017-03-19  Bruno Haible  <bruno@clisp.org>
2078         vma-iter: Prefer HP-UX specific API on HP-UX.
2079         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
2080         * lib/vma-iter.h: Update.
2081         Just in case HP-UX ever implements mquery().
2083 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
2085         stdalign: restore previous behavior for HP-UX IA64
2086         See Bruno Haible's email in:
2087         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
2088         which cites p 150 of a manual saying that 'aligned' works on Itanium.
2089         * lib/stdalign.in.h (_Alignas):
2090         Assume the '061200' applies to Itanium, not to PA-RISC.
2091         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
2093 2017-03-17  Bruno Haible  <bruno@clisp.org>
2095         stat-time, timespec: Support use of the header files in C++ mode.
2096         * lib/stat-time.h: Add "C" linkage declaration.
2097         * lib/timespec.h: Likewise.
2099 2017-03-17  Bruno Haible  <bruno@clisp.org>
2101         stdalign: Make it work with HP-UX cc.
2102         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
2103         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
2104         for HP-UX cc.
2106 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
2108         flexmember: try to detect HP-UX 11.31 cc bug
2109         Problem reported by Bruno Haible in:
2110         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
2111         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2112         Attempt to detect bug in HP-UX 11.31 cc.
2114 2017-03-16  Bruno Haible  <bruno@clisp.org>
2116         stdint: Fix test compilation failure with HP-UX 11 cc.
2117         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
2118         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
2119         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
2120         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
2122 2017-03-14  Bruno Haible  <bruno@clisp.org>
2124         gnulib-tool: Don't produce a tests directory with only snippet .h files.
2125         * gnulib-tool (func_modules_transitive_closure_separately): If
2126         testsrelated_modules ends up with no "real" modules, aside from
2127         modules with applicability 'all', set it to empty.
2129 2017-03-14  Bruno Haible  <bruno@clisp.org>
2131         vma-iter: Add support for HP-UX.
2132         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
2133         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
2134         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
2135         * lib/get-rusage-as.c: Update comment about HP-UX.
2136         * lib/get-rusage-data.c: Likewise.
2137         (get_rusage_data): Use get_rusage_data_via_setrlimit.
2139 2017-03-14  Bruno Haible  <bruno@clisp.org>
2141         limits-h: Make it work with HP-UX cc.
2142         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
2143         defined.
2145 2017-03-14  Bruno Haible  <bruno@clisp.org>
2147         Fix test failures on DragonFlyBSD.
2148         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
2149         * tests/test-select.h (test_bad_fd): Likewise.
2150         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
2152 2017-03-14  Bruno Haible  <bruno@clisp.org>
2154         freadahead: Silence warning on DragonFlyBSD.
2155         * lib/freadahead.c (__sreadahead): Declare ourselves.
2157 2017-03-14  Bruno Haible  <bruno@clisp.org>
2159         vma-iter: Add comment about AIX.
2160         * lib/vma-iter.c: Add comment about why this module is not implemented
2161         on AIX.
2163 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
2165         snippets: move unadjusted snippet sources to lib
2166         Problem reported by Michal Privoznik in:
2167         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00039.html
2168         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
2169         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
2170         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
2171         * lib/unused-parameter.h: Rename from
2172         build-aux/snippet/unused-parameter.h.
2173         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
2174         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
2175         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
2176         * modules/snippet/c++defs (Files:, CXXDEFS_H):
2177         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
2178         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
2179         Adjust to file renamings.
2181 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
2183         gnulib-tool: don't automatically distribute files from top/
2184         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
2185         not distribute top/README-release by default, don't distribute files
2186         from top/ unconditionally.
2187         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
2188         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
2190 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
2192         gnulib-tool: fix typo in comment output
2193         * gnulib-tool (func_import): Fix typo with previous change.
2195         snippets: work around GNU Make 3.82 VPATH
2196         When using 'gnulib-tool --gnu-make' on Emacs, and building
2197         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
2198         an out-of-source (VPATH) build failed because the sans-copyright
2199         snippet file was not built before the file that used it.
2200         Presumably this is some sort of VPATH thing.  Work around the
2201         problem by using the original snippet, i.e., don’t bother to
2202         remove its copyright notice.
2203         * modules/snippet/_Noreturn, modules/snippet/link-warning:
2204         Don’t assume Automake in comments.  Omit long-incorrect comment.
2205         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
2206         (MOSTLYCLEANFILES):
2207         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
2208         (MOSTLYCLEANFILES):
2209         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
2210         (MOSTLYCLEANFILES):
2211         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
2212         (MOSTLYCLEANFILES):
2213         Remove.
2214         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
2215         * modules/snippet/c++defs (CXXDEFS_H):
2216         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
2217         * modules/snippet/warn-on-use (WARN_ON_USE_H):
2218         Don’t bother to remove the copyright notice; just use the
2219         original snippet as-is.
2221 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
2223         gnulib-tool: minor --gnu-make fixups
2224         * gnulib-tool (func_emit_lib_Makefile_am):
2225         Remove useless code that was a blind alley during implementation.
2226         Problem reported by Thien-Thi Nguyen in:
2227         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00029.html
2228         (func_import): Note the "--gnu-make" option in the output comment.
2230 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
2232         gnulib-tool: new option --gnu-make
2233         This is for applications like GNU Emacs that use GNU Make
2234         features instead of Automake.
2235         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
2236         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
2237         Do not assume Automake.
2238         * gnulib-tool (func_determine_path_separator)
2239         (func_modules_transitive_closure, func_update_file)
2240         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
2241         (func_import): Add support for --gnu-make.
2243 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
2245         gnulib-common.m4: avoid aclocal.m4 bloat
2246         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
2247         Hide AM_PROG_AR from aclocal, so that aclocal does not
2248         install irrelevant macro definitions into aclocal.m4.
2250 2017-03-10  Bruno Haible  <bruno@clisp.org>
2252         vma-iter: Let callers know about error.
2253         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
2254         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
2256 2017-03-05  Bruno Haible  <bruno@clisp.org>
2258         Fix value of LD for 64-bit compilers on AIX.
2259         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
2260         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
2262 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
2264         dtotimespec: simplify
2265         * lib/dtotimespec.c (dtotimespec): Simplify.
2267 2017-03-04  Bruno Haible  <bruno@clisp.org>
2269         test-calloc-gnu: Reenable test also for GCC 7.
2270         * tests/test-calloc-gnu.c (eight): New function.
2271         (main): Don't skip test; use eight() instead.
2273 2017-03-04  Jim Meyering  <meyering@fb.com>
2275         test-calloc-gnu: port to GCC7
2276         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
2277         that attempts to calloc more than SIZE_MAX bytes, because GCC7
2278         and newer would detect that at compilation time.
2280 2017-03-04  Bruno Haible  <bruno@clisp.org>
2282         tests: Avoid compiler warning about uses of null_ptr.
2283         * tests/null-ptr.h: New file.
2284         * tests/test-canonicalize.c: Include null-ptr.h.
2285         (null_ptr): Remove function.
2286         * tests/test-canonicalize-lgpl.c: Likewise.
2287         * tests/test-memmem.c: Likewise.
2288         * tests/test-ptsname_r.c: Likewise.
2289         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
2290         * modules/canonicalize-lgpl-tests: Likewise.
2291         * modules/memmem-tests: Likewise.
2292         * modules/ptsname_r-tests: Likewise.
2293         Reported by Jim Meyering.
2295 2017-03-03  Bruno Haible  <bruno@clisp.org>
2297         doc: Mention Mac OS X deficiencies regarding semaphores.
2298         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
2299         * doc/posix-functions/sem_destroy.texi: Likewise.
2300         * doc/posix-functions/sem_getvalue.texi: Likewise.
2302 2017-03-03  Bruno Haible  <bruno@clisp.org>
2304         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
2305         Reported by Assaf Gordon <assafgordon@gmail.com> via
2306         Pádraig Brady <P@draigBrady.com>.
2307         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
2308         semaphores.
2309         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
2310         (atomic_int_semaphore): New macro.
2312 2017-02-28  Bruno Haible  <bruno@clisp.org>
2314         perror tests: Tweak for z/OS.
2315         Reported by Daniel Richard G. <skunk@iskunk.org>.
2316         * tests/test-perror.sh: Don't fail z/OS style perror output.
2318 2017-02-26  Bruno Haible  <bruno@clisp.org>
2320         nproc: Refactor large function.
2321         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
2322         from num_processors.
2323         (num_processors): In this function, only deal with OMP.
2325 2017-02-26  Pádraig Brady  <P@draigBrady.com>
2327         nproc: adjust handling of OpenMP environment variables
2328         to match the return value from omp_get_num_threads(), i.e.:
2329          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
2330          - Treat 0 as an invalid value and ignore
2331         Also remove the call to omp_get_num_threads() because
2332         it's ineffective without the omp pragmas in place.
2333         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
2334         so that it can be ignored.
2335         (num_processors): Honor OMP_THREAD_LIMIT even without
2336         OMP_NUM_THREADS being set.  Also fix a typo in the environment
2337         variable being checked, from the previous recent commit.
2339 2017-02-26  Pádraig Brady  <P@draigBrady.com>
2341         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
2342         * lib/nproc.c (parse_omp_threads): A new function refactored
2343         from num_processors() to support parsing both of the
2344         above environment variables.
2345         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
2346         to accurately reflect the current OpenMP nesting level.
2347         Also support the OMP_THREAD_LIMIT environment variable
2348         to limit the max value determined from OMP_NUM_THREADS.
2349         * modules/nproc: Depend on minmax header.
2350         Suggested by Oliver Heimlich.
2352 2017-02-25  Bruno Haible  <bruno@clisp.org>
2354         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
2355         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
2357 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2359         ftoastr: port to -Wdouble-promotion
2360         Work around -Wdouble-promotion false alarm in recent GCCs.
2361         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
2362         (ftoastr_snprintf, FTOASTR): Use it.
2364 2017-02-21  Bruno Haible  <bruno@clisp.org>
2366         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
2367         Reported by Rene Saavedra <rennes@openmailbox.org> in
2368         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
2369         * lib/glthread/lock.h: On glibc systems without
2370         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
2371         implementation of rwlocks.
2372         * lib/glthread/lock.c: Likewise.
2374 2017-02-20  Bruno Haible  <bruno@clisp.org>
2376         lock tests: Fix build failure on z/OS.
2377         Reported by Daniel Richard G. <skunk@iskunk.org>.
2378         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
2379         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
2380         exist.
2382 2017-02-19  Bruno Haible  <bruno@clisp.org>
2384         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
2385         This helps when CC=clang.
2386         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
2387         of /usr/bin/gcc.
2389         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
2390         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
2392 2017-02-19  Bruno Haible  <bruno@clisp.org>
2394         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
2395         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
2396         --with-tests --single-configure is specified.
2398 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
2400         users.txt: Update links, use HTTPS where possible
2401         * users.txt: Updated to HTTPS where possible,
2402         fixed some links to new locations.
2404 2017-02-16  Bruno Haible  <bruno@clisp.org>
2406         xbinary-io: Fix inlining.
2407         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
2409 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2411         xbinary-io: rename from xsetmode
2412         This patch is taken from suggestions by Bruno Haible in:
2413         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00060.html
2414         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00061.html
2415         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
2416         not ENOTTY, when it is an inappropriate device.
2417         * lib/binary-io.h (SET_BINARY): Resurrect.
2418         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
2419         (xset_binary_mode_error): Rename from xsetmode_error.
2420         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
2421         (xset_binary_mode): Rename from xsetmode.
2422         All uses changed.
2423         * modules/xbinary-io: Rename from modules/xsetmode.
2424         Update file names.
2425         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
2426         * NEWS: Update to match revised behavior.
2428 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2430         tests: Adjust to recent SET_BINARY change
2431         * tests/test-binary-io.c (main):
2432         * tests/test-binary-io.sh: Remove test for SET_BINARY.
2433         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
2434         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
2435         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
2437         xsetmode: new module
2438         This is to fix a problem noted by Eric Blake.
2439         Code was using xfreopen to change files to binary mode, but this
2440         fails for stdout when in append mode.  Such code should use
2441         xsetmode instead.
2442         * NEWS: Document incompatible changes to binary-io module.
2443         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
2444         New function.
2445         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
2446         (set_binary_mode): New function, which also checks for tty.
2447         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
2449 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
2451         headers: fix begin-end typos
2452         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
2453         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
2455         selinux-h: port to PGI 16.10
2456         * lib/se-selinux.in.h: Don't assume that include_next skips over
2457         duplicate -I DIR options.
2459         argp: port to PGI 16.10
2460         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
2462 2017-02-13  Darshit Shah  <darnir@gnu.org>
2464         unicase: Update function protoype to match definition.
2465         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
2466         uses 'size_t' as the datatype for the 'len' parameter in the functions
2467         it generates. Update the prototype specified here to match the newly
2468         generated function.
2470 2017-02-12  Bruno Haible  <bruno@clisp.org>
2472         times test: Avoid gcc warnings on Linux/x32.
2473         * tests/test-times.c (main): Really cast printf arguments from clock_t
2474         to 'long int'.
2476 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2478         glob: port better to emscripten
2479         Problem reported by Bruno Haible in:
2480         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00031.html
2481         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
2483 2017-02-11  Bruno Haible  <bruno@clisp.org>
2485         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
2486         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
2487         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
2488         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
2489         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
2490         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
2491         Distinguish hppa64 from hppa.
2493 2017-02-10  Bruno Haible  <bruno@clisp.org>
2495         search: Don't assume that tsearch() exists if 'VISIT' is defined.
2496         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
2497         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
2498         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
2500 2017-02-09  Bruno Haible  <bruno@clisp.org>
2502         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
2503         * doc/gnulib.texi (Libtool and Windows): Recommend
2504         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
2505         Reported by Reuben Thomas <rrt@sc3d.org>.
2507 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2509         stddef-tests: port to SIZE_MAX <= INT_MAX
2510         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
2511         Do not assume that INT_MAX < SIZE_MAX.
2513 2017-02-01  Bruno Haible  <bruno@clisp.org>
2515         lock tests: Fix link error.
2516         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
2517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2519 2017-01-31  Bruno Haible  <bruno@clisp.org>
2521         lock: Fix link error (regression from 2017-01-05).
2522         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
2523         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
2524         pthread_rwlockattr_destroy weak.
2525         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2527 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2529         Port to PGI 16.10 x86-64
2530         This patch fixes one real bug in gl_anylinked_list2.h, along with
2531         some minor glitches that are not bugs.  It does not silence PGI’s
2532         thousands of bogus warnings when compiling test-intprops.c.
2533         Fortunately, the warnings do not cause a failure.
2534         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
2535         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
2536         My goodness, PGI goes back a long ways - this predates C89!
2537         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
2538         For example, ASYNCSAFE (const void *) should expand to
2539         ‘const void *volatile’, not to ‘volatile const void *’.
2540         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
2541         * lib/verify.h (verify) [!__GNUC__]:
2542         Use shorter albeit meaningless string to bypass silly compiler limits.
2543         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
2544         * tests/nan.h (NaNf, NaNd, NaNl):
2545         Use static functions to avoid misguided compiler diagnostics.
2546         Is there some reason we don’t use static functions on all platforms?
2548 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
2550         parse-datetime: handle timezones reentrantly
2551         This API change was prompted by a report by Pádraig Brady in:
2552         https://bug.debian.org/851934#10
2553         To help fix the bug, make parse_datetime2 more reentrant.
2554         * NEWS: Document this incompatible change.
2555         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
2556         Add two arguments, the timezone and the timezone name.
2557         All callers changed.  If TZ="..." is specified, use it for
2558         calculating defaults.
2559         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
2560         this code should be usable in a library.
2561         (mktime_ok, get_effective_timezone):
2562         Accept timezone arg too.  All callers changed.
2563         (get_tz): Remove.
2564         (get_effective_timezone): Check for failures.
2566 2017-01-20  Eric Blake  <eblake@redhat.com>
2568         localename: port to cygwin 2.6
2569         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
2570         Cygwin.
2571         * modules/localename (Depends-on): Add extensions, since
2572         NL_LOCALE_NAME() is not visible without it.
2574 2017-01-17  Pádraig Brady  <P@draigBrady.com>
2576         parse-datetime: fix dependence on AC_PROG_SED
2577         * modules/parse-datetime: Use `sed` directly like all other modules.
2578         Reported by J William Piggott
2580 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
2582         intprops: update doc URLs
2583         * doc/intprops.texi (Integer Range Overflow): Update URLs.
2585 2017-01-16  Bruno Haible  <bruno@clisp.org>
2587         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
2588         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
2589         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
2590         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
2591         distinguish s390 and s390x.
2592         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
2593         * NEWS: Mention the change regarding 'armel'.
2595 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2597         localeinfo: case_folded_counterparts and WEOF
2598         * NEWS: Document this.
2599         * lib/localeinfo.c (case_folded_counterparts):
2600         First arg is now wint_t, not wchar_t.  This generalizes the
2601         function to also work on WEOF, where it returns 0.
2603         dfa: port to gcc -fsanitize=undefined
2604         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
2605         as this runs afoul of gcc -fsanitize=undefined.
2607 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
2609         strftime: %z is -00 if unknown
2610         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
2611         the caller's responsibility to set 'negative_number'.  All uses changed.
2612         (__strftime_internal): Put '-' before a zero UTC offset if the time
2613         zone abbreviation starts with "-", which is the recently-introduced
2614         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
2615         * tests/test-strftime.c: Test for this.
2617 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2619         dfa: port to older GCC
2620         Problem reported by Assaf Gordon in:
2621         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00103.html
2622         * modules/c99: New module.  This merely attempts to use the latest
2623         C version, which should be enough to solve this particular problem.
2624         The idea is to document which Gnulib modules assume C99 or later.
2625         * modules/dfa (Depends-on): Add it.
2627 2017-01-10  Bruno Haible  <bruno@clisp.org>
2629         Update DEPENDENCIES.
2630         * DEPENDENCIES: List only https URLs. Update recommended version for
2631         autoconf, automake, gperf.
2633 2017-01-10  Jim Meyering  <meyering@fb.com>
2635         maint.mk: enforce spelling of "timestamp" (i.e., no space)
2636         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2637         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
2639 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2641         dfa: minor simplification with emptyset
2642         * lib/dfa.c (build_state): Simplify by using emptyset.
2644 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2646         dfa: shrink constraints from 4 bits to 3
2647         * lib/dfa.c (newline_constraint, letter_constraint)
2648         (other_constraint, prev_newline_dependent)
2649         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
2650         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
2651         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
2652         Constraints need only 3 bits, not 4.  Using smaller integers
2653         shrinks the code a bit and makes grep a tad faster on x86-64.
2655         dfa: omit unnecessary ptrdiff_t check
2656         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
2657         overflow, since xnmalloc does that now.
2659         dfa: omit unnecessary allocation
2660         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
2661         an all-zero follow set works just fine.
2663         dfa: omit unused local
2664         * lib/dfa.c (build_state): Fix up recent change.
2666         maint: remove stray .texi files
2667         Although these were superseded by other files like
2668         doc/posix-functions/ctime.texi, the old files were not removed.
2669         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
2671 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
2673         getprogname: fix port to IRIX
2674         * lib/getprogname.c (getprogname) [__sgi]:
2675         Don't dump core if malloc returns NULL.
2677         dfa: fix reallocation bug when matching newlines
2678         Problem reported for sed by S. Gilles (Bug#25390).
2679         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
2680         (dfastate): Reallocate before moving any newline transition ...
2681         (build_state): ... instead of reallocating here, where it is too late.
2683 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
2685         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
2686         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
2688 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
2690         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
2691         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
2693 2017-01-07  Bruno Haible  <bruno@clisp.org>
2695         stdioext: Port to Minix 3.2 and newer.
2696         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
2697         * lib/fseeko.c (fseeko): Likewise.
2698         Reported by Nelson Beebe via Paul Eggert.
2700 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2702         getprogname: port to IRIX
2703         * lib/getprogname.c (getprogname): Port to IRIX.
2704         Based on an idea by Bastien Roucariès at:
2705         http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00096.html
2706         via code from Bruno Haible at:
2707         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
2709         localename-tests: port to NetBSD 7
2710         Problem reported by Nelson H. F. Beebe.
2711         * tests/test-localename.c:
2712         Test newlocale and uselocale only if both exist.
2714         glob, intprops, xalloc: work around Clang bug
2715         Work around LLVM bug 16404, which is still not fixed.
2716         https://llvm.org/bugs/show_bug.cgi?id=16404
2717         Problem reported by Nelson H. F. Beebe.
2718         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
2719         Remove.
2720         * lib/glob.c (size_add_wrapv):
2721         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
2722         * lib/xalloc-oversized.h (xalloc_oversized):
2723         Do not use overflow builtins if Clang.
2725         dfa: fix 'return' typo
2726         Problem reported by Nelson H. F. Beebe.
2727         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
2729 2017-01-05  Pádraig Brady  <P@draigBrady.com>
2731         parse-datetime: fix generated paths for coverage files
2732         * modules/parse-datetime: Adjust the paths for parse-datetime.y
2733         within parse-datetime.c, so that gcc generates appropriate .gcno
2734         files, allowing lcov to proceed without error.  Previously it
2735         would error trying to find "lib/lib/parse-datetime.y".
2737 2017-01-05  Pádraig Brady  <P@draigBrady.com>
2739         maint.mk: support parallel execution of coverage
2740         * top/maint.mk (coverage): Run dependencies serially,
2741         thus supporting parallel processing of each one,
2742         particularly build-coverage, which builds and runs tests.
2744 2017-01-05  Bruno Haible  <bruno@clisp.org>
2746         lock tests: Prefer semaphore over mutex.
2747         * tests/test-lock.c (USE_SEMAPHORE): New constant.
2748         (struct atomic_int, init_atomic_int, get_atomic_int_value,
2749         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
2750         Suggested by Torvald Riegel <triegel@redhat.com>.
2752 2017-01-05  Bruno Haible  <bruno@clisp.org>
2754         lock: Provide guarantee to avoid writer starvation for rwlocks.
2755         The rationale is: 1) Read-preferring read-write locks are prone to
2756         writer starvation if the number of reader threads multiplied by the
2757         percentage of time they have the lock held is too high. 2) Write-
2758         preferring read-write locks are the only reliable way to avoid this.
2759         3) There have been reports of 'test-lock' hanging on glibc systems
2760         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00009.html,
2761         and glibc indeed implements read-preferring rwlocks by default, see
2762         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
2763         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
2764         * m4/pthread_rwlock_rdlock.m4: New file.
2765         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
2766         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
2767         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
2768         of rwlock initialization on glibc systems without
2769         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
2770         of rwlocks altogether on non-glibc systems without
2771         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
2772         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
2773         * lib/glthread/lock.c [USE_POSIX_THREADS]
2774         (glthread_rwlock_init_for_glibc): New function.
2775         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
2776         comment.
2777         [USE_PTH_THREADS]: New implementation of rwlocks.
2778         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
2779         readers.
2780         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
2781         (Depends-on): Add 'extensions'.
2782         * tests/test-rwlock1.c: New file.
2783         * lock-tests (Files): Add it.
2784         (Depends-on): Add usleep.
2785         (Makefile.am): Add test-rwlock1 to the tests.
2787 2017-01-05  Bruno Haible  <bruno@clisp.org>
2789         thread: Fix pth port.
2790         * lib/glthread/thread.h (pth_init): Declare weak.
2791         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
2792         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
2793         function.
2795 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
2797         parse-datetime: fix debug message on lone year number
2798         Input dates such as
2799           date -d "Apr 11 22:59:00 2011"
2800         are parsed as date (Apr 11, with default year 2016), then time, then a
2801         number (2011). Based on the combination of previously seen tokens,
2802         'digits_to_date_time' determines 2011 to be a year value.
2803         This fixes the debug messages to correctly show the updated year.
2804         Before:
2805             $ date --debug -d 'Apr 11 22:59:00 2011'
2806             date: parsed date part: (Y-M-D) 2016-04-11
2807             date: parsed time part: 22:59:00
2808             date: parsed number part: today/this/now
2809         After:
2810             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
2811             date: parsed date part: (Y-M-D) 2016-04-11
2812             date: parsed time part: 22:59:00
2813             date: parsed number part: year: 2011
2814         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
2815         'debug_year_seen' member fields.
2816         (digits_to_date_time): Update 'year_seen' as needed.
2817         (debug_print_current_time): Inform about year updates.
2818         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
2820         parse-datetime: fix local timezone debug messages
2821         "Local timezones" are strings that affect only DST relative to the
2822         default timezone. The debug messages in parse-datetime.y printed
2823         wrong information when encountering local timezones.
2824         Examples:
2825         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
2826              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
2827              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
2828         When the default timezone relates to the zone strings, EET/EEST are
2829         parsed as local timezones (tLOCAL_ZONE), and only change the DST
2830         value (0/1, respectively):
2831              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
2832              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
2833         * lib/parse-datetime.y (debug_print_current_time): If local timezone
2834         was seen, inform about DST change, don't print actual timezone.
2835         (debug_strfdatetime): If local timezone was seen, use default timezone
2836         (and adjust as needed) instead of using incorrect timezone.
2837         (parse_datetime2): Use correct time-zone source string, and adjust
2838         default timezone as needed.
2840         parse-datetime: add debug warning about DST changes
2841         Incorrect date arithmetic due to daylight saving time (DST) are a
2842         common (false) bug report in coreutils.
2843         Detect two such cases and print a warning:
2844         1. year/month/day adjustments (performed on 'struct tm'),
2845            where 'mktime' returns a different isdst value.
2846         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
2847            where the result of 'localtime(3)' on the value will return a
2848            different isdst value.
2849         Note: DST changes could be harmless or unnoticeable.
2850         Examples (with 'TZ=America/New_York'):
2851         Unnoticeable: result is 2016-Dec-14
2852            $ date -d '2016-06-15 EDT + 6 months' +%b
2853            Dec
2854         Unnoticeable: result is 2016-Dec-15 11:00:00
2855            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
2856            2016-12-15
2857         This is unexpected:
2858            $ date -d '2016-06-01 EDT + 6 months' +%F
2859            2016-11-30
2860         The new debug warnings will show:
2861            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
2862            ...
2863            date: warning: daylight saving time changed after date adjustment
2864            ...
2865         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
2866         print an appropriate warning message.
2868         parse-datetime: add debug warning about date arithmetic
2869         Date arithmetic are done directly on the fields of 'struct tm',
2870         which can result in invalid dates. Normalization with 'mktime(3)'
2871         will then produce a different date - which might cause unexpected
2872         results.
2873         Examples:
2874           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
2875           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
2876         Note that date normalization is not inherently wrong and not rejected,
2877         as it has legitimate uses:
2878           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
2879         If the user asked to adjust months but 'mday' changed,
2880         or user asked to adjust years but 'month' changed - warn about it.
2881             $ ./src/date --debug -d '2016-10-31 - 1 month'
2882             ...
2883             date: warning: when adding relative months/years, \
2884                            it is recommended to specify the 15th of the month
2885             ...
2886             date: warning: month/year adjustment resulted in shifted dates:
2887             date:      adjusted Y M D: 2016 09 31
2888             date:    normalized Y M D: 2010 10 01
2889             ...
2890         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
2891         a warning message. Improve recommendation of when to use 15 of the
2892         month or noon for date arithmetic.
2894         parse-datetime: fix debug message of relative part after timezone
2895         Relative part (e.g '+8 days') after a timezone string was not
2896         reported (was only reported after a timezone number). Due to the
2897         parser's structure, timezone strings with numbers were handled
2898         separately.
2899         before:
2900              # Timezone number + relative part: OK
2901              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
2902              ...
2903              date: parsed relative part: -8 day(s)
2904              # Timezone string + relative part: missing
2905              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
2906              [ missing message ]
2907         After: messages are printed in both cases.
2908         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
2910         parse-datetime: fix incorrect debug message on lone number
2911         A lone number is an absolute value, not a relative time part.
2912         before:
2913            $ date --debug -d '20130101'
2914            date: parsed number part: today/this/now
2915         After:
2916            $ ./src/date --debug -d '20130101'
2917            date: parsed number part: (Y-M-D) 2013-01-01
2918         * lib/parse-datetime.y ('item'/'number' tokens): Call
2919         'debug_print_current_time' instead of 'debug_print_relative_time'.
2921 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
2923         doc: modernize for C11 etc.
2924         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
2925         for C11, MinGW, etc.  This responds to Paul Smith's question in:
2926         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00014.html
2928         dfa: prefer functions to FETCH_WC macro
2929         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
2930         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
2931         wint_t result into DFA->lex.wctok instead of to a separate arg.
2932         All callers changed.  Move more local decls closer to where
2933         they're used.
2935         dfa: narrow more local var scopes
2936         * lib/dfa.c: Move more local decls to be more local.
2938         dfa: remove duplicate assignment
2939         Problem reported by Bruno Haible in:
2940         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00007.html
2941         * lib/dfa.c (parse_bracket_exp): Simplify.
2943 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2945         dfa: simplify constraint-dependency checking
2946         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
2947         (prev_other_constraint): Remove.
2948         (prev_newline_dependent, prev_letter_dependent):
2949         Simplify, to avoid an unnecessary bitwise AND operation.
2951         dfa: prefer functions and constants to macros
2952         * lib/dfa.c: Prefer constants to macros where either will do.
2953         (streq, isasciidigit, newline_constraint)
2954         (letter_constraint, other_constraint, succeeds_in_context)
2955         (prev_newline_constraint, prev_letter_constraint)
2956         (prev_other_constraint, prev_newline_dependent)
2957         (prev_letter_dependent, accepting, accepts_in_context):
2958         Now static functions instead of function-like macros.
2959         Use lower-case names accordingly.  All uses changed.
2961         dfa: narrow more local var scopes
2962         * lib/dfa.c: Move some more local decls down to nearer where
2963         they're needed.
2965 2016-12-31  Jim Meyering  <meyering@fb.com>
2967         dfa: narrow the scope of many local variables
2968         * lib/dfa.c: Now that we are no longer constrained to c89, move
2969         declarations of many variables (often indices) "down" into the
2970         scope(s) where used or to the point of definition.  This is a
2971         no-semantic-change diff.
2973 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2975         version-etc: new year
2976         * build-aux/gendocs.sh (version):
2977         * doc/gendocs_template:
2978         * doc/gendocs_template_min:
2979         * doc/gnulib.texi:
2980         * lib/version-etc.c (COPYRIGHT_YEAR):
2981         Update copyright dates by hand in templates and the like.
2982         * all files: Run 'make update-copyright'.
2984 2016-12-31  Eric Blake  <eblake@redhat.com>
2986         do-release-commit-and-tag: avoid shell syntax error
2987         * build-aux/do-release-commit-and-tag (curr_br): $branch can
2988         contain spaces when rebasing.
2990         maint.mk: hoist gnulib_dir definition earlier
2991         * top/maint.mk (gnulib_dir): Move near top of file.
2993 2016-12-31  Jim Meyering  <meyering@fb.com>
2995         maint.mk: do not always evaluate intprops-related shell
2996         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
2997         using gnulib_dir undefined (gnulib_dir is defined later in the
2998         file, which will be fixed separately), and besides, there is no
2999         need to incur the cost of this shell invocation for every single
3000         use of this .mk file.  Reported by Eric Blake in
3001         https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
3003 2016-12-30  Jim Meyering  <meyering@fb.com>
3005         maint.mk: improve sc_prohibit_intprops_without_use
3006         * top/maint.mk (_intprops_names): Don't hard-code the list of
3007         symbol names.  Instead, derive it on the fly.
3009 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
3011         dfa: shorten sbit, success
3012         * lib/dfa.c (struct regex_syntax.sbit):
3013         (struct dfa.success): Use char, not int, for array elements, since
3014         they are all in the range 0..7.
3016         dfa: simplify multibyte_prop etc.
3017         This follows up on a change made when dfa.c was in grep, namely grep
3018         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
3019         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
3020         That earlier simplification allows for some more simplification
3021         and trimming down here.
3022         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
3023         (struct lexer_state): New mamber brack.
3024         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
3025         since they must be in the range 0..3 now.
3026         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
3027         the brack member now supersedes them.
3028         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
3029         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
3030         (dfaparse): Remove unnecessary initializations of already-0 storage.
3031         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
3032         (dfassbuild): No need to clear sup->mbcsets.
3034         dfa: minor performance tweak
3035         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
3037         dfa: wrap charclass inside a struct
3038         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
3039         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
3040         about 5% faster, where list.txt is generated by 'aspell dump
3041         master | head -n 100000 >list.txt'.  See Bug#22239.
3042         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
3043         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
3044         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
3045         Adjust to this, e.g., by using charclass * rather than charclass.
3046         All callers changed as needed.
3047         (copyset): Remove.  All uses changed to simple assignment.
3048         (parse_bracket_exp): Use zeroset instead of memset.
3050 2016-12-30  Jim Meyering  <meyering@fb.com>
3052         maint.mk: update list of intprops.h symbol names
3053         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
3054         This avoids a false failure of the sc_prohibit_intprops_without_use
3055         rule in grep.
3057 2016-12-29  Eric Blake  <eblake@redhat.com>
3059         getopt: fix parallel test failure
3060         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
3061         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
3062         * tests/test-getopt-main.h (main): Use different file names
3063         in case test-getopt-gnu and test-getopt-posix run in parallel.
3065 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
3067         xalloc: x2nrealloc check for ptrdiff_t overflow
3068         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
3069         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
3071 2016-12-24  Bruno Haible  <bruno@clisp.org>
3073         lock test: Fix performance problem on multi-core machines.
3074         * tests/test-lock.c (USE_VOLATILE): New macro.
3075         (struct atomic_int): New type.
3076         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
3077         functions.
3078         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
3079         as 'struct atomic_int'.
3080         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
3081         reclock_checker_thread, test_recursive_lock): Use the new functions.
3082         Reported by Eric Blake in
3083         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
3084         and by Pádraig Brady in
3085         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.
3087 2016-12-19  Bruno Haible  <bruno@clisp.org>
3089         vma-iter: Fix endless loop on 64-bit Windows.
3090         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
3091         'unsigned long'.
3093 2016-12-19  Bruno Haible  <bruno@clisp.org>
3095         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
3096         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
3097         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
3098         Invoke gt_TYPE_WINT_T instead.
3099         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
3100         * modules/stdint (Files): Add m4/wint_t.m4.
3101         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
3102         * modules/wctype-h (Makefile.am): Likewise.
3103         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
3104         not only on MSVC.
3105         * lib/wctype.in.h (wint_t): Likewise.
3107 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
3109         getopt-posix-tests: fix Makefile typo
3110         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
3111         Fix typo: the last ‘_’ was missing in the name.
3112         I suspect that the typo explains this build failure:
3113         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
3114         although I can’t reproduce the problem on Solaris 10 sparc.
3116 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3118         dfa: improve worst-case 'replace' performance
3119         See my note in Bug#22357#71.
3120         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
3121         (merge_constrained): New function, which is like
3122         the old 'merge' function, except with a new argument C2.
3123         Simplify the body by avoiding the need for different sections
3124         of code depending on whether one input is exhausted.
3125         (merge): Use the new function.
3126         (delete): Return the constraint of the deleted position,
3127         not the entire position.  Caller changed.
3128         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
3130 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3132         dfa: performance improvement for removal of epsilon closure
3133         See Bug#22357#32.
3134         * lib/dfa.c (delete): Use binary search to find deleted index.
3135         (replace): New function.  It replaces a position with the followed set.
3136         (epsclosure): Replace it with a new algorithm.  Update caller.
3138 2016-12-18  Bruno Haible  <bruno@clisp.org>
3140         Split tests for getopt-posix and getopt-gnu.
3141         * tests/test-getopt-posix.c: New file.
3142         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
3143         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
3144         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
3145         GNULIB_TEST_GETOPT_GNU.
3146         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
3147         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
3148         (Makefile.am): Test test-getopt-posix instead of test-getopt.
3149         * modules/getopt-gnu-tests: New file.
3150         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
3152 2016-12-18  Bruno Haible  <bruno@clisp.org>
3154         posix-modules: Add options for specific platforms.
3155         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
3156         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
3157         Invoke func_tmpdir. Filter out the excludes.
3159 2016-12-18  Bruno Haible  <bruno@clisp.org>
3161         getopt: Fix link error for users of getopt() in <unistd.h>.
3162         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
3163         __need_getopt is defined. Undefine all macros before defining them.
3164         * modules/getopt (Include): Clarify that including <unistd.h> is also
3165         OK.
3166         * tests/test-getopt.c: Add comment.
3168 2016-12-17  Bruno Haible  <bruno@clisp.org>
3170         getaddrinfo tests: Avoid compilation error on MSVC.
3171         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
3172         getaddrinfo on native Windows.
3174 2016-12-17  Bruno Haible  <bruno@clisp.org>
3176         getlogin, getlogin_r: Fix link errors on MSVC.
3177         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
3178         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
3179         (Link): New section.
3180         * modules/getlogin_r (Files): Add m4/getlogin.m4.
3181         (configure.ac): Require gl_LIB_GETLOGIN.
3182         (Link): New section.
3183         * NEWS: Mention the new link requirements.
3184         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
3185         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
3187 2016-12-17  Bruno Haible  <bruno@clisp.org>
3189         Un-deprecate the 'progname' module.
3190         * NEWS: Describe the appropriate use-cases of 'progname' versus
3191         'getprogname'. Based on discussion summary at
3192         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html
3194 2016-12-17  Bruno Haible  <bruno@clisp.org>
3196         Reorganize NEWS a bit.
3197         * NEWS: Move some not so important changes away from section
3198         "Important Notes".
3200 2016-12-17  Bruno Haible  <bruno@clisp.org>
3202         tanhf: Avoid redefinition error on MSVC.
3203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
3204         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
3205         may be defined as an inline function.
3206         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
3207         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
3209 2016-12-17  Bruno Haible  <bruno@clisp.org>
3211         tanf: Avoid redefinition error on MSVC.
3212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
3213         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
3214         may be defined as an inline function.
3215         * modules/math (Makefile.am): Substitute REPLACE_TANF.
3216         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
3218 2016-12-17  Bruno Haible  <bruno@clisp.org>
3220         sqrtf: Avoid redefinition error on MSVC.
3221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
3222         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
3223         may be defined as an inline function.
3224         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
3225         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
3227 2016-12-17  Bruno Haible  <bruno@clisp.org>
3229         sinhf: Avoid redefinition error on MSVC.
3230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
3231         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
3232         may be defined as an inline function.
3233         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
3234         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
3236 2016-12-17  Bruno Haible  <bruno@clisp.org>
3238         sinf: Avoid redefinition error on MSVC.
3239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
3240         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
3241         may be defined as an inline function.
3242         * modules/math (Makefile.am): Substitute REPLACE_SINF.
3243         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
3245 2016-12-17  Bruno Haible  <bruno@clisp.org>
3247         logf: Avoid redefinition error on MSVC.
3248         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
3249         may be defined as an inline function.
3251 2016-12-17  Bruno Haible  <bruno@clisp.org>
3253         log10l: Avoid redefinition error on MSVC.
3254         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
3255         may be defined as an inline function.
3257 2016-12-17  Bruno Haible  <bruno@clisp.org>
3259         log10f: Avoid redefinition error on MSVC.
3260         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
3261         may be defined as an inline function.
3263 2016-12-17  Bruno Haible  <bruno@clisp.org>
3265         hypotl: Avoid redefinition error on MSVC.
3266         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
3267         may be defined as an inline function.
3269 2016-12-17  Bruno Haible  <bruno@clisp.org>
3271         hypotf: Avoid redefinition error on MSVC.
3272         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
3273         may be defined as an inline function.
3275 2016-12-17  Bruno Haible  <bruno@clisp.org>
3277         fmodl: Avoid redefinition error on MSVC.
3278         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
3279         may be defined as an inline function.
3281 2016-12-17  Bruno Haible  <bruno@clisp.org>
3283         fmodf: Avoid redefinition error on MSVC.
3284         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
3285         may be defined as an inline function.
3287 2016-12-17  Bruno Haible  <bruno@clisp.org>
3289         expf: Avoid redefinition error on MSVC.
3290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
3291         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
3292         may be defined as an inline function.
3293         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
3294         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
3296 2016-12-17  Bruno Haible  <bruno@clisp.org>
3298         coshf: Avoid redefinition error on MSVC.
3299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
3300         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
3301         may be defined as an inline function.
3302         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
3303         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
3305 2016-12-17  Bruno Haible  <bruno@clisp.org>
3307         cosf: Avoid redefinition error on MSVC.
3308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
3309         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
3310         may be defined as an inline function.
3311         * modules/math (Makefile.am): Substitute REPLACE_COSF.
3312         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
3314 2016-12-17  Bruno Haible  <bruno@clisp.org>
3316         atan2f: Avoid redefinition error on MSVC.
3317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
3318         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
3319         may be defined as an inline function.
3320         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
3321         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
3323 2016-12-17  Bruno Haible  <bruno@clisp.org>
3325         atanf: Avoid redefinition error on MSVC.
3326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
3327         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
3328         may be defined as an inline function.
3329         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
3330         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
3332 2016-12-17  Bruno Haible  <bruno@clisp.org>
3334         asinf: Avoid redefinition error on MSVC.
3335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
3336         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
3337         may be defined as an inline function.
3338         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
3339         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
3341 2016-12-17  Bruno Haible  <bruno@clisp.org>
3343         acosf: Avoid redefinition error on MSVC.
3344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
3345         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
3346         may be defined as an inline function.
3347         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
3348         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
3350 2016-12-17  Bruno Haible  <bruno@clisp.org>
3352         Avoid redefinition errors on MSVC.
3353         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
3354         the function may be defined as an inline function.
3355         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
3356         the function may be defined as an inline function.
3358 2016-12-17  Bruno Haible  <bruno@clisp.org>
3360         Avoid redefinition errors on MSVC.
3361         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
3362         * lib/unistd.in.h: Include <stdio.h> when necessary.
3364 2016-12-17  Bruno Haible  <bruno@clisp.org>
3366         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
3367         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
3368         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
3369         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
3370         WINT_MAX.
3372 2016-12-17  Bruno Haible  <bruno@clisp.org>
3374         Avoid autoconf warning.
3375         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
3376         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
3378 2016-12-17  Bruno Haible  <bruno@clisp.org>
3380         fpending: Revert workaround against Emacs bug.
3381         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
3382         The Emacs bug is fixed by Eli Zaretskii in
3383         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00715.html
3385 2016-12-17  Bruno Haible  <bruno@clisp.org>
3387         getlogin_r tests: Port to mingw.
3388         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
3389         regression introduced on 2014-05-19.
3391 2016-12-17  Bruno Haible  <bruno@clisp.org>
3393         getlogin: Port to newer mingw.
3394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
3395         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
3396         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
3397         HAVE_GETLOGIN.
3398         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
3399         HAVE_GETLOGIN.
3400         * doc/posix-functions/getlogin.texi: Mention the issue.
3401         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
3402         regression introduced on 2014-05-14.
3404 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
3406         builtin-expect: improve port to IBM XL C
3407         Problem reported for z/OS by Daniel Richard G. in:
3408         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00079.html
3409         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
3410         Test for <builtins.h> directly.
3412         builtin-expect: port to IBM XL C
3413         Problem reported for z/OS by Daniel Richard G. in:
3414         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00074.html
3415         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
3416         Also allow __builtin_expect defined via a standard include file.
3418         regex: fix dependency
3419         Problem reported by Bruno Haible in:
3420         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00073.html
3421         * modules/regex: Depend on builtin-expect.
3423         builtin-expect: new module
3424         Fix fnmatch to use it.
3425         Problem reported for z/OS by Daniel Richard G.
3426         * lib/fnmatch.c (__builtin_expect):
3427         * lib/glob.c (__builtin_expect):
3428         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
3429         * lib/memmem.c (__builtin_expect) [!_LIBC]:
3430         * lib/scandir.c (__builtin_expect):
3431         * lib/strstr.c (__builtin_expect) [!_LIBC]:
3432         Remove macro; config.h now does this.
3433         * lib/gl_anytreehash_list1.h (add_to_bucket):
3434         * lib/regex_internal.h (BE):
3435         Assume __builtin_expect.
3436         * m4/builtin-expect.m4, modules/builtin-expect: New files.
3437         * modules/avltreehash-list, modules/fnmatch, modules/glob:
3438         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
3439         * modules/scandir, modules/strstr-simple:
3440         Depend on builtin-expect.
3442 2016-12-15  Bruno Haible  <bruno@clisp.org>
3444         init.sh: Add possibility to not delete temporary files.
3445         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
3446         to yes, don't erase the temporary directory.
3448 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
3450         regex: fix integer-overflow bug in never-used code
3451         Problem reported by Clément Pit–Claudel in:
3452         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00654.html
3453         * lib/regex_internal.h: Include intprops.h.
3454         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
3455         behavior on integer overflow.
3456         * modules/regex (Depends-on): Add intprops.
3458         fpending: fix port to MinGW on Emacs
3459         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
3460         Problem reported by Eli Zaretskii in:
3461         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
3462         Is Plan 9 still a valid porting target, anyway?
3464 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3466         safe-alloc: use xalloc-oversized
3467         * lib/safe-alloc.c: Include xalloc-oversized.h.
3468         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
3469         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
3471         xalloc: do not exceed PTRDIFF_MAX
3472         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
3473         xalloc_oversized check, since objects larger than PTRDIFF_MAX
3474         bytes have pointer-subtraction problems.
3476         malloca: do not exceed PTRDIFF_MAX
3477         * lib/malloca.h: Include xalloc-oversized.
3478         (nmalloca): Use xalloc_oversized instead of rolling our own.
3479         * modules/malloca (Depends-on):
3480         * modules/relocatable-prog-wrapper (Depends-on):
3481         Add xalloc-oversized.
3483         quotearg: pacify GCC better
3484         * modules/quotearg (Depends-on): Add minmax, stdint.
3485         * lib/quotearg.c: Include minmax.h, stdint.h.
3486         (nslots): Now int, as there seems little point to going to extra
3487         work merely to support the INT_MAX slot, which nobody ever uses.
3488         (quotearg_n_options): Redo size-overflow checks to pacify GCC
3489         and to catch (mostly-theoretical) ptrdiff_t problems too.
3490         This can be done via one comparison.
3492 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
3494         xalloc-oversized: check for PTRDIFF_MAX too
3495         This avoids undefined behavior when subtracting pointers to
3496         objects containing more than PTRDIFF_MAX bytes.
3497         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
3498         Also return 1 if the result would exceed PTRDIFF_MAX>
3499         * modules/xalloc-oversized (Depends-on):
3500         Add stdint.
3502         dfa: fix glitches in previous commit
3503         Sorry, I don't know how I managed to commit the wrong version.
3504         * lib/dfa.c (MIN): Move up.
3505         (xpalloc): Now static.
3507         dfa: fix some unlikely integer overflows
3508         I found these while reviewing the recent Coverity-related fix.
3509         This patch changes part of dfa.c to prefer ptrdiff_t instead of
3510         size_t for object counts.  Using ptrdiff_t is the style typically
3511         used in Emacs; although it wastes a sign bit as sizes can never be
3512         negative, it makes -fsanitize=undefined more likely to catch
3513         integer overflows in index calculation, and nowadays the upside is
3514         typically more important than the downside.  Although perhaps the
3515         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
3516         of dfa.c already does, since it uses state_num which is signed),
3517         that is a bigger change and is not needed to fix the bugs I found.
3518         * lib/dfa.c: Include stdint.h and intprops.h.
3519         (TOKEN_MAX): New macro.
3520         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
3521         (charclass_index, parse_bracket_exp, addtok, insert, merge)
3522         (realloc_trans_if_necessary, free_mbdata):
3523         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
3524         This is safe because xpalloc checks that the sizes do not exceed
3525         either SIZE_MAX or PTRDIFF_MAX.
3526         (xpalloc): New function, mostly taken from Emacs.
3527         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
3528         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
3529         (charclass_index): Check for integer overflow in computing
3530         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
3531         added to it later.
3532         (alloc_position_set): Check for integer overflow.  On typical
3533         platforms this check has zero overhead, since the constant
3534         expression is false.
3535         (realloc_trans_if_necessary):
3536         Remove assertion, which I hope Coverity no longer needs.
3538         * modules/dfa (Depends-on): Add intprops, stdint.
3540 2016-12-12  Jim Meyering  <meyering@fb.com>
3542         dfa: add an assertion to avoid coverity false positive
3543         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
3544         warned that "newalloc1 - 2" could overflow.
3546 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
3548         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
3549         * dfa.h (DFA_CASE_FOLD): Remove.
3550         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
3552 2016-12-13  John W. Eaton  <gnu@jweaton.org>
3554         link: fix test to declare use of rename()
3555         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
3556         -Werror=implicit-function-declaration
3558 2016-12-12  Bruno Haible  <bruno@clisp.org>
3560         fpending: Port to native Windows with MSVC.
3561         * lib/fpending.c: Include stdio-impl.h.
3562         (__fpending): Include all known implementations. Err out if it's not
3563         ported.
3564         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
3565         * modules/fpending (Files): Add lib/stdio-impl.h.
3566         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
3568 2016-12-12  Bruno Haible  <bruno@clisp.org>
3570         stdioext: Port to native Windows with MSVC.
3571         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
3572         (struct _gl_real_FILE): New type.
3573         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
3574         Windows.
3575         * lib/fbufmode.c (fbufmode): Add code for native Windows.
3576         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
3577         other SystemV derived implementations.
3578         * lib/fpurge.c (fpurge): Likewise.
3579         * lib/freadable.c (freadable): Likewise.
3580         * lib/freadahead.c (freadahead): Likewise.
3581         * lib/freading.c (freading): Likewise.
3582         * lib/freadptr.c (freadptr): Likewise.
3583         * lib/freadseek.c (freadptrinc): Likewise.
3584         * lib/fseeko.c (fseeko): Likewise.
3585         * lib/fseterr.c (fseterr): Likewise.
3586         * lib/fwritable.c (fwritable): Likewise.
3587         * lib/fwriting.c (fwriting): Likewise.
3588         Reported by Gisle Vanem <gvanem@yahoo.no>.
3590 2016-12-11  Jim Meyering  <meyering@fb.com>
3592         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
3593         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
3594         to work with most shells, but not with the one provided by many
3595         Solaris 10 systems, so running configure with such a /bin/sh evokes
3596         e.g., "./configure: syntax error at line 33602: `(' unexpected".
3597         Reported by Assaf Gordon in
3598         https://lists.gnu.org/archive/html/sed-devel/2016-12/msg00002.html
3600 2016-12-10  Bruno Haible  <bruno@clisp.org>
3602         threadlib: Optimize out runtime test on Solaris >= 10.
3603         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
3604         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
3605         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
3607 2016-12-10  Bruno Haible  <bruno@clisp.org>
3609         stdint: Update doc about Solaris 9.
3610         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
3612 2016-12-09  Bruno Haible  <bruno@clisp.org>
3614         c-ctype tests: Fix link error on Solaris 9.
3615         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
3616         Reported at <https://savannah.gnu.org/bugs/?46827>.
3618 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
3620         dfa: fix performance bug that recomputes trans
3621         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
3622         25 on-demand changes.  The bug caused build_state to reset all
3623         d->trans elements to -2 even when d->trans was already non-null.
3624         Use C99 style decls after statements in this function.
3626         same-inode: port to MinGW
3627         Here st_ino is always 0, so change the definition of SAME_INODE so
3628         that 1 means the two files are the same, 0 with st_ino != 0 means
3629         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
3630         reported by Bruno Haible (Bug#25146).
3631         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
3632         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
3634 2016-12-04  Bruno Haible  <bruno@clisp.org>
3636         javacomp: Support Java 7 and 8.
3637         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
3638         target-version 1.7, 1.8.
3640 2016-12-02  Daiki Ueno  <ueno@gnu.org>
3642         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
3643         GPLv2" rewriting.
3645 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
3647         * gnulib-tool (func_import): Adhere to the license guideline when
3648         rewriting the license text to "LGPLv3+ or GPLv2":
3649         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
3651 2016-12-02  Bruno Haible  <bruno@clisp.org>
3653         localcharset: Avoid theoretical buffer overrun.
3654         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
3655         return value from setlocale if it would lead to a buffer overrun.
3657 2016-12-01  Bruno Haible  <bruno@clisp.org>
3659         Relicense some modules under LGPLv2+.
3660         Kevin Cernekee's approval is in
3661         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00090.html.
3662         * modules/fseterr (License): Change to LGPLv2+.
3663         * modules/mbchar (License): Likewise.
3664         * modules/mbiter (License): Likewise.
3665         * modules/mbsnlen (License): Likewise.
3666         * modules/wcwidth (License): Likewise.
3668 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
3670         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
3671         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
3672         OS/2 kLIBC.
3674 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
3676         alphasort, scandir: Port to OS/2 kLIBC
3677         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
3678         declaration.
3679         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
3681 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
3683         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
3684         * lib/relocatable.c (relocate): Do not touch pathname if it is started
3685         with '/@unixroot'.
3687 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
3689         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
3690         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
3691         OS/2 kLIBC unless TCPV40HDRS is defined.
3693 2016-11-29  Jim Meyering  <meyering@fb.com>
3695         dfa: avoid new infinite loop
3696         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
3697         * lib/dfa.c (dfastate): When constructing a new state table, we could
3698         initially declare that we had found a match, and later find that
3699         constraints eliminate that possibility, yet continue to use the
3700         now stale "matched" indicator.  That would lead to an infinite loop.
3701         The solution is to update "matched" when necessary.
3702         Introduced by commit v0.1-983-g403adf1.
3704 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3706         dfa: avoid match middle in multibyte character
3707         * lib/dfa.c (transit_state): If fails in matching single byte characters
3708         on a state including period expression in non-UTF8 multibyte locales,
3709         skip trailing bytes.
3710         (dfa_supported): Revert previous change.
3712 2016-11-27  Jim Meyering  <meyering@fb.com>
3714         dfa: avoid false match in non-UTF8 multibyte locales
3715         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
3716         as "not supported" so that callers will resort to using regex-based
3717         matcher.  This will surely hurt performance, but correctness trumps
3718         performance here, and the affected locales are less and less relevant,
3719         these days.  See grep's bug report https://bugs.gnu.org/24975.
3721 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
3723         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
3724         * lib/ptsname_r.c: Include the appropriate headers.
3725         [__sun]: Delete sys/sysmacros.h include.
3726         [_AIX || __osf__]: Likewise.
3727         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
3729 2016-11-27  Pádraig Brady  <P@draigBrady.com>
3731         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
3732         * lib/md4.c (md4_process_bytes): The existing define is made internal
3733         in recent versions of glibc, so also use this new public define.
3734         * lib/md5.c (md5_process_bytes): Likewise.
3735         * lib/sha1.c (sha1_process_bytes): Likewise.
3736         * lib/sha256.c (sha256_process_bytes): Likewise.
3737         * lib/sha512.c (sha512_process_bytes): Likewise.
3739 2016-11-27  Pádraig Brady  <P@draigBrady.com>
3741         maint: use a more standard return from mbrtowc test
3742         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
3743         from the test program as this often indicates an
3744         unhandled case in the test program.
3745         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
3746         (gl_MBRTOWC_SANITYCHECK): Likewise.
3747         (gl_MBRTOWC_NULL_ARG2): Likewise.
3748         (gl_MBRTOWC_NUL_RETVAL): Likewise.
3750 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
3752         freopen: work around glibc bug with closed fd
3753         Work around glibc bug#15589, where freopen mishandles the case
3754         where stdin etc. are already closed.
3755         * doc/posix-functions/freopen.texi (freopen): Document the bug.
3756         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
3757         instead of __need_FILE, as the latter does not work with glibc.
3758         Include <fcntl.h>, for open flags.
3759         (rpl_freopen): Work around glibc bug.
3760         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
3761         * modules/freopen (Depends-on): Add fcntl-h.
3762         * tests/test-freopen.c (main): Test for bug.
3764 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3766         fnmatch: fix typo introduced on 2016-08-17
3767         This fixes the port to non-GCC compilers that lack __builtin_expect.
3768         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
3770         dfa: simplify with new function fillset
3771         * lib/dfa.c (fillset): New function.
3772         Use it for clarity when applicable.
3774         dfa: fix glitches with on-demand states
3775         Also, adjust commentary to better match new code.
3776         Some of these glitches predate the recent change.
3777         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
3778         only non-initial states.
3779         (dfastate): Rename locals to better match new roles.
3780         Move them into nested scopes if this is easy.
3781         Omit unnecessary calls to zeroset.
3782         Simplify test for whether to throw in the positions of state 0.
3783         Omit C99-ism (decl after statement) since Gawk still wants C89.
3784         (build_state): Omit unnecessary test and assignment.
3785         Fix some confusion that counted transition tables inaccurately
3786         and could cause a memory leak.
3787         (dfaexec_main): Redo to make it clearer to the compiler that
3788         -1 and -2 are the only negative state numbers here.
3790 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3792         dfa: addition of new state on demand
3793         * src/dfa.c (dfastate): Add argument UC, the current input character.
3794         Fill only a group including the character in transition table.
3795         (realloc_trans_if_necessary): Add the dummy state which means that a
3796         transition table is assigned but the next state is not assigned.
3797         (build_state): Return the next state.  All callers updated.
3798         (transit_state_singlebyte): If we get the dummy state,
3799         fill the transition table.
3800         (dfaexec_main): Handle the dummy state.
3801         (free_mbdata, dfafree): Consider the dummy state.
3803 2016-11-24  Daiki Ueno  <ueno@gnu.org>
3805         srclist: sync with released gettext
3806         * config/srclist.txt: Set "release" option to the files under
3807         $GETTEXT.
3809 2016-11-24  Daiki Ueno  <ueno@gnu.org>
3811         srclist: add "release" option
3812         * config/srclist.txt: Change the format so that the first column
3813         of each line points to the top-level directory of the source
3814         archive.
3815         * config/srclist-update: Accept "release" option that checks files
3816         from the most recently tagged revision in the source archive.
3818 2016-11-21  Bruno Haible  <bruno@clisp.org>
3820         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
3821         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
3822         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
3823         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
3824         Inline and remove member function 'rpl ()' of the wrapper struct.
3826 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
3828         dfa: fix logic typo
3829         Problem reported by Stephane Chazelas (Bug#24973).
3830         * lib/dfa.c (using_simple_locale): Fix typo that caused some
3831         non-simple locales like fr_FR to be treated as simple.
3833 2016-11-20  Jim Meyering  <meyering@fb.com>
3835         fix test driver leaks: exclude, malloc, realloc
3836         * tests/test-exclude.c (main): Fix trivial leak.
3837         * tests/test-malloc-gnu.c (main): Likewise.
3838         * tests/test-realloc-gnu.c (main): Likewise.
3839         With these changes, grep's tests are now leak free.
3840         I.e., running them with ASAN elicits no failure:
3841           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
3842             AM_LDFLAGS='-fsanitize=address -static-libasan' check
3844 2016-11-11  Bruno Haible  <bruno@clisp.org>
3846         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
3847         * modules/libunistring: (License): Change from LGPL to
3848         "LGPLv3+ or GPLv2".
3849         * modules/libunistring-optional: Likewise.
3850         * modules/unicase/*: Likewise.
3851         * modules/uniconv/*: Likewise.
3852         * modules/unictype/*: Likewise.
3853         * modules/unigbrk/*: Likewise.
3854         * modules/unilbrk/*: Likewise.
3855         * modules/uniname/*: Likewise.
3856         * modules/uninorm/*: Likewise.
3857         * modules/unistdio/*: Likewise.
3858         * modules/unistr/*: Likewise.
3859         * modules/uniwbrk/*: Likewise.
3860         * modules/uniwidth/*: Likewise.
3862 2016-11-12  Bruno Haible  <bruno@clisp.org>
3864         Relicense some modules under LGPLv2+.
3865         Paul Eggert's approval is in
3866         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00037.html.
3867         Eric Blake's approval is in
3868         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00042.html.
3869         Ludovic Courtès's approval is in
3870         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00038.html.
3871         * modules/isnand-nolibm (License): Change to LGPLv2+.
3872         * modules/isnanf-nolibm (License): Likewise.
3873         * modules/isnanl-nolibm (License): Likewise.
3875 2016-11-19  Bruno Haible  <bruno@clisp.org>
3877         Relicense some modules under LGPLv2+.
3878         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
3879         modules/vasnprintf.
3880         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
3881         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00074.html.
3882         All other significant changes to the files in lib/ of these modules
3883         are from me.
3884         * modules/memcmp2 (License): Change to LGPLv2+.
3885         * modules/amemxfrm (License): Likewise.
3886         * modules/fpieee (License): Likewise.
3887         * modules/fpucw (License): Likewise.
3888         * modules/frexp-nolibm (License): Likewise.
3889         * modules/frexpl-nolibm (License): Likewise.
3890         * modules/printf-frexp (License): Likewise.
3891         * modules/printf-frexpl (License): Likewise.
3892         * modules/printf-safe (License): Likewise.
3893         * modules/signbit (License): Likewise.
3895 2016-11-17  Bruno Haible  <bruno@clisp.org>
3897         Enable Unicode decoder safety unconditionally.
3898         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
3899         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
3900         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3901         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3902         * lib/unistr/u8-prev.c (u8_prev): Likewise.
3903         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
3904         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
3905         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
3906         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
3907         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
3908         * lib/unistr/u16-prev.c (u16_prev): Likewise.
3909         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
3910         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
3911         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
3912         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
3913         * lib/unistr/u32-prev.c (u32_prev): Likewise.
3914         * lib/unistr/u32-next.c (u32_next): Likewise.
3915         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
3916         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
3917         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
3918         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
3919         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
3920         CONFIG_UNICODE_SAFETY tests unconditionally.
3921         * tests/unistr/test-u32-mblen.c (main): Likewise.
3922         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
3923         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
3924         * tests/unistr/test-u32-next.c (main): Likewise.
3925         * tests/unistr/test-u32-strmblen.c (main): Likewise.
3926         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
3927         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
3928         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
3929         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
3930         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3931         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
3932         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
3933         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3934         * lib/unistr/u16-check.c (u16_check): Update comment.
3935         * NEWS: Mention the changes that callers should be aware of.
3937 2016-11-19  Bruno Haible  <bruno@clisp.org>
3939         relocatable-prog-wrapper: Fix breakage on Cygwin.
3940         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
3941         (Depends-on): Remove intprops.
3942         * lib/relocwrapper.c: Update dependency tree.
3943         (strerror): Undefine.
3944         * build-aux/install-reloc (func_create_wrapper): Do not compile
3945         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
3947 2016-11-19  Bruno Haible  <bruno@clisp.org>
3949         strerror: Make it compile in C++ mode.
3950         * lib/strerror.c (strerror): Ignore the return value of memcpy().
3952 2016-11-15  Pedro Alves  <palves@redhat.com>
3954         sys_time: add gnulib::timeval for C++
3955         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
3956         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
3957         timeval macro.
3959 2016-11-14  Pedro Alves  <palves@redhat.com>
3961         snippet/c++defs: fix real-floating arg functions in C++ mode
3962         Also, define isfinite, isinf, isnan, signbit in the gnulib
3963         namespace instead of in the global namespace.
3964         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
3965         (_GL_END_NAMESPACE): New.
3966         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
3967         (isfinite, isinf, isnan, signbit) [__cplusplus &&
3968         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
3969         instead of in the global namespace.
3970         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
3971         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
3972         of in the global namespace.
3974 2016-11-13  Jim Meyering  <meyering@fb.com>
3976         strftime: don't use __THROW
3977         Each use of __THROW would provoke this from gcc-7-to-be:
3979           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
3980             on unit local functions [-Wattributes]
3981           static int iso_week_days (int, int) __THROW;
3982           ^~~~~~
3983         * lib/strftime.c (__THROW): Don't define.
3984         Remove each use of __THROW.
3985         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
3986         (tm_diff, iso_week_days, __strftime_internal): Likewise.
3988 2016-11-14  Paul Eggert  <eggert@union>
3990         obstack: port to gcc -fcheck-pointer-bounds
3991         Problem found by 'make check' failure on bleeding-edge coreutils
3992         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
3993         6.2.0-5ubuntu12), configured via "./configure
3994         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
3995         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
3996         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
3997         New macro, copied from fts_.h.
3998         (struct _obstack_chunk.contents): Use it.
4000 2016-11-14  Eric Blake  <eblake@redhat.com>
4002         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
4003         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
4004         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
4006 2016-11-14  Pádraig Brady  <P@draigBrady.com>
4008         strptime: fix compile error in recent change
4009         * lib/strptime.c (__strptime_internal): Fix ported code.
4011 2016-11-11  Bruno Haible  <bruno@clisp.org>
4013         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
4014         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
4015         (func_import): Extend determination of license_incompatibilities.
4016         (func_create_testdir): Extend table of license compatibility. Handle
4017         also the licenses GPLv3+, GPL, LGPLv3+.
4019 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4021         strftime: tune %q
4022         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
4024         Merge strftime.c changes from glibc
4025         This incorporates:
4026         2007-10-16 [BZ #5184] Add tzset_called argument
4027         2008-06-13 [BZ #6612] pass reference to tzset_called around
4028         2009-10-30 Implement Burmese language locale for Myanmar
4029         2010-01-09 Add support for XPG7 testing
4030         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
4031         2015-10-20 Convert miscellaneous function definitions to prototype style
4032         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
4033         it anyway and this lessens the difference between gnulib and glibc.
4034         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
4035         (__THROW): Define if standard headers do not.
4036         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
4037         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
4038         Declare with __THROW.
4039         (__strftime_internal): Rename from strftime_case_. Add arg for
4040         whether tzset is called.  All uses changed.  Call tzset at most
4041         once.  Allow %OC, for Burmese.
4042         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
4043         Don't assume values are in range.
4045 2016-11-12  Eric Blake  <eblake@redhat.com>
4047         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
4048         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
4049         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
4050         different value.
4052 2006-11-12  Pedro Alves  <palves@redhat.com>
4054         Fix gnulib C++ namespace support and std::frexp
4055         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
4056         _GL_CXXALIASWARN.
4058 2006-11-12  Pedro Alves  <palves@redhat.com>
4060         GNULIB_NAMESPACE::func need not pull in rpl_func
4061         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
4062         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
4063         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
4064         struct instead of a function pointer.
4066 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
4068         manywarnings: fix -Wno-missing-field-initializers detection
4069         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
4070         to be independent of -Wunused-variable.  I.E. ensure the latter
4071         warning doesn't occur so that detection of the former is accurate.
4073 2016-11-05  Pádraig Brady  <pbrady@fb.com>
4075         strftime,strptime: support %q to represent the quarter
4076         * lib/strftime.c (strftime_case_): Add %q case.
4077         * lib/strptime.c (__strptime_internal): Likewise.
4078         * tests/test-strftime.c (quarter_test): A new test case.
4080 2016-11-03  Eric Blake  <eblake@redhat.com>
4082         bootstrap: Fix get_version() for AIX 5.3
4083         * build-aux/bootstrap (get_version): Factor out sed script, since
4084         indented comments choke AIX 5.3 sed.
4085         Reported-by: Michael Felt <aixtools@gmail.com>
4087 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
4089         intprops: port to older XL C
4090         Problem reported by Alexander Samoilov in:
4091         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
4092         http://savannah.nongnu.org/bugs/?49448
4093         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
4094         Define to 1 only for XL C 12.1 or later, since this bug
4095         occurs in XL C for AIX 6.0 but not in 12.1.
4097 2016-11-02  Pádraig Brady  <P@draigBrady.com>
4099         backupfile: initialize default suffix within the implementation
4100         * lib/backupfile.c (find_backup_file_name): Initialize the
4101         global variable here, to simplify usage, and to only call
4102         getenv() when needed.
4104 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4106         futimens: remove FIXME for old Linux kernels
4107         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
4108         this in 2012" FIXME, like that for utimensat.
4110         utimensat: remove FIXME for old Linux kernels
4111         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
4112         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
4113         this in 2012" FIXME, by assuming the file system bug is absent
4114         unless demonstrated to be present.  We no longer need to worry
4115         about Linux kernel 2.6.32 when building with newer kernels.
4117 2016-10-16  Bruno Haible  <bruno@clisp.org>
4119         qsort_r: Fix macrology for platforms that lack the function.
4120         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
4121         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
4122         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
4123         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
4124         not exist.
4125         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
4126         the function exists.
4127         * modules/qsort_r: Add comments.
4129 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4131         sys_types: fix Texinfo typos
4132         * doc/glibc-functions/gnu_dev_major.texi:
4133         * doc/glibc-functions/gnu_dev_makedev.texi:
4134         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
4136 2016-10-26  John David Anglin  <dave.anglin@bell.net>
4138         getprogname: port to HP-UX
4139         See Bug#24805.
4140         * lib/getprogname.c (getprogname) [__hpux]: Port.
4141         * tests/test-getprogname.c (STREQ) [__hpux]:
4142         Special-case for HP-UX limitations on program name length.
4144 2016-10-20  Bruno Haible  <bruno@clisp.org>
4146         Update doc about target platforms.
4147         * doc/gnulib-intro.texi (Target Platforms): Update list.
4149 2016-10-15  Bruno Haible  <bruno@clisp.org>
4151         opendir, readdir, closedir: Relicense under LGPLv2+.
4152         * modules/opendir (License): Change to LGPLv2+.
4153         * modules/readdir (License): Likewise.
4154         * modules/closedir (License): Likewise.
4156 2016-10-16  Bruno Haible  <bruno@clisp.org>
4158         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
4159         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
4160         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
4161         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
4162         HAVE_DECL_STRERROR_R.
4164 2016-10-16  Bruno Haible  <bruno@clisp.org>
4166         Make the 'argp' module work without the 'error' module.
4167         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
4169 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
4171         diffseq: restore TOO_EXPENSIVE heuristic
4172         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
4173         (Bug#24715).  The simplest solution is to restore the
4174         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
4175         using a higher threshold to avoid Bug#16848 on smaller files.
4176         * lib/diffseq.h (struct context): Restore member too_expensive.
4177         (struct partition): Restore members lo_minimal, hi_minimal.
4178         (diag, compareseq): Restore arg find_minimal.  All uses changed.
4179         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
4180         1993 to make 'diff' run faster (but not as well) on large inputs,
4181         but use a threshold of 4096 instead of the old 256.
4182         * lib/fstrcmp.c (strcmp_bounded):
4183         * lib/git-merge-changelog.c (compute_differences):
4184         Adjust to diffseq.h changes.
4186 2016-10-22  Bruno Haible  <bruno@clisp.org>
4188         iconv: Avoid compilation error when bootstrapping GNU libiconv.
4189         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
4190         declaration yet, define ICONV_CONST to empty.
4192 2016-10-15  Bruno Haible  <bruno@clisp.org>
4194         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
4195         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
4196         module.
4198 2016-10-16  Bruno Haible  <bruno@clisp.org>
4200         system-quote tests: Avoid compiler warning on AIX.
4201         * tests/test-system-quote-child.c (fopen): Redefine like the system's
4202         <stdio.h> does.
4204 2016-10-16  Bruno Haible  <bruno@clisp.org>
4206         Fix some "gcc -Wall" warnings.
4207         * tests/test-ffsl.c (main): Use variable x, not i.
4208         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
4209         freopen.
4210         * tests/test-sethostname1.c (main): Explicitly ignore the return value
4211         of sethostname.
4213 2016-10-16  Bruno Haible  <bruno@clisp.org>
4215         gnulib-tool: Make --create-testdir on all modules work again.
4216         * gnulib-tool (func_create_testdir): Don't include the
4217         non-recursive-gnulib-prefix-hack module.
4219 2016-10-21  Daiki Ueno  <ueno@gnu.org>
4221         libunistring: change the maintainer to 'all'
4222         * modules/gen-uni-tables, modules/libunistring:
4223         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
4224         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
4225         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
4226         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
4227         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
4228         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
4229         * modules/uniwidth/*: Change the maintainer to 'all'.
4231 2016-10-16  Bruno Haible  <bruno@clisp.org>
4233         Simplify "configure: checking ..." messages.
4234         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
4235         AC_MSG_NOTICE.
4236         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
4238 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
4240         quotearg-tests: pacify gcc -Wall
4241         Problem reported by Bruno Haible in:
4242         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
4243         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
4244         * tests/test-quotearg.h: ... from here.
4246 2016-10-20  Pádraig Brady  <P@draigBrady.com>
4248         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
4249         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
4250         Needed on Centos <= 4.
4252 2016-10-20  Jim Meyering  <meyering@fb.com>
4254         printf.m4: fix a bug in detecting printf %j support
4255         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
4256         uintmax_t is defined in neither stdint.h nor inttypes.h.
4257         Before, this macro might have mistakenly set
4258         gl_cv_func_printf_sizes_c99=yes on such a system.
4259         Spotted by Zev Weiss.
4261 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
4263         sched: substitute HAVE_SYS_CDEFS_H too
4264         Problem reported by Tom G. Christensen in:
4265         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
4266         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
4267         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
4269 2016-10-19  Pádraig Brady  <P@draigBrady.com>
4271         quotearg: never write beyond the returned length
4272         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
4273         scan of the string when we initially encounter a single quote when
4274         shell quoting, so that if we then switch to a more concise quoting method
4275         we will not have written beyond that returned length.
4276         This is significant for sh-quote, which has separate routines
4277         to determine the length and do the actual quoting.
4278         * tests/test-quotearg.h: Reinstate the buffer bounds checking
4279         now that we never write more than the returned length.
4281 2016-10-18  Bruno Haible  <bruno@clisp.org>
4283         getprogname tests: Avoid failure in packages that use libtool.
4284         * tests/test-getprogname.c (main): Strip "lt-" prefix.
4285         Based on a patch by Jim Meyering.
4287 2016-10-16  Bruno Haible  <bruno@clisp.org>
4289         getprogname: Fix test failure on Cygwin. Comments.
4290         * lib/getprogname.h: Add comments.
4291         * lib/getprogname.c: Add comments. Fix #elif indentation.
4292         * tests/test-getprogname.c (main): On Cygwin, expect a result without
4293         ".exe" suffix.
4295 2016-10-16  Bruno Haible  <bruno@clisp.org>
4297         Make sure the libunistring detection rejects older versions with a
4298         known bug.
4299         * modules/unistr/u8-strtok (configure.ac): Bump required version.
4300         * modules/unistr/u16-strtok (configure.ac): Likewise.
4301         * modules/unistr/u32-strtok (configure.ac): Likewise.
4303 2016-10-18  Bruno Haible  <bruno@clisp.org>
4305         sh-quote, system-quote: revert regression of unit test.
4306         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
4307         * tests/test-system-quote-main.c (check_one): Likewise.
4309 2016-10-16  Pádraig Brady  <P@draigBrady.com>
4311         quotearg: fix stale tests
4312         * tests/test-quotearg.c [locale_results]: Add the missing str7
4313         entries to the expected results.
4314         * tests/test-system-quote-main.c (check_one): Don't enforce that we
4315         don't write beyond the returned length, since that's no longer the
4316         case if we switch to a more concise quoting style.
4317         * tests/test-sh-quote.c (check_one): Likewise.
4318         (main): Adjust for the new more concise quoting style.
4319         Reported by Bruno Haible.
4321 2016-10-16  Jim Meyering  <meyering@fb.com>
4323         non-recursive-gnulib-prefix-hack: fix inconsequential typo
4324         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
4325         to "$1".  This macro is always invoked with $1 == lib.
4326         Spotted by Bruno Haible
4328 2016-10-16  Bruno Haible  <bruno@clisp.org>
4330         Fix a test crash.
4331         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
4332         fails.
4334 2016-10-16  Pádraig Brady  <P@draigBrady.com>
4336         test-limits-h: suppress -Woverlength-strings
4337         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
4339 2016-10-15  Bruno Haible  <bruno@clisp.org>
4341         gettime, timespec, utimens: Relicense under LGPL.
4342         * modules/gettime (License): Change to LGPL.
4343         * modules/timespec (License): Likewise.
4344         * modules/utimens (License): Likewise.
4346 2016-10-14  Bruno Haible  <bruno@clisp.org>
4347             Pádraig Brady  <P@draigBrady.com>
4349         canonicalize-lgpl: Support the case path_max > INT_MAX.
4350         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
4351         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
4353 2016-10-13  Jim Meyering  <meyering@fb.com>
4355         getprogname: IBM z/OS: avoid NULL-dereference
4356         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
4357         upon strdup failure.
4359 2016-10-12  Jim Meyering  <meyering@fb.com>
4361         test-stdint: use _GL_VERIFY rather than "verify" for some tests
4362         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
4363         and an abbreviated diagnostic rather than verify with the full one,
4364         because the full-length strings would evoke warnings from gcc with
4365         -Woverlength-strings.
4367 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
4369         stdint: port SIZE_MAX to glibc s390
4370         Problem reported by Eric Blake in:
4371         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00031.html
4372         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
4373         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
4374         correct type, if possible.
4376 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
4378         getprogname: port to IBM z/OS
4379         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
4381 2016-10-11  Jim Meyering  <meyering@fb.com>
4383         maint: remove stray space after "." in AC_DEFINE comment.
4384         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
4385         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4387 2016-10-05  Jim Meyering  <meyering@fb.com>
4389         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
4390         * lib/long-options.c (parse_long_options): Add a break statement
4391         to avoid this new warning/failure:
4392         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
4393           --create-testdir --dir=/t/x --with-tests --test long-options
4394         ../../gllib/long-options.c: In function 'parse_long_options':
4395         ../../gllib/long-options.c:66:12: error: this statement may \
4396           fall through [-Werror=implicit-fallthrough]
4397                    (*usage_func) (EXIT_SUCCESS);
4398                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
4400 2016-10-05  Jim Meyering  <meyering@fb.com>
4402         utimecmp: avoid new GCC 7 warning from -Wbool-operation
4403         Testing this module would fail when using GCC 7 like this:
4404         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
4405           --dir=/tmp/x --with-tests --test utimecmp
4406         ../../gllib/utimecmp.c: In function ‘utimecmp’:
4407         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
4408           [-Werror=bool-operation]
4409                          time_t s = src_s & ~ (res == 2 * BILLION);
4410                                             ^
4411         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
4412           [-Werror=bool-operation]
4413                src_s &= ~ (res == 2 * BILLION);
4414                         ^
4415         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
4416         Instead, make it explicit that we intend to apply it to 0 or 1.
4418 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4420         dfa: save memory for states
4421         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
4422         states if dfa has a lot of caches.
4424 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
4426         wchar, wctype-h: fix for MinGW 3.22.2
4427         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
4428         special invocation, to fix issues with MinGW 3.22.2 wchar.h
4429         when included from <string.h>.
4430         * lib/wctype.in.h [__MINGW32__]: Add special invocation
4431         convention for MinGW 3.22.2, to solve issues with their
4432         wctype.h when included from <ctype.h>.
4434 2016-10-05  Jim Meyering  <meyering@fb.com>
4436         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
4437         * lib/long-options.c (parse_long_options): Add a break statement
4438         to avoid this new warning/failure:
4439         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
4440           --create-testdir --dir=/t/x --with-tests --test long-options
4441         ../../gllib/long-options.c: In function ‘parse_long_options’:
4442         ../../gllib/long-options.c:66:12: error: this statement may \
4443           fall through [-Werror=implicit-fallthrough]
4444                    (*usage_func) (EXIT_SUCCESS);
4445                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
4447         utimecmp: avoid new GCC 7 warning from -Wbool-operation
4448         Testing this module would fail when using GCC 7 like this:
4449         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
4450           --dir=/tmp/x --with-tests --test utimecmp
4451         ../../gllib/utimecmp.c: In function ‘utimecmp’:
4452         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
4453           [-Werror=bool-operation]
4454                          time_t s = src_s & ~ (res == 2 * BILLION);
4455                                             ^
4456         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
4457           [-Werror=bool-operation]
4458                src_s &= ~ (res == 2 * BILLION);
4459                         ^
4460         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
4461         Instead, make it explicit that we intend to apply it to 0 or 1.
4463 2016-10-03  Pádraig Brady  <P@draigBrady.com>
4465         quotearg: minimize shell quoting using double quotes
4466         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
4467         quote in encountered then use double quotes (c style quoting)
4468         when possible, as it simplifies the quoting.
4469         * tests/test-quotearg-simple.c: Add test cases.
4470         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
4471         for the fact we now may write beyond the returned length.
4473 2016-10-02  Jim Meyering  <meyering@fb.com>
4475         vasnprintf.c: avoid spurious warning from GCC 7
4476         The presence of cpp directives renders this "FALLTHROUGH" comment
4477         ineffective, so does not suppress the -Wimplicit-fallthrough warning
4478         from GCC 7 built from git on 2016-10-02.
4479         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
4480         directives, so that it takes effect once again.  This is clearly
4481         not a proper change, and I will revert it once this bug is fixed:
4482         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
4484 2016-10-01  Jim Meyering  <meyering@fb.com>
4486         getprogname: correct the test for a __progname variable
4487         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
4488         and AC_LINK_IFELSE to check for a global __progname.  If found,
4489         define HAVE_VAR___PROGNAME.
4490         * lib/getprogname.c (getprogname): Reflect the new name of the
4491         feature- checked preprocessor symbol:
4492         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
4494 2016-09-28  Jim Meyering  <meyering@fb.com>
4496         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
4497         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
4498         fall-through case with a /* fallthrough */ comment.
4500         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
4501         * lib/dfa.c (dfassbuild): Mark the end of this case with a
4502         /* fallthrough */ comment.
4504         getprogname: avoid __progname vs program_invocation_short_name pitfall
4505         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
4506         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
4507         not with Fedora 24's glibc-2.23.1-10.
4508         * lib/getprogname.c (__progname): Move this declaration down...
4509         (getprogname): ... into the #elif block where used, and make it
4510         explicitly "extern".
4512         getprogname: port to OpenBSD 5.1
4513         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
4514         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
4515         * modules/getprogname (configure.ac): Move most of this code...
4516         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
4517         increment serial number, and add a test for __progname.
4518         https://bugs.gnu.org/24562
4519         Reported by Nelson H. F. Beebe.
4521 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4523         sched: port to GCC 6.2.1 on macOS Sierra
4524         Problem reported by Denis Davydov in:
4525         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00056.html
4526         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
4527         Include <sys/cdefs.h> before <sched.h>.
4528         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
4529         so that we needn’t worry about the sched.h include bug here.
4530         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
4531         and include it before <sched.h> if it exists, when
4532         checking for <sched.h>.
4534         tests/init.sh: port Alpine fix to AIX 7.1
4535         * tests/init.sh (compare_): When attempting to use diff -U3,
4536         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
4537         diff -u not outputting a space after leading '+', as the users
4538         of 'compare' should not be that picky about its output format.
4539         In the AIX 7.1 case, return with diff exit status (or with 2 if
4540         trouble), instead of some random nonzero exit status.
4541         * tests/test-init.sh (test_compare): Remove space after leading
4542         '+', so that AIX 7.1 'diff' passes the test.
4544 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4546         nl_langinfo: pacify GCC
4547         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
4548         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
4550         stdint: also set GL_GENERATE_LIMITS_H
4551         Problem reported by Jim Meyering in:
4552         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
4553         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
4555         limits-h, stdint: Don't assume extensions, fix typo
4556         * m4/limits-h.m4 (gl_LIMITS_H):
4557         * m4/stdint.m4 (gl_STDINT_H):
4558         Don't assume AC_USE_SYSTEM_EXTENSIONS.
4559         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
4560         reported by Jim Meyering in:
4561         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html
4563 2016-09-21  Jim Meyering  <meyering@fb.com>
4565         getprogname: port to AIX
4566         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
4567         and strdup to obtain a short program name string.  Using code from
4568         Bruno Haible and an idea from Bastien ROUCARIÈS, in
4569         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
4570         Assaf Gordon reported that this new file would fail to compile on
4571         AIX-7.1 32bit.
4573 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
4575         extensions: fix typo in comment
4576         * m4/extensions.m4: Sync from Autoconf master.
4578         stdint: support new _WIDTH macros
4579         * doc/posix-headers/stdint.texi: Document this.
4580         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
4581         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
4582         support for INTMAX_WIDTH, etc. as well as for support for just C99.
4583         * modules/stdint (Depends-on): Add limits-h.
4584         (Makefile.am): Substitute HAVE_C99_STDINT_H.
4585         * modules/stdint-tests (Depends-on): Add extensions, so that
4586         INTMAX_MAX etc. are defined.
4587         * tests/test-stdint.c: Verify the new macros.
4589         limits-h: new module
4590         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
4591         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
4592         * doc/posix-headers/limits.texi: Document new module.
4593         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
4594         * modules/limit-h-tests, tests/test-limits-h.c: New files.
4596         stdio: don't redefine __USE_MINGW_ANSI_STDIO
4597         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
4598         if it is already defined.  Apparently GNU Emacs relies on this.  See:
4599         http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html
4601 2016-09-15  Eric Blake  <eblake@redhat.com>
4603         sys_types: avoid glibc 2.25 warnings about major()
4604         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
4605         older autoconf.
4606         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
4607         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
4608         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
4609         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
4611         mountlist: include sysmacros.h for glibc
4612         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
4613         AC_HEADER_MAJOR.
4614         * lib/mountlist.c (includes): Use correct headers.
4616 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4618         extensions: port to more ISO C TSes
4619         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
4620         master, to add support for more recent ISO C TRs and TSes.
4622 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4624         intprops: new macro TYPE_WIDTH
4625         * lib/intprops.h (TYPE_WIDTH): New macro.
4626         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
4627         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
4628         * lib/parse-datetime.y (parse_datetime2):
4629         Use it.
4631         extensions: port to recent ISO C TRs
4632         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4633         Sync from Autoconf master, to add support for recent ISO C TRs.
4634         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
4635         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
4636         the MinGW option is not an extension.
4638 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
4640         dfa: port to Solaris 9
4641         Problems reported by Tom G. Christensen in:
4642         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
4643         * modules/dfa (Depends-on): Add isblank.
4644         * modules/dfa-tests (dfa_match_aux_LDADD):
4645         Rename from test_stat_LDADD, to fix typo.
4646         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
4648 2016-09-10  Jim Meyering  <meyering@fb.com>
4650         strverscmp: avoid link failure on OS X
4651         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
4652         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
4654 2016-08-16  Jim Meyering  <meyering@fb.com>
4656         dfa: new module, importing grep's DFA matcher
4657         Since grep's DFA matcher is now being used by two gnulib-enabled
4658         projects, grep and sed, it makes sense to version-control its
4659         sources and unit tests in one place: here.
4660         * modules/dfa: New module.
4661         * modules/dfa-tests: New file.
4662         * lib/dfa.c: New file, from grep.
4663         * lib/dfa.h: Likewise.
4664         * lib/localeinfo.c: Likewise.
4665         * lib/localeinfo.h: Likewise.
4666         * tests/dfa-match-aux.c: Likewise.
4667         * tests/dfa-invalid-char-class.sh: Likewise.
4668         * tests/dfa-match.sh: Likewise, with minor changes.
4669         * MODULES.html.sh (Misc): Add "dfa" to this list.
4671 2016-09-09  Jim Meyering  <meyering@fb.com>
4673         getprogname-tests: don't depend on assert-h
4674         * modules/getprogname-tests (Depends-on): Remove assert-h.
4675         It was not needed, and in fact would cause build failure for
4676         coreutils on some systems.  Reported by Assaf Gordon in https:
4677         //lists.gnu.org/archive/html/coreutils/2016-09/msg00016.html
4679 2016-09-07  Jim Meyering  <meyering@fb.com>
4681         getprogname-tests: work also when EXEEXT is nonempty
4682         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
4683         * tests/test-getprogname.c (main): Use it.
4684         Suggested by Gisle Vanem.
4686 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
4688         getprogname: fix errors in previous change
4689         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
4690         s/program_invocation_name/base/
4691         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
4693 2016-09-08  Pádraig Brady  <P@draigBrady.com>
4695         parse-datetime: restrict debug output to input string
4696         * lib/parse-datetime.y (parse_datetime2): If we parse
4697         all of the input but determine it's invalid, ensure
4698         we don't output the now invalid input pointer.
4699         This issue was seen with `date -d 'now +1'`.
4701 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
4703         flexmember: new macro FLEXALIGNOF
4704         * lib/flexmember.h: Include <stddef.h>, for offsetof.
4705         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
4706         this macro.  Update comments.
4708 2016-09-07  Jim Meyering  <meyering@fb.com>
4710         getprogname: port to systems with __argv (mingw, msvc)
4711         * lib/getprogname.c (getprogname): Include "dirname.h" and use
4712         last_component: more general than open coding it with hard-coded "/".
4713         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
4714         * modules/getprogname (Depends-on): Add dirname-lgpl.
4715         (configure.ac): Check for __argv in <stdlib.h>.
4716         * modules/getprogname-tests: New file.
4717         * tests/test-getprogname.c: New file.
4718         Suggested by Gisle Vanem in
4719         https://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00014.html
4721 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
4723         flexmember: port better to GCC + valgrind
4724         With a char[] flexible array member in a struct with nontrivial
4725         alignment, GCC-generated code can access past the end of the
4726         array, because GCC assumes there are padding bytes to get the
4727         struct aligned.  So the common idiom of malloc (offsetof (struct
4728         s, m), n) does not properly allocate an n-byte trailing member, as
4729         malloc’s argument should be the next multiple of alignof (struct s).
4730         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
4731         Although C11 apparently permits this GCC optimization (i.e., there
4732         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
4733         See the thread containing:
4734         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
4735         * lib/flexmember.h: New file.
4736         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
4737         * lib/localename.c, lib/time_rz.c:
4738         Include flexmember.h.
4739         * lib/fnmatch_loop.c (struct patternlist):
4740         * lib/localename.c (struct hash_node):
4741         Use FLEXIBLE_ARRAY_MEMBER.
4742         * lib/fnmatch_loop.c (EXT):
4743         * lib/fts.c (fts_alloc):
4744         * lib/glob.c (glob_in_dir):
4745         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
4746         * lib/localename.c (gl_lock_define_initialized):
4747         * lib/time_rz.c (tzalloc):
4748         Use FLEXSIZEOF instead of offsetof.
4749         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4750         Check that the size of the struct can be taken.
4751         * modules/flexmember (Files): Add lib/flexmember.h.
4752         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
4753         Add flexmember.
4755 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
4757         getprogname: port to Solaris 10
4758         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
4759         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
4760         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
4762         stdalign: correct mistake in alignof doc
4763         Problem reported by Joseph Myers in:
4764         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
4765         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
4766         alignof(S) where S is a structure containing a flexible array
4767         member.  The Gnulib substitute does not support this, but C11 does.
4769 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
4771         main.mk: remove sc_program_name, since there is no more need to
4772         use set_program_name in tools (getprogname is enough for most
4773         of the cases).
4774         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
4775         * top/maint.mk (sc_program_name): Remove.
4777 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
4779         Port tests away from progname, since modules that need the
4780         program name already depend on getprogname.
4781         * modules/acl-tests (Depends-on): Remove progname.
4782         * modules/argmatch (Depends-on): Likewise.
4783         * modules/argmatch-tests (Depends-on): Likewise.
4784         * modules/argp-tests (Depends-on): Likewise.
4785         * modules/argp-version-etc-tests (Depends-on): Likewise.
4786         * modules/array-list-tests (Depends-on): Likewise.
4787         * modules/array-oset-tests (Depends-on): Likewise.
4788         * modules/avltree-list-tests (Depends-on): Likewise.
4789         * modules/avltree-oset-tests (Depends-on): Likewise.
4790         * modules/avltreehash-list-tests (Depends-on): Likewise.
4791         * modules/carray-list-tests (Depends-on): Likewise.
4792         * modules/copy-file-tests (Depends-on): Likewise.
4793         * modules/exclude-tests (Depends-on): Likewise.
4794         * modules/fchownat-tests (Depends-on): Likewise.
4795         * modules/fdopendir-tests (Depends-on): Likewise.
4796         * modules/filenamecat-tests (Depends-on): Likewise.
4797         * modules/fstatat-tests (Depends-on): Likewise.
4798         * modules/fstrcmp-tests (Depends-on): Likewise.
4799         * modules/linked-list-tests (Depends-on): Likewise.
4800         * modules/linkedhash-list-tests (Depends-on): Likewise.
4801         * modules/mkdirat-tests (Depends-on): Likewise.
4802         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
4803         * modules/nonblocking-socket-tests (Depends-on): Likewise.
4804         * modules/obstack-printf-tests (Depends-on): Likewise.
4805         * modules/openat-tests (Depends-on): Likewise.
4806         * modules/parse-datetime-tests (Depends-on): Likewise.
4807         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
4808         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
4809         * modules/quotearg-simple-tests (Depends-on): Likewise.
4810         * modules/quotearg-tests (Depends-on): Likewise.
4811         * modules/rbtree-list-tests (Depends-on): Likewise.
4812         * modules/rbtree-oset-tests (Depends-on): Likewise.
4813         * modules/rbtreehash-list-tests (Depends-on): Likewise.
4814         * modules/spawn-pipe-tests (Depends-on): Likewise.
4815         * modules/system-quote-tests (Depends-on): Likewise.
4816         * modules/uniname/uniname-tests (Depends-on): Likewise.
4817         * modules/uninorm/nfc-tests (Depends-on): Likewise.
4818         * modules/uninorm/nfd-tests (Depends-on): Likewise.
4819         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
4820         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
4821         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
4822         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
4823         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
4824         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
4825         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
4826         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
4827         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
4828         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
4829         * modules/unlinkat-tests (Depends-on): Likewise.
4830         * modules/version-etc-tests (Depends-on): Likewise.
4831         * modules/xalloc-die-tests (Depends-on): Likewise.
4832         * modules/xmemdup0-tests (Depends-on): Likewise.
4833         * modules/xprintf-posix-tests (Depends-on): Likewise.
4834         * modules/xvasprintf-tests (Depends-on): Likewise.
4835         * tests/test-argmatch.c: Do not include progname.h.
4836         (main) Stop calling set_program_name.
4837         * tests/test-argp-version-etc.c: Likewise.
4838         * tests/test-argp.c: Likewise.
4839         * tests/test-argv-iter.c: Likewise.
4840         * tests/test-array_list.c: Likewise.
4841         * tests/test-array_oset.c: Likewise.
4842         * tests/test-avltree_list.c: Likewise.
4843         * tests/test-avltree_oset.c: Likewise.
4844         * tests/test-avltreehash_list.c: Likewise.
4845         * tests/test-carray_list.c: Likewise.
4846         * tests/test-copy-acl.c: Likewise.
4847         * tests/test-copy-file.c: Likewise.
4848         * tests/test-exclude.c: Likewise.
4849         * tests/test-fchownat.c: Likewise.
4850         * tests/test-fdopendir.c: Likewise.
4851         * tests/test-filenamecat.c: Likewise.
4852         * tests/test-fstatat.c: Likewise.
4853         * tests/test-fstrcmp.c: Likewise.
4854         * tests/test-linked_list.c: Likewise.
4855         * tests/test-linkedhash_list.c: Likewise.
4856         * tests/test-mkdirat.c: Likewise.
4857         * tests/test-nonblocking-pipe-main.c: Likewise.
4858         * tests/test-nonblocking-socket-main.c: Likewise.
4859         * tests/test-obstack-printf.c: Likewise.
4860         * tests/test-openat.c: Likewise.
4861         * tests/test-parse-datetime.c: Likewise.
4862         * tests/test-pipe-filter-gi1.c: Likewise.
4863         * tests/test-pipe-filter-gi2-main.c: Likewise.
4864         * tests/test-pipe-filter-ii1.c: Likewise.
4865         * tests/test-pipe-filter-ii2-main.c: Likewise.
4866         * tests/test-quotearg-simple.c: Likewise.
4867         * tests/test-quotearg.c: Likewise.
4868         * tests/test-rbtree_list.c: Likewise.
4869         * tests/test-rbtree_oset.c: Likewise.
4870         * tests/test-rbtreehash_list.c: Likewise.
4871         * tests/test-sameacls.c: Likewise.
4872         * tests/test-set-mode-acl.c: Likewise.
4873         * tests/test-spawn-pipe-main.c: Likewise.
4874         * tests/test-system-quote-main.c: Likewise.
4875         * tests/test-unlinkat.c: Likewise.
4876         * tests/test-version-etc.c: Likewise.
4877         * tests/test-xalloc-die.c: Likewise.
4878         * tests/test-xfprintf-posix.c: Likewise.
4879         * tests/test-xmemdup0.c: Likewise.
4880         * tests/test-xprintf-posix.c: Likewise.
4881         * tests/test-xvasprintf.c: Likewise.
4882         * tests/uniname/test-uninames.c: Likewise.
4883         * tests/uninorm/test-u32-nfc-big.c: Likewise.
4884         * tests/uninorm/test-u32-nfd-big.c: Likewise.
4885         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
4886         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
4887         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4888         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4889         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4890         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4891         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4892         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4893         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4894         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4895         * tests/test-c-stack.c: (program_name): Do not define.
4896         (main): Do not set program_name.
4897         * tests/test-closein.c: Likewise.
4898         * tests/test-xstrtol.c: Likewise.
4899         * tests/test-yesno.c: Likewise.
4901 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
4903         Port modules to use getprogname explicitly, instead of requiring
4904         progname to be used (or program_name to be provided).
4905         * lib/argmatch.c: Do not include progname.h.
4906         [TEST] (program_name): Do not define.
4907         [TEST] (main): Call getprogname instead of using program_name.
4908         * lib/c-stack.c: Do not include progname.h.
4909         (program_name): Do not define.
4910         (die): Call getprogname instead of using program_name.
4911         * lib/chdir-long.c: Do not include progname.h.
4912         [TEST_CHDIR] (main): Do not set program_name.
4913         * lib/error.c [!_LIBC]: Include progname.h.
4914         [!_LIBC] (program_name): Define using getprogname.
4915         * lib/euidaccess.c: Do not include progname.h.
4916         [TEST] (main): Do not set program_name.
4917         * lib/git-merge-changelog.c: Include getprogname.h instead of
4918         progname.h.
4919         (usage): Call getprogname instead of using program_name.
4920         (main): Likewise.  Stop calling set_program_name.
4921         * lib/group-member.c: Do not include progname.h.
4922         [TEST] (main): Do not set program_name.
4923         * modules/argmatch (Depends-on): Add getprogname.
4924         * modules/c-stack (Depends-on): Likewise.
4925         * modules/error (Depends-on): Likewise.
4926         * modules/git-merge-changelog (Depends-on): Likewise.
4927         Also remove progname.
4929 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
4931         * NEWS: Document the deprecation of the 'progname' module.
4933 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
4935         getprogname: new module
4936         This provides a LGPL module for getting the name of the current
4937         program, using the same API found on *BSD systems.
4938         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
4939         * modules/getprogname: New files.
4940         * MODULES.html.sh (Misc): Add getprogname.
4942 2016-09-02  Jim Meyering  <meyering@fb.com>
4944         manywarnings: add -fno-common
4945         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
4946         to the list.  Quoting the manual, "Compiling with -fno-common is
4947         useful on targets for which it provides better performance, or if
4948         you wish to verify that the program will work on other systems that
4949         always treat uninitialized variable declarations this way [putting
4950         it in the data section]."  If diffutils had been using this sooner,
4951         it would have prevented this duplicate declaration issue:
4952         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
4954 2016-08-31  Simon Josefsson  <simon@josefsson.org>
4956         parse-datetime: Fix typo.
4957         * lib/parse-datetime.y (parse_datetime2): Fix typo.
4959 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4961         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
4962         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
4963         GCC 5 and 6 that have __builtin_sub_overflow but not
4964         __builtin_sub_overflow_p.  With the recent changes, these
4965         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
4966         implementation than with INT_SUBTRACT_OVERFLOW implementation,
4967         since the former needs just one runtime comparison whereas the
4968         latter needs two.
4970         strverscmp: sync with glibc
4971         Although this doesn't exactly synchronize with glibc
4972         byte-for-byte, it makes the code behave the same as glibc.
4973         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
4974         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
4975         difference shouldn't matter in practical use.  All uses changed
4976         back to isdigit.
4977         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
4978         (next_state): Now unsigned char array; redo elements.
4979         (result_type): Now signed char array; redo elements.
4980         (__strverscmp): Fix glibc bug 9913 by using new states.
4981         * tests/test-strverscmp.c (main): Test glibc bug 9913.
4983 2016-08-29  Jim Meyering  <meyering@fb.com>
4985         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
4986         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
4987         similarly to how it was done to intprops.h.
4989 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4991         intprops.h: port recent changes to GCC 6.2.0
4992         * lib/intprops.h (__has_builtin): Move earlier.
4993         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
4994         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
4995         the last argument can be null.  All uses changed.
4996         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
4997         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
4998         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
4999         and it's not clear which GCC versions it works for.
5000         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
5001         its definiens.
5003         intprops.h: use __typeof__ with GCC 7
5004         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
5005         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
5006         This avoids computing the expression's value (which might overflow!).
5008 2016-08-29  Jim Meyering  <meyering@fb.com>
5010         intprops.h, xalloc-oversized.h: work with gcc 7
5011         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
5012         __builtin_mul_overflow each accept a NULL pointer as the third
5013         argument.  However in gcc 7, that is no longer accepted.
5014         Instead, one must use the "_p"-suffixed names, with which, the
5015         third parameter is no longer a pointer.
5016         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
5017         the definition: not true for gcc 7 and subsequent.
5018         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
5019         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
5020         Provide new definitions for gcc 7 and subsequent.
5021         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
5022         that works with gcc-7.
5024         intprops.h: fix missing-backslash problems
5025         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
5026         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
5028 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5030         intprops: fix paren typo on old platforms
5031         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
5032         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
5033         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
5034         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
5035         && !defined LLONG_MAX]:
5036         Remove stray paren.
5038         intprops: port to OpenVMS
5039         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
5040         * doc/posix-headers/limits.texi: Document the problem.
5041         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
5042         Define if not already defined.
5044 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
5046         parse-datetime: improve debug implementation
5047         Follow-up to commit 12ad79069 ("add optional debug printing").
5048         Improve parse-datetime's debug implementation: remove macros,
5049         replace global debug flag variable with a function parameter,
5050         use nstrftime for formatting.
5051         See: https://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00021.html
5052         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
5053         (parse_datetime2): New function, accepts 'flags' parameter, supporting
5054         debug flag. Existing interface 'parse_datetime' left unmodified.
5055         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
5056         (struct parser_control): add 'parse_datetime_debug' member variable.
5057         (parse_datetime): Call new function 'parse_datetime2' without debug.
5058         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
5059         pc.parse_datetime_debug variable as needed.
5060         (to_year): Accept new flags parameter, instead of using global variable.
5061         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
5062         use struct 'debug' variable instead of global variable.
5063         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
5064         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
5065         correspnding functions directly instead of using macros.
5066         * modules/parse-datetime: Add gnulib's strftime module.
5068 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
5070         c-strcase-tests: port to EBCDIC
5071         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
5072         which assume ASCII encoding semantics to run only in ASCII
5073         mode, as they fail in EBCDIC.
5075         sigpipe-tests: fix typo
5076         * tests/test-sigpipe.sh: C, not B.
5078 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5080         canonicalize-lgpl: fix errno after malloca fails
5081         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
5082         http://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00039.html
5083         * lib/canonicalize-lgpl.c (__realpath):
5084         Don't assume malloca sets errno on failure.
5086 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5088         strtod: port errno handling to z/OS
5089         * lib/strtod.c (strtod): Save and restore errno more reliably.
5091 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
5093         strtod: port to z/OS
5094         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
5095         implementation.
5097 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5099         strtod: port to z/OS
5100         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
5101         implementation.
5103         regex, string: rename to avoid '__string'
5104         * lib/regex.h, lib/string.in.h: Do not use the identifier
5105         '__string', as it is effectively reserved by string.h on z/OS.
5107         c-strcase-tests, wcwidth-tests: depend on c-ctype
5108         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
5109         Add c-ctype.
5111 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
5113         thread: port to z/OS
5114         * lib/glthread/thread.c, lib/glthread/thread.h:
5115         Rudimentary gl_thread support for z/OS.
5117         maint: port tests to z/OS errno behavior
5118         * tests/test-nonblocking-reader.h:
5119         * tests/test-nonblocking-writer.h:
5120         Accommodate z/OS errno code preferences. (I believe this should
5121         still be within spec; IBM is good at following the letter if not
5122         the spirit of such things.)
5124         maint: preprocessor changes to support z/OS
5125         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
5126         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
5127         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
5128         * tests/test-nonblocking-pipe.h:
5130         fclose, strstr-simple, wchar: port to z/OS
5131         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
5132         Changes to the Autoconf M4 code to support z/OS.  Note that
5133         fclose() is broken in a different way on z/OS than it is on other
5134         systems, thus the special-case in fclose.m4.
5136         iconv_open-utf-tests, iconv-tests: port to EBCDIC
5137         * tests/test-iconv-utf.c, tests/test-iconv.c:
5138         Added appropriately conditional #pragmas so that the test strings
5139         in test-iconv-utf.c are correctly interpreted in ASCII instead of
5140         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
5141         addressed in a more portable way by simply rewriting all the ASCII
5142         literal characters as octal escapes, but then you would lose the
5143         partial readability that the strings have now. Also, iconv_open()
5144         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
5146         c-strcase-tests, wcwidth-tests: port to EBCDIC
5147         * tests/test-c-strcasecmp.c: Include c-ctype.h.
5148         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
5149         * tests/test-wcwidth.c: Likewise.
5151 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5153         stdbool: don't require _Bool for C++
5154         Problem reported by David Seifert in:
5155         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00005.html
5156         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
5157         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
5158         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
5159         stricter about checking that bool and _Bool are compatible in C.
5161 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5163         getdelim: remove dependency on realloc-posix
5164         * lib/canonicalize-lgpl.c (alloc_failed)
5165         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
5166         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
5167         Use __set_errno where needed, for consistency.
5168         * lib/getdelim.c (alloc_failed): New function.
5169         (getdelim): Use it.
5171 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
5173         parse-datetime: add optional debug printing
5174         Print parsing information, warnings, and errors to stderr.
5175         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
5176         * lib/parse-datetime.y:
5177         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
5178         (PROGRESS*): Same as DEBUG, for progress reporting.
5179         (dbg_printf): Print message to stderr, with 'date' prefix.
5180         (struct parser_control): Add 'debug_*_seen' variables.
5181         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
5182         (debug_print_current_time, debug_print_relateive_time): Prints the
5183         current/relative date/time value of parser_control.
5184         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
5185         (to_year): Warn about 2-digit year parsing.
5186         (yylex):   Warn about unrecognized words.
5187         (get_effective_timezone): Returns current timezone in minutes.
5188         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
5189         clearly and unambigiously as possible.
5190         (debug_mktime_not_ok): Print detailed information about failed
5191         date/time values.
5192         (parse_datetime): Add DEBUG messages for failures, warnings. Add
5193         PROGRESS messages for status messages.
5194         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
5196 2016-08-06  Jim Meyering  <meyering@fb.com>
5198         tests/init.sh: exclude dash with bad "local" semantics
5199         * tests/init.sh (gl_shell_test_script_): Add a function to
5200         eliminate a shell like "dash" (unlike bash, zsh) that has
5201         surprising/risky "local var='...'" semantics.  Inspired by
5202         the problem and discussion in https://bugs.gnu.org/24116#11.
5204 2016-08-02  Ján Tomko  <jtomko@redhat.com>
5206         maint.mk: expand the prohibit_doubled_word regex
5207         This check has a static list of words that are checked for
5208         repetitions.  Expand it before running the perl script to
5209         avoid using expensive captures.  This decreases the cost
5210         for libvirt from 1.66s to 0.66s.
5211         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
5212         (sc_prohibit_doubled_word): Use it.
5214 2016-07-26  Ján Tomko  <jtomko@redhat.com>
5216         useless-if-before-free: skip non-matching lines early
5217         * build-aux/useless-if-before-free: First match each line with the
5218         simple/quick /\bif\b/ and reject if there is no match. This often
5219         saves the cost of the much more involved regular expression.
5220         For libvirt, this decreases the cost from 1.44s to 1.02s.
5222 2016-07-26  Ján Tomko  <jtomko@redhat.com>
5224         maint.mk: speed up sc_po_check
5225         sc_po_check would skip files based on their names, or on the
5226         existence of files with derived names. Rewrite it to use perl
5227         instead of shell to make the check faster.
5228         * top/maint.mk (perl_translatable_files_list_): Define.
5229         (sc_po_check): Use it.
5231 2016-07-30  Ján Tomko  <jtomko@redhat.com>
5233         maint.mk: speed up require_config_h_first
5234         Instead of spawning three processes per file,
5235         rewrite the check in perl and run it once for all the files.
5236         * top/maint.mk (perl_config_h_first_): Define.
5237         (sc_require_config_h_first): Use it in place of shell code.
5239 2016-07-26  Ján Tomko  <jtomko@redhat.com>
5241         maint.mk: speed up sc_po_check
5242         sc_po_check would skip files based on their names, or on the
5243         existence of files with derived names. Rewrite it to use perl
5244         instead of shell to make the check faster.
5245         * top/maint.mk (perl_translatable_files_list_): Define.
5246         (sc_po_check): Use it.
5248 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5250         obstack: pacify GCC 6 with -Wnull-dereference
5251         Problem reported by Assaf Gordon in:
5252         http://lists.gnu.org/archive/html/bug-gnulib/2016-07/msg00028.html
5253         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
5254         Declare with __attribute_noreturn__.
5255         * lib/obstack.h (__attribute_noreturn__): New macro.
5257 2016-07-13  Eric Blake  <eblake@redhat.com>
5259         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
5260         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
5261         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
5263 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
5265         doc: mention glibc SSIZE_MAX buglet
5266         * doc/posix-headers/limits.texi (limits.h): Document the bug.
5268 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
5270         printf-posix: Fix mingw build
5271         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
5272         expression for detecting C symbol prefixes but forgot to qoute square
5273         brackets in the command line arguments for grep.  That way when
5274         building with mingw the condition was false although it ought to be
5275         true instead.  In particular scenarios this led to the following
5276         compile error:
5278             Cannot export rpl_printf: symbol not found
5279             Cannot export rpl_scanf: symbol not found
5280             collect2: error: ld returned 1 exit status
5282         Fix this by properly quoting square brackets.
5284 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5286         mktime: call tzset as per POSIX
5287         Problem reported by Ludovic Courtès in:
5288         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00068.html
5289         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
5290         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
5292 2016-06-26  Pádraig Brady  <P@draigBrady.com>
5294         fts: handle readdir() errors
5295         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
5296         but also upon error when it will also set errno.  Therefore
5297         flag the error case from readdir().  We treat the case where
5298         no items are read the same as if the dir can't be accessed,
5299         i.e. by setting fts_errno to FTS_DNR.
5301 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
5303         intprops: port better to GCC 7
5304         GCC 7 __builtin_add_overflow supports a new usage form, where the
5305         last argument is a null pointer, and which merely returns 1 if an
5306         overflow would occur.  This is a constant expression if all
5307         arguments are constants, and should generate faster code when code
5308         needs to be generated.
5309         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
5310         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
5311         Use builtin operations if available.
5312         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
5313         operations are available, as it's almost surely faster.
5315 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5317         intprops-test: port to GCC 6
5318         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
5319         since the bug is not fixed in GCC 6.1.
5321 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5323         xalloc-oversized: port to GCC 7; fewer warnings
5324         GCC 7 will have a better way to deal with integer overflow.
5325         Plus, fix a warnings problem reported by Tim Ruehsen in:
5326         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00022.html
5327         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
5328         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
5329         For GCC 5, use __xalloc_oversized if both args are constants,
5330         or if pedantic.
5332 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
5334         regex: port to Sun C
5335         Reported by Daiki Ueno.
5336         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
5337         __restrict, in prototype.  This fixes a problem I introduced in
5338         the 2016-02-19 merge from glibc.
5340 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5342         stdbool: Restore __bool_true_false_are_defined check
5343         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
5344         __bool_true_false_are_defined is still defined, even with C++11.
5346 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
5348         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
5349         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
5351 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
5353         Use GCC_LINT, not lint
5354         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
5355         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
5356         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
5357         Document problem with lint and _Noreturn.
5358         * lib/diffseq.h (IF_LINT, IF_LINT2):
5359         * lib/fts.c (sccsid):
5360         * lib/getndelim2.c (IF_LINT):
5361         * lib/gl_anylinked_list2.h (gl_linked_iterator)
5362         (gl_linked_iterator_from_to):
5363         * lib/gl_anytree_list2.h (gl_tree_iterator)
5364         (gl_tree_iterator_from_to):
5365         * lib/gl_anytree_oset.h (gl_tree_iterator):
5366         * lib/gl_array_list.c (gl_array_iterator)
5367         (gl_array_iterator_from_to):
5368         * lib/gl_array_oset.c (gl_array_iterator):
5369         * lib/gl_carray_list.c (gl_carray_iterator)
5370         (gl_carray_iterator_from_to):
5371         * lib/idcache.c:
5372         * lib/inet_ntop.c (IF_LINT):
5373         * lib/regcomp.c (build_charclass_op, create_tree):
5374         * lib/regex_internal.c (re_acquire_state)
5375         (re_acquire_state_context):
5376         * lib/trigl.c (rcsid):
5377         * lib/trim.c (IF_LINT):
5378         * lib/vasnprintf.c (IF_LINT):
5379         * lib/verify.h (assume):
5380         Treat GCC_LINT like lint.
5382 2016-05-29  Bruno Haible  <bruno@clisp.org>
5384         secure_getenv: Port to many more platforms.
5385         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
5386         functions.
5387         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
5388         for non-BSD Unix platforms and for native Windows.
5389         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
5390         Prompted by a request from Nikos Mavrogiannopoulos.
5392 2016-05-27  Eric Blake  <eblake@redhat.com>
5394         canonicalize: Fix broken probe for realpath.
5395         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
5396         in logic introduced in 54615b95.
5398 2016-05-26  Eric Blake  <eblake@redhat.com>
5400         unsetenv: relax to LGPLv2+
5401         * modules/unsetenv (License): Match setenv license.
5403 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
5405         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
5406         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
5407         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
5408         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
5409         (commonarg, dirargs, dirs, infoarg, generate_ascii)
5410         (generate_html, generate_info, generate_tex, outdir)
5411         (source_extra, split, srcfile, texarg): Move above 'version'.
5412         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
5414 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5416         manywarnings: update for GCC 6.1
5417         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
5418         Add GCC 6.1 options that apply to C.
5419         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
5420         do not apply to C, are obsolescent, etc.
5422 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
5424         glob: size_t overflow checks
5425         * lib/glob.c (__has_builtin): New macro.
5426         (size_add_wrapv, glob_use_alloca): New static functions.
5427         (glob, glob_in_dir): Check for size_t overflow in several places,
5428         and fix some size_t checks that were not quite right.
5430         glob: don't assume INT_MAX < SIZE_MAX
5431         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
5432         latter is not portable to (probably theoretical) hosts where
5433         SIZE_MAX <= INT_MAX.
5435 2016-05-09  Bruno Haible  <bruno@clisp.org>
5437         Fix undefined behaviour in gettext.h.
5438         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
5439         pointer's value after the storage it points to has been freed.
5440         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
5441         Spotted by Coverity.
5443 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5445         git-version-gen: avoid undefined shift
5446         Problem reported by Mosè Giordano in:
5447         http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00012.html
5448         * build-aux/git-version-gen: Avoid undefined behavior if invoked
5449         with --prefix or --fallback but without a later argument.  While
5450         we're at it, omit unnecessary quotes.
5452 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5454         glob: merge glibc changes into lib/glob.c
5455         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
5456         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
5457         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
5458           struct dirent [BZ #19779]
5459         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
5460           callback gl_readdir
5461         2015-10-20 Convert miscellaneous function definitions to prototype style
5462         2015-10-20 Convert 113 more function definitions to prototype style
5463           (files with assertions)
5464         2015-06-12 Fix getlogin_r namespace (bug 18527).
5465         2014-02-10 Use glibc_likely instead __builtin_expect.
5466         2013-10-20 When glob pattern contains a trailing slash match only
5467           directories. Fixes bug 10278.
5468         2013-09-04 glob: silence -Wattribute warnings
5469         2013-06-07 Avoid use of "register" as optimization hint.
5470         2012-09-25 Use size_t instead of int for internal variables in glob
5471           (bug 14621)
5472         2011-07-20 Check for overflows in expressions
5473         2011-05-28 Remove unused variable
5474         2011-05-22 Add a few more alloca size checks
5475         2010-03-27 Whitespace fixes
5476         2010-03-27 Fix one more issue with the glob patch
5477         2010-03-24 Fix glob with empty pattern
5478         2008-05-27 Remove useless more "if" tests before "free"
5479         * modules/glob (Depends-on): Add stdint.
5481 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5483         mktime: port to stricter signed overflow checking
5484         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
5485         (long_int): Require width for INT_MAX * 3 * (seconds per year),
5486         instead of merely for INT_MAX * 2.  In practice platforms that
5487         do the latter also do the former.
5488         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
5489         (shr): New static function, replacing SHR.  All uses changed.
5490         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
5491         and TIME_T_MAX.  All uses changed.
5492         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
5493         Use long_int, not time_t.
5494         (long_int_avg): New static function, replacing time_t_avg.
5495         All uses changed.  Round toward positive infinity, as that
5496         generates slightly better code.
5497         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
5498         by INT_ADD_WRAPV.
5499         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
5500         (convert_time): New static function.
5501         (ranged_convert): Use it
5502         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
5503         Use simpler test for loop exit.
5504         (__mktime_internal): Store negative of guessed offset, to simplify
5505         overflow checking.  Remove no-longer-needed test for small time_t
5506         overflows.
5508         mktime: speed up DEBUG_MKTIME benchmarks
5509         Call tzset just once, at the start, rather than for every test
5510         case.  This lets us measure the CPU cost of mktime as opposed to
5511         that of tzset.  This is relevant when TZ is not set and glibc is
5512         being used.  This speeds up tests by a factor of 40 on my Fedora
5513         23 x86-64 platform.
5514         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
5515         to call tzset and as a sanity check.  Later on, use localtime_r
5516         instead of localtime.
5518         mktime: resurrect DEBUG_MKTIME testing
5519         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
5520         Include <string.h>, for strcmp.
5522         mktime: simplify DEBUG_MKTIME
5523         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
5524         Simplify later usage accordingly.
5526         Port mktime_internal offset to unsigned time_t
5527         This avoids some assumptions about wraparound arithmetic on
5528         signed integer overflow.
5529         * lib/mktime-internal.h (mktime_offset_t): New type.
5530         (mktime_internal): Use it in decl.
5531         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
5533         * lib/mktime.c (__mktime_internal, localtime_offset):
5534         * lib/timegm.c (timegm): Use it.
5535         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
5536         (gl_FUNC_MKTIME): Require it.
5538 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
5540         xstrtol: prohibit monstrosities like "1bB"
5541         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
5542         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
5543         "B" only if the first suffix needs a base.
5544         * tests/test-xstrtol.sh: Test this.
5546 2016-04-21  Pádraig Brady  <P@draigBrady.com>
5548         xstrtod: reinstate setting of *result upon ERANGE
5549         * lib/xstrtod.c (XSTRTOD): The user may decide to use
5550         the returned limits upon ERANGE, so allow and document that.
5552 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
5554         xstrtod: modify *result only if no errors
5555         * lib/xstrtod.c (XSTRTOD).
5557 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
5559         btowc: document problems in C locale
5560         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
5561         with mbrtowc.  See: http://bugs.gnu.org/23269#32
5563 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
5565         mktime: improve integer overflow checking
5566         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
5567         (WRAPV): Remove; no longer needed.
5568         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
5569         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
5570         Remove.  Use intprops.h defns instead.
5571         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
5572         Use bool for Boolean, for clarity.
5573         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
5574         detect integer overflow.
5575         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
5577         intprops: check two's complement assumption
5578         Suggested by Eric Blake in:
5579         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00016.html
5580         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
5581         short, int, long, and (if available) long long are two's complement.
5582         * modules/intprops (Depends-on): Add 'verify'.
5584         intprops, mktime, strtol: assume two's complement
5585         These macros were not portable to every conforming C11 ones'
5586         complement platform.  It's not worth the hassle of porting to some
5587         platforms that use ones' complement or signed magnitude, as such
5588         platforms are almost purely theoretical nowadays and porting even
5589         to some of them makes the code harder to review for little
5590         practical benefit.  Problem reported by Florian Weimer in:
5591         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
5592         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
5593         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
5594         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
5595         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
5596         (TYPE_SIGNED_MAGNITUDE):
5597         Remove.  All uses rewritten to assume two's complement, which is
5598         all we can reasonably test nowadays anyway.
5599         * top/maint.mk (_intprops_names): Remove the removed macros.
5601 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
5603         stdint: port to strict C11 left shift
5604         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
5605         Pacify clang -Wshift-negative-value, which should be an issue only
5606         on clang setups where stdint.h does not conform to C11 or to C++11.
5607         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
5609 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
5611         mbrtowc: work around glibc bug#19932
5612         Fix mbrtowc so that it never returns -1 in the C locale,
5613         as this conflicts with a future version of POSIX
5614         http://austingroupbugs.net/view.php?id=663#c2738
5615         and causes problems with GNU grep: http://bugs.gnu.org/23234
5616         See glibc bug 19932:
5617         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
5618         * doc/posix-functions/mbrlen.texi (mbrlen):
5619         * doc/posix-functions/mbrtowc.texi (mbrtowc):
5620         Document the glibc bug.
5621         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
5622         Include hard-locale.h, locale.h.
5623         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
5624         if the bug is possible.
5625         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
5626         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
5627         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
5628         * modules/mbrtowc (Depends-on): Add hard-locale.
5629         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
5630         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
5631         * tests/test-mbrtowc5.sh: New file.
5633 2016-04-03  Pedro Alves  <palves@redhat.com>
5635         stdint: detect good enough pre-C++11 stdint.h in C++ mode
5636         When gnulib is configured in C++ mode for a system with a working C99
5637         implementation of stdint.h that predates C++11, gnulib ends up
5638         substituting stdint.h anyway.  This works on most targets, but on e.g.,
5639         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
5640         MinGW is LLP64.  Instead of trying to detect the right types, detect
5641         good-enough-pre-C++11 stdint.h and in such case define
5642         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
5643         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
5644         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
5645         conforms to C99.  If it does, check whether it hides symbols
5646         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
5647         does, define those macros in config.h.
5649 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
5651         argp: merge changes from glibc
5652         Among other things, this should fix problems found by a Coverity
5653         scan and reported by Andrei Borzenkov:
5654         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00015.html
5655         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00016.html
5656         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
5657         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
5658         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
5659         * lib/argp.h:
5660         Merge changes from glibc.
5661         * tests/test-argp-2.sh: Adjust to match new behavior.
5663 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
5665         stddef: support configuring with g++
5666         Problem reported by Ángel González in:
5667         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00003.html
5668         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
5669         Do not define if _GCC_MAX_ALIGN_T is defined.
5671 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
5673         test-framework-sh: minor cleanups
5674         * tests/init.sh (testdir_prefix_): Output a trailing newline,
5675         since strictly speaking POSIX requires this.
5676         (setup_): Do not use the variable 'fail', as that makes the
5677         trace output harder to read ('fail' is typically used by
5678         tests to mean the test failed).  Treat // portably.
5679         Check that new directory is not merely a sibling of the tmp dir.
5680         Avoid unnecessary invocation of tr.
5682         test-framework-sh: revert port to NetBSD 7.0
5683         It was a false alarm; I misinterpreted Assaf Gordon's report.
5684         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
5685         Restore.
5686         (test_dir_): Adjust to mktempd_ change.
5687         (mktempd_): Restore 2nd arg.  Use -t again.
5688         (base_template_, template_, nx_): Resurrect old code.
5690         Port better to Alpine Linux
5691         Its diff implementation does not support -c, but does support -U3.
5692         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
5693         * tests/init.sh (diff_opt_): New var.
5694         (compare_): Prefer diff -U3 to diff -c to plain diff.
5696 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5698         test-framework-sh: port to NetBSD 7.0
5699         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
5700         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
5701         Remove.  All uses removed.
5702         (test_dir_): Adjust to mktempd_ change.
5703         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
5704         (base_template_, template_, nx_): Simplify by hardcoding.
5706 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
5708         gitlog-to-changelog: suppress ignored chatter
5709         * build-aux/gitlog-to-changelog: Do not warn about skipping
5710         an SHA if it would have been ignored anyway.
5712 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
5714         setlocale: add "sv" to Windows language table
5715         * lib/setlocale.c (language_table) [W32]: Add "sv".
5716         Reported in <https://savannah.gnu.org/bugs/?44588>.
5718 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
5720         sys_select: port to new Cygwin
5721         Problem reported by Ken Brown in:
5722         https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
5723         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
5724         diagnostics.
5726 2016-03-17  Jim Meyering  <meyering@fb.com>
5728         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
5729         * tests/test-userspec.c (main): Remove unnecessary braces and fix
5730         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
5731           test-userspec.c:176:9: error: statement is indented as if it were \
5732             guarded by... [-Werror=misleading-indentation]
5733                    {
5734                    ^
5735           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
5736                  if (!diag && !T[i].result)
5737                  ^~
5739 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
5741         time_rz: port to clang -Wunused-const-variable
5742         * lib/time_rz.c (TZ): Remove.  All uses removed.
5744         std-gnu11: improve clang support
5745         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
5746         2016-03-15 Also try clang
5747         2016-03-15 Port C11 and C++11 testing to clang
5749         select: port more to Intel 2016.1.150 compiler
5750         Problem reported by Balázs Hajgató in:
5751         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
5752         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
5754 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
5756         select: try to port to 2016.1.150 compiler
5757         Problem reported by Balázs Hajgató in:
5758         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html
5759         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
5760         POSIX specifies 'restrict'.
5762 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
5764         localename-tests: memory allocation fixes
5765         * tests/test-localename.c (test_locale_name)
5766         (test_locale_name_thread): Don't call freelocale on a locale
5767         that was the base of a successful newlocale, as that
5768         results in a double free.  Problem reported by Assaf Gordon.
5769         (test_locale_name_thread): Free saved names after use, to pacify
5770         gcc -fsanitize=address.
5772 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5774         intprops: make .h file license match module
5775         * lib/intprops.h: Change the license wording to match glibc format.
5776         This is what is in modules/intprops anyway.  See:
5777         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
5779 2016-03-08  Eric Blake  <eblake@redhat.com>
5781         acl: fix missing return on Cygwin
5782         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
5783         fall off end of function. Fixes http://bugs.gnu.org/22949
5785 2016-03-05  Bruno Haible  <bruno@clisp.org>
5787         extern-inline: port to PGI CC
5788         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
5789         keyword 'inline'.
5790         Reported by Adam James Stewart in:
5791         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html
5793 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5795         signbit: port back to pre-C++11 GCC
5796         * lib/math.in.h (signbit): Do previous change only if
5797         __cplusplus < 201103.  See Jonathan Wakely in:
5798         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
5800 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
5802         mountlist: recognize autofs-mounted remote file systems, too
5803         Originally reported at: https://bugzilla.redhat.com/1309247
5804         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
5805         "-hosts" because it is used by autofs to mount remote file systems.
5807 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5809         signbit: port to C++ with GCC 6
5810         * lib/math.in.h (signbit) [__cplusplus]:
5811         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
5812         http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html
5814         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
5816         regex: make it closer to libc
5817         Make Idx a signed type, rather than possibly unsigned.
5818         The unsignedness was not really buying us anything, since the code
5819         overflows for other reasons before getting to PTRDIFF_MAX.  Making
5820         it signed allows us to use -1 and -2 with abandon, like libc does,
5821         thus lessening the number of differences between gnulib and libc.
5822         Also, it should help avoid gratuitous warnings like the one
5823         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
5824         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
5827         regex: merge patches from libc
5829         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
5830         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
5831         Convert miscellaneous function definitions to prototype style.
5832         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
5833         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
5834         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
5835         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
5836         (re_search_internal):
5837         Convert to prototype-style function definition.
5838         Use internal_function for internal functions.
5840 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
5842         stdalign: port to older HP and IBM cc
5843         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
5844         C compilers, by checking their version numbers.  These version
5845         numbers appear in MariaDB and in Qt code that dates way back and
5846         that conditiionally uses the 'aligned' attribute.
5848 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5850         stdalign: port to clang 3.7.0
5851         Problem reported by Herbert J. Skuhra in:
5852         http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html
5853         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
5854         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
5855         https://llvm.org/bugs/show_bug.cgi?id=26547
5857 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5859         readdir_r: now obsolescent
5860         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
5861         * lib/mountlist.c (read_file_system_list): Add a FIXME.
5863 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5865         misc: port better to gcc -fsanitize=address
5866         Without these patches, ./configure CFLAGS='-fsanitize=address'
5867         would compute incorrect values.  This patch fixes some (but not all)
5868         test failures with recent glibc, with this configuration.
5869         * m4/acl.m4 (gl_ACL_GET_FILE):
5870         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
5871         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
5872         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
5873         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
5874         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5875         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5876         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
5877         * m4/getline.m4 (gl_FUNC_GETLINE):
5878         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
5879         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
5880         * m4/regex.m4 (gl_REGEX):
5881         * m4/strndup.m4 (gl_FUNC_STRNDUP):
5882         * tests/test-calloc-gnu.c (main):
5883         * tests/test-duplocale.c (main):
5884         * tests/test-getgroups.c (main):
5885         * tests/test-getline.c (main):
5886         * tests/test-inttostr.c (main):
5887         * tests/test-localename.c (test_locale_name)
5888         (test_locale_name_thread, test_locale_name_environ)
5889         (test_locale_name_default):
5890         * tests/test-regex.c (main):
5891         * tests/test-setlocale1.c (main):
5892         * tests/test-stat.h (test_stat_func):
5893         Free heap-allocated storage before exiting.
5894         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
5895         Don't match *_foo symbols inserted by AddressSanitizer.
5896         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
5898 2016-02-02  Jim Meyering  <meyering@fb.com>
5900         verify-tests: also remove stray test-verify.Tpo
5901         * modules/verify-tests (Makefile.am): Arrange for "make clean"
5902         to remove the test-verify.Tpo file that is left behind by
5903         the automake-generated rule upon compilation failure.
5904         Otherwise, that .Tpo file would cause a failed "make distcheck"
5905         at least for grep.
5907 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
5909         std-gnu11: new module
5910         This makes it easier for applications to prefer C11 and C++11
5911         to older variants, when compiling C and C++ code.
5912         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
5913         a nontrivial chunk of GPLed Autoconf source code.
5914         * COPYING: Mention the m4/*.m4 copyright situation.
5915         * MODULES.html.sh (std-gnu11): New module.
5916         * m4/std-gnu11.m4, modules/std-gnu11: New files.
5918 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5920         get-permissions, strftime: fix grammar in comments
5921         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
5922         some grammar fixes Alan Mackenzie made to GNU Emacs.
5924 2016-01-25  Daiki Ueno  <ueno@gnu.org>
5926         gettext: mark as obsolete
5927         Suggested by Paul Eggert in:
5928         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00101.html
5929         * modules/gettext (Status): Mark as obsolete.
5930         (Notice): Suggest to use 'gettext-h' instead.
5931         * modules/gettext-h (Description): Suggest GNU gettext, instead of
5932         the 'gettext' module.
5934 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5936         gnulib-tool: don't give up on ln -s so easily
5937         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
5938         because an earlier one failed.  The targets could be on different
5939         file systems.  Problem reported by KO Myung-Hun in:
5940         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00081.html
5942         closedir: fix OS/2-related typos
5943         Problem reported by KO Myung-Hun in:
5944         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00107.html
5945         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
5946         in the last couple of changes.
5948 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
5950         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
5951         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
5952         copying a directory.
5954 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5956         regex: treat [x] as x if x is a unibyte encoding error
5957         Problem reported by Aharon Robbins in:
5958         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00091.html
5959         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
5960         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
5962         closedir, dirfd, opendir: port to OpenSolaris 5.10
5963         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
5964         * m4/dirfd.m4 (gl_FUNC_DIRFD):
5965         * m4/opendir.m4 (gl_FUNC_OPENDIR):
5966         Don't use ${word##pat} substitution, as it doesn't work in
5967         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
5968         http://bugs.gnu.org/22443#11
5970 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5972         bootstrap: use American spelling
5973         * build-aux/bootstrap: Honor American spelling.
5975 2016-01-22  Karl Berry  <karl@freefriends.org>
5977         * doc/posix-functions/localtime.texi,
5978         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
5980 2016-01-21  Bruno Haible  <bruno@clisp.org>
5982         hash-pjw-bare: fix comment
5983         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
5985         wcwidth: Replace also on OpenBSD 5.8
5986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
5987         * doc/posix-functions/wcwidth.texi: Update.
5989 2016-01-20  Pádraig Brady  <P@draigBrady.com>
5991         gnu-web-doc-update: fix addition of new files
5992         If there were already added (emnpty) dirs,
5993         then cvs aborts the add with the message:
5994           cvs [add aborted]: there is a version in <./dirname> already
5995         * build-aux/gnu-web-doc-update: Add directories separately
5996         to the addition of files, to avoid the above issue
5997         impacting the addition of files.
5999 2016-01-19  Daiki Ueno  <ueno@gnu.org>
6001         utimens-tests: avoid pulling gettext .m4 files
6002         Although this is not the right fix to the original problem:
6003         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html
6004         it makes it possible again for consumer projects to use arbitrary
6005         version of gettext, through the steps described at:
6006         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
6007         See here for details:
6008         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00079.html
6009         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
6010         'gettext'.
6011         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
6012         'gettext'.
6014 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6016         regex: pacify static checkers
6017         Problem and draft fix reported by Aharon Robbins in:
6018         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
6019         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
6020         Clear memory to pacify static checkers.
6022         regex: fix [ diagnostic
6023         Problem and fix reported by Aharon Robbins in:
6024         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
6025         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
6027         regex: fix memory leaks
6028         Problem and draft fix reported by Aharon Robbins in:
6029         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
6030         * lib/regcomp.c (build_range_exp, build_charclass_op)
6031         * lib/regex_internal.c (re_dfa_add_node):
6032         Fix memory leak on failure.
6034 2016-01-18  Pádraig Brady  <P@draigBrady.com>
6036         fts: don't unconditionally use leaf optimization for NFS
6037         NFS st_nlink are not accurate on all implementations,
6038         leading to aborts() if that assumption is made.
6039         See <https://bugzilla.redhat.com/1299169>
6040         * lib/fts.c (leaf_optimization_applies): Remove NFS from
6041         the white list, and document the issue.
6043 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6044             KO Myung-Hun  <komh@chollian.net>
6046         gnulib-tool: don't assume ln -s works
6047         * gnulib-tool (func_ln_s): New function.
6048         (func_ln): Use it.
6050 2016-01-15  KO Myung-Hun  <komh@chollian.net>
6052         utimes: detect utimes() correctly on OS/2 kLIBC
6053         utimes() of OS/2 kLIBC has some limitations.
6054         1. OS/2 itself supports a file date since 1980 year in local time.
6055         2. OS/2 itself supports only even seconds for a file time.
6056         3. utimes() of OS/2 kLIBC does not work on an opened file.
6057         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
6058         * doc/posix-functions/utimes.texi: Document the above limitations of
6059         utimes() on OS/2 kLIBC.
6061 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6062             KO Myung-Hun  <komh@chollian.net>
6064         openat_proc_name: port to OS/2 kLIBC
6065         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
6066         instead of /proc/self/fd.
6067         * lib/openat-proc.c (openat_proc_name):
6068         Don't assume file name length is less than INT_MAX.
6069         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
6071 2016-01-14  KO Myung-Hun  <komh@chollian.net>
6073         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
6074         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
6075         definitions of intptr_t and uintptr_t (which use int and unsigned)
6076         to avoid clashes with declarations of system functions like sbrk.
6077         * lib/stdint.in.h (intptr_t, uintptr_t): Check
6078         _INTPTR_T_DECLARED before defining them.
6080         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
6081         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
6082         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
6083         Declare on kLIBC.
6084         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
6085         fd associated with dirp.
6086         (_gl_register_dirp_fd): New. Register fd associated with dirp to
6087         dirp_fd_list.
6088         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
6089         (dirfd): Implemented for kLIBC.
6090         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
6091         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
6092         succeeds.
6093         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
6094         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6095         (REPLACE_DIRFD): Define to 1 if replaced.
6096         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
6097         * modules/closedir (Depends-on): Add dirfd.
6098         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
6099         condition.
6100         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
6101         * modules/opendir (Depends-on): Add dirfd.
6103         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
6104         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
6105         * lib/dup.c (dup_nothrow): New.
6106         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
6107         (klibc_dup2): New.
6108         * lib/fcntl.c (klibc_fcntl): New.
6109         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
6110         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
6111         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
6112         fd.
6114         pipe_filter_ii_execute: port to OS/2 kLIBC
6115         Pipes on kLIBC do not support O_NONBLOCK like Win32.
6116         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
6117         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
6118         Reuse Win32 code on OS/2 kLIBC.
6119         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
6120         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
6122         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
6123         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
6124         static inline function.  The implementation of wcwidth in wcwidth.c
6125         causes a "conflicting types" error.
6126         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
6128         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
6129         spawn() on OS/2 kLIBC is not silly like one on Windows
6130         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
6131         empty string on OS/2 kLIBC.
6133         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
6134         On OS/2 kLIBC, select() works only on sockets.
6135         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
6137         binary-io: don't put fd in binary mode if it is a console on EMX
6138         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
6139         a console on EMX.
6141 2016-01-15  Pádraig Brady  <P@draigBrady.com>
6143         doc: mention unfixed issues with unsupported localtime() values
6144         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
6145         returns nonsense for localtime(2^56).
6146         * doc/posix-functions/localtime_r.texi: Likewise.
6148 2016-01-14  Pádraig Brady  <P@draigBrady.com>
6150         doc: mention setlocale() issues on OpenBSD
6151         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
6152         never fails, and the need to check categories individually.
6154 2016-01-14  Pádraig Brady  <P@draigBrady.com>
6156         sig2str: list all signals on FreeBSD >= 7
6157         FreeBSD >= 7 is contravening POSIX by not defining NSIG
6158         to the maximal statically defined signal value.
6159         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
6160         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
6161         where available, even when NSIG is defined.
6163 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
6165         acl-permissions: port to USE_ACL==0 platforms
6166         I ran into this problem when building bleeding-edge GNU Emacs
6167         with gcc -fsanitize=address on Fedora 23.  On this platform
6168         the ACL library does not pass the 'configure' test and Emacs
6169         then does not build due in part to what appear to be typos in the
6170         ACL part of Gnulib.
6171         * lib/acl-internal.c (free_permission_context):
6172         * lib/acl-internal.h (struct permission_context):
6173         Test whether USE_ACL is nonzero, not whether it is defined.
6175 2016-01-12  Martin Sebor  <msebor@redhat.com>
6177         mktime: rename macro to avoid glibc clash
6178         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
6179         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
6181 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
6183         Port "$@" to OpenIndiana ksh93
6184         In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
6185         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
6186         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
6187         bug long-dead shells, so remove the workaround.
6188         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
6189         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
6190         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
6191         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
6192         Use "$@" instead of ${1+"$@"}.
6194         Port Universal Time settings to strict POSIX
6195         * build-aux/announce-gen, build-aux/bootstrap:
6196         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
6197         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
6198         * build-aux/gnupload, build-aux/mkinstalldirs:
6199         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
6200         * build-aux/update-copyright, build-aux/useless-if-before-free:
6201         * build-aux/vc-list-files, tests/test-strftime.c:
6202         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
6203         but POSIX says the behavior of TZ="UTC" is undefined.
6205 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6207         msvc-inval: fix problem with unset shell var
6208         Problem reported by Karl Berry in:
6209         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00004.html
6210         * modules/msvc-inval (Depends-on):
6211         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
6212         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
6214 2016-01-01  Pádraig Brady  <P@draigBrady.com>
6216         tests: for compare_(), use cmp -s where available
6217         * tests/init.sh (compare_): Only fall back to cmp without
6218         the POSIX defined -s option, where this is not available.
6220 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6222         version-etc: new year
6223         * build-aux/gendocs.sh (version):
6224         * doc/gendocs_template:
6225         * doc/gendocs_template_min:
6226         * doc/gnulib.texi:
6227         * lib/version-etc.c (COPYRIGHT_YEAR):
6228         Update copyright dates by hand in templates and the like.
6229         * all files: Run 'make update-copyright'.
6231 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6233         human: fix output buffer overrun by 1
6234         * lib/human.c (human_readable): Fix off-by-one typo in buffer
6235         calculation that could lead to a one-byte buffer overrun.
6237 2015-12-28  Daiki Ueno  <ueno@gnu.org>
6239         maint: fix operator precedence in mbrtowc test
6240         This is a fix for test breakage introduced by commit 45228d96; the
6241         equality expression must be parenthesized when negated with '!',
6242         otherwise we always get:
6244           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
6246         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
6247         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
6249 2015-12-23  James Youngman  <jay@gnu.org>
6251         regexprops-generic: update from regex.h
6252         * doc/regexprops-generic.texi: update by running the regexprops binary
6253         from findutils (the command line is 'regexprops "Regular Expressions"
6254         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
6255         gnulib with GNU grep had made this document out-of-date.
6257 2015-12-23  Pádraig Brady  <P@draigBrady.com>
6259         strftime-tests: avoid false failure on OS X
6260         * tests/test-strftime.c (struct localtime_rz_test): Add an
6261         ahistorical member which is used to warn rather than fail
6262         when tm_isdst isn't set for such entries.  This is the case for
6263         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
6265 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
6267         fts: ensure leaf optimization is used for NFS
6268         NFS provides usable dirent.d_type but not necessarily for all entries
6269         of large directories.  See <https://bugzilla.redhat.com/1252549>
6270         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
6272 2015-12-20  Pádraig Brady  <P@draigBrady.com>
6274         fts: enable leaf optimization for XFS
6275         XFS provides usable dirent.d_type only for DT_DIR,
6276         but the noleaf optimization still applies.
6277         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
6279 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6281         intprops: comment fix
6282         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
6283         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00013.html
6285         intprops-test: work around GCC bug 68971
6286         Problem reported by Pádraig Brady in:
6287         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00011.html
6288         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
6289         (main): Add a case that better tests 64-bit long in this area.
6291 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
6293         gnulib-tool: allow multiple --local-dir usage
6294         * gnulib-tool: Use --local-dir to construct compound
6295         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
6296         PATH_SEPARATOR early.
6297         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
6298         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
6299         func_determine_path_separator because that needs to be detected
6300         earlier now.
6301         (func_determine_path_separator): New function.
6302         (func_path_foreach, func_path_foreach_inner): New functions.
6303         (func_path_prepend, func_path_append): Likewise.
6304         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
6305         (func_lookup_file, func_all_modules): Use new functions to work
6306         with local_gnulib_path.
6307         (func_modules_in_dir, func_exists_module): New callbacks for
6308         func_path_foreach.
6309         (func_exists_module, func_get_tests_module): Likewise.
6310         (func_is_local_file, func_should_symlink): New helper methods.
6311         (func_add_file, func_update_file): Use new func_should_symlink
6312         instead, DRY.
6313         (func_reconstruct_cached_local_gnulib_path): New helper.
6314         (func_reconstruct_cached_dir): New callback.
6315         (func_import): The cached_local_gnulib_dir renamed to
6316         cached_local_gnulib_path similarly to local_gnulib_dir.
6317         Use new func_reconstruct_cached_local_gnulib_path.
6318         (func_count_relative_local_gnulib_path): New sub-method.
6319         (func_create_testdir): Use func_should_symlink, DRY.
6320         (func_create_megatestdir): Use new functions to work with
6321         local_gnulib_path correctly.
6322         (func_append_local_dir): New helper.
6324 2015-12-08  Pádraig Brady  <P@draigBrady.com>
6326         fix freadptr to work with ungetc on all uClibc configs
6327         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
6328         where GNU coreutils cut(1) generates invalid output on uClibc
6329         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
6330         * lib/freadptr.c (freadptr): Return NULL if there are
6331         ungotten chars.  In this case freadseek() will iterate
6332         again to process the ungotten character.
6334 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
6336         xalloc-oversized: improve performance with GCC 5
6337         * lib/xalloc-oversized.h (xalloc_oversized):
6338         Improve performance with GCC 5 by using __builtin_mul_overflow.
6340 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
6342         intprops: new public macro EXPR_SIGNED
6343         Emacs can use this macro, so make it public.
6344         * doc/intprops.texi (Arithmetic Type Properties): Rename from
6345         'Integer Type Determination', since some of these macros apply
6346         to non-integer types.  Clarify what kinds of constant expressions
6347         these macros return.  Say when the arguments can be non-integers.
6348         Mention newly published macro EXPR_SIGNED.
6349         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
6350         make it public.  All uses changed.
6352         intprops: fix typo in clang port
6353         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
6354         '__builtin_add_overflow' that is not caught by compiler.
6356 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
6358         test-timespec: fix typo in previous change
6359         * tests/test-timespec.c (main): Fix typo that reduced test quality.
6361         timespec-sub: fix overflow bug; add tests
6362         * lib/timespec-add.c (timespec_add):
6363         * lib/timespec-sub.c (timespec_sub):
6364         Work even if time_t is narrower than int (a theoretical
6365         possibility).  Redo code for a bit more clarity.
6366         * lib/timespec-sub.c (timespec_sub):
6367         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
6368         * modules/timespec-tests, tests/test-timespec.c: New files.
6370         intprops-test: suppress -Woverlength-strings
6371         Problem reported by Pádraig Brady in:
6372         http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html
6373         It is not worth the hassle to port this test to compilers that
6374         cannot handle long strings in diagnostics.
6375         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
6377 2015-11-03  Pádraig Brady  <P@draigBrady.com>
6379         quotearg: add quotearg_n_style_colon()
6380         This quotes with default options of the specified style,
6381         but with quoting enabled for instances of ':'.
6382         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
6383         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
6385 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6387         intprops: revise _WRAPV macros, revert _OVERFLOW
6388         The incompatible changes to the _OVERFLOW macros were too much of
6389         a hassle in practice, so revert them.  Instead, change the new
6390         _WRAPV macros to make them closer in behavior to GCC 5's new
6391         builtin_add_overflow etc. functions.  No other software was using
6392         these newly-added macros yet, so this should be OK.
6393         * NEWS: Revert previous change, since the incompatible change
6394         has been reverted, and nobody used the incompatible version.
6395         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
6396         Document revised behavior.
6397         (Integer Range Overflow): Adjust example to match above revisions.
6398         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
6399         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
6400         these can be used in integer constant expressions again.
6401         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
6402         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
6403         needed.
6404         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
6405         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
6406         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
6407         Remove, as they did not seem that useful.
6408         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
6409         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
6410         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
6411         Support new semantics.
6412         (__has_builtin): New macro, if not alreay defined.
6413         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
6414         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
6415         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
6416         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
6417         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
6418         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
6419         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
6420         New macros.
6421         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
6423 2015-11-03  Jim Meyering  <meyering@fb.com>
6425         intprops: add parentheses for when OP has precedence lower than "-"
6426         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
6427         "a OP b" must be parenthesized for when OP is like "<<", which has
6428         lower precedence than the following "-". Reported by Pádraig Brady.
6430 2015-11-03  Pádraig Brady  <P@draigBrady.com>
6432         quotearg: constify get_quoting_style parameters
6433         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
6434         * lib/quotearg.c (get_quoting_style): Likewise.
6436 2015-11-02  Pádraig Brady  <P@draigBrady.com>
6438         quotearg: add support for $'' shell escaping
6439         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
6440         items and descriptions.
6441         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
6442         above types by quoting like "shell", but using $'...' syntax
6443         for non printable characters, which should provide unambiguous
6444         printable output for any input.
6445         * tests/test-quotearg-simple.c: Update accordingly.
6447 2015-11-02  Pádraig Brady  <P@draigBrady.com>
6449         maint: use a more standard return from mbrtowc test
6450         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
6451         from the test program as this is non standard and often
6452         indicates an unhandled case in the test program.
6453         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
6455 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
6457         intprops: add WRAPV and const flavors for GCC 5
6458         If available, use GCC 5's builtin functions for efficient integer
6459         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
6460         and safely compute the low-order bits of the correct answer.
6461         A downside of these efficient functions is that they cannot be
6462         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
6463         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
6464         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
6465         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
6466         Document the changes.
6467         (Wraparound Arithmetic): New section.
6468         (Integer Range Overflow):
6469         Put this subsection last, since it's least useful.
6470         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
6471         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
6472         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
6473         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
6474         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
6475         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
6476         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
6477         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
6478         New macros.
6479         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6480         Generate calls to GCC builtins if available, for speed.
6481         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
6482         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
6483         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
6484         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
6485         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
6486         (CHECK_QUOTIENT, CHECK_REMAINDER):
6487         Test WRAPV and CONST flavors (when available) too.
6489 2015-10-30  Pádraig Brady  <P@draigBrady.com>
6491         doc: use extended timezone format in iso-8601 example
6492         * doc/parse-datetime.texi: The standard states that extended format
6493         is to be used consistently throughout.
6494         Note that lib/parse-datetime.y can handle either tz format.
6496 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6498         stdalign: port to Sun C 5.9
6499         * doc/posix-headers/stdalign.texi: Document this.
6500         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
6501         __attribute__ ((__aligned__ (...))).
6503 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
6505         time_rz: fix comment about tzalloc
6506         * lib/time_rz.c (tzalloc): Fix comment.
6508 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
6510         stdalign: work around pre-4.9 GCC x86 bug
6511         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
6512         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
6513         http://lists.gnu.org/archive/html/bug-gnulib/2015-10/msg00038.html
6515 2015-10-18  Pádraig Brady  <P@draigBrady.com>
6517         maint.mk: sc_tight_scope: remove extraneous expressions
6518         * top/maint.mk (tight_scope): This is not really required since
6519         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
6520         that matches all nm entries.  But it does remove extraneous entries
6521         that may be confusing or cause issue in future maintenance.
6523 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
6525         time_rz: return NULL if localtime_r fails
6526         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
6527         while still attempting to pacify bleeding-edge GCC.
6529         fts: port to C11 alignof
6530         * doc/posix-headers/stdalign.texi (stdalign.h):
6531         Document the C11 restriction.
6532         * lib/fts.c: Include stddef.h, for max_align_t.
6533         (fts_alloc): Align using max_align_t, not FTSENT.
6534         * modules/fts (Depends-on): Add stddef.
6536 2015-10-18  Jim Meyering  <meyering@fb.com>
6538         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
6539         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
6540         would see this:
6542         lib/time_rz.c: In function 'localtime_rz':
6543         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
6544           [-Werror=nonnull]
6545                    if (tm && !save_abbr (tz, tm))
6546                        ^
6548         That was complaining about "tm" because it is a parameter that was
6549         declared with the __nonnull__ attribute.
6550         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
6551         result of localtime_r.
6553 2015-10-17  Jim Meyering  <meyering@fb.com>
6555         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
6556         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
6557         name-extraction regexp mistakenly used \S+, and would mistakenly
6558         extract "*F" from "extern int *F()" rather than the desired "F".
6559         Use \w+ instead.
6561 2015-10-17  Jim Meyering  <meyering@fb.com>
6563         maint.mk: sc_tight_scope: factor and support OS X
6564         * top/maint.mk (_gl_tight_scope): Address three issues:
6565         - factor out four instances of code that wraps a string in "^...$"
6566         - allow nm-reported symbol names to have an optional leading "_"
6567         - add "main" to the list of ignored variable names, because on os x,
6568         "main" has nm-reported type "S" in the variable-checking section.
6570 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
6572         safe-alloc-tests: fix typo in license header
6573         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
6575 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
6577         copy-file: fix mem leak in error case
6578         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
6579         upon error opening or performing I/O to the src and dest files.
6581 2015-10-15  Mike Frysinger  <vapier@chromium.org>
6583         localename: control langinfo.h inclusion
6584         This header is only used to work around buggy behavior in old
6585         versions of glibc, so do not include it all the time.  Otherwise
6586         we get build failures on systems that do not provide langinfo.h.
6587         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
6588         in the source later on.
6589         The patch was originally submitted to gettext as:
6590         https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00011.html
6592 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6594         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
6595         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
6596         * lib/u64.c, lib/unistd.c:
6597         Append 'typedef int dummy;', to pacify compilers that are picky
6598         about empty translation units.
6600 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
6602         accept4-tests: fix to avoid non portable flags
6603         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
6604         as they are the only documented ones, and passing others may trigger
6605         EINVAL (seen on FreeBSD 10.1-RELEASE).
6606         * doc/glibc-functions/accept4.texi: Mention that we don't provide
6607         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
6609 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
6611         gnulib-tool: fix tests of 'extensions' module
6612         This complements f8fe25fab60e3c687a124 commit.
6613         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
6614         emitting of initial gl_EARLY macros.
6615         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
6616         replaced with func_emit_pre_early_macros call.
6618 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
6620         unicase/locale-language: fix typo in utf-8 cookie
6621         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
6622         Problem reported by Zbigniew Jędrzejewski-Szmek.
6624 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
6626         xalloc: do not worry about GCC 5 warning on 32 bit
6627         * lib/xalloc.h: Revert previous change.
6628         I found a better way to fix this in coreutils.
6630 2015-10-02  Pádraig Brady  <P@draigBrady.com>
6632         xalloc: avoid GCC 5.1 warning on 32 bit
6633         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
6634         xalloc_oversized(), which was seen to give this warning
6635         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
6636         when simplifying conditional".
6638 2015-10-02  Daiki Ueno  <ueno@gnu.org>
6640         uniname/uniname-tests: avoid compiler warnings
6641         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
6642         unused local variables.
6643         (test_alias_lookup): Fix alias name display in failure cases.
6645 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6647         c-ctype: do not worry about EBCDIC + char signed
6648         Drop support for EBCDIC with char being signed, as this breaks too
6649         many programs.  Problem reported by Ben Pfaff in:
6650         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00053.html
6651         * lib/c-ctype.h: Verify that we are not using EBCDIC with
6652         char being signed.
6653         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
6654         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
6655         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
6656         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
6657         * tests/test-c-ctype.c (test_all):
6658         Simplify by assuming standard char values cannot be negative.
6659         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
6661 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
6663         c-ctype: port better to z/OS EBCDIC
6664         Problems reported by Daniel Richard G. in:
6665         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00050.html
6666         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
6667         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
6668         (_C_CTYPE_OTHER_CNTRL): New macro.
6669         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
6670         from SCHAR_MIN, as the functions are defined only from values
6671         promoted from char or from unsigned char, not necessarily from
6672         signed char.
6674 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
6676         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
6678         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
6679         and ARFLAGS variables.  Doing this unconditionally could break
6680         later Automake's AM_PROG_AR invocation (at least it's
6681         AC_CHECK_TOOLS call to detect correct 'ar' binary).
6683         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
6684         Amsterdam Compiler Kit, so make the previous code to have effects
6685         only on ACK, and rather automatically call the Automake's
6686         AM_PROG_AR as soon as possible to decide other cases.
6688         References:
6689         http://lists.gnu.org/archive/html/bug-gnulib/2015-07/msg00001.html
6691         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
6692         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
6693         is possible, keep setting AR/ARFLAGS to reasonable defaults.
6694         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
6695         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
6696         'extensions' module is used.
6697         * modules/extensions (configure.ac-early): Remove as this snippet
6698         is added to gnulib-comp.m4 earlier anyway.
6700 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
6702         sockets: MS Windows initalization fixes
6703         Problem reported by Test User in:
6704         http://lists.gnu.org/archive/html/help-shishi/2015-09/msg00001.html
6705         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
6706         Correct the endianness.
6707         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
6708         number mismatch, not just on <.  Cleanup before any such failure.
6710 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
6712         gc: fix detection of installed libgcrypt version
6713         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
6714         at least as recent as 1.4.4.  The previously used macro is not
6715         available now, since modules were removed in version 1.6.0.
6717 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
6719         c-ctype: rewrite to use inline functions
6720         This simplifies maintenance, since it makes for just one
6721         implementation of each function, letting the compiler have the fun
6722         of optimization.  In practice this works well nowadays with GCC.
6723         E.g., c_isascii might need only three instructions even though the
6724         source code lists every ASCII character individually in a large
6725         switch statement.
6726         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
6727         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00037.html
6728         * NEWS: Document the API change.
6729         * lib/c-ctype.c: Drastically simplify, since this now just expands
6730         inline functions.
6731         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
6732         (C_CTYPE_INLINE): New macro.
6733         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
6734         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
6735         Verify that either ASCII or EBCDIC is being used.
6736         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
6737         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
6738         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
6739         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
6740         New private macros.
6741         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
6742         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
6743         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
6744         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
6745         (c_tolower, c_toupper): When converting, return the unsigned char,
6746         as that is what z/OS does.
6747         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
6748         of some c-ctype.h macros.
6749         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
6750         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
6751         c_tolower promotion to be compatible with z/OS.
6753 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
6755         gitlog-to-changelog: trim only trailing whitespaces
6756         This is fix for --format regression introduced by commit
6757         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
6758         doubled %n string) had no effect anymore.  This format
6759         specification has been used e.g. by GNU paxuitils (commit
6760         edfd8bcc3).
6762         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
6763         newlines in commmit messages.
6765 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
6767         Test that c_iscntrl agrees with iscntrl, etc.
6768         Suggested by Daniel Richard G. in:
6769         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00034.html
6770         * modules/c-ctype-tests (Depends-on): Add ctype.
6771         * tests/test-c-ctype.c: Include <ctype.h>.
6772         (NCHARS): New constant.
6773         (test_agree_with_C_locale): New function.
6774         (main): Use it.
6775         (test_all): Use named constants.
6777         c-ctype: improve c_isascii testing
6778         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
6779         Add a test to count the number of ASCII characters.
6781 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
6783         savewd: remove SAVEWD_CHDIR_READABLE
6784         It was problematic in the light of file systems that ignore umask.
6785         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
6786         * NEWS: Document this.
6787         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
6788         successful, -1 (setting errno) on failure, rather than something
6789         more complicated than that.
6790         * lib/mkdir-p.c (make_dir_parents):
6791         Do not use SAVEWD_CHDIR_READABLE.
6792         * lib/savewd.c (savewd_chdir):
6793         Remove support for SAVEWD_CHDIR_READABLE.
6794         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
6796         c-ctype: port better to EBCDIC
6797         Problems reported by Daniel Richard G. in
6798         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00020.html
6799         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
6800         Include "verify.h".
6801         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
6802         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
6803         Define as enum constants with value false, if not defined, so that
6804         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
6805         code more portable, as both branches of the 'if' are compiled on
6806         all platforms.
6807         (C_CTYPE_EBCDIC): New constant.
6808         Verify that the character set is either ASCII or EBCDIC.
6809         (to_char): New static function.
6810         (c_isascii, c_iscntrl):
6811         Assume standard control-character assignments for EBCDIC.
6812         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
6813         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
6814         Rewrite to use 'if' instead of 'ifdef'.
6815         Use to_char if non-ASCII.  Prefer <= to >=.
6816         Prefer true and false to 1 and 0, for booleans.
6817         (c_iscntrl): Use 'if', not 'ifdef'.
6818         * modules/c-ctype (Depends-on): Add verify.
6819         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
6820         (to_char): New function.
6821         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
6823 2015-09-21  Pádraig Brady  <P@draigBrady.com>
6825         nanosleep: fix return code for interrupted replacement
6826         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
6827         that we return -1 in the case the call is interrupted by a signal,
6828         rather than the current value of 1.
6829         Diagnosed and tested by Daniel Richard G.
6831 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
6833         Diagnose ERE '()|\1'
6834         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
6835         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
6836         track of the set of previously-completed subexpressions available
6837         before the first alternative, and restore this set just before
6838         parsing each subsequent alternative.  This lets us diagnose the
6839         invalid back-reference in the ERE '()|\1'.
6841         regex: merge patches from libc
6843         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
6844         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
6845         * lib/regex_internal.h:
6846         Include <libc-lock.h> instead of <bits/libc-lock.h>.
6848         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
6849         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
6850         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
6851         wcscoll.
6852         * lib/regexec.c (check_node_accept_bytes): Likewise.
6854         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
6855         Fix regex wcrtomb namespace (bug 18496).
6856         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
6857         instead of wcrtomb.
6859         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
6860         Fix regex wctype namespace (bug 18495).
6861         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
6862         instead of towlower.
6863         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
6864         instead of iswlower.  Call __towupper instead of towupper.
6865         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
6866         instead of iswalnum.
6868         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
6869         * lib/regcomp.c (parse_bracket_exp): Initialize type to
6870         COLL_SYM in a couple of places to avoid uninitialized variable
6871         wanings on tilegx gcc 4.8.2.
6873         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6874         * lib/regex_internal.h: Remove NOT_IN_libc.
6876         2014-11-17  Andreas Schwab  <schwab@suse.de>
6877         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
6879         2014-09-11  Roland McGrath  <roland@hack.frob.com>
6880         Move findidx nested functions to top-level.
6881         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
6882         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
6883         Pass new arguments to findidx.
6884         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
6885         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
6886         Don't #include it inside the function.  Pass new arguments to findidx.
6887         * lib/regex_internal.h:
6888         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
6889         (re_string_elem_size_at): Don't #include it inside the function.
6890         Pass new arguments to findidx.
6892         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
6893         Check if DEBUG is defined in regex_internal.c
6894         * lib/regex_internal.c: Check if DEBUG is defined and is set.
6896 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
6898         ceill: detect buggy OpenBSD implementation
6899         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
6900         which returns zero for small values.  Discussed here:
6901         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00010.html
6903 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
6905         mountlist: add me_mntroot field on Linux machines
6906         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
6907         mount_entry so Linux machines based on /proc/self/mountinfo can
6908         distinguish between bind mounts and original mounts.  In reality bind
6909         mounts aren't treated differently than mountroot=/ mounts by the
6910         kernel, but the user often wants these bind mounts distinguished.
6911         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
6912         More details at https://pad.lv/1432871
6914 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
6916         doc: Describe to use multiple instances of gnulib
6917         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
6918         instances of gnulib with different modules can be used, for example one
6919         for a lib and another one for associated tools.
6921 2015-09-01  Pádraig Brady  <P@draigBrady.com>
6923         base32: mark function as __attribute__ const
6924         * lib/base32.h (isbase32): Mark __attribute__ const as
6925         suggested by GCC, and consistent with the base64 module.
6927 2015-08-20  Daiki Ueno  <ueno@gnu.org>
6929         gnulib-tool: don't transform binary files with sed
6930         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
6931         .mo and .class files.
6932         Reported by Denis Denisov.
6934 2015-08-10  Daiki Ueno  <ueno@gnu.org>
6936         gperf: respect silent rules
6937         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
6938         V_GPERF_0 for silent rules.
6939         * modules/iconv_open (Makefile.am): Use V_GPERF.
6940         * modules/unicase/locale-language (Makefile.am): Likewise.
6941         * modules/unicase/special-casing (Makefile.am): Likewise.
6942         * modules/unictype/category-byname (Makefile.am): Likewise.
6943         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
6944         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
6945         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
6946         * modules/unictype/property-byname (Makefile.am): Likewise.
6947         * modules/unictype/scripts (Makefile.am): Likewise.
6948         * modules/uninorm/composition (Makefile.am): Likewise.
6950 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
6952         Improve port of stdalign to C++11
6953         Problem reported by Sundaram in:
6954         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00003.html
6955         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
6956         (__alignas_is_defined): Define if C++11 or newer.
6958 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
6960         pmccabe2html: fix gawk regex escaping
6961         * build-aux/pmccabe2html: Add one more backslash to properly
6962         escape the gsub replacement value.  Fixes this error:
6963         gawk: ./build-aux/pmccabe2html:425: \
6964         warning: escape sequence `\&' treated as plain `&'
6966 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
6968         time_rz: port to pedantic memcpy
6969         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
6970         that reject memcpy (..., NULL, 0).
6972 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6974         time_rz: port better to MinGW
6975         Don't change tzname, as this makes MinGW dump core (Bug#21020).
6976         Instead, store the tzname copy in the struct tm_zone object.
6977         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
6978         * lib/strftime.c [!_LIBC]:
6979         * lib/time_rz.c: Include time-internal.h.
6980         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
6981         name from *TZ rather than from TZNAME, doable because *TZ now has
6982         a tzname_copy member.
6983         * lib/time-internal.h: New file, with contents taken from
6984         lib/time_rz.c.  It's separate because strftime.c now accesses
6985         struct tm_zone members.
6986         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
6987         New member tzname_copy.
6988         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
6989         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
6990         Initialize tzname_copy member.
6991         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
6992         in tzname_copy member.
6993         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
6994         (restore_tzname): Remove; no longer needed.  All calls removed.
6995         * modules/time_rz (Files): Add lib/time-internal.h.
6997         time: port __need_time_t to MinGW
6998         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
6999         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
7001 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7003         strftime: fix newly-introduced bug on Solaris
7004         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
7005         consistently at the start, rather than doing some of the setup at
7006         the start and some in the %Z format spec.  This is cleaner, and
7007         works better with time_rz on platforms like Solaris where struct
7008         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
7009         mktime_z and localtime_rz can mess up the tzname cache.
7011         test-strftime: test for Solaris bug
7012         * modules/strftime-tests (Depends-on): Add strerror.
7013         * tests/test-strftime.c: Include <errno.h>.
7014         (posixtm_test): New function, containing the old 'main'.
7015         (struct tzalloc_test, struct localtime_rz_test): New types.
7016         (TZ, LT): New static vars.
7017         (tzalloc_test): New function.
7018         (main): Rewrite in terms of posixtm_test and tzalloc_test.
7020         time_rz: port to Solaris etc.
7021         Works around a tzname problem on platforms like Solaris that have
7022         tzname but not tm_zone, by setting tzname at the appropriate time
7023         and restoring it later.
7024         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
7025         New static vars.
7026         (save_abbr) [HAVE_TZNAME]: Set them.
7027         (revert_tz) [HAVE_TZNAME]: Clear or use them.
7028         (restore_tzname): New function.
7029         (localtime_rz, mktime_z): Use it.
7031         time_rz: now LGPL
7032         * modules/time_rz (License): Now LGPL, because strftime depends on it.
7034         time_rz: make a constant 'const'
7035         * lib/time_rz.c (local_tz): Now const.
7037         time_rz: fix off-by-one typo
7038         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
7040 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
7042         fprintftime, strftime: use timezone_t args
7043         * NEWS: Document the change.
7044         * lib/fprintftime.h (fprintftime):
7045         * lib/strftime.c (extra_args) [my_strftime]:
7046         * lib/strftime.h (nstrftime):
7047         Time zone arg is now of type timezone_t, not int.
7048         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
7049         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
7050         (my_strftime) [emacs && !my_strftime]:
7051         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
7052         Remove; Emacs doesn't need this any more.
7053         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
7054         fprintftime and nstrftime to call tzset.
7055         (ut) [!my_strftime]: Remove, replacing with ...
7056         (tz) [!my_stftime]: ... this new macro.  All uses changed.
7057         (strftime_case_): Use localtime_rz and mktime_z instead
7058         of localtime_r and mktime.
7059         * modules/fprintftime (Depends-on): Add time_rz.
7060         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
7061         * tests/test-strftime.c (main): Adjust to new nstrftime API.
7063         time_rz: new module
7064         * MODULES.html.sh: Add time_rz.
7065         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
7066         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
7067         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
7068         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
7069         New var HAVE_TIMEZONE_T (default 0).
7070         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
7071         New var GNULIB_TIME_RZ (default 0).
7072         * modules/time (time.h): Substitute the new vars.
7074         flexmember: license is now unlimited
7075         * modules/flexmember (License): Change to unlimited,
7076         since its only source file gives an unlimited license.
7078 2015-07-15  Eric Blake  <eblake@redhat.com>
7080         maint: update copyright paper procedures
7081         * config/srclist.txt: Drop outdated files.
7082         * doc/Copyright/conditions.txt: Update to latest.
7083         * doc/Copyright/assign.changes.manual: Delete.
7084         * doc/Copyright/assign.future.manual: Likewise.
7085         * doc/Copyright/assign.manual: Likewise.
7086         * doc/Copyright/assign.translation.manual: Likewise.
7087         * doc/Copyright/disclaim.changes.manual: Likewise.
7088         * doc/Copyright/disclaim.manual: Likewise.
7089         * doc/Copyright/disclaim.program: Likewise.
7091 2015-07-07  Daiki Ueno  <ueno@gnu.org>
7093         localename: fix link error on Illumos
7094         Illumos defines __sun, but does not have getlocalename_l nor the
7095         equivalent.  This partially reverts commit 387c214.
7096         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
7097         available, as well as uselocale.
7098         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
7099         use getlocalename_l if it is not available.
7101 2015-07-07  Daiki Ueno  <ueno@gnu.org>
7103         unistr/uN-strtok-tests: avoid a trivial leak
7104         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
7105         input and delim after the multibyte delimiter tests.
7107 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7109         file-has-acl, acl-permissions: fix HP-UX typos
7110         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
7111         * lib/file-has-acl.c (file_has_acl):
7112         * lib/set-permissions.c (context_acl_from_mode)
7113         (context_aclv_from_mode, set_acls):
7114         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
7115         They were introduced by the recent ACL changes.
7117         regex: match current GNU grep behavior
7118         These symbols have not matched GNU grep behavior for quite some time.
7119         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
7120         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
7121         Change to match current GNU behavior.
7122         Simplify by expressing it as differences from POSIX BREs and EREs.
7123         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
7125 2015-07-03  Jim Meyering  <meyering@fb.com>
7127         set-permissions.c: adjust acl_from_mode's cpp guard
7128         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
7129         directives identical to those guarding the sole use.
7130         Otherwise, on some systems, we'd get a warning about
7131         the function being defined but not used.
7132         Also, filter through cppi to correct misleading indentation
7133         of cpp directives.
7135 2015-07-03  Pádraig Brady  <P@draigBrady.com>
7137         tests: restrict shells to those that support 'local'
7138         The local keyword is very widely supported and used
7139         in tests in coreutils and grep at least.  Therefore
7140         restrict to testing with shells that support it.
7141         This mainly excludes /bin/sh on Solaris.
7142         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
7144 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
7145         and Daiki Ueno  <ueno@gnu.org>
7147         unistr/uN-strtok: handle multibyte delimiters
7148         Previously, uN_strtok moved PTR to the next unit to the token end.
7149         When DELIM contained a multibyte character, the new position could
7150         be a middle of a multibyte character.
7151         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
7152         after the token.
7153         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
7154         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
7155         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
7156         * modules/unistr/u8-strtok (Depends-on): Depend on
7157         unistr/u8-strmblen.
7158         * modules/unistr/u16-strtok (Depends-on): Depend on
7159         unistr/u16-strmblen.
7160         * modules/unistr/u32-strtok (Depends-on): Depend on
7161         unistr/u32-strmblen.
7162         * tests/unistr/test-u-strtok.h: New file.
7163         * tests/unistr/test-u8-strtok.c: New file.
7164         * tests/unistr/test-u16-strtok.c: New file.
7165         * tests/unistr/test-u32-strtok.c: New file.
7166         * modules/unistr/u8-strtok-tests: New file.
7167         * modules/unistr/u32-strtok-tests: New file.
7168         * modules/unistr/u16-strtok-tests: New file.
7170 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
7172         update-copyright: fix test failure with perl >= 5.22 (trivial)
7173         * build-aux/update-copyright: Escape a literal left curly bracket,
7174         required with perl >= 5.22
7176 2015-07-02  Daiki Ueno  <ueno@gnu.org>
7178         u{16,32}-strstr-tests: relax timeout condition
7179         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
7180         tests can take longer than 5 seconds to complete.
7181         Reported by Dagobert Michelsen in:
7182         https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html
7183         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
7184         seconds to 10 seconds.
7185         * tests/unistr/test-u32-strstr.c (main): Likewise.
7187 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
7189         gnulib-common.m4: change the ARFLAGS default to 'cr'
7190         In some GNU/Linux distributions people started to compile 'ar'
7191         binary with --enable-deterministic-archives (binutils project).
7192         That, however, in combination with previous autotools long time
7193         working default AR{_,}FLAGS=cru causes warnings on such
7194         installations:
7195         ar: `u' modifier ignored since `D' is the default (see `U')
7196         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
7197         set already.
7199 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
7201         selinux-h: avoid double free after *getfilecon()
7202         Originally reported by Ben Shelton on bug-tar:
7203         http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00009.html
7204         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
7205         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
7206         param should be freed by freecon(3) (regardless the return value).
7208 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
7210         fix pty related tests issues on Windows (trivial)
7211         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
7212         however it's still present in tests/ subdirectory of the final project.
7213         Therefore avoid it to pass `make check`.
7214         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
7215         will just return -ENOSYS, so avoid this non applicable test allowing
7216         the build to proceed.
7218 2015-07-01  Pádraig Brady  <P@draigBrady.com>
7220         acl: fix definition of acl_from_mode on FreeBSD
7221         This was causing basic coreutils copy operations to fail
7222         with ENOTSUP or ENOENT error messages.
7223         * lib/acl-internal.h (acl_from_mode): Only define when
7224         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
7225         of acl_from_mode() defined in lib/set-permissions.c to
7226         be used on FreeBSD at least.
7227         * lib/set-permissions.c: Fix up comment spelling,
7228         and a redundant variable assignment; noticed in passing.
7230 2015-06-30  Pádraig Brady  <P@draigBrady.com>
7232         readutmp: port to FreeBSD >= 9
7233         * lib/readutmp.h: Map utmpxname() to setutxdb().
7234         With that coreutils who(1) and pinky(1) tests pass.
7236 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7238         mgetgroups: port to strict OS X
7239         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
7240         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
7241         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
7242         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
7244 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
7246         mgetgroups: port to strict OS X
7247         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
7248         Document the getgrouplist problem.
7249         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
7250         New macro.
7251         (mgetgroups): Use it.
7252         * m4/mgetgroups.m4 (gl_MGETGROUPS):
7253         Check for OS X signature for getgrouplist.
7255 2015-06-29  Jim Meyering  <meyering@fb.com>
7257         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
7258         It started like this when building coreutils' latest on OS X,
7259         invoking ./configure with a nonempty --cache=.cache:
7261           lib/linkat.c:46:42: error: operator '||' has no right operand
7262           lib/linkat.c: In function 'rpl_linkat':
7263           lib/linkat.c:330:27: error: #if with no expression
7265         Here's linkat.c's line 46:
7267           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
7269         Here's some context:
7271           $ grep linkat_nofoll .cache
7272           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
7273           $ grep LINKAT_SYM lib/config.h
7274           #define LINKAT_SYMLINK_NOTSUP
7276         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
7277         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
7278         but that violates a tenet of AC_CACHE_CHECK: it must
7279         have no side effect other than setting its cache variable.
7281         What happens is that when the cache is set, we'd skip the
7282         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
7283         defined to whatever value it happened to have in configure's
7284         environment.  In my case, it was not defined, so this later code:
7286           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
7287             [Define to 1 if linkat can create hardlinks to symlinks])
7289         would emit code with an empty RHS.
7291         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
7292         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
7294 2015-06-28  Jim Meyering  <meyering@fb.com>
7296         mountlist: avoid an unused-label warning on OS X
7297         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
7298         Building on OS X, I saw a warning about the "free_then_fail" label
7299         being unused.  Give it the _GL_UNUSED_LABEL attribute.
7301         error.c: correct printf-style format: %d -> %u
7302         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
7303         rather than %d, to match the type of "line_number", unsigned int.
7305 2015-06-25  Pádraig Brady  <P@draigBrady.com>
7307         fts: avoid reading beyond the heap allocation
7308         GCC 5.1.1 with -O2 and -fsanitize=address reports
7309         a read of size 4 from a heap object of size 3 is indeed invalid,
7310         though this may be due to incorrect padding assumptions by GCC, see:
7311         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
7312         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
7313         * modules/fts: Depend on stdalign.
7315 2015-06-24  Pádraig Brady  <P@draigBrady.com>
7317         savedir: avoid undefined behavior in qsort call
7318         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
7319         "runtime error: null pointer passed as argument 1,
7320          which is declared to never be null"
7321         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
7323 2015-06-24  Pádraig Brady  <P@draigBrady.com>
7325         userspec: avoid undefined behavior in gettext call
7326         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
7327         "runtime error: null pointer passed as argument 2,
7328          which is declared to never be null"
7329         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
7331 2015-06-20  Glenn Morris  <rgm@gnu.org>
7333         gitlog-to-changelog: improve gitmerge.el commits
7334         Let the Emacs ChangeLog generation process exclude "skipped"
7335         messages from merge commits (Bug#20717).
7336         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
7338 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7340         wchar: fix MinGW compilation warnings
7341         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
7342         http://lists.gnu.org/archive/html/bug-gnulib/2015-06/msg00050.html
7343         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
7345 2015-06-20  Daiki Ueno  <ueno@gnu.org>
7347         uniname/uniname-tests: use pristine data files
7348         For copyright and maintenance reasons, use the data files from UCD
7349         without modification.
7350         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
7351         (getfield): Remove.
7352         (aliases_count): New global variable.
7353         (fill_names): Skip comments and empty lines in the input.  Don't
7354         use getfield.
7355         (fill_aliases): Likewise.
7356         (main): Change the expected command line arguments to:
7357         NAMES... ["--" ALIASES...].
7358         * tests/uniname/test-uninames.sh: Adjust to the change in
7359         test-uninames.c.
7360         * tests/uniname/UnicodeDataNames.txt: Remove.
7361         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
7362         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
7363         file from Unicode 8.0.0.
7365 2015-06-19  Pádraig Brady  <P@draigBrady.com>
7367         linked-list, linkedhash-list: avoid compiler warnings
7368         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
7369         -Werror=suggest-attribute=pure (from GCC 5.1.1).
7371 2015-06-19  Daiki Ueno  <ueno@gnu.org>
7373         libunistring: bump minimum version to 0.9.6
7374         * all modules depending on updated Unicode data: Regenerate.
7375         The modules are listed by a script that does:
7376         - for each file listed by: git show --oneline --name-only 705f4efc
7377           - deduce the containing modules, based on "Files:"
7378         - deduce the modules which depend on the containing modules, based
7379           on "Depends-on:"
7381 2015-06-18  Daiki Ueno  <ueno@gnu.org>
7383         uniname/uniname: update to Unicode 8.0.0
7384         * lib/uniname/uninames.h: Regenerate.
7385         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
7386         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
7388 2015-06-18  Daiki Ueno  <ueno@gnu.org>
7390         libunistring: update to Unicode 8.0.0
7391         * lib/gen-uni-tables.c (SIZEOF): New macro.
7392         (output_numeric): Increase the maximum number of fractions from
7393         128 to 160.  Increase the level3 value width from 7 bits to 8
7394         bits.  Use SIZEOF instead of a hard-coded integer.
7395         (output_blocks): Decrease the cut-off threshold from 0x30000 to
7396         0x28000.
7397         (fill_blocks): Increase the maximum number of blocks from 256 to
7398         384.  Use SIZEOF instead of a hard-coded integer.
7399         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
7400         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
7401         value width.
7402         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
7403         a new case added to LBP22.
7404         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
7405         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
7406         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
7407         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
7408         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
7409         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7410         lib/uniwidth/width.c.
7411         * all generated files under lib/uni* and tests/uni*: Regenerate.
7413 2015-06-16  Pádraig Brady  <P@draigBrady.com>
7415         gnu-web-doc-update: add --mirror to remove stale files
7416         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
7417         out of date files from the CVS server.  Since this is usually
7418         appropriate, a prompt is given when the option is not specified,
7419         along with the `cvs remove` command that would be run.
7421 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
7423         acl-permissions: pacify -Wsuggest-attribute=const
7424         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
7425         * lib/acl-internal.h (free_permission_context):
7426         Declare with attribute const if ! (defined USE_ACL &&
7427         (HAVE_ACL_GET_FILE || defined GETACL)).
7429         fsync: document AIX misbehavior
7430         * doc/posix-functions/fsync.texi (fsync):
7431         Document failure on AIX with read-only file descriptor.
7433 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
7435         stdio: Don't redefine gets when using C++
7436         * lib/stdio.in.h (gets): Disable warning on C++.
7438 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
7440         acl-permissions: port to AIX, C89 HP-UX
7441         Problems reported by Michael Felt.
7442         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
7443         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
7444         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
7445         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
7446         Add cast for AIX, whose system calls are declared to accept
7447         char * even though the arguments are really char const *.
7448         * lib/get-permissions.c (get_permissions):
7449         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
7450         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
7451         that broke a build.
7452         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
7453         Rework types to pacify xlc.
7455 2015-06-03  Pádraig Brady  <P@draigBrady.com>
7457         vasprintf-posix: avoid compiling vasnprintf where possible
7458         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
7459         module where not required.  For example on a GNU/Linux system
7460         when gnulib-tool is run with the --conditional-dependencies option.
7462 2015-06-02  Pádraig Brady  <P@draigBrady.com>
7464         file-has-acl: fix build on Mac OS X 10
7465         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
7466         which has an incompatible 6 parameter getxattr() call.
7467         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
7468         call on Mac OS X >= 10.4.
7469         * doc/glibc-functions/fgetxattr.texi: Likewise.
7470         * lib/file-has-acl.c: Revert to more complete combined check.
7471         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
7472         Reported by Jack Howarth.
7474 2015-06-02  Pádraig Brady  <P@draigBrady.com>
7476         prefix-gnulib-mk: remove no longer needed special case
7477         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
7478         continued lib_SOURCES lines are no longer present,
7479         so special case handling of such entries is not required.
7481 2015-06-01  Pádraig Brady  <P@draigBrady.com>
7483         acl: don't depend on the deprecated qacl module
7484         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
7486 2015-06-01  Pádraig Brady  <P@draigBrady.com>
7488         gnulib-tool: concatenate lib_SOURCES to a single line
7489         * gnulib-tool: Refactor the line merging sed logic,
7490         and use that to output a single lib_SOURCES line for each module.
7491         gnulib using projects often postprocess this output to prepend
7492         subdir paths to each item, and having a single line simplifies this
7493         processing allowing better decoupling from the gnulib-tool output.
7495 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
7497         pthread_sigmask: discount system version if a simple macro (trivial)
7498         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
7499         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
7500         function to ensure it's available.
7502 2015-05-31  Pádraig Brady  <P@draigBrady.com>
7504         readlinkat: avoid OS X 10.10 trailing slash bug
7505         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
7506         has this bug.
7507         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
7508         that OS X 10.10 has this function.
7509         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
7510         as done for readlink().
7511         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
7512         trailing slash bug, and assume readlinkat() has the same issue.
7513         Also fix a typo where $gl_cv_decl_readlink_works was tested,
7514         rather than the correct $gl_cv_decl_readlinkat_works.
7516 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
7518         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
7519         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
7520         module rewrite.
7522         acl-permissions: Fix build on Solaris and Cygwin
7523         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
7524         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
7525         ace_entries variables have moved into struct permission_context but
7526         they were still accessed as local variables here.
7528 2015-05-29  Pádraig Brady  <P@draigBrady.com>
7530         linkat: avoid OS X 10.10 trailing slash with symlink bug
7531         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
7532         causes the symlink to be dereferenced, and if it points
7533         to a non existent file, that file will be created as
7534         a hard link to "path1".
7535         This fixes a test failure in test-linkat.c.
7536         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
7537         this case.  The existing workaround in linkat.c for
7538         trailing slash issues, suffices for this case.
7539         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
7540         the list of platforms with trailing slash issues.
7542 2015-05-28  Pádraig Brady  <P@draigBrady.com>
7544         unlinkat: handle ignoring of ".." on Darwin 14
7545         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
7546         on Mac OS X 10.10, where it ignores paths with a trailing "..",
7547         so handle in the same manner.
7548         * m4/unlinkat.m4: Comment on this Darwin issue.
7549         * doc/posix-functions/unlink.texi: Update the latest version
7550         where the issue was seen.
7551         * doc/posix-functions/unlinkat.texi: Mention this issue.
7552         Fixes a test failure in test-unlinkat.c.
7554 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
7556         qacl: split into qcopy-acl and qset-acl
7557         Emacs needs the former, but not the latter.
7558         * modules/acl-permissions: New file, containing most of the old qacl.
7559         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
7560         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
7561         * modules/qcopy-acl, modules/qset-acl: New files.
7562         * MODULES.html.sh (File system functions):
7563         Mention the new modules, and mention qacl while we're at it.
7565 2015-05-27  Glenn Morris  <rgm@gnu.org>
7567         gitlog-to-changelog: new option --ignore-line
7568         (This patch is imported from the GNU Emacs master.)
7569         This option ignores individual commit lines matching a pattern.
7570         * build-aux/gitlog-to-changelog: Add --ignore-line option.
7572 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
7574         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
7575         Implement get_permissions and set_permissions primitives for getting all
7576         the permissions of a file, storing them, and later setting them. (In the
7577         minimal case, the permissions consist only of a file mode.) Reimplement
7578         qset_acl and qcopy_acl based on these new primitives: this avoids code
7579         duplication and makes error handling more consistent.
7580         The Solaris and Cygwin code still uses duplicate code paths for setting
7581         a file mode while making sure that no acls exist and setting an explicit
7582         acl; this is no worse than before, but could be cleaned up.  The AIX
7583         code still doesn't read ACLs, it only makes sure that acls don't get in
7584         the way when setting a file mode.
7585         * lib/acl-internal.h (struct permission_context): New data structure.
7586         (get_permissions, set_permissions, free_permission_context): Declare.
7587         * lib/acl-internal.c (free_permission_context): New helper function.
7588         * lib/get-permissions.c (get_permissions): New helper function split off
7589         from qcopy_acl.
7590         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
7591         AIX, set a file's permissions based only on a file mode.
7592         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
7593         other platforms construct a temporary acl from the file mode and set
7594         that acl in the same way as setting an acl read from the source file.
7595         This should help avoid code duplication and inconsistent / buggy
7596         behavior.
7597         (set_acls): New helper function Split off from qcopy_acl.
7598         (chmod_or_fchmod): Moved here from qset-acl.c.
7599         (set_permissions): New helper function.
7600         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
7601         set_permissions.
7602         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
7603         * modules/qacl: Add get-permissions.c and set-permissions.c.
7605         file-has-acl: Split feature tests again (Bug#20667)
7606         * lib/file-has-acl.c: Instead of testing for
7607         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
7608         define them when needed.
7609         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
7610         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
7612 2015-05-27  Pádraig Brady  <P@draigBrady.com>
7614         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
7615         This avoids a conflict with "FORTIFY_SOURCE" variants
7616         of the string functions when they're replaced on NetBSD-6.0.1
7617         and Darwin-14.3.0 at least.
7618         * lib/string.in.h: Avoid including our "lib/string.h" while
7619         including the system <string.h>.
7621 2015-05-26  Eric Blake  <eblake@redhat.com>
7623         stdio: limit __gnu_printf__ witness to gcc 4.4+
7624         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
7625         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
7627         error: use correct printf attributes on mingw
7628         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
7630         inttypes: force correct mingw PRIdMAX even without <stdio.h>
7631         * modules/inttypes (Depends-on): Require extensions, so that mingw
7632         always uses GNU style inttypes.
7633         * lib/inttypes.in.h: On mingw, include <stdio.h>.
7635         stdio: fix probe on mingw under gcc 5.1
7636         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
7637         around new gcc preprocessor rules.
7639 2015-05-07  Glenn Morris  <rgm@gnu.org>
7641         gitlog-to-changelog: parse "Tiny-change"
7642         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
7643         "Copyright-paperwork-exempt".  (Bug#20324)
7645 2015-05-06  Pádraig Brady  <P@draigBrady.com>
7647         doc: document glibc posix_fallocate() issues
7648         * doc/posix-functions/posix_fallocate.texi: Mention the
7649         glibc efficiency problems and issues with NFS.
7651 2015-05-05  Karl Berry  <karl@freefriends.org>
7653         * build-aux/gendocs.sh (usage): document new css default
7654         for HTML (--htmlarg).
7656 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
7658         extern-inline: no need for workaround in GCC 5.1
7659         * doc/extern-inline.texi (extern inline):
7660         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
7661         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
7662         around these bugs in GCC 5.1 and later.  Maybe in a decade or
7663         two we can remove these workarounds.
7665 2015-04-28  Pádraig Brady  <P@draigBrady.com>
7667         eealloc, pagealign_alloc, xalloc: avoid clang warnings
7668         Avoid [-Wunknown-attributes] warnings like:
7669         warning: unknown attribute '__alloc_size__' ignored
7670         * lib/xalloc.h: Don't use the __alloc_size__  attribute
7671         with clang, as support has been fully removed as of clang 3.5:
7672         https://github.com/llvm-mirror/clang/commit/c047507a
7673         * lib/eealloc.h: Likewise.
7674         * lib/pagealign_alloc.h: Likewise.
7676 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
7678         tests: pacify GCC 5.1's stricter printf checking
7679         * tests/test-dirname.c (main):
7680         * tests/test-getaddrinfo.c (simple):
7681         * tests/test-getlogin.c (main):
7682         * tests/test-getndelim2.c (main):
7683         * tests/test-inttostr.c (CK):
7684         * tests/test-md5.c (main):
7685         * tests/test-read-file.c (main):
7686         * tests/test-sha1.c (main):
7687         Fix mismatches between printf format and value signedness.
7688         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
7689         Remove, as CAST_VAL always returned a value of type uintmax_t.
7691         fts: port to GCC 5.1 with --enable-gcc-warnings
7692         Without this fix, GCC 5.1 (correctly) warns about a subscript
7693         error on the fts_name component of FTSENT.  It's actually a
7694         flexible member, so define it that way on C99 or later hosts.
7695         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
7696         structure that now has a flexible array member.
7697         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
7698         (FTSENT): fts_name is now flexible on C99-or-later platforms.
7699         * modules/fts (Depends-on): Add flexmember.
7701 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7703         file-has-acl: port to CentOS 6
7704         Problem reported by Tom G. Christensen in:
7705         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00074.html
7706         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
7707         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
7708         HAVE_GETXATTR.
7709         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
7710         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
7711         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
7712         file-has-acl.c actually needs.
7714 2015-04-26  Pádraig Brady  <P@draigBrady.com>
7716         file-has-acl: always return false when ACLs aren't supported
7717         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
7718         change the GNU/Linux getxattr path, to transform "not supported"
7719         errors to a false return rather than an error.  This is handled
7720         within file_has_acl() due to the platform specific tests to
7721         determine if ACLs are not supported.
7723 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7725         gettext: propagate po/Makefile.in.in too
7726         * build-aux/po/Makefile.in.in: Copy from latest gettext.
7727         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
7728         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
7729         between Makefile.in.in and the gettext-runtime m4 files.
7731 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7733         file-has-acl: new module, split from acl
7734         And add a new module file-has-acl-tests to match.
7735         I ran into a problem with the recent changes to the acl module,
7736         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
7737         When using the fixed version with Emacs, I discovered that
7738         file-has-acl wasn't separated out well enough for Emacs (e.g., it
7739         had multiple libraries, but needed only one), so I fixed that too.
7740         * NEWS: Document this incompatible change.
7741         * modules/file-has-acl, modules/file-has-acl-tests: New files.
7742         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
7743         Initialize gl_need_lib_has_acl.
7744         (gl_FUNC_ACL): Require it.
7745         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
7746         Move the file-has-acl.c-relevant stuff to ...
7747         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
7748         use_xattrs = 0' typo, and omit some needless work.  Set
7749         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
7750         when gl_FUNC_ACL is called.
7751         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
7752         (Link): Remove $(LIB_HAS_ACL).
7753         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
7754         (check_PROGRAMS): Move stuff relevant to file-has-acl to
7755         modules/file-has-acl-tests.
7756         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
7758         manywarnings: add GCC 5.1 warnings
7759         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
7760         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
7761         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
7762         -Wsuggest-override, -Wuse-without-only.  Change
7763         -Wnormalized=... operands to match 5.1.
7764         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
7765         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
7766         -Wdiscarded-qualifiers, -Wformat-signedness,
7767         -Wincompatible-pointer-types, -Wint-conversion,
7768         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
7769         -Wshift-count-negative, -Wshift-count-overflow,
7770         -Wsizeof-array-argument, -Wsuggest-final-methods,
7771         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
7772         and add -Warray-bounds=2 as a special case.
7774 2015-04-21  Simon Josefsson  <simon@josefsson.org>
7776         doc: update FDL template to match FDL examples.
7777         * doc/alloca-opt.texi:
7778         * doc/alloca.texi:
7779         * doc/c-ctype.texi:
7780         * doc/c-strcase.texi:
7781         * doc/c-strcaseeq.texi:
7782         * doc/c-strcasestr.texi:
7783         * doc/c-strstr.texi:
7784         * doc/c-strtod.texi:
7785         * doc/c-strtold.texi:
7786         * doc/ctime.texi:
7787         * doc/error.texi:
7788         * doc/gcd.texi:
7789         * doc/gnulib-tool.texi:
7790         * doc/inet_ntoa.texi:
7791         * doc/intprops.texi:
7792         * doc/lib-symbol-visibility.texi:
7793         * doc/maintain.texi:
7794         * doc/parse-datetime.texi:
7795         * doc/quote.texi:
7796         * doc/regexprops-generic.texi:
7797         * doc/standards.texi: Remove spurious 'with' in FDL license
7798         template.
7800 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
7802         lstat: fix cross-compilation 'ln -s' problem
7803         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7804         Have the test program call 'symlink' rather than a separate
7805         script run 'ln -s'; this is more likely to work in
7806         cross-compilation environments.  Reported by Pavel Fedin in:
7807         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00060.html
7809 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
7811         gendocs.sh: default to a common CSS style sheet for HTML output
7812         * build-aux/gendocs.sh (htmlarg): Change default value.
7814 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
7816         gnulib-tool: output bold attribute more portably
7817         * gnulib-tool (func_show_module_list): Change hexadecimal
7818         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
7819         encoded numbers as arguments to `printf' is not portable,
7820         and is not claimed by POSIX.  This is the case with FreeBSD.
7822 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
7824         qacl: Simplify HP-UX acl_nontrivial check
7825         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
7826         acl_nontrivial. Check if the acl has at most three entries instead (it must
7827         have exactly three entries according to the HP-UX documentation). Ignore
7828         uids and gids as long as an entry is either for a user (i.e., the owner),
7829         a group (i.e., the owning group), or others.
7830         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
7831         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
7833 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
7835         acl: On Linux, check for acls without libacl
7836         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
7837         library function to check for the presence of acls, avoiding a library.
7838         * lib/file-has-acl.c: Include xattr headers if we have them.
7839         (file_has_acl): On Linux, use getxattr().
7840         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
7841         file_has_acl(). Check for xattr headers and getxattr().
7843 2015-04-14  Ángel González  <keisial@gmail.com>
7845         tempname: avoid unused parameter warnings (trivial)
7846         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
7847         (try_nocreate): Likewise.
7849 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
7851         fseeko: fix build failure on NetBSD >= 6 (trivial)
7852         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
7853         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
7855 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7857         gitlog-to-changelog: port to MS-Windows
7858         * build-aux/gitlog-to-changelog (git_dir_option):
7859         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
7860         MS-Windows Perl.  Reported by Eli Zaretskii in:
7861         http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
7863 2015-04-07  Karl Berry  <karl@gnu.org>
7865         gendocs: new option --tex for passing args to texi2dvi.
7866         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
7867         (TEXI2DVI): cut to just command name.
7868         (usage): mention new option, and update copyright.
7869         <generate_tex>: use it.
7871 2015-04-07  Karl Berry  <karl@gnu.org>
7873         * config/srclistvars.sh (GETTEXT): new definition.
7874         * config/srclist.txt: use it for gettext .m4 files.
7875         Thread starting at http://lists.gnu.org/archive/html/bug-gnulib/201
7876         and confirmed at http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00146.html
7877         and continuing into April.
7879 2015-04-07  Daiki Ueno  <ueno@gnu.org>
7881         uniname/uniname-tests: fix failure due to alias
7882         Reported by Jack Howarth in:
7883         <https://lists.gnu.org/archive/html/bug-libunistring/2015-04/msg00000.html>.
7884         * tests/uniname/test-uninames.c (name_has_alias): New function.
7885         (test_inverse_lookup): Exclude character name with valid alias,
7886         from randomly generated character names.
7887         (main): Fill unicode_aliases before calling test functions.
7889 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
7891         hash: remove deprecated hash_insert0 function
7892         * lib/hash.h (hash_insert0): Remove deprecated function.
7893         * lib/hash.c (hash_insert0): Likewise.
7895 2015-04-02  Pádraig Brady  <P@draigBrady.com>
7897         mountlist: remove dependency on libmount
7898         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
7899         directly, rather than depending on libmount, which has many
7900         dependencies due to its dependence on libselinux, as detailed at:
7901         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
7902         Note we restrict this to __linux__ as that's probably where this
7903         interface will remain.  If ever porting, it would be best
7904         to first pull the makedev() wrapper from coreutils to a gnulib module.
7905         Note also we don't add a getline dependency to the mountlist module,
7906         as all Linux versions are sufficient.
7908 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
7910         stddef: port to pre-C11 GCC on x86
7911         On this platform, max_align_t should have an alignment of 8 even
7912         though the storage alignments of double, long, etc. max out at 4.
7913         Inspired by a comment of Andreas Schwab's here:
7914         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
7915         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
7916         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
7917         * tests/test-stddef.c: Test __alignof__ too, if available.
7919 2015-03-24  Pádraig Brady  <P@draigBrady.com>
7921         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
7922         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
7924 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
7926         yesno: make EOL optional in ENABLE_NLS case also (trival)
7927         * lib/yesno.c (yesno): Check for EOL before replacing.
7928         * tests/test-yesno.sh: Add a test case (test along with gettext).
7930 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
7932         fdopendir-tests: test it does not close its arg
7933         * tests/test-fdopendir.c (main): Test that fdopendir does not
7934         close its argument.  From a suggestion by David Grayson in:
7935         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00039.html
7937 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7939         gitlog-to-changelog: trim trailing white space
7940         * build-aux/gitlog-to-changelog (main):
7941         Trim trailing white space from commit message lines.
7942         This is helpful for processing the GNU Emacs repository,
7943         which dates back to 1985 and contains a lot of such lines.
7945         gitlog-to-changelog: new option --ignore-matching
7946         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
7947         Support new option --ignore-matching=PAT, which ignores all
7948         commit messages whose first line matches PAT.
7950 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7952         fdopendir: port better to MinGW
7953         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
7954         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
7955         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00033.html
7956         * modules/fdopendir (Depends-on): Add dirfd.
7958 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
7960         fdopendir: fix typo in comment
7961         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
7963 2015-03-09  Eric Blake  <eblake@redhat.com>
7965         error: document all entry points provided
7966         * doc/glibc-functions/error_print_progname.texi
7967         (error_print_progname): Mention the error module.
7968         * doc/glibc-functions/error_at_line.texi (error_at_line):
7969         Likewise.
7970         * doc/glibc-functions/error_message_count.texi
7971         (error_message_count): Likewise.
7972         * doc/glibc-functions/error_one_per_line.texi
7973         (error_one_per_line): Likewise.
7975 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
7977         vasnprintf: pacify clang 3.5.0
7978         Problem reported by Werner Lemberg in:
7979         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00000.html
7980         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
7981         The casts aren't needed, since the characters in question are ASCII.
7983 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7985         glob, etc.: port to MSVC v18 on MS-Windows 8.1
7986         * lib/dirent--.h (GNULIB_defined_opendir):
7987         * lib/dirent.in.h (GNULIB_defined_opendir)
7988         (GNULIB_defined_closedir):
7989         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
7990         #undef only if Gnulib defined it.
7992         poll: port to MSVC v18 on MS-Windows 8.1
7993         Problem reported by Gisle Vanem in:
7994         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
7995         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
7996         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
7997         Add sys_socket.
7999 2015-02-24  Pádraig Brady  <P@draigBrady.com>
8001         tests: support stderr verification with returns_()
8002         * tests/init.sh (returns_): Disable tracing for this wrapper
8003         function, so that stderr of the wrapped command is unchanged,
8004         allowing for verification of the contents.
8006 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
8008         passfd: avoid valgrind uninitalised data warning
8009         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
8010         to include just the fd we've initialized, rather than including
8011         the extra space used for alignment.
8013 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
8015         uniwbrk/u32-wordbreaks-tests: fix copyright
8016         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
8018         dup2: doc and test for Android bug
8019         Reported by Kevin Cernekee in:
8020         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00125.html
8021         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8022         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
8024 2015-02-23  Kevin Cernekee  <cernekee@google.com>
8026         Replace dup2() on Android
8027         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
8028         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
8029         fails.  Using rpl_dup2() fixes this because it has an explicit test
8030         for this condition.
8032 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8034         Android doesn't define RLIM_SAVED_*
8035         Portability problem reported by Kevin Cernekee in:
8036         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00122.html
8037         * doc/posix-headers/sys_resource.texi (sys/resource.h):
8038         Mention the portability problem.
8039         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
8040         Define if not defined.
8041         * m4/dup2.m4 (gl_FUNC_DUP2):
8042         * m4/fcntl.m4 (gl_FUNC_FCNTL):
8043         Likewise.
8045 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
8047         vasnprintf-posix-tests: use consistent test
8048         * tests/test-vasnprintf-posix.c (test_function):
8049         Use "<" in assert instead of "<=", for consistency with other tests.
8051 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8053         printf, isinf, etc.: noncanonical != NaN
8054         Do not require that isinf, printf, etc. treat noncanonical
8055         values as NaNs.  Instead, require only that they do not crash.
8056         Problem reported by Joseph Myers in:
8057         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
8058         * doc/posix-functions/dprintf.texi (dprintf):
8059         * doc/posix-functions/fprintf.texi (fprintf):
8060         * doc/posix-functions/isfinite.texi (isfinite):
8061         * doc/posix-functions/isinf.texi (isinf):
8062         * doc/posix-functions/isnan.texi (isnan):
8063         * doc/posix-functions/printf.texi (printf):
8064         * doc/posix-functions/snprintf.texi (snprintf):
8065         * doc/posix-functions/sprintf.texi (sprintf):
8066         * doc/posix-functions/vdprintf.texi (vdprintf):
8067         * doc/posix-functions/vfprintf.texi (vfprintf):
8068         * doc/posix-functions/vprintf.texi (vprintf):
8069         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8070         * doc/posix-functions/vsprintf.texi (vsprintf):
8071         Document this.
8072         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
8073         * m4/isinf.m4 (gl_ISINFL_WORKS):
8074         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
8075         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
8076         * tests/test-isfinite.c (test_isfinitel):
8077         * tests/test-isinf.c (test_isinfl):
8078         * tests/test-isnan.c (test_long_double):
8079         * tests/test-isnanl.h (main):
8080         * tests/test-snprintf-posix.h (test_function):
8081         * tests/test-sprintf-posix.h (test_function):
8082         * tests/test-vasnprintf-posix.c (test_function):
8083         * tests/test-vasprintf-posix.c (test_function):
8084 o       Test only that noncanonical values do not cause crashes, not that
8085         they are treated as NaNs.  In some cases this means a larger
8086         output buffer is needed.
8088 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
8090         fts: remove redundant close() (trivial)
8091         * lib/fts.c (fts_read): Remove redundant call to close().
8092         Spotted by coverity.
8094 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8096         getdtablesize: port better for Android
8097         Problem reported by Kevin Cernekee in:
8098         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html
8099         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
8100         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
8101         Instead, just use getrlimit, taking care to avoid Cygwin bug.
8103         poll: fixes for large fds
8104         * lib/poll.c (poll): Don't check directly for NFD too large.
8105         Don't rely on undefined behavior in FD_SET when an arg exceeds
8106         FD_SETSIZE.  Always set revents afterwards, even if to zero.
8107         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
8108         as that makes the test a bit stricter.
8110 2015-02-19  Kevin Cernekee  <cernekee@google.com>
8112         fcntl: Fix cross compiling
8113         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
8114         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
8116 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8118         dup2, fcntl: cross-compile better for Android
8119         Problem reported by Kevin Cernekee in:
8120         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00109.html
8121         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
8122         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
8123         there's little need to cross-compile for older kernels nowadays.
8124         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
8125         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
8127 2015-02-18  Pádraig Brady  <P@draigBrady.com>
8129         getopt: don't crash on memory exhaustion
8130         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
8131         memory exhaustion.  In the _LIBC case we use alloca() as is
8132         already done in glibc, so we don't need to consider the separate
8133         error path in that awkward case.  Also fix a memory leak when
8134         ambiguous options are present.
8135         Reported by Tobias Stoeckmann
8137 2015-02-17  Mike Miller  <mtmiller@ieee.org>
8139         tempname: allow compilation with C++ (trivial)
8140         * lib/tempname.h [C++]: Specify extern "C" linkage.
8141         * lib/tempname.h (try_tempname):
8142         * lib/tempname.c (__try_tempname, __gen_tempname):
8143         Rename 'try' to 'tryfunc'.
8145 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8147         dup2, fcntl: port to AIX
8148         * m4/dup2.m4 (gl_FUNC_DUP2):
8149         * m4/fcntl.m4 (gl_FUNC_FCNTL):
8150         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
8151         The former works on AIX 7.1 but the latter does not.
8152         Also, this may work better with Android; see:
8153         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00100.html
8155 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8157         getdtablesize, dup2, fcntl: port to Android
8158         Problem reported by Kevin Cernekee in:
8159         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html
8160         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
8161         Mention that getdtablesize doesn't work on Android.
8162         * lib/getdtablesize.c: Use getrlimit substitute only if
8163         getdtablesize is declared.  This should suffice for Cygwin
8164         while not breaking Android.
8165         * m4/dup2.m4 (gl_FUNC_DUP2):
8166         * m4/fcntl.m4 (gl_FUNC_FCNTL):
8167         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
8168         standardized but the latter is not, and sysconf works on Android.
8169         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
8170         Also check that getdtablesize is declared.
8171         This removes the need for a special case for Android.
8173 2015-02-16  Kevin Cernekee  <cernekee@google.com>
8175         localename: Implement gl_locale_name_thread_unsafe for Android
8176         * lib/localename.c: Android API level >= 21 supports two hardcoded
8177         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
8178         the internal __locale_t struct.
8180 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
8182         fts: avoid crash when a cycle is added while traversing
8183         This could be triggered by auto-mounting a recursive bind mount.
8184         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
8185         * lib/fts.c (fts_read): Avoid removing the original hash table item
8186         when leaving a directory that caused a cycle, and preserve the FTS_DC
8187         flag.
8189 2015-02-16  Daiki Ueno  <ueno@gnu.org>
8191         uniname/uniname: support character alias
8192         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
8193         Generate one-way mapping from aliases to codepoints in the
8194         generated tables.  Special case variation selectors to reduce
8195         table size.
8196         * lib/uniname/uniname.c (unicode_character_name): Special case
8197         variation selectors.
8198         (unicode_name_character): Special case variation selectors and
8199         their aliases.
8200         * lib/uniname/uninames.h: Regenerate.
8201         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
8202         * modules/uniname/uniname-tests (Files): Add
8203         tests/uniname/NameAliases.txt.
8204         * tests/uniname/test-uninames.c: Mark as static.
8205         (ALIASLEN): Define.
8206         (struct unicode_alias): New struct.
8207         (unicode_aliases): New variable.
8208         (fill_aliases): New function.
8209         (test_alias_lookup): New test function.
8210         (main): Run the 'test_alias_lookup' test if the second argument is
8211         given.
8212         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
8213         second argument.
8215 2015-02-11  Kevin Cernekee  <cernekee@google.com>
8217         Fix FILE struct compatibility with Android API level >= 21
8218         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
8219         __sferror.  Recent versions of Bionic's stdio.h no longer define
8220         __sferror.
8221         * lib/fbufmode.c: Likewise.
8222         * lib/fflush.c: Likewise.
8223         * lib/fpurge.c: Likewise.
8224         * lib/freadable.c: Likewise.
8225         * lib/freadahead.c: Likewise.
8226         * lib/freading.c: Likewise.
8227         * lib/freadptr.c: Likewise.
8228         * lib/freadseek.c: Likewise.
8229         * lib/fseeko.c: Likewise.
8230         * lib/fseterr.c: Likewise.
8231         * lib/fwritable.c: Likewise.
8233         Assume unbroken ungetc() on Android
8234         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
8235         test case passed when running on an Android host, and the code
8236         hasn't really changed since 2009.
8238         getdtablesize: Fix Android build
8239         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
8240         versions have this symbol in the .so library (at least 32-bit
8241         platforms) but are missing the declaration in the header file,
8242         causing the m4 logic to guess incorrectly.
8244         localename: Fix Android build
8245         * modules/localename (Depends-on): Add langinfo.
8247         getugroups: Fix Android build
8248         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
8249         functions.
8251         euidaccess: Fix Android build
8252         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
8253         AT_EACCESS gets declared.
8255         linkat_nofollow: Add fallback case for cross compiling
8256         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
8258         net_if: Handle content-free <net/if.h> system headers
8259         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
8260         struct if_nameindex.  If not, enable the replacement header.
8262         signal_h: Fix Android build
8263         * lib/signal.in.h: Add Android to the list of platforms that declare
8264         pthread_sigmask() in <pthread.h> instead of <signal.h>.
8266         duplocale: Fix Android build of duplocale-tests
8267         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
8268         is included by test-duplocale.c (but not by duplocale.c).
8269         * modules/duplocale-tests (configure.ac): Check for monetary.h.
8270         * tests/test-duplocale.c: Skip test if monetary.h is absent.
8271         * doc/posix-headers/monetary.texi: Add Android to the list of
8272         platforms missing monetary.h.
8274 2015-02-11  Pádraig Brady  <P@draigBrady.com>
8276         tests: avoid recent -Werror=unused-variable regression in test-locale
8277         * tests/test-locale.c (main): Reference the variable to avoid the
8278         "unused variable" warning.
8280 2015-02-11  Pádraig Brady  <P@draigBrady.com>
8282         maint: various whitespace cleanups in tempname
8283         * lib/tempname.c: Normalize spacing and line length.
8284         * lib/tempname.h: Likewise.
8285         * modules/tempname: Likewise.
8287 2015-02-11  Pádraig Brady  <P@draigBrady.com>
8289         tests: provide returns_() to simplify exit status checking
8290         * tests/init.sh (returns_): A new function for use in tests,
8291         to allow for easier checking of return values, where you expect
8292         a command to exit with failure status.  By checking for a particular
8293         exit code, you don't hide any crashes for example.
8295 2015-02-11  Pádraig Brady  <P@draigBrady.com>
8297         mountlist: only use libmount when specified
8298         There are currently many shared libs dependencies introduced by
8299         libmount with associated runtime and virt mem overhead.
8300         Therefore don't enable by default.
8301         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
8303 2015-02-08  Daiki Ueno  <ueno@gnu.org>
8305         uniname/unimame-tests: don't link with -lunistring
8306         * modules/uniname/uniname-tests (Makefile.am): Don't link against
8307         $(LIBUNISTRING).  Document the rationale why we need to
8308         conditionalize the test.
8310 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8312         fstrcmp: don't assume strlen < INT_MAX
8313         * lib/fstrcmp.c: Include stddef.h and stdint.h.
8314         (uintptr_t): Remove, as we're now assuming stdint.
8315         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
8316         Prefer ptrdiff_t to int when the value could exceed INT_MAX
8317         if the input string is long.
8318         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
8319         uintptr_t to size_t when the underlying value is a pointer casted
8320         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
8321         * modules/fstrcmp (Depends-on): Add stdint.
8323         diffseq: prefer ptrdiff_t to ssize_t
8324         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
8325         ptrdiff_t is the natural type for signed indexes.
8326         On a few older platforms, ssize_t is narrower than size_t.
8328         xalloc: fix typo that suppressed warnings
8329         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
8330         This typo, introduced a couple of years ago, mistakenly suppressed
8331         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
8332         -Wmissing-declarations warnings.
8334         full-read: fix license notice typo
8335         * lib/full-read.h: Remove a stray line in the license notice.
8336         Reported by Sam Ellis in: http://bugs.gnu.org/19808
8338         crypto/gc: fix a -Wswitch warning
8339         Reported by Bruce Korb in:
8340         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
8341         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
8343 2015-02-03  Pádraig Brady  <P@draigBrady.com>
8345         gnulib-tool: fix handling of patch(1) diagnostics
8346         * gnulib-tool: Send diagnostics from patch(1) to stderr,
8347         as otherwise gnulib-tool will reparse that output and attempt
8348         to lookup modules.
8350 2015-02-03  Pádraig Brady  <P@draigBrady.com>
8352         bootstrap: exit immediately upon gnulib-tool failure
8353         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
8354         This was noticed when gnulib-tool exited early due to failure
8355         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
8356         but various confusing errors were then given as the build proceeded.
8358 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
8360         symlinkat: include all required header files
8361         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
8362         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
8363         Reported at https://savannah.gnu.org/bugs/index.php?44151
8364         and by Jack Howarth.
8366 2015-01-29  Pádraig Brady  <P@draigBrady.com>
8368         localename: support Solaris 12 and illumos
8369         * lib/localename.c (gl_locale_name_thread_unsafe): call
8370         getlocalename_l() on newer __sun platforms.
8371         Reported by Alexander Pyhalov.
8372         Fix suggested by Rich Burridge.
8374 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
8376         locale: fix tests on illumos (trivial)
8377         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
8378         so move from global scope to main().
8380 2015-01-24  Daiki Ueno  <ueno@gnu.org>
8382         unictype: avoid undefined left-shift behavior
8383         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
8384         gcc's -fsanitize=shift and running its tests triggered:
8385           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
8386             places cannot be represented in type 'int'
8387         Cast LHS to 'unsigned int' after integer promotion.
8388         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
8389         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
8391 2015-01-20  Daiki Ueno  <ueno@gnu.org>
8393         libunistring: bump version of unitypes dependants
8394         Due to the header file search order, all the headers which depend
8395         on unitypes.h need to be generated, when the preinstalled
8396         libunistring is older.
8397         * modules/unicase/base (configure.ac): Bump minimum version to
8398         0.9.4.
8399         * modules/uniconv/base (configure.ac): Likewise.
8400         * modules/unilbrk/base (configure.ac): Likewise.
8401         * modules/uninorm/base (configure.ac): Likewise.
8402         * modules/unistdio/base (configure.ac): Likewise.
8403         * modules/unistr/base (configure.ac): Likewise.
8404         * modules/uniwbrk/base (configure.ac): Likewise.
8405         * modules/uniwidth/base (configure.ac): Likewise.
8407 2015-01-20  Daiki Ueno  <ueno@gnu.org>
8409         unictype/category-none: fix link with libunistring
8410         Since _UC_CATEGORY_NONE is not a public symbol, it will be
8411         prefixed with "libstring_" when compiled as part of libunistring.
8412         To avoid undefined symbol at link time, increase the minimum
8413         version when the dependant modules are updated.
8414         * modules/unictype/category-none (configure.ac): Bump minimum
8415         version to 0.9.5.
8417 2015-01-20  Daiki Ueno  <ueno@gnu.org>
8419         unitypes: fix build with installed libunistring
8420         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
8421         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
8422         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
8424 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8426         time: port to MinGW32 3.21
8427         Problem reported by Eli Zaretskii in:
8428         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00042.html
8429         * lib/time.in.h:
8430         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
8431         * modules/time (Depends-on):
8432         Fall back on unistd.h if the other include files don't define
8433         struct timespec.
8435         update-copyright: apply to self
8436         * build-aux/update-copyright: Fix copyright date.  How ironic!
8438 2015-01-15  Daiki Ueno  <ueno@gnu.org>
8440         libunistring: update to Unicode 7.0.0
8441         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
8442         Manichaean names.
8443         * lib/unictype/joininggroup_name.h: Likewise.
8444         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
8445         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
8446         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
8447         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
8448         (fill_arabicshaping, joining_group_as_c_identifier): Support those
8449         enum values.
8450         (is_property_alphabetic): Accept newly added characters to
8451         cuneiform numeric signs.
8452         (is_property_default_ignorable_code_point): Reject U+0605.
8453         (FIELDLEN): Increase from 120 to 160.
8454         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
8455         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
8456         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
8457         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
8458         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
8459         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
8460         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
8461         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
8462         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
8463         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
8464         U+1E8D0..U+1E8D6.
8465         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
8466         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8467         lib/uniwidth/width.c.
8468         * all generated files under lib/uni* and tests/uni*: Regenerate.
8470 2015-01-14  Daiki Ueno  <ueno@gnu.org>
8472         libunistring: update to Unicode 6.3.0
8473         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
8474         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
8475         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
8476         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
8477         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
8478         Update WB5, WB9, WB10, WB13a, and WB13b.
8479         * tests/uniwbrk/test-uc-wordbreaks.c
8480         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
8481         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
8482         (UC_BIDI_PDI): New enumeration values.
8483         (bidi_category_byname): Support those enum values.
8484         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
8485         dedicated property assigned.
8486         (is_property_case_ignorable): Check 0x0027.
8487         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
8488         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
8489         (output_wbp): Support those enum values.
8490         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
8491         (UC_BIDI_PDI): New enumeration values.
8492         * lib/unictype/bidi_byname.gperf: Add those property names.
8493         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
8494         U+180E, U+1A1B, and U+2066..U+2069.
8495         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8496         lib/uniwidth/width.c.
8497         * all generated files under lib/uni* and tests/uni*: Regenerate.
8499 2015-01-14  Daiki Ueno  <ueno@gnu.org>
8501         libunistring: update to Unicode 6.2.0
8502         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
8503         (unilbrk_table): Adjust table size.
8504         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
8505         for LBP_RI.
8506         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
8507         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
8508         Normalize table index skipping ignored properties.
8509         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
8510         WBP_EXTEND and WBP_FORMAT, which are now computed without using
8511         the table.
8512         * lib/uniwbrk/wbrktable.h: Adjust table size.
8513         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
8514         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
8515         Support rule GB8a.
8516         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
8517         * tests/unigbrk/test-uc-is-grapheme-break.c
8518         (graphemebreakproperty_to_string): Support GBP_RI.
8519         * tests/uniwbrk/test-uc-wordbreaks.c
8520         (wordbreakproperty_to_string): Support WBP_RI.
8521         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
8522         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
8523         (output_lbp): Support LBP_RI.  Adjust some characters changed from
8524         LBP_AL to LBP_ID.
8525         (output_lbp): Support LBP_RI.
8526         (WBP_RI): New enumeration value.
8527         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
8528         (output_wbp): Support WBP_RI.
8529         (GBP_RI): New enumeration value.
8530         (output_gbp_test, fill_org_gbp): Support GBP_RI.
8531         * all generated files under lib/uni* and tests/uni*: Regenerate.
8533 2015-01-14  Daiki Ueno  <ueno@gnu.org>
8535         libunistring: update to Unicode 6.1.0
8536         * lib/gen-uni-tables.c (output_joining_group): Switch to
8537         3-level table to accommodate joining groups defined with higher
8538         codepoint value.  Since there are only 88 groups defined in
8539         Unicode 7.0.0, use 7-bit packed format for level3 entries.
8540         (get_lbp): Update for Unicode 6.1.0.
8541         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
8542         3-level table.
8543         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
8544         joining group name.
8545         * lib/unictype/joininggroup_name.h: Likewise.
8546         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
8547         (unilbrk_table): Adjust table size.
8548         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
8549         for LBP_HL.
8550         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
8551         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
8552         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
8553         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
8554         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
8555         U+302E..U+302F.
8556         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8557         lib/uniwidth/width.c.
8558         * all generated files under lib/uni* and tests/uni*: Regenerate.
8559         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
8561 2015-01-15  Daiki Ueno  <ueno@gnu.org>
8563         uniwbrk/u32-wordbreaks-tests: add conformance test
8564         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
8565         tests/uniwbrk/test-uc-wordbreaks.c,
8566         tests/uniwbrk/test-uc-wordbreaks.sh, and
8567         tests/uniwbrk/WordBreakTest.txt.
8568         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
8569         test-uc-wordbreaks to $(check_PROGRAMS), and define
8570         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
8571         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
8572         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
8574 2015-01-15  Daiki Ueno  <ueno@gnu.org>
8576         uniwbrk: ignore Extended/Format characters at BOL not BOS
8577         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
8578         characters if the previous character property is one of
8579         WBP_NEWLINE, WBP_CR, and WBP_LF.
8581 2015-01-11  Jim Meyering  <meyering@fb.com>
8583         test-strstr.c: avoid a trivial leak
8584         * tests/test-strstr.c (main): Free haystack.
8586         update-copyright: recognize groff's \(co marker
8587         * build-aux/update-copyright (circle_c_re): Also accept
8588         uses of \(co, as found in gzip.1.
8590 2015-01-08  Pádraig Brady  <P@draigBrady.com>
8592         maint.mk: fix compatibility with OS X nm
8593         * top/maint.mk (_gl_tight_scope): Use the -g option to
8594         show exported items rather than the -e option which is
8595         ignored on all platforms except OS X where it gives an error.
8596         Reported by Assaf Gordon.
8598 2015-01-07  KO Myung-Hun  <komh@chollian.net>
8600         localcharset: improve charset detection on OS/2
8601         Use system codepage when appropriate.  Map OS/2 codepages to
8602         GNU canonical charset names if possible.
8603         * lib/config.charset: Don't output aliases if "$os" is os2*.
8604         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
8605         result for OS/2.
8606         (locale_charset) [OS2]: Use system codepage if codeset is omitted
8607         from the locale name which is neither "C" nor "POSIX".
8609 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8611         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
8612         This reverts the last patch but one, as it shouldn't be needed now
8613         that the typo is fixed.
8614         * lib/count-leading-zeros.h (count_leading_zeros_ll):
8615         * lib/count-trailing-zeros.h:
8616         * lib/count-one-bits.h:
8617         Go back to using 64-bit intrinsics.
8619         count-leading-zeros: fix pragma typos
8620         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
8621         Fix typos in declaration of intrinsics when _MSC_VER.
8623 2015-01-06  Pádraig Brady  <P@draigBrady.com>
8625         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
8626         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
8627         intrinsics in this case.
8628         * lib/count-trailing-zeros.h: Likewise.
8629         * lib/count-one-bits.h: Likewise.
8631 2015-01-06  Daiki Ueno  <ueno@gnu.org>
8633         uniname/uniname: update to Unicode 7.0.0
8634         To accommodate new characters added since Unicode 5.1.0, this
8635         changes the internal representation of codepoint ranges.
8636         Previously, we grouped codepoint ranges by manually assigned 4-bit
8637         tag, which only allowed 16 groups.  This removes the limitation by
8638         switching to binary search on a table.  For the detail rationale
8639         and the benchmark results, see:
8640         https://lists.gnu.org/archive/html/bug-libunistring/2014-06/msg00001.html
8641         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
8642         to INDEX, as it no longer represents a codepoint.
8643         (range): New struct.
8644         (main): Switch to intervals list from a bit-pattern based
8645         classification.
8646         * lib/uniname/uninames.h: Regenerate.
8647         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
8648         * modules/uniname/base (configure.ac): Bump minimum version to
8649         0.9.5.
8650         * modules/uniname/uniname (configure.ac): Bump minimum version to
8651         0.9.5.
8653 2015-01-05  Eric Blake  <eblake@redhat.com>
8655         doc: update INSTALL from autoconf
8656         * doc/install.texi: Resync from autoconf.
8657         * doc/INSTALL: Reflect recent autoconf update.
8658         * doc/INSTALL.ISO: Likewise.
8659         * doc/INSTALL.UTF-8: Likewise.
8661         stdio: fix use of PRIdMAX on modern mingw
8662         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
8663         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
8664         to work with modern mingw.
8666 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
8668         pthread: detect git mingw builds with only partial pollution
8669         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
8670         pollution, as seen temporarily in Fedora 21.
8672 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8674         lib-symbol-versions: cache script check
8675         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
8676         Cache the check for linker version scripts.
8677         From a suggestion by Christophe Curis in:
8678         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00011.html
8680 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
8682         maint: fix grammar nits in propername (trivial change)
8683         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
8684         and use an adequate verb and tense.
8686 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
8688         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
8689         * module/gendocs: Add 'doc/gendocs_template_min'.
8691         * build-aux/gendocs.sh: Change email addresses and upstream URLs
8692         from to Gnulib's.
8693         (scripturl, templateurl): Adjust accordingly.
8695 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8697         gendocs: copyright date and version fix
8698         Reported by Karl Berry in:
8699         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00002.html
8700         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
8701         Fix copyright date.
8702         * build-aux/gendocs.sh (scriptversion): Update.
8704 2015-01-01  Karl Berry  <karl@gnu.org>
8706         * doc/install.texi,
8707         * build-aux/mdate-sh,
8708         * build-aux/depcomp,
8709         * build-aux/config.guess,
8710         * build-aux/config.sub,
8711         * build-aux/ar-lib,
8712         * build-aux/compile: revert copyright updates (some from last
8713         year) in slaved files.
8715 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8717         version-etc: new year
8718         * doc/gnulib.texi:
8719         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
8720         * all files: Run 'make update-copyright'.
8722 2014-12-30  Pádraig Brady  <P@draigBrady.com>
8724         xstrtol: ensure errno is reset
8725         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
8726         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
8728         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
8730 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8732         utimens: fix dependency typo
8733         * modules/utimens (Depends-on): Remove 'assure'.
8734         This bug was introduced in the recent 'assure' patch.
8736 2014-12-22  Eric Blake  <eblake@redhat.com>
8738         docs: mention why libgen.h is bad
8739         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
8741 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8743         assure: new module
8744         This works better than 'assert' when compiling with -DNDEBUG,
8745         as it avoids some compiler diagnostics in that case.
8746         Reported by Norihiro Tanaka in:
8747         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
8748         * MODULES.html.sh (func_all_modules): Add 'assure'.
8749         * lib/assure.h, modules/assure: New files.
8750         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
8751         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
8752         Prefer 'assure' to 'assert'.
8753         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
8754         * modules/chdir-long, modules/cycle-check, modules/fchdir:
8755         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
8756         Depend on 'assure'.
8758 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
8760         stdalign: port better to HP compilers
8761         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
8762         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
8764         stdalign: work around Apple GCC 4.0 bug
8765         Reported by David Fang in:
8766         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00194.html
8767         * lib/stdalign.in.h (_Alignas):
8768         * m4/stdalign.m4 (gl_STDALIGN_H):
8769         Do not use aligned attribute with GCC 4.0 on Apple.
8771 2014-12-16  Pádraig Brady  <P@draigBrady.com>
8773         getcwd: fix test failure on OS X 10.9
8774         * m4/getcwd-path-max.m4: Avoid the replacement if it
8775         won't be effective due to the PATH_MAX limitation of lstat().
8776         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
8777         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
8778         for this case for use in tests, and also exclude this
8779         case when setting REPLACE_GETCWD.
8780         * tests/test-getcwd.c (test_long_name): Restrict the
8781         tested path length so that lstat() will not be passed
8782         a path greater than PATH_MAX.
8783         Also key a test condition on HAVE_OPENAT_SUPPORT rather
8784         than AT_FDCWD, since the latter is set unconditionally
8785         since Sep 2009 in commit 52c658e9.
8787 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
8789         parse-datetime: avoid a compiler warning with byacc (trivial)
8790         * lib/parse-datetime.y (yylex): Use the same prototype in the
8791         function definition as the declaration, to avoid a -Wstrict-prototypes
8792         warning seen when using byacc.
8794 2014-12-12  Daiki Ueno  <ueno@gnu.org>
8796         unicase/locale-language-tests: fix LOCALE_FR test
8797         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
8798         a French locale with traditional encoding.
8799         Reported by umerqayam in:
8800         http://lists.gnu.org/archive/html/bug-libunistring/2014-12/msg00000.html
8802 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8804         stddef: support C11's max_align_t
8805         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
8806         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
8807         Do not undef, as that might cause max_align_t to be defined twice.
8808         Instead, change use to check for _GL_STDDEF_WINT_T too.
8809         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
8810         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
8811         Check for max_align_t.
8812         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
8813         * modules/stddef-tests (Depends-on): Add stdalign.
8814         * tests/test-stddef.c: Test max_align_t.
8816 2014-12-11  Daiki Ueno  <ueno@gnu.org>
8818         unistd: fix iOS check conditional
8819         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
8820         as 0 or 1 in <TargetConditionals.h>, and the previous check always
8821         yielded true on non-iOS environment.
8822         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
8823         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
8824         they are defined.
8826 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
8828         posixtm: avoid compiler warning in a better way
8829         * lib/posixtm.c (IF_LINT): Remove.
8830         (year, posix_time_parse):
8831         Return true (not 0) if successful.  All callers changed.
8832         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
8834 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
8836         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
8837         started with '/' on EMX.
8839 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
8841         freopen: workaround freopen() on OS/2 kLIBC
8842         * lib/freopen.c (rpl_freopen): Workaround.
8843         * m4/freopen.m4: Add os2* case.
8845         get_shared_library_fullname: port to EMX
8846         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
8847         on EMX, respectively.
8848         (_DLL_InitTerm): New on EMX.
8849         (get_shared_library_fullname): Implement on EMX.
8851         find_executable: port to EMX
8852         * lib/progreloc.c (find_executable): Implement on EMX.
8854         sched: check struct sched_param in spawn.h as well
8855         * lib/sched.in.h: Include spawn.h on kLIBC.
8856         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
8858 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
8860         bootstrap: Allow perl modules in $buildreq
8861         * build-aux/bootstrap: Add case for perl modules.
8863 2014-12-08  Pádraig Brady  <P@draigBrady.com>
8865         apply _GL_ATTRIBUTE_PURE to some inline functions
8866         clang 3.4.2 flagged these inline functions as pure
8867         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
8868         * lib/sig-handler.h (get_handler): Likewise.
8869         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
8870         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
8872 2014-12-06  Pádraig Brady  <P@draigBrady.com>
8874         vasnprintf: fix potential use after free
8875         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
8876         flagged by clang-analyzer 3.4.2.
8878 2014-12-05  Pádraig Brady  <P@draigBrady.com>
8880         filevercmp, posixtm: avoid compiler warnings with -O3
8881         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
8882         * lib/posixtm.c: (IF_LINT): Define.
8883         (posix_time_parse): Use it to void a "may be used uninitialized"
8884         warning, seen only with -O3.
8886 2014-12-05  Bruno Haible  <bruno@clisp.org>
8888         Fix LDBL80_WORDS macro on big endian platforms.
8889         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
8890         LDBL80_WORDS macro.
8891         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
8892         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8893         * tests/test-isfinite.c (test_isfinitel): Likewise.
8894         * tests/test-isinf.c (test_isinfl): Likewise.
8895         * tests/test-isnan.c (test_long_double): Likewise.
8896         * tests/test-isnanl.h (main): Likewise.
8897         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
8898         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
8899         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
8900         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
8901         Reported by Pádraig Brady.
8903 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
8905         git-version-gen: do not print new line characters
8906         * build-aux/git-version-gen: Use printf instead of echo and tr.
8908         gnulib-tool: recognize x:* as an absolute path
8909         * gnulib-tool (func_gnulib_dir): Add ?:* case.
8910         (func_relconcat): Likewise.
8912 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
8914         argp: avoid extraneous translation and mem leak with empty pre doc
8915         * lib/argp-help.c (argp_doc): Never translate the empty string,
8916         when "\v" is the first or last character of the string, as that
8917         has a reserved meaning to return the header info from a po file.
8918         This also fixes a small memory leak in the !post case.
8919         The issue can be seen with this command for example:
8920         LC_MESSAGES=en_US grub2-mknetdir --help
8922 2014-11-27  Daiki Ueno  <ueno@gnu.org>
8924         uniname/uniname-tests: skip if system's libunistring is used
8925         * modules/uniname/uniname-tests (Makefile.am): Skip test if
8926         uniname/uniname module is not compiled.
8928 2014-11-27  Pádraig Brady  <P@draigBrady.com>
8930         printf: fix configure check on big endian systems
8931         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
8933 2014-11-22  Daiki Ueno  <ueno@gnu.org>
8935         pipe-filter-gi, pipe-filter-ii: port to AIX
8936         On AIX 7.1, 'select' is defined as static and cannot be referred
8937         to from inline function.
8938         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
8939         the definition...
8940         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
8941         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
8943 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8945         gitlog-to-changelog: add --until
8946         * build-aux/gitlog-to-changelog: Support new --until option.
8947         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
8949 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
8951         extern-inline: update commentary about GCC bugs
8952         * m4/extern-inline.m4: Add another GCC bug number to comments.
8954 2014-11-13  Daiki Ueno  <ueno@gnu.org>
8956         gen-uni-tables: untabify
8957         * lib/gen-uni-tables.c: Untabify.
8959 2014-11-13  Daiki Ueno  <ueno@gnu.org>
8961         gen-uni-tables: check out-of-range values added to 3-level tables
8962         * lib/gen-uni-tables.c (output_category, output_bidi_category)
8963         (output_joining_type, output_ident_category): Check out-of-range
8964         values added to 3-level tables.
8966 2014-11-13  Daiki Ueno  <ueno@gnu.org>
8968         gen-uni-tables: utilize 'assert'
8969         * lib/gen-uni-tables.c: Include <assert.h>.
8970         (output_category, output_combclass, output_decimal_digit_test)
8971         (output_decimal_digit, output_digit_test, output_digit)
8972         (output_numeric, get_mirror_value, fill_properties)
8973         (fill_property30, is_property_alphabetic)
8974         (is_property_default_ignorable_code_point)
8975         (is_property_uppercase, is_property_lowercase)
8976         (is_property_cased, is_property_case_ignorable)
8977         (is_property_changes_when_lowercased, is_property_iso_control)
8978         (is_property_math, fill_arabicshaping, output_joining_group)
8979         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
8980         (output_wbp, fill_org_gbp, get_decomposition)
8981         (output_decomposition, fill_composition_exclusions)
8982         (debug_output_composition_tables, output_composition_tables)
8983         (redistribute_casefolding_rules, output_casing_rules): Use
8984         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
8985         reporting.
8987 2014-11-13  Daiki Ueno  <ueno@gnu.org>
8989         gen-uni-tables: cosmetic improvements
8990         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
8991         variables specification.
8992         (is_outdigit): Remove unused function.
8994 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
8996         fcntl-h-tests: port to PA-RISC GNU/Linux
8997         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
8999 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9001         fts: port to C89
9002         Problem reported for MSVC 16 by Gisle Vanem in:
9003         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00027.html
9004         * lib/fts.c (fts_build): Avoid declaration before statement.
9006 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9008         unistd: port to iOS
9009         Problem reported by André Klitzing in:
9010         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00013.html
9011         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
9013 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
9015         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
9016         Problem reported by Alan Modra in:
9017         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00007.html
9018         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
9019         Always cast the function arg, reverting this part of the previous
9020         change.
9022 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9024         obstack: avoid potentially-nonportable function casts
9025         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
9026         Remove, replacing with ...
9027         (call_chunkfun, call_freefun): New static functions.
9028         All uses changed.  Avoid potentially-nonportable casts.
9029         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
9030         (_obstack_begin_worker): Omit last two args, since they
9031         rely on potentially-nonportable casts.  All callers changed.
9032         * lib/obstack.h (_OBSTACK_CAST): New macro.
9033         Use it everywhere the old API used a potentially-nonportable cast.
9034         The new API doesn't cast.
9035         (struct obstack): Use unions rather than requiring
9036         potentially-nonportable casts.
9037         (obstack_chunkfun, obstack_freefun): Return void.
9039 2014-11-03  Alan Modra  <amodra@gmail.com>
9041         obstack: fix macro return values
9042         * lib/obstack.h (obstack_next_free): Return void *.
9043         (obstack_1grow_fast, obstack_blank_fast): Return void.
9044         For __GNUC__ macros:
9045         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
9046         For !__GNUC__ macros:
9047         (obstack_make_room, obstack_grow, obstack_grow0)
9048         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
9050 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
9052         obstack: do not assume system-supplied obstack is size_t safe
9053         * m4/obstack.m4: New file.
9054         * modules/obstack (Files): Add it.
9056         obstack: port to platforms that #define __alignof__
9057         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
9058         not if !_LIBC.  We don't know of any platforms that #define
9059         __alignof__, but it might be useful in tests.  Conversely,
9060         glibc assumes GCC.
9062 2014-11-03  Pádraig Brady  <P@draigBrady.com>
9064         linkat: don't unconditionally replace on GNU/Linux
9065         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
9066         was redundant for a few reasons.  It was present to support compiling
9067         on new systems but running on the old narrow window of Linux 2.6.1[67].
9068         It setup and cleaned up test files which weren't actually used.
9069         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
9070         implicit in the following check.
9072 2014-11-03  Pádraig Brady  <P@draigBrady.com>
9074         linkat: wrap to handle symlinks on OS X 10.10
9075         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
9076         but not usable because it doesn't support creating hardlinks
9077         to symlinks.  Therefore add a generic test for this capability
9078         and fallback to our emulation if linkat() fails with ENOTSUP.
9080 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9082         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
9083         * doc/posix-functions/open.texi (open):
9084         * doc/posix-functions/openat.texi (openat):
9085         Document that these functions do not set errno to ELOOP when
9086         a symlink is opened with O_NOFOLLOW.
9088 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9090         obstack: add NEWS entry for recent incompatible changes
9091         * NEWS: Describe recent changes.
9093 2014-10-30  Pádraig Brady  <P@draigBrady.com>
9095         mountlist: don't use libmount to decide on dummy/remote
9096         * lib/mountlist.c (read_file_system_list): Don't use the libmount
9097         routines to determine whether a file system is dummy or remote,
9098         as they're not currently compatible.  For example the remoteness
9099         is determined on file system type (for which the list seems incomplete),
9100         rather than simply checking for a ':' in the device name.
9101         Also libmount currently determines that 'tmpfs' is a dummy file system
9102         even though it has associated storage.
9104 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
9106         obstack: prefer __alignof__ to alignof
9107         This is for portability to pre-4.7 GCC when compiling glibc.
9108         See Joseph S. Myers in:
9109         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
9110         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
9111         New macro, defined by including and using <alignof.h>.
9112         (MAX): New macro.
9113         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
9114         Do not use enums as they are not portable to some broken compilers.
9115         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
9117         obstack: prefer alignof to calculating alignments by hand
9118         * lib/obstack.c: Include <stdalign.h>.
9119         (struct fooalign): Remove.
9120         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
9121         * modules/obstack (Depends-on): Add stdalign.
9123 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
9125         obstack: use size_t alignments and check for overflow
9126         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
9127         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
9128         * lib/obstack.h (struct obstack.alignment_mask):
9129         Use _OBSTACK_SIZE_T, not int, for alignments.
9130         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
9131         overflows, e.g., when adding the alignment.
9133 2014-10-29  Alan Modra  <amodra@gmail.com>
9135         obstack: 64-bit obstack support, part 3
9136         This finally enables full 64-bit obstack support.  The glibc
9137         shared library specific code is removed from obstack.c too, and
9138         the error handling code conditionally compiled under control of
9139         another macro, _OBSTACK_NO_ERROR_HANDLER.
9140         * lib/obstack.h: Include string.h earlier.
9141         (_OBSTACK_INTERFACE_VERSION): Define.
9142         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
9143         * lib/obstack.c: Don't include shlib-compat.h.
9144         (OBSTACK_INTERFACE_VERSION): Delete.
9145         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
9146         glibc code is compatible with version 2.  Don't include stdio.h for
9147         __GNU_LIBRARY.
9148         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
9149         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
9150         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
9151         glibc shared library specific source.
9153         obstack: 64-bit obstack support, part 2
9154         This gets us 4G obstack support, without changing ABI
9155         compatibility, apart from possibly introducing some
9156         signed/unsigned comparison warnings in code that uses obstack.h.
9157         a) Replace "int" size parameters, return values, and macro local vars
9158            with _OBSTACK_SIZE_T, an "unsigned int" for now.
9159         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
9160         c) Make all obstack macros checking available room use obstack_room.
9161            "next_free + desired > chunk_limit" may wrap the lhs for chunks
9162            allocated near the top of memory.
9163         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
9164         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
9165         in place of "int" size parameters, return values and local vars.
9166         (_CHUNK_SIZE_T): Define.
9167         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
9168         union use an _OBSTACK_SIZE_T integer type.
9169         For __GNUC__ versions of the following macros...
9170         (obstack_room): Rename local var.
9171         (obstack_make_room): Use obstack_room.
9172         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
9173         obstack_int_grow, obstack_blank): Likewise.
9174         (obstack_finish): Use unsigned comparison when comparing aligned
9175         next_free against chunk_limit.
9176         (obstack_free): Cast OBJ to remove possible const qualifier.
9177         For !__GNUC__ versions of the following macros...
9178         (obstack_make_room): Use obstack_room.
9179         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
9180         obstack_int_grow, obstack_blank): Likewise.
9181         (obstack_finish): Use unsigned comparision when comparing aligned
9182         next_free against chunk_limit.
9183         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
9184         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
9185         _OBSTACK_SIZE_T.
9186         (_obstack_begin, _obstack_begin_1): Likewise.
9187         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
9188         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
9190         obstack: 64-bit obstack support, part 1
9191         a) Correct calls to alloc function, to use a size_t arg.  "long" is
9192            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
9193            and "size_t" 64 bits.
9194         b) Consolidate _obstack_begin and _obstack_begin1 code.
9195         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
9196         use "size_t" rather than "long".
9197         (_obstack_begin, _obstack_begin1): Likewise.
9198         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
9199         obstack_chunkfun): Update alloc function casts.
9200         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
9201         (chunkfun_type, freefun_type): New typdefs.
9202         (_obstack_begin_worker): Split out from ..
9203         (_obstack_begin, _obstack_begin_1): ..here.
9205         obstack: tidy part 2
9206         a) Don't be concerned about "not polluting the namespace with stddef.h
9207            symbols" in obstack.h, since gnulib string.h includes stddef.h
9208            anyway, and it seems unlikely that anyone would care.
9209         b) Don't roll our own slow memcpy in _obstack_newchunk.
9210         c) Rename obstack_free to _obstack_free.  This makes the naming
9211            consistent with other obstack functions and obviates the need for
9212            __obstack_free.  Ancient obstack.c defined both obstack_free and
9213            _obstack_free.  We continue to do that for _LIBC via an alias.
9214         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
9215            is clever, but nowadays gcc warns on undefined macros.  You'll get
9216            an undefined macro warning if simulating an old gcc with -U__GNUC__
9217            -U__GNUC_MINOR__ -D__GNUC__=1.
9218         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
9219         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
9220         (__obstack_free): Delete, update refs.
9221         (_obstack_free): Rename from obstack_free.
9222         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
9223         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
9224         * lib/obstack.c: Don't include stddef.h.
9225         (COPYING_UNIT): Delete.
9226         (_obstack_begin): Formatting fix.
9227         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
9228         (_obstack_free): Rename from __obstack_free, update alias.  Move
9229         undef of obstack_free to where it is needed.
9231         obstack: tidy part 1
9232         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
9233            to me, and result in overlong lines after later patches.
9234         b) Move error handling code, to avoid a forward declaration and to
9235            simplify later patches in this series.
9236         * lib/obstack.h (struct obstack <temp>): Rename fields of union
9237         and update all uses.
9238         * lib/obstack.c: Include stdlib.h earlier.
9239         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
9240         in file.
9241         (print_and_abort): Remove now redundant forward declaration.
9243 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9245         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
9246         Without this change, in bleeding-edge fileutils Autoconf complains
9247         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
9248         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
9249         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
9250         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
9252 2014-10-24  Daiki Ueno  <ueno@gnu.org>
9254         iconv: avoid false detection of non-working iconv
9255         The INBUF arguments of iconv can be either 'const char **'
9256         or 'char **'.  If CC is g++, the difference causes a compile error
9257         and thus leads to a false detection of non-working iconv.
9258         Reported by Eli Zaretskii and Werner LEMBERG in:
9259         <https://lists.gnu.org/archive/html/bug-gnulib/2014-10/msg00023.html>.
9260         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
9261         iconv.  Bump serial number.
9263 2014-10-23  Pádraig Brady  <P@draigBrady.com>
9265         bootstrap: print more diagnostics for missing programs
9266         * build-aux/bootstrap: only suppress stderr when checking for
9267         alternative program names.  This supports programs issuing non
9268         standard error messages.
9270 2014-10-23  Pádraig Brady  <P@draigBrady.com>
9272         bootstrap: only update the gnulib submodule
9273         * build-aux/bootstrap: Restrict the "submodule update" command
9274         to the gnulib path.
9276 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
9278         symlinkat: port to AIX 7.1
9279         * doc/posix-functions/symlinkat.texi (symlinkat):
9280         Mention AIX porting problem.
9281         * lib/symlinkat.c: Always include errno.h.
9282         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
9283         * lib/unistd.in.h (symlinkat): Add replacement machinery.
9284         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
9285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
9286         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
9287         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
9288         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
9290         readlinkat: port to AIX 7.1
9291         * doc/posix-functions/readlink.texi (readlink):
9292         * doc/posix-functions/readlinkat.texi (readlinkat):
9293         Mention AIX porting problem.
9294         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
9295         New function.
9296         * lib/unistd.in.h (readlinkat): Add replacement machinery.
9297         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
9298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
9299         * modules/readlinkat (configure.ac): Also compile replacement
9300         if REPLACE_READLINKAT.
9301         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
9303 2014-10-12  Karl Berry  <karl@gnu.org>
9305         * doc/posix-functions/dirname.texi: remove spurious {.
9307 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
9309         basename, dirname: Improve documentation.
9310         * doc/posix-functions/basename.texi: Mention dirname module and
9311         base_name() function.
9312         * doc/posix-functions/dirname.texi: Mention dir_name() and
9313         mdir_name() functions.
9314         Suggested by Werner LEMBERG <wl@gnu.org>.
9316 2014-09-24  Jim Meyering  <meyering@fb.com>
9318         exclude: declare exclude_patopts static
9319         * lib/exclude.c (exclude_patopts): Declare static,
9320         to avoid triggering a -Wmissing-prototypes warning.
9321         The alternative (declaring it in the .h file) would
9322         require publicizing the private "struct patopts".
9324 2014-09-21  Werner Lemberg  <wl@gnu.org>
9326         dirname: support compilation with C++
9327         * lib/dirname.h: Add necessary C linkage declarations.
9329 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9331         qsort_r: include <config.h>
9332         Problem reported by Tom G. Christensen in:
9333         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html
9334         * lib/qsort.c [!_LIBC]: Include <config.h> first.
9336 2014-09-16  Dylan Cali  <calid1984@gmail.com>
9338         avltree-list: avoid compiler warnings (trivial)
9339         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
9340         -Werror=suggest-attribute=pure.
9341         * lib/gl_array_list.c: Likewise.
9342         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
9343         declaration to avoid -Werror=missing-prototypes.  This is not added
9344         to a header as only exported for tests.  Add (void) to the
9345         check_invariants() call to indicate we're discarding the result
9346         in this context which avoids -Werror=unused-value.  Note we don't
9347         use ignore_value here to avoid a dependency as we know we'll not
9348         be adding __attribute__((warn_unused_result)) to check_invariants().
9349         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
9351 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9353         qsort_r: new module, for GNU-style qsort_r
9354         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
9356 2014-09-15  Werner LEMBERG  <wl@gnu.org>
9358         strerror_r-posix: support compilation with C++
9359         * lib/strerror_r.c: Add necessary C linkage declarations.
9361 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
9363         fcntl-h: fix compilation with Intel C++ compiler (trivial)
9364         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
9366 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
9368         mountlist: use /proc/self/mountinfo when available
9369         Use libmount to propagate device IDs provided by Linux in
9370         /proc/self/mountinfo.  This will give more accurate output when
9371         using df in chroot'ed environments as the device IDs are not
9372         determined by stat() which may be inaccurate within the chroot.
9373         * lib/mountlist.c (read_file_system_list): Use the libmount routines
9374         from util-linux to parse "/proc/self/mountinfo" or fall back to
9375         standard getmntent() processing.
9376         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
9377         getmntent() is used, as is the case on GNU/Linux.
9379 2014-09-07  Eric Wong  <normalperson@yhbt.net>
9381         users.txt: add cmogstored
9382         cmogstored has used gnulib since the beginning in 2012 to support
9383         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
9385 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
9387         Trivial change.
9388         * gnulib-tool: Use same options as build-aux/bootstrap to download
9389         PO files.
9391 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
9393         Trivial change.
9394         * gnulib-tool: Fallback to wget when rsync of PO files fails.
9396 2014-09-04  Eric Blake  <eblake@redhat.com>
9398         maintainer-makefile: add syntax check for useless ';;'
9399         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
9401 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
9403         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
9404         Problem reported by Assaf Gordon in:
9405         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
9406         Apparently Ubuntu is doing some fancy link-time optimization
9407         that doesn't work with -lpthread but does work with -pthread.
9408         Work around the bug by preferring -pthread to -lpthread.
9409         * m4/pthread.m4 (gl_PTHREAD_CHECK):
9410         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
9411         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9412         Treat -pthread like -lpthread.
9414 2014-09-04  Eric Blake  <eblake@redhat.com>
9416         error: drop spurious semicolon
9417         * lib/error.c (__error_at_line): Fix ';;'.
9419 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9421         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
9422         * m4/gnulib-common.m4 (AC_C_RESTRICT):
9423         Override AC_C_RESTRICT unconditionally.
9424         Update from autoconf, incorporating:
9425         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
9426         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
9428 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9430         manywarnings: add GCC 4.9 warnings
9431         Also, make it easier to maintain this in the future.
9432         * build-aux/gcc-warning.spec: Add -Wabi-tag,
9433         -Wconditionally-supported, -Wdelete-incomplete,
9434         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
9435         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
9436         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
9437         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
9438         only for older GCC versions that need them.  Handle
9439         -Wnormalized=nfc specially, so that the 'comm' command used
9440         for maintenance doesn't get confused.
9442 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9444         vasnprintf: fix bugs in width computation
9445         * lib/vasnprintf.c (VASNPRINTF):
9446         Rework previous change, which introduced a bug,
9447         to avoid the warning in a different way.
9448         Avoid undefined behavior if the width arg is less than -INT_MAX.
9449         Avoid unnecessary use of HAS_WIDTH local.
9451 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
9453         vasnprintf: Avoid signed/unsigned comparison warning.
9454         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
9455         compare end addr of generated string w/ maximum end addr.
9457 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
9459         parse-datetime: Avoid pointer difference.
9460         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
9461         instead of calculating difference of pointers.  This removes an
9462         annoying warning, devoid of any use.
9464 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9466         qsort_r: new module, for GNU-style qsort_r
9467         This works even on FreeBSD, which has an incompatible qsort_r API.
9468         * MODULES.html.sh: Add it.
9469         * doc/glibc-functions/qsort_r.texi: It's now supported.
9470         * lib/qsort.c: New file, taken from glibc with minor changes
9471         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
9472         removed.
9473         * lib/qsort_r.c: New file, compiled only on FreeBSD.
9474         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
9475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
9476         * modules/qsort_r, modules/qsort_r-tests: New files.
9477         * modules/stdlib (Makefile): Set up its defaults.
9478         * tests/test-qsort_r.c: New file.
9480 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
9482         vla: new module
9483         GNU RCS can use this, mostly for documentation I expect.  See:
9484         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html
9485         * MODULES.html.sh: Add vla.
9486         * lib/vla.h, modules/vla: New files.
9488 2014-08-07  Daiki Ueno  <ueno@gnu.org>
9490         localename: make gl_locale_name_thread really thread-safe on Windows
9491         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
9492         "glthread/lock.h".
9493         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
9494         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
9496 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
9498         getpass: don't assume struct termios
9499         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
9500         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00015.html
9501         * lib/getpass.c (getpass): Port to systems lacking struct termios.
9503         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
9504         Problem reported by Jonas 'Sortie' Termansen in:
9505         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00023.html
9506         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
9507         Implement via sysconf for platforms that lack getdtablesize.
9509         vararrays: modernize AC_C_VARARRAYS for C11
9510         This backports a change I recently made to Autoconf.
9511         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
9512         VLAs are not supported, as this is what C11 does.  The old macro
9513         HAVE_C_VARARRAYS is still defined if they are supported, but is
9514         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
9516 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
9518         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
9519         * build-aux/install-reloc (func_create_wrapper): Also wrap
9520         strerror-override, stat, stat.
9522 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
9524         sys_select: fix FD_ZERO problem on Solaris 10
9525         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
9526         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
9527         to expand to an expression that invoked memset without necessarily
9528         including <string.h>.  The problem was that the first include
9529         defined _SYS_TIME_H, causing the second include to short-circuit.
9530         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
9531         Also, fix what appears to be a cut-and-paste typo, by replacing
9532         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
9533         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
9535         accept: document Solaris 10 type glitch
9536         * doc/posix-functions/accept.texi (accept): Mention that
9537         Solaris 10 'accept' takes void * last arg, not socklen_t *.
9539 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
9541         extern-inline: port to FreeBSD, DragonFly
9542         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
9543         is present if either __DragonFly__ or __FreeBSD__ is defined.
9544         FreeBSD problem reported by Andrey Borzenkov in:
9545         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
9546         Also, worry about __APPLE__ only if __MACH__ is also defined,
9547         as this is more consistent with the rest of gnulib.
9548         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
9549         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
9551 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
9553         regex: Make #if/#ifdef usage consistent for DEBUG
9554         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
9555         of the inconsistent usage of #if and #ifdef as that works with
9556         both Glibc and Gnulib's style.
9558 2014-07-31  Eric Blake  <eblake@redhat.com>
9560         openat-die: use _Noreturn markup
9561         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
9562         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
9563         _Noreturn.
9565 2014-07-30  Eric Blake  <eblake@redhat.com>
9567         test-open: port to cygwin, which lacks Fortify
9568         * tests/test-open.h (ALWAYS_INLINE): New macro.
9569         (__always_inline): Don't abuse internal symbol on non-glibc.
9571 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
9573         localename: Enforce declarations before statements.
9574         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
9575         first statement.
9577 2014-07-18  Jim Meyering  <meyering@fb.com>
9579         test-userspec: don't look up numeric user names
9580         * tests/test-userspec.c: I found a system for which getpwnam("0")
9581         returned a pointer to a non-root user's entry, and that made the
9582         test fail.
9583         (T): Prefix each numeric input with "+", to inhibit lookup.
9585 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
9587         localcharset, localename: MS-Windows support for non-default locales
9588         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
9589         falling back on the default system codepage, try extracting
9590         the codepage from what 'setlocale' returns.  This allows to
9591         take into account changes of the codeset due to non-default
9592         locale set by a previous call to 'setlocale'.
9593         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
9594         Define if not already defined.
9595         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
9596         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
9597         current locale by calling 'setlocale', then converting the
9598         locale name into LCID by calling 'get_lcid'.  This allows to
9599         take into account changes in the current locale from the
9600         default one, in contrast to GetThreadLocale.
9602 2014-07-14  Daiki Ueno  <ueno@gnu.org>
9604         announce-gen: avoid failure when Digest::SHA is installed
9605         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
9606         Digest::SHA1->new in print_checksums fails.
9607         * build-aux/announce-gen (digest_classes): New associative array
9608         for available message digest implementations.
9609         (print_locations): Use it.
9611 2014-07-13  Pádraig Brady  <P@draigBrady.com>
9613         gettext: revert "update macros to version 0.19"
9614         This reverts commit 9b9370ca, as it currently requires that
9615         developers of any project that explicitly uses the gettext module
9616         or implicitly uses it through the utimens-tests or
9617         futimens-tests modules, use gettext >= 0.19.
9618         However there are some stability and availablity issues with
9619         that version at present.  We can reinstate this soon, when stability
9620         is addressed and packages are more readily available.
9622 2014-07-12  Jim Meyering  <meyering@fb.com>
9624         regex: don't deref NULL upon heap allocation failure
9625         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
9626         failure in one more place.
9627         To trigger the segfault, configure grep -with-included-regex,
9628         build it, and run these commands:
9629         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
9630         I discovered this while replying to a private report from
9631         Jens Schleusener about excessive memory consumption by grep
9632         when using a regular expression like the one above.
9634 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
9636         regex: fix memory leak in compiler
9637         Fix by Andreas Schwab in:
9638         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
9639         * lib/regcomp.c (parse_reg_exp): Deallocate partially
9640         constructed tree before returning error.
9642 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
9644         announce-gen: avoid perl warnings
9645         * build-aux/announce-gen: add two minor checks to avoid
9646         "use of uninitialized value" warnings when command-line parameters are
9647         missing.
9649 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
9651         localename: avoid -Wsuggest-attribute={const,pure} warnings
9652         * lib/localename.c (string_has): Tag internal function as pure.
9653         * lib/localename.h (gl_locale_name_default): Tag extern declaration
9654         as const when appropriate.
9656 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
9658         nl_langinfo: Fix last change.
9659         * lib/nl_langinfo.c (includes): Drop redundant include.
9661 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9663         error: Fix -Wundef warnings in glibc
9664         * lib/error.c [_LIBC]: Define default macros for
9665         glibc.
9666         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
9667         Check _LIBC before STRERROR_R_CHAR_P.
9669         error: Sync from glibc master
9670         * lib/error.c [_LIBC]: Remove INTUSE usage.
9671         (error_tail): Remove unused macro ALLOCA_LIMIT.
9672         Fix potential buffer overflow.  Fix potential NULL dereference
9673         in strcmp.
9675 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
9677         nl_langinfo: fix build under mingw
9678         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
9680 2014-07-09  Andrew D Warshall  <warshall@99main.com>
9682         mountlist: do not classify a bind-mounted dir entry as "dummy"
9683         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
9684         1-argument getmntent() (instead of assuming absence).
9686 2014-07-08  Eric Blake  <eblake@redhat.com>
9688         maint.mk: less syntax-check noise when SIGPIPE is ignored
9689         * top/maint.mk (_sc_header_without_use)
9690         (sc_require_config_h_first): Parse full list.
9692 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
9693             Paul Eggert  <eggert@cs.ucla.edu>
9695         nl_langinfo: CODESET on MS-Windows and more items from localeconv
9696         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
9697         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
9698         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
9699         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
9700         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
9701         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
9702         Include <stdio.h> if Microsoft Windows.
9703         Include <time.h> if !REPLACE_NL_LANGINFO.
9704         (ctype_codeset): New function, taken from rpl_nl_langinfo,
9705         and with improvements for Microsoft Windows.
9706         (rpl_nl_langinfo): Use it.
9707         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
9708         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
9709         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
9710         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
9711         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
9712         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
9713         corresponding values returned by 'localeconv'.  Compute the values
9714         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
9715         'strftime' with a suitable struct tm value.
9717 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9719         Bruno Haible has stepped down as maintainer.
9720         See Karl Berry in:
9721         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00004.html
9722         Daiki Ueno has volunteered to maintain libunistring; see:
9723         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00005.html
9724         * modules/gen-uni-tables, modules/libunistring:
9725         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
9726         * modules/unicase/base, modules/unicase/cased:
9727         * modules/unicase/empty-prefix-context:
9728         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
9729         * modules/unicase/locale-language, modules/unicase/special-casing:
9730         * modules/unicase/tocasefold, modules/unicase/tolower:
9731         * modules/unicase/totitle, modules/unicase/toupper:
9732         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
9733         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
9734         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
9735         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
9736         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
9737         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
9738         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
9739         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
9740         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
9741         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
9742         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
9743         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
9744         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
9745         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
9746         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
9747         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
9748         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
9749         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
9750         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
9751         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
9752         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
9753         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
9754         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
9755         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
9756         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
9757         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
9758         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
9759         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
9760         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
9761         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
9762         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
9763         * modules/unicase/ulc-casexfrm, modules/unicodeio:
9764         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
9765         * modules/uniconv/u16-conv-to-enc:
9766         * modules/uniconv/u16-strconv-from-enc:
9767         * modules/uniconv/u16-strconv-from-locale:
9768         * modules/uniconv/u16-strconv-to-enc:
9769         * modules/uniconv/u16-strconv-to-locale:
9770         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
9771         * modules/uniconv/u32-strconv-from-enc:
9772         * modules/uniconv/u32-strconv-from-locale:
9773         * modules/uniconv/u32-strconv-to-enc:
9774         * modules/uniconv/u32-strconv-to-locale:
9775         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
9776         * modules/uniconv/u8-strconv-from-enc:
9777         * modules/uniconv/u8-strconv-from-locale:
9778         * modules/uniconv/u8-strconv-to-enc:
9779         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
9780         * modules/unictype/bidicategory-all:
9781         * modules/unictype/bidicategory-byname:
9782         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
9783         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
9784         * modules/unictype/bidiclass-byname:
9785         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
9786         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
9787         * modules/unictype/block-all, modules/unictype/block-list:
9788         * modules/unictype/block-of, modules/unictype/block-test:
9789         * modules/unictype/category-C, modules/unictype/category-Cc:
9790         * modules/unictype/category-Cf, modules/unictype/category-Cn:
9791         * modules/unictype/category-Co, modules/unictype/category-Cs:
9792         * modules/unictype/category-L, modules/unictype/category-LC:
9793         * modules/unictype/category-Ll, modules/unictype/category-Lm:
9794         * modules/unictype/category-Lo, modules/unictype/category-Lt:
9795         * modules/unictype/category-Lu, modules/unictype/category-M:
9796         * modules/unictype/category-Mc, modules/unictype/category-Me:
9797         * modules/unictype/category-Mn, modules/unictype/category-N:
9798         * modules/unictype/category-Nd, modules/unictype/category-Nl:
9799         * modules/unictype/category-No, modules/unictype/category-P:
9800         * modules/unictype/category-Pc, modules/unictype/category-Pd:
9801         * modules/unictype/category-Pe, modules/unictype/category-Pf:
9802         * modules/unictype/category-Pi, modules/unictype/category-Po:
9803         * modules/unictype/category-Ps, modules/unictype/category-S:
9804         * modules/unictype/category-Sc, modules/unictype/category-Sk:
9805         * modules/unictype/category-Sm, modules/unictype/category-So:
9806         * modules/unictype/category-Z, modules/unictype/category-Zl:
9807         * modules/unictype/category-Zp, modules/unictype/category-Zs:
9808         * modules/unictype/category-all, modules/unictype/category-and:
9809         * modules/unictype/category-and-not, modules/unictype/category-byname:
9810         * modules/unictype/category-longname, modules/unictype/category-name:
9811         * modules/unictype/category-none, modules/unictype/category-of:
9812         * modules/unictype/category-or, modules/unictype/category-test:
9813         * modules/unictype/category-test-withtable:
9814         * modules/unictype/combining-class:
9815         * modules/unictype/combining-class-all:
9816         * modules/unictype/combining-class-byname:
9817         * modules/unictype/combining-class-longname:
9818         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
9819         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
9820         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
9821         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
9822         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
9823         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
9824         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
9825         * modules/unictype/digit, modules/unictype/joininggroup-all:
9826         * modules/unictype/joininggroup-byname:
9827         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
9828         * modules/unictype/joiningtype-all:
9829         * modules/unictype/joiningtype-byname:
9830         * modules/unictype/joiningtype-longname:
9831         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
9832         * modules/unictype/mirror, modules/unictype/numeric:
9833         * modules/unictype/property-all, modules/unictype/property-alphabetic:
9834         * modules/unictype/property-ascii-hex-digit:
9835         * modules/unictype/property-bidi-arabic-digit:
9836         * modules/unictype/property-bidi-arabic-right-to-left:
9837         * modules/unictype/property-bidi-block-separator:
9838         * modules/unictype/property-bidi-boundary-neutral:
9839         * modules/unictype/property-bidi-common-separator:
9840         * modules/unictype/property-bidi-control:
9841         * modules/unictype/property-bidi-embedding-or-override:
9842         * modules/unictype/property-bidi-eur-num-separator:
9843         * modules/unictype/property-bidi-eur-num-terminator:
9844         * modules/unictype/property-bidi-european-digit:
9845         * modules/unictype/property-bidi-hebrew-right-to-left:
9846         * modules/unictype/property-bidi-left-to-right:
9847         * modules/unictype/property-bidi-non-spacing-mark:
9848         * modules/unictype/property-bidi-other-neutral:
9849         * modules/unictype/property-bidi-pdf:
9850         * modules/unictype/property-bidi-segment-separator:
9851         * modules/unictype/property-bidi-whitespace:
9852         * modules/unictype/property-byname:
9853         * modules/unictype/property-case-ignorable:
9854         * modules/unictype/property-cased:
9855         * modules/unictype/property-changes-when-casefolded:
9856         * modules/unictype/property-changes-when-casemapped:
9857         * modules/unictype/property-changes-when-lowercased:
9858         * modules/unictype/property-changes-when-titlecased:
9859         * modules/unictype/property-changes-when-uppercased:
9860         * modules/unictype/property-combining:
9861         * modules/unictype/property-composite:
9862         * modules/unictype/property-currency-symbol:
9863         * modules/unictype/property-dash:
9864         * modules/unictype/property-decimal-digit:
9865         * modules/unictype/property-default-ignorable-code-point:
9866         * modules/unictype/property-deprecated:
9867         * modules/unictype/property-diacritic:
9868         * modules/unictype/property-extender:
9869         * modules/unictype/property-format-control:
9870         * modules/unictype/property-grapheme-base:
9871         * modules/unictype/property-grapheme-extend:
9872         * modules/unictype/property-grapheme-link:
9873         * modules/unictype/property-hex-digit:
9874         * modules/unictype/property-hyphen:
9875         * modules/unictype/property-id-continue:
9876         * modules/unictype/property-id-start:
9877         * modules/unictype/property-ideographic:
9878         * modules/unictype/property-ids-binary-operator:
9879         * modules/unictype/property-ids-trinary-operator:
9880         * modules/unictype/property-ignorable-control:
9881         * modules/unictype/property-iso-control:
9882         * modules/unictype/property-join-control:
9883         * modules/unictype/property-left-of-pair:
9884         * modules/unictype/property-line-separator:
9885         * modules/unictype/property-logical-order-exception:
9886         * modules/unictype/property-lowercase, modules/unictype/property-math:
9887         * modules/unictype/property-non-break:
9888         * modules/unictype/property-not-a-character:
9889         * modules/unictype/property-numeric:
9890         * modules/unictype/property-other-alphabetic:
9891         * modules/unictype/property-other-default-ignorable-code-point:
9892         * modules/unictype/property-other-grapheme-extend:
9893         * modules/unictype/property-other-id-continue:
9894         * modules/unictype/property-other-id-start:
9895         * modules/unictype/property-other-lowercase:
9896         * modules/unictype/property-other-math:
9897         * modules/unictype/property-other-uppercase:
9898         * modules/unictype/property-paired-punctuation:
9899         * modules/unictype/property-paragraph-separator:
9900         * modules/unictype/property-pattern-syntax:
9901         * modules/unictype/property-pattern-white-space:
9902         * modules/unictype/property-private-use:
9903         * modules/unictype/property-punctuation:
9904         * modules/unictype/property-quotation-mark:
9905         * modules/unictype/property-radical:
9906         * modules/unictype/property-sentence-terminal:
9907         * modules/unictype/property-soft-dotted:
9908         * modules/unictype/property-space:
9909         * modules/unictype/property-terminal-punctuation:
9910         * modules/unictype/property-test, modules/unictype/property-titlecase:
9911         * modules/unictype/property-unassigned-code-value:
9912         * modules/unictype/property-unified-ideograph:
9913         * modules/unictype/property-uppercase:
9914         * modules/unictype/property-variation-selector:
9915         * modules/unictype/property-white-space:
9916         * modules/unictype/property-xid-continue:
9917         * modules/unictype/property-xid-start:
9918         * modules/unictype/property-zero-width, modules/unictype/scripts:
9919         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
9920         * modules/unictype/syntax-c-whitespace:
9921         * modules/unictype/syntax-java-ident:
9922         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
9923         * modules/unigbrk/u16-grapheme-breaks:
9924         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
9925         * modules/unigbrk/u32-grapheme-breaks:
9926         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
9927         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
9928         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
9929         * modules/unigbrk/uc-is-grapheme-break:
9930         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
9931         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
9932         * modules/unilbrk/u16-width-linebreaks:
9933         * modules/unilbrk/u32-possible-linebreaks:
9934         * modules/unilbrk/u32-width-linebreaks:
9935         * modules/unilbrk/u8-possible-linebreaks:
9936         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
9937         * modules/unilbrk/ulc-possible-linebreaks:
9938         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
9939         * modules/uniname/uniname, modules/uninorm/base:
9940         * modules/uninorm/canonical-decomposition:
9941         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
9942         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
9943         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
9944         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
9945         * modules/uninorm/nfkc, modules/uninorm/nfkd:
9946         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
9947         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
9948         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
9949         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
9950         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
9951         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
9952         * modules/unistdio/base, modules/unistdio/u-printf-args:
9953         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
9954         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
9955         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
9956         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
9957         * modules/unistdio/u16-u16-sprintf:
9958         * modules/unistdio/u16-u16-vasnprintf:
9959         * modules/unistdio/u16-u16-vasprintf:
9960         * modules/unistdio/u16-u16-vsnprintf:
9961         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
9962         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
9963         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
9964         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
9965         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
9966         * modules/unistdio/u32-u32-asnprintf:
9967         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
9968         * modules/unistdio/u32-u32-sprintf:
9969         * modules/unistdio/u32-u32-vasnprintf:
9970         * modules/unistdio/u32-u32-vasprintf:
9971         * modules/unistdio/u32-u32-vsnprintf:
9972         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
9973         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
9974         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
9975         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
9976         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
9977         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
9978         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
9979         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
9980         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
9981         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
9982         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
9983         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
9984         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
9985         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
9986         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
9987         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
9988         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
9989         * modules/unistr/u16-check, modules/unistr/u16-chr:
9990         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
9991         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
9992         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
9993         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
9994         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
9995         * modules/unistr/u16-move, modules/unistr/u16-next:
9996         * modules/unistr/u16-prev, modules/unistr/u16-set:
9997         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
9998         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
9999         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
10000         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
10001         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
10002         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
10003         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
10004         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
10005         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
10006         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
10007         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
10008         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
10009         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
10010         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
10011         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
10012         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
10013         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
10014         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
10015         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
10016         * modules/unistr/u32-next, modules/unistr/u32-prev:
10017         * modules/unistr/u32-set, modules/unistr/u32-startswith:
10018         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
10019         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
10020         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
10021         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
10022         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
10023         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
10024         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
10025         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
10026         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
10027         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
10028         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
10029         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
10030         * modules/unistr/u8-check, modules/unistr/u8-chr:
10031         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
10032         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
10033         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
10034         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
10035         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
10036         * modules/unistr/u8-next, modules/unistr/u8-prev:
10037         * modules/unistr/u8-set, modules/unistr/u8-startswith:
10038         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
10039         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
10040         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
10041         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
10042         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
10043         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
10044         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
10045         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
10046         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
10047         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
10048         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
10049         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
10050         * modules/uniwbrk/base, modules/uniwbrk/table:
10051         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
10052         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
10053         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
10054         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
10055         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
10056         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
10057         * modules/uniwidth/width, modules/utf16-ucs4:
10058         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
10059         * modules/utf8-ucs4-unsafe:
10060         Change maintainer from Bruno Haible to Daiki Ueno.
10061         This is my guess at the libunistring modules; please feel free
10062         to fix if I guessed incorrectly.
10063         * modules/accept4, modules/acl, modules/acos, modules/acosf:
10064         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
10065         * modules/areadlink, modules/array-list, modules/array-mergesort:
10066         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
10067         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
10068         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
10069         * modules/binary-io, modules/bison-i18n, modules/btowc:
10070         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
10071         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
10072         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
10073         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
10074         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
10075         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
10076         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
10077         * modules/closedir, modules/concat-filename, modules/copy-file:
10078         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
10079         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
10080         * modules/csharpcomp-script, modules/csharpexec:
10081         * modules/csharpexec-script, modules/ctype, modules/diffseq:
10082         * modules/dprintf, modules/dprintf-posix, modules/dup:
10083         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
10084         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
10085         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
10086         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
10087         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
10088         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
10089         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
10090         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
10091         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
10092         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
10093         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
10094         * modules/findprog, modules/findprog-lgpl, modules/floor:
10095         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
10096         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
10097         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
10098         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
10099         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
10100         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
10101         * modules/freadable, modules/freadahead, modules/freadptr:
10102         * modules/freadseek, modules/freopen, modules/frexp:
10103         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
10104         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
10105         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
10106         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
10107         * modules/ftello, modules/full-read, modules/full-write:
10108         * modules/fwritable, modules/fwriteerror, modules/gcd:
10109         * modules/get-rusage-as, modules/get-rusage-data:
10110         * modules/getdtablesize, modules/getrusage, modules/gettext:
10111         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
10112         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
10113         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
10114         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
10115         * modules/iconv, modules/iconv-h, modules/iconv_open:
10116         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
10117         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
10118         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
10119         * modules/integer_length_ll, modules/ioctl, modules/isatty:
10120         * modules/isblank, modules/isnand, modules/isnand-nolibm:
10121         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
10122         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
10123         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
10124         * modules/javaexec, modules/javaexec-script, modules/javaversion:
10125         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
10126         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
10127         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
10128         * modules/lib-symbol-visibility, modules/libsigsegv:
10129         * modules/linked-list, modules/linkedhash-list, modules/list:
10130         * modules/localcharset, modules/locale, modules/localeconv:
10131         * modules/localename, modules/lock, modules/log, modules/log-ieee:
10132         * modules/log10, modules/log10-ieee, modules/log10f:
10133         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
10134         * modules/log1p, modules/log1p-ieee, modules/log1pf:
10135         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
10136         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
10137         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
10138         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
10139         * modules/logf, modules/logf-ieee, modules/login_tty:
10140         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
10141         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
10142         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
10143         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
10144         * modules/mbscspn, modules/mbsinit, modules/mbslen:
10145         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
10146         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
10147         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
10148         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
10149         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
10150         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
10151         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
10152         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
10153         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
10154         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
10155         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
10156         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
10157         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
10158         * modules/posix_spawn, modules/posix_spawn-internal:
10159         * modules/posix_spawn_file_actions_addclose:
10160         * modules/posix_spawn_file_actions_adddup2:
10161         * modules/posix_spawn_file_actions_addopen:
10162         * modules/posix_spawn_file_actions_destroy:
10163         * modules/posix_spawn_file_actions_init:
10164         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
10165         * modules/posix_spawnattr_getpgroup:
10166         * modules/posix_spawnattr_getschedparam:
10167         * modules/posix_spawnattr_getschedpolicy:
10168         * modules/posix_spawnattr_getsigdefault:
10169         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
10170         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
10171         * modules/posix_spawnattr_setschedparam:
10172         * modules/posix_spawnattr_setschedpolicy:
10173         * modules/posix_spawnattr_setsigdefault:
10174         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
10175         * modules/pow, modules/powf, modules/printf-frexp:
10176         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
10177         * modules/progname, modules/propername, modules/pselect:
10178         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
10179         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
10180         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
10181         * modules/read, modules/readdir, modules/readlink:
10182         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
10183         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
10184         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
10185         * modules/relocatable-script, modules/remainder:
10186         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
10187         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
10188         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
10189         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
10190         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
10191         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
10192         * modules/setlocale, modules/sh-quote, modules/shutdown:
10193         * modules/signal, modules/signbit, modules/sigpipe:
10194         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
10195         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
10196         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
10197         * modules/snippet/link-warning, modules/snippet/unused-parameter:
10198         * modules/snprintf, modules/snprintf-posix, modules/spawn:
10199         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
10200         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
10201         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
10202         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
10203         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
10204         * modules/streq, modules/strerror_r-posix, modules/striconv:
10205         * modules/striconveh, modules/striconveha, modules/strncat:
10206         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
10207         * modules/sublist, modules/sys_resource, modules/sys_utsname:
10208         * modules/sys_wait, modules/system-posix, modules/system-quote:
10209         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
10210         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
10211         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
10212         * modules/truncf, modules/truncf-ieee, modules/truncl:
10213         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
10214         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
10215         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
10216         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
10217         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
10218         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
10219         * modules/wait-process, modules/waitpid, modules/wcpcpy:
10220         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
10221         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
10222         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
10223         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
10224         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
10225         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
10226         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
10227         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
10228         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
10229         * modules/write, modules/xconcat-filename, modules/xlist:
10230         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
10231         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
10232         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
10233         * modules/y0, modules/y1, modules/yn:
10234         Remove Bruno Haible as maintainer; if he's the sole maintainer,
10235         change the maintainer to 'all'.  Let's hope someone volunteers.
10237 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
10239         mktime: merge #if/#ifdef usage from glibc
10240         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
10241         as that works with both Glibc's and Gnulib's style.
10242         See thread starting at Siddhesh Poyarekar's bug report at:
10243         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
10245 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
10247         git-version-gen: improve option descriptions
10248         * build-aux/git-version-gen: Mention that --prefix and --fallback
10249         have a mandatory argument.
10251 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
10253         regex: fix memory leak in compiler
10254         Fix by Andreas Schwab in:
10255         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
10256         * lib/regcomp.c (parse_expression): Deallocate partially
10257         constructed tree before returning error.
10259         regex: merge patch from libc
10260         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
10261         Combine __USE_BSD and __USE_SVID into __USE_MISC.
10262         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
10264 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
10266         acl: port to gcc -Wredundant-decls
10267         From a request by Dmitry Antipov in:
10268         http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
10269         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
10270         "#ifndef _GL_ACL_H".
10272 2014-06-11  Bruce Korb  <bkorb@gnu.org>
10273         Jim Meyering  <meyering@fb.com>
10275         parse-duration: eliminate 68-year duration limit
10276         * lib/parse-duration.c: Include "intprops.h".
10277         (TIME_MAX): Rename to MAX_DURATION and define to
10278         TYPE_MAXIMUM(time_t).
10279         * modules/parse-duration (Depends-on): Add intprops.
10280         Reported by Jonas 'Sortie' Termansen.
10282 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10284         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
10285         * modules/pthread (Depends-on): Add 'extensions', as it defines
10286         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
10287         (configure.ac-early): New section.
10288         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
10289         it is no longer needed.
10291 2014-06-14  Pádraig Brady  <P@draigBrady.com>
10293         pthread: define thread-safe macros on some platforms
10294         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
10295         for thread-safe operation on some platforms.
10297 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10299         regex: don't be multithreaded if USE_UNLOCKED_IO.
10300         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
10301         * lib/regex_internal.h: Do not use multithreaded version if
10302         USE_UNLOCKED_IO is defined.  This is a hack, but it works
10303         around a porting bug with coreutils 8.22 on AIX 7.1.
10305 2014-06-11  Daiki Ueno  <ueno@gnu.org>
10307         gettext: update macros to version 0.19
10308         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
10309         depend on gl_EXTERN_INLINE and drop support for older Bison
10310         versions.
10312 2014-06-10  Pádraig Brady  <P@draigBrady.com>
10314         select,poll: fix console handle check on windows 8
10315         lib/poll.c (IsConsoleHandle): Change from testing the lower
10316         2 bits of the handle to the more expensive but accurate syscall.
10317         lib/select.c: Likewise.
10319 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
10321         select: fix waiting on anonymous pipes on MS-Windows
10322         * lib/select.c (rpl_select): Fall back to polling when select()
10323         indicates there is nothing to check, while due to the timeout not
10324         expiring, activity is indicated on one of the handles.
10325         Also clear the TIMEOUT argument if the timer does expire.
10327 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
10329         times: fix to return non constant value on MS-Windows
10330         * lib/times.c (times): Don't use the process creation time,
10331         rather clock() which on windows returns the number of
10332         clock ticks since the process started.
10334 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
10336         isatty: fix to work on windows 8
10337         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
10338         2 bits of the handle to the more expensive but accurate syscall.
10340 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10342         maint: fix typo in fdl.texi
10343         * doc/fdl.texi: Fix typo (missing '@').
10344         Somehow this was in fdl.texi but not fdl-1.3.texi.
10346 2014-06-06  Ben Walton  <bdwalton@gmail.com>
10348         mountlist: avoid hasmntopt const type warning on solaris
10349         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
10350         with char * instead of const char *.  Passing the constant string
10351         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
10352         to avoid the warning.
10354 2014-06-04  Eric Blake  <eblake@redhat.com>
10356         maintainer-makefile: delete obsolete code
10357         * top/maint.mk (build_aux): Drop old code, as threatened.
10359         maintainer-makefile: avoid spurious error messages
10360         * top/maint.mk (syntax-check): Guard definition and use of
10361         $(shell) by whether Makefile is present.
10363 2014-06-03  Ben Walton  <bdwalton@gmail.com>
10365         rename: avoid unused-but-set-variable compiler warning
10366         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
10367         it is possible that dst_exists may be set but not used.  Mark it with
10368         the unused attribute to avoid compiler warnings.
10370 2014-06-02  Ben Walton  <bdwalton@gmail.com>
10372         rename: mark a label as potentially unused
10373         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
10374         by marking the out label as potentially unused.
10375         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
10377 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
10379         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
10380         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
10382 2014-06-02  Ben Walton  <bdwalton@gmail.com>
10384         acl: apply pure attribute to two functions
10385         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
10386         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
10388 2014-06-01  Pádraig Brady  <P@draigBrady.com>
10390         gnulib-common.m4: add _GL_UNUSED_LABEL
10391         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
10392         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
10394 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
10396         dup2, fcntl, fcntl-h: port to AIX 7.1
10397         This fixes some porting problems discovered when testing the latest
10398         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
10399         in grep but it could be important for other applications.
10400         * doc/posix-functions/dup2.texi:
10401         * doc/posix-functions/fcntl.texi:
10402         * doc/posix-headers/fcntl.texi:
10403         Document AIX bugs.
10404         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
10405         Define to 0 if outside 'int' range.
10406         * m4/dup2.m4 (gl_FUNC_DUP2):
10407         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10408         Check for getdtablesize.  If it's available, test a value just
10409         outside its range instead of testing 1000000.  When cross-compiling,
10410         guess that AIX will fail this improved test.
10412 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10414         printf, config.rpath: Port to FreeBSD 10.
10415         Problem reported by Tijl Coosemans in:
10416         http://lists.gnu.org/archive/html/bug-gnulib/2014-05/msg00078.html
10417         * build-aux/config.rpath (hardcode_libdir_flag_spec)
10418         (hardcode_direct): Simplify FreeBSD configuration.
10419         (library_names_spec): Don't mishandle FreeBSD 10+.
10420         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
10421         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
10422         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
10423         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
10424         Don't mishandle FreeBSD 10+ when cross-compiling.
10426         ftoastr: work around compiler bug in IBM xlc 12.1
10427         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
10428         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
10429         around a compiler bug in IBM xlc 12.1.0.0: it complains
10430         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
10431         _GL_FLT_PREC_BOUND.'
10433 2014-05-30  Kieran Colford  <colfordk@gmail.com>
10435         valgrind-tests: fixed misleading help message
10436         * m4/valgrind-tests.m4: The help message generated by configure
10437         implied that valgrind was disabled by default, which it wasn't.
10438         Adjusted the help message using s/enable/disable/ to clarify.
10440 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
10442         isfinite, isinf, isnan tests: fix for little-endian PowerPC
10443         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
10444         first double of a PowerPC "double double" pair.
10445         * tests/test-isinf.c (test_isinfl): Likewise.
10446         * tests/test-isnan.c (test_long_double): Likewise.
10447         * tests/test-isnanl.h (main): Likewise.
10448         * tests/test-signbit.c (test_signbitl): Likewise.
10450 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10452         exclude-tests: port to AIX 7.1
10453         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
10454         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
10455         the regex code uses locks.
10457 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
10459         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
10460         Without this fix, Emacs would sometimes call sigprocmask instead
10461         of pthread_sigmask, which is a no-no in multithreaded applications.
10462         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
10463         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10464         Suppress check for pthread_sigmask working without -lpthread if
10465         the application always links with -lpthread.  Do not link with
10466         $LIBMULTITHREAD if gl_THREADLIB is not defined.
10467         * m4/timer_time.m4 (gl_TIMER_TIME):
10468         Require gl_THREADLIB only if it is defined.  Do not append
10469         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
10471 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
10473         gnulib-tool: wget translations using --no-verbose rather than --quiet
10474         This allows the user to see error messages if any (--quiet hides them)
10475         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
10477 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
10479         gnulib-tool: adjust translation wget to avoid a https redirection
10480         Context: http://translationproject.org/latest/gnulib redirects to
10481            https://translationproject.org/latest/gnulib/
10482         Rationale: if the user falls back to wget, she doesn't have rsync and
10483         is probably in a minimal build environment, where packages such as
10484         'ca-certificates' are missing as well, resulting in a failed (and
10485         difficult to detect since ignored) translation initial fetch.
10486         Consequently let's avoid https if possible, and add the missing
10487         trailing slash.  This also avoids an unnecessary 302 redirection.
10488         * gnulib-tool: Add trailing slash to gnulib URL.
10490 2014-05-22  Pádraig Brady  <P@draigBrady.com>
10492         getlogin_r-tests: check return value rather than errno
10493         * tests/test-getlogin_r.c (main): As per POSIX we should be
10494         verifying the return value from getlogin_r() rather than errno.
10496 2014-05-22  Pádraig Brady  <P@draigBrady.com>
10498         getlogin_r-tests: fix various issues in recent change
10499         * tests/test-getlogin_r.c: Include required headers that were
10500         missed in recent commit eec20b4e.
10501         Also consistently check the errno rather than the return value from
10502         getlogin_r as POSIX only specifies that non zero is returned on error.
10503         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
10505 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10507         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
10508         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
10509         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
10510         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
10511         * lib/spawn-pipe.c:
10512         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
10513         and then 'int open64(const char *, int, ...);', which means the
10514         declaration for 'open' gets lost if we later '#undef open'.
10515         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
10516         where the compilation reported the non-fatal error "In function
10517         'openat_proc_name' ... warning: implicit declaration of function
10518         'open'".  In this case the error is relatively harmless, but in
10519         other cases it might not be so minor.
10521 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10523         xalloc: don't potentially generate invalid code for xmemdup calls
10524         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
10525         this function can initialize the newly-allocated storage with new
10526         pointers, which means this function is not malloc-like.  See:
10527         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
10529 2014-05-19  Pádraig Brady  <P@draigBrady.com>
10531         getlogin_r-tests: avoid false failure under sudo/ssh etc.
10532         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
10533         changes from commit 97249cf29 to not depend on environment variables.
10535 2014-05-18  Pádraig Brady  <P@draigBrady.com>
10537         getlogin-tests: avoid false failure under cron
10538         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
10539         since that's not what's under test.  Centos 6 was seen to return
10540         EINVAL for ttyname() when run from cron.
10542 2014-05-16  Jim Meyering  <meyering@fb.com>
10544         mbrtowc.m4: fix a comment typo
10545         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
10546         emitted documentation string.
10548 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10550         mbrlen, mbrtowc: fix bug with empty input
10551         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
10552         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
10553         so this is mainly for documentation.
10554         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
10555         (gl_FUNC_MBRTOWC): Use it.
10556         * tests/test-mbrtowc.c (main): Test for the bug.
10558 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
10560         doc: document mbrtowc and mbrlen problem with empty input
10561         * doc/posix-functions/mbrlen.texi (mbrlen):
10562         * doc/posix-functions/mbrtowc.texi (mbrtowc):
10563         Document portability problem when the input string is empty.  See:
10564         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
10566         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
10567         Problem reported by Eli Zaretskii in:
10568         http://lists.gnu.org/archive/html/bug-grep/2014-05/msg00118.html
10569         * doc/posix-functions/execl.texi (execl):
10570         * doc/posix-functions/execle.texi (execle):
10571         * doc/posix-functions/execlp.texi (execlp):
10572         * doc/posix-functions/execv.texi (execv):
10573         * doc/posix-functions/execve.texi (execve):
10574         * doc/posix-functions/execvp.texi (execvp):
10575         Mention spawn+exit problem on non-Cygwin Windows platforms.
10577 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
10579         getlogin-tests: avoid false failure under sudo/ssh etc.
10580         * modules/getlogin-tests (configure.ac): Check for ttyname().
10581         * tests/test-getlogin.c (main): Don't depend on environment variables
10582         to correlate with getlogin(), since sudo and ssh etc. can tamper
10583         with the LOGNAME and USER env vars.  Instead lookup the name from
10584         the uid associated with the stdin tty.
10586 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10588         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
10589         These were found when building the latest grep snapshot on IRIX 6.5.
10590         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
10591         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
10592         never used later.
10593         * lib/quotearg.c (quoting_options_from_style):
10594         * lib/xstrtol.c (__xstrtol):
10595         Use enum instead of 0, to pacify IRIX 6.5 cc.
10597 2014-04-18  Pádraig Brady  <P@draigBrady.com>
10599         gitlog-to-changelog: revert inclusion of git-log-fix file
10600         * build-aux/git-log-fix: Delete dummy file.
10601         * modules/gitlog-to-changelog: Don't reference (overwrite)
10602         the project specific git-log-fix file.
10604 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
10606         maint.mk: Relax the copyright check to cater for non FSF projects
10607         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
10608         to not require the "Free" suffix after the copyright years.
10610 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
10612         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
10613         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
10614         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
10615         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
10616         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
10618 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
10620         exclude: port to strict C99
10621         Strict C does not allow converting a function pointer to void *
10622         and vice versa.  Pass a pointer to a function pointer instead.
10623         * lib/exclude.c (add_exclude_file):
10624         Pass the address of the function pointer.
10625         (call_addfn): And deference the address here, to match.
10627 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
10629         regex: do not depend on malloc-gnu
10630         * modules/regex (Depends-on): Remove malloc-gnu.
10631         It's no longer needed, because of the 2012-12-29 patch
10632         "regex: port to hosts where malloc (0) == NULL".
10633         Reported by Nathan Kennedy in:
10634         http://lists.gnu.org/archive/html/bug-gnulib/2014-04/msg00026.html
10636 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
10638         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
10639         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
10640         * doc/posix-functions/expl.texi: Mention the workaround.
10642 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
10644         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
10645         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
10646         size to be zero even when the pointer is nonnull.  This
10647         accommodates the use case where P is malloc (0) and *PN is 0 on a
10648         host where malloc (0) yields nonnull.
10650 2014-04-09  Eric Blake  <eblake@redhat.com>
10652         fts: avoid unnecessary strlen calls
10653         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
10655 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10657         fts: avoid unnecessary strlen calls
10658         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
10659         when that can be faster than strlen.
10661 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
10663         fts: avoid unnecessary strlen calls
10664         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
10665         (fts_build): Store the length of the dp->d_name entry in a local variable
10666         instead of calling strlen() several times via the above, removed macro.
10667         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
10668         run by ~4%, yet this reduces the execution time by about a third if run
10669         via "ltrace -c rm -rf some-dir".
10671 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
10673         obstack: Remove ancient NeXTSTEP gcc support conditional
10674         This change will ease merging with glibc.  The "#if ... __NEXT__"
10675         causes a warning with -Wundef which glibc now enables by default.
10676         Problem reported by Will Newton in
10677         <http://lists.gnu.org/archive/html/bug-gnulib/2014-03/msg00032.html>.
10678         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
10679         so go with that.
10680         * lib/obstack.h (__extension__):
10682 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
10684         obstack: merge with glibc changes
10685         * lib/obstack.c, lib/obstack.h: Merge from glibc.
10686         This is mostly indenting and commentary changes.
10687         Instances of 'register' have been removed.
10689 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
10691         strftime: wrap macros in "do {...} while(0)"
10692         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
10693         this macro in "do {...} while(0)" to prevent false use as a
10694         single statement, e.g., in an un-braced "{}" else-block.
10695         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
10696         (strftime_case_): Remove 'else' after 'goto' - which was the
10697         only non-fatal, un-braced use of one of the above macros.
10698         Spotted by coverity (NESTING_INDENT_MISMATCH).
10700 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
10702         modechange: avoid memory leaks for invalid octal modes
10703         * lib/modechange.c (mode_compile): During the parsing of
10704         notations like +40, free the 'mc' buffer for invalid mode
10705         strings like +17777 (greater than the maximum octal mode),
10706         =18 (bad octal mode characters) or u=1 ('affected' with
10707         octal modes).
10708         Reproducer, e.g.:
10709             $ valgrind --leak-check=full chmod +17777 file
10710         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
10711         add notations +40, 00440, etc.".
10712         Spotted by coverity (RESOURCE_LEAK).
10714 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10716         gitlog-to-changelog: include a dummy git-log-fix file
10717         Problem reported by Nathan Stratton Treadway in:
10718         http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00082.html
10719         * build-aux/git-log-fix: New file.
10721 2014-03-13  Jim Meyering  <meyering@fb.com>
10723         gitlog-to-changelog: also include the file, git-log-fix
10724         * modules/gitlog-to-changelog (Files): Add git-log-fix.
10725         Reported by Assaf Gordon.
10727 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
10729         regex: port to OS X 10.8.5 en_US.UTF-8 locale
10730         This fixes a bug when ignoring case and when comparing the
10731         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
10732         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
10733         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
10734         titlecase letter is neither lowercase nor uppercase, but
10735         uppercasing the titlecase letter (via towupper) yields the
10736         uppercase letter, so the two letters should match when ignoring case.
10737         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
10738         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
10739         Don't test whether a character is lowercase before uppercasing it.
10741 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
10743         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
10744         This is basically one of the options Bruno Haible proposed in:
10745         http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00282.html
10746         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
10747         * lib/stdint.in.h: Use it.
10748         * modules/stdint (Depends-on): Add sys_types.
10750 2014-02-26  Pádraig Brady  <P@draigBrady.com>
10752         parse-datetime: fix crash or infloop in TZ="" parsing
10753         * lib/parse-datetime.y (parse_datetime): Break out of the
10754         TZ="" parsing loop once the second significant " is found.
10755         Also skip over any subsequent whitespace to be consistent
10756         with the non TZ= case.
10757         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
10759 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
10761         savedir: new symbol for fast-read version
10762         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
10763         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
10764         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
10765         http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
10767 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
10769         unistd: port readlink to Mac OS X 10.3.9
10770         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
10771         around self-include problem in Mac OS X 10.3.9 when combined with
10772         readlink module.  Problem reported by Klaus Zietler in
10773         <http://bugs.gnu.org/16825>.
10775 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10777         diffseq: remove TOO_EXPENSIVE heuristic
10778         Problem with diffutils reported by Vincent Lefevre in
10779         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
10780         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
10781         Although appropriate for circa-1993 hardware, these days the heuristic
10782         seems to be more trouble than it's worth.
10783         * lib/diffseq.h: Modernize citations.
10784         (struct context): Remove member too_expensive.
10785         All uses changed.
10786         (struct partition): Remove members lo_minimal, hi_minimal.
10787         All uses changed.
10788         (diag, compareseq): Remove arg find_minimal.  All uses changed.
10789         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
10790         1993 to make 'diff' run faster (but not as well) on large inputs.
10791         These days, computers are fast enough that it's typically better
10792         to run slower but more accurately.
10793         * lib/fstrcmp.c: Remove duplicate comment.
10794         * lib/fstrcmp.c (strcmp_bounded):
10795         * lib/git-merge-changelog.c (compute_differences):
10796         Adjust to diffseq.h changes.
10797         * NEWS: Document the change.
10799         savedir: simplify by using stpcpy
10800         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
10801         (streamsavedir): Use stpcpy instead.
10802         * modules/savedir (Depends-on): Add stpcpy.
10804 2014-02-21  Pádraig Brady  <P@draigBrady.com>
10806         spawn: fix link error on uclibc
10807         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
10808         to incorporate -lrt if needed (on uclibc for example).
10809         * modules/posix_spawn: Reference the substituted LIB.
10811 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
10812         timer: fix uClibc detection of threading
10813         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
10814         enabled in uClibc.
10816 2014-02-21  Eric Blake  <eblake@redhat.com>
10818         maintainer-makefiles: provide AC_PROG_SED for older autoconf
10819         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
10821 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
10823         exclude: add support for posix regexps
10825         This commit adds support for POSIX extended regular expressions
10826         and fixes a long-standing memory leak (pattern buffer was never
10827         freed).  It also implements a new interface function to read
10828         exclude patterns from a FILE, which passes an additional parameter
10829         to its callback function, thereby allowing to preserve its state
10830         between invocations.
10832         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
10833         (pattern_buffer): New struct.
10834         (exclude): New member patbuf.
10835         (exclude_add_pattern_buffer): New function.
10836         (free_exclude_segment): Free regexps.
10837         (free_exclude): Free allocated pattern buffers.
10838         (exclude_patopts): New function.
10839         (file_pattern_matches): Use exclude_patopts.
10840         (add_exclude): support regexps.
10841         (add_exclude_fp): New function.
10842         (add_exclude_file): Rewrite using add_exclude_fp.
10843         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
10844         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
10845         (add_exclude_fp)
10846         (add_exclude_file): Rewrite using add_exclude_fp.
10847         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
10848         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
10849         (add_exclude_fp)
10850         (exclude_add_pattern_buffer): New prototypes.
10851         * modules/exclude: Depends on regex and filename.
10853 2014-02-20  Eric Blake  <eblake@redhat.com>
10855         maintainer-makefiles: use $(SED) for syntax check
10856         * modules/maintainer-makefile (configure.ac): Check for sane sed.
10857         * top/maint.mk: Change sed to $(SED).
10859 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
10860             Paul Eggert  <eggert@cs.ucla.edu>
10862         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
10863         Patch based on an idea by Dick Streefland in
10864         <https://savannah.gnu.org/patch/?7892>.
10865         * NEWS: Document this.
10866         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
10867         (direntry_t, comparison_function): New types.
10868         (direntry_cmp_name): New function.
10869         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
10870         (streamsavedir, savedir): New arg OPTION.
10871         (streamsavedir): Simplify memory allocation.
10872         (fdsavedir): Remove.
10873         * lib/savedir.h (enum savedir_option): New type.
10874         (streamsavedir, savedir): New arg OPTION.
10875         (fdsavedir): Remove.
10877 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
10879         file-type: add support for doors and other less-common file types
10880         Problem with S_ISDOOR reported by Rich Burridge.
10881         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
10882         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
10883         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
10885 2014-01-23  Eric Blake  <eblake@redhat.com>
10887         pthread: work around winpthread header pollution on mingw
10888         * lib/time.in.h: Move pthread workarounds...
10889         * lib/pthread.in.h: ...here.
10890         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
10891         detect macro pollution on mingw.
10892         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
10894 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
10896         qacl: check for fchmod
10897         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
10898         and qset-acl.c both use HAVE_FCHMOD.
10900 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
10902         fdopen-tests: port to Tru64
10903         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
10904         descriptor that is not open, as POSIX doesn't specify the
10905         resulting behavior and the test does not work on Tru64.
10906         Problem reported by Steven M. Schweda in:
10907         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
10909         stdalign: port to HP-UX compilers
10910         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
10911         if __HP_cc or __HP_aCC are nonzero.
10913 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
10915         strtoimax: port to platforms lacking 'long long'
10916         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
10917         check whether strtoll is declared, which causes the C file to
10918         wrongly report an error.  Problem reported by Steven M. Schweda in:
10919         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
10920         * lib/strtoimax.c (strtoull):
10921         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
10922         (strtoll): Declare only if HAVE_LONG_LONG_INT.
10924 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
10926         relocatable-perl: fix texi syntax
10927         * doc/relocatable-maint.texi: Escape braces.
10929 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
10931         relocatable-perl: like relocatable-script, but for Perl scripts
10932         * build-aux/relocatable.pl.in: Add.
10933         * doc/relocatable-maint.texi: Add documentation.
10934         * modules/relocatable-perl: Add.
10936 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
10938         tests: fix export bug in previous patch
10939         Problem reported by Jim Meyering.
10940         * tests/init.sh (re_shell): New var, which is exported instead of
10941         re_shell_.
10943         tests: simplify porting to Solaris 10 /bin/sh
10944         Some test cases in 'grep' need a shell that groks '$(';
10945         export re_shell_ for their benefit.  Problem reported for 'grep'
10946         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
10947         * tests/init.sh (re_shell_): Export if it's used.
10949 2014-01-06  Eric Blake  <eblake@redhat.com>
10951         md5, sha1, sha256, sha512: support older autoconf
10952         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
10953         for autoconf < 2.63b.
10955         include_next: port to autoconf 2.63
10956         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
10958 2014-01-04  Jim Meyering  <meyering@fb.com>
10960         maint: add a gnulib-local rule to keep non-ascii out of .texi files
10961         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
10962         so that "make sc_maint" will ding anyone who puts non-ascii
10963         in any of gnulib's .texi files.
10965 2014-01-03  Jim Meyering  <meyering@fb.com>
10967         freadable, fwritable, fwriting: declare with the "pure" attribute
10968         * lib/freadable.h (freadable): Declare with the "pure" attribute.
10969         * lib/fwritable.h (fwritable): Likewise.
10970         * lib/fwriting.h (fwriting): Likewise.
10971         Suggested by Bruno Haible.
10973         maint.mk: adapt openat.h-include-without-use test
10974         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
10975         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
10976         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
10977         With this change, running "make sc_maint" in gnulib's top-level
10978         directory now passes for me.
10980 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10982         doc: use ASCII in .texi files where UTF-8 isn't needed
10983         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
10984         * doc/posix-functions/setkey.texi, doc/regex.texi:
10985         Use ASCII input, not UTF-8.
10987 2014-01-02  Jim Meyering  <meyering@fb.com>
10989         freading: declare with the "pure" attribute
10990         * lib/freading.h (freading): Declare with the "pure" attribute.
10992         manywarnings: remove -Wmudflap
10993         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
10994         it is no longer supported in gcc-4.9-to-be.
10996 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10998         relocatable-script: remove unused code
10999         Problem reported by Reuben Thomas in:
11000         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
11001         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
11003 2014-01-01  Jim Meyering  <meyering@fb.com>
11005         maint: fix public-submodule-commit to work with newer git
11006         * top/maint.mk (public-submodule-commit): Remove excess quoting.
11007         We were over-quoting the test arguments, and somewhere prior to
11008         version 1.8.5.2.229, git stopped removing those excess quotes,
11009         which made the test fail, since the unexpanded strings would
11010         always differ; using GIT_TRACE=1 confirmed that the git merge-base
11011         command wasn't even being run.
11013 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11015         doc: update main copyright year
11016         * doc/gnulib.texi: Update copyright date.
11018 2014-01-01  Eric Blake  <eblake@redhat.com>
11020         version-etc: new year
11021         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
11022         * all files: run 'make update-copyright'
11024 2013-12-24  Eric Blake  <eblake@redhat.com>
11026         passfd: give nicer error for recvfd at eof
11027         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
11028         * tests/test-passfd.c (main): Enhance test to cover this.
11030 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11032         gettimeofday: port recent C++ fix to Emacs
11033         Without this further patch, Emacs won't build due to
11034         the portcheck failing.  Also, this simplifies the patch a bit.
11035         * lib/time.in.h (localtime, gmtime): Don't replace unless
11036         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
11037         * lib/time.in.h (localtime, gmtime):
11038         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
11039         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
11040         * modules/time (time.h):
11041         Don't worry about the possibility of localtime and gmtime
11042         being absent; they're present in all C libraries we know about.
11043         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
11044         Don't assume sys_time is present and has been initialized.
11045         Instead, use a hack that should work even if it hasn't been.
11046         Don't use a portcheck for gmtime or localtime; this supports
11047         the hack.
11048         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
11050 2013-12-17  John W. Eaton  <jwe@gnu.org>
11052         gettimeofday: fix C++ crosscompilation
11054         Never replace gmtime and localtime by macros when compiling with
11055         C++, this prevents <ctime> from being included.
11057         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
11058         define gmtime and localtime as preprocessor macros.  Instead
11059         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
11060         REPLACE_LOCALTIME substitutions.
11061         * lib/time.in.h: Declare gmtime and localtime when needed.
11062         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
11063         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
11064         * modules/time: Depend on gettimeofday, and substitute the above
11065         variables in time.h.
11067 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11069         qacl: port to Windows better
11070         See Eli Zaretskii in
11071         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
11072         * lib/file-has-acl.c (acl_access_nontrivial):
11073         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
11074         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
11076 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
11078         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
11079         * lib/gl_openssl.h: Cast void pointers to a specific type.
11081 2013-12-07  Pádraig Brady  <P@draigBrady.com>
11083         open-tests: fix build failure with -Werror=old-style-declaration
11084         * tests/test-open.h: Reorder the inline to avoid the issue.
11086 2013-12-07  Pádraig Brady  <P@draigBrady.com>
11088         md5, sha1, sha256, sha512: fix link error with partial libcrypto
11089         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
11090         init time, so that if early checks find crypto routines,
11091         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
11092         avoiding link failures.
11094 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
11096         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
11097         This provides a new way to specify the default for
11098         gl_CRYPTO_CHECK, one that is reflected in the --help message.
11099         Emacs uses this, as well as the old way.
11100         This attempts to implement a suggestion by Pádraig Brady in
11101         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
11102         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
11103         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
11105         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
11106         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
11107         Add support for a new option, --with-openssl=auto, which causes
11108         the library to be used if available and silently ignored if not.
11109         Add support to allow configure.ac to specify its own
11110         default, by setting with_openssl_default before invoking gl_INIT.
11112 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
11114         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
11115         Problem reported by Daiki Ueno in:
11116         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
11117         * tests/test-open.h (__always_inline):
11118         New macro, if not already defined.
11119         (test_open): Use it.
11121 2013-12-04  Eric Blake  <eblake@redhat.com>
11123         include_next: minimize code duplication
11124         * modules/include_next (Depends-on): Add absolute-header.
11125         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
11126         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
11128 2013-12-04  Pádraig Brady  <P@draigBrady.com>
11130         getcwd: fix compile error in configure check
11131         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
11133 2013-12-04  Pádraig Brady  <P@draigBrady.com>
11135         regex: suppress core dumps from detection code
11136         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
11137         to suppress core dumps that may well occur on glibc systems.
11138         These core dumps might not be cleaned up automatically, or could
11139         trigger some system core dump handling logic.
11141 2013-12-03  Pádraig Brady  <P@draigBrady.com>
11143         md5, sha1, sha256, sha512: support mandating use of openssl
11144         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
11145         description, to list the now 3 separate options.  also don't
11146         mention the default=no, since this is implicit given the option
11147         is described as --with-openssl rather than --without-openssl.
11148         If projects change the default they're free to document that.
11149         with --with-openssl[=yes] we now error out when the specified
11150         hash algorithm is not available in libcrypto.
11152 2013-12-03  Ivailo  <xakepa10@gmail.com>
11154         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
11155         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
11156         -Wformat-nonliteral checks, as these edge cases are part of the test.
11158 2013-12-03  Eric Blake  <eblake@redhat.com>
11160         regex: avoid glibc deadlock during configure
11161         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
11162         glibc bug 15078 in turn triggers bug 16159.
11163         Reported by Michal Privoznik.
11165 2013-12-02  Pádraig Brady  <P@draigBrady.com>
11167         md5, sha1, sha256, sha512: use openssl routines if available.
11168         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
11169         routines will be used if available, requiring apps to link @LIB_CRYPTO@
11170         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
11171         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
11172         in the standard system location.
11173         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
11174         * m4/sha256.m4: Likewise with SHA256.
11175         * m4/sha512.m4: Likewise with SHA512.
11176         * m4/md5.m4: Likewise with MD5.
11177         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
11178         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
11179         * lib/sha256.h: Likewise with SHA256.
11180         * lib/sha512.h: Likewise with SHA512.
11181         * lib/md5.h: Likewise with MD5.
11182         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
11183         * lib/sha256.c: Likewise with SHA256.
11184         * lib/sha512.c: Likewise with SHA512.
11185         * lib/md5.c: Likewise with MD5.
11186         * modules/crypto/sha1 (Link:): Add the new optional lib.
11187         (Depends-on:): Add dependency on extern-inline.
11188         * modules/crypto/sha256: Likewise.
11189         * modules/crypto/sha512: Likewise.
11190         * modules/crypto/md5: Likewise.
11191         * modules/crypto/sha1-tests: Reference the lib here too.
11192         * modules/crypto/md5-tests: Likewise.
11193         * modules/crypto/gc-des-tests: Likewise.
11194         * modules/crypto/gc-hmac-md5-tests: Likewise.
11195         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11196         * modules/crypto/gc-hmac-sha256-tests: Likewise.
11197         * modules/crypto/gc-hmac-sha512-tests: Likewise.
11198         * modules/crypto/gc-md5-tests: Likewise.
11199         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11200         * modules/crypto/gc-sha1-tests: Likewise.
11201         * modules/crypto/gc-tests: Likewise.
11202         * modules/crypto/hmac-md5-tests: Likewise.
11203         * modules/crypto/hmac-sha1-tests: Likewise.
11204         * modules/crypto/hmac-sha256-tests: Likewise.
11205         * modules/crypto/hmac-sha512-tests: Likewise.
11207 2013-11-29  RV1971  <rv1971@web.de>
11209         base64: (trivial) fix compilation regression on some compilers
11210         * lib/base64.c: Don't return the void function,
11211         instead split to a separate return statement.
11213 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
11215         ignore-value: revert previous code change
11216         * lib/ignore-value.h (ignore_value): Use __extension__ and
11217         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
11218         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
11219         Change the comment to try to explain this better.
11221 2013-11-27  Pádraig Brady  <P@draigBrady.com>
11223         selinux-h: improve stub types and add more stub functions
11225         * lib/se-selinux.in.h: Change security_context_t to a typedef
11226         rather than a define, as it's a pointer type and so is better
11227         as a typedef to avoid issues declaring multiple variables
11228         with the comma operator.  Also add stub for string_to_security_class().
11229         * lib/se-context.in.h: Add stub functions for
11230         context_{type,range,role,user}_get().
11232 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
11234         ignore-value: prefer GCC version back through 2.0
11235         The code didn't match the comments, so I did a bit of software
11236         archaeology.  GCC 2.0 seems to support __extension__ and
11237         __typeof__, so fix both code and comments to use 2.0.
11238         * lib/ignore-value.h (ignore_value): Use __extension__ and
11239         __typeof__ for GCC 2.0 through 3.3, too.
11241 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
11243         pty: Activate the signature wrapper of forkpty.
11244         The intended preprocessor macro HAVE_FORKPTY is
11245         never defined, yet `lib/forkpty.c' depends on it.
11247         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
11248         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
11249         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
11251 2013-11-18  Jim Meyering  <meyering@fb.com>
11252         and Paul Eggert  <eggert@cs.ucla.edu>
11254         quotearg: don't attempt to store 1 << 31 into an "int"
11255         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
11256         gcc's new -fsanitize=undefined and running its tests triggered some
11257         new test failures due to undefined behavior, all with this diagnostic:
11258           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
11259             cannot be represented in type int
11260         Rather than shifting "1" left to form a mask, shift the bits right and
11261         simply use "1" as the mask.
11263 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
11265         error: depend on stdio
11266         Problem reported by Nikos Mavrogiannopoulos in
11267         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
11268         * modules/error (Depends-on): Add stdio.
11270 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
11272         * doc/relocatable-maint.texi (Supporting Relocation): Improve
11273         wording.
11274         Reported by Reuben Thomas <rrt@sc3d.org>.
11276 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
11278         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
11279         New function and macro, to work around _DARWIN_C_SOURCE problem.
11280         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
11282 2013-11-11  Pádraig Brady  <P@draigBrady.com>
11284         base64: provide a fast path for encoding well sized buffers
11285         Avoid conditionals in the base64 encoding loop,
11286         which was seen to give 60% better throughput.
11287         * lib/base64.c (base64_encode_fast): A new function to be called
11288         when we don't want to NUL terminate, and we have enough space
11289         in the output to encode the given input.
11290         (base64_encode): Call the _fast() version when appropriate.
11291         Also remove a redundant mask with 0x3F on the first encoded byte.
11293 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
11295         extern-inline: port better to OS X 10.9
11296         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
11297         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
11298         OS X 10.9, except for g++ where the bug is still present.
11299         See <http://trac.macports.org/ticket/41033>.
11301 2013-11-08  Eric Blake  <eblake@redhat.com>
11303         fpending: fix regression on DragonFly BSD
11304         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
11305         * lib/fpending.h (__fpending): Don't declare twice.
11306         Reported by GW in
11307         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
11309 2013-11-05  Jim Meyering  <meyering@fb.com>
11311         hash: relax license to LGPLv2+, for libguestfs
11312         * modules/hash (License): Change from GPL to LGPLv2+.
11314 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
11316         intprops: port to Oracle Studio c99
11317         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
11318         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
11320 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11322         obstack: pacify HP C
11323         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
11324         warning "conversion from pointer to smaller integer" from HP
11325         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
11326         C89 or later nowadays, so cast to void instead of int.  Privately
11327         reported by H.Merijn Brand.  Also, change header to match glibc's,
11328         to make checking against glibc easier.
11330 2013-10-29  Jim Meyering  <meyering@fb.com>
11332         maint.mk: prefer gpgv2 over gpgv
11333         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
11334         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
11335         Reported by Gary Vaughan.
11337 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
11339         isnan: port to VAX
11340         Reported by John Klos for NetBSD-5/VAX in
11341         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
11342         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
11343         (FUNC): Use it.
11345 2013-10-28  Jim Meyering  <meyering@fb.com>
11347         gnulib-tool: protect against CDPATH
11348         * gnulib-tool: Many "cd" built-in functions print a directory name
11349         to stdout when CDPATH is set, e.g.,
11350           $ bash -c 'CDPATH=/; cd tmp'
11351           /tmp
11352         Unset it, when possible.  Prompted by a comment from Bruce Korb.
11354         maint.mk: restore functionality removed by recent change...
11355         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
11356         the context of a shallow-cloned gnulib repository: "git describe"
11357         would fail in such a directory.  However, that change made it so
11358         the reported gnulib revision no longer includes the version number
11359         or a commit count, even when run from a full clone.
11360         * top/maint.mk (gnulib-version): Use the full "git describe"
11361         output when possible, e.g., the form above, rather than the
11362         abbreviated, no-tag, no-commit-count string, and fall back to
11363         using a 10-byte hash, rather than the default minimal-length
11364         hash prefix, since while the minimal-length one may be fine today,
11365         it is likely not to be unique for very long.
11367 2013-10-26  Jim Meyering  <meyering@fb.com>
11369         maint.mk: fix "release" target to build _version
11370         This fixes a bug in README-release whereby following the outlined
11371         steps, one would publish a tarball whose programs would report
11372         --version output not consistent with the package version number.
11373         This bug caused grep-2.15 to produce a grep program whose
11374         --version option made it print 2.14.56-1e3d rather than 2.15.
11375         * top/maint.mk (release): Making this target build "_version"
11376         ensures that the new version number is reflected in configure.
11378 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
11380         install-reloc: Support multi-binary installation.
11381         * build-aux/install-reloc: Support installing multiple programs in
11382         one invocation, as done by Automake starting with commit
11383         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
11384         Haible <bruno@clisp.org>, archived at
11385         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
11386         Reported by Sylvain <beuc@gnu.org>.
11388 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11390         selinux-h: Really build without selinux when library is missing.
11391         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
11392         continue without selinux, as already told in the warning message.
11394 2013-10-21  Jim Meyering  <meyering@fb.com>
11396         regex: also remove dependency on HAVE_WCSCOLL
11397         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
11399 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
11401         xfreopen: Fix typo. s/frepoen/freopen/
11402         * lib/xfreopen.c: Fix description.
11403         * modules/xfreopen: Likewise.
11405 2013-10-21  Jim Meyering  <meyering@fb.com>
11407         regex: don't depend on wcscoll
11408         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
11409         It is no longer used.
11411 2013-10-20  Jim Meyering  <meyering@fb.com>
11413         error: add the printf attribute to a static function
11414         * lib/error.c (error_tail): Add the printf attribute, to placate
11415         gcc's -Werror=suggest-attribute=format option.
11417 2013-09-30  Jim Meyering  <meyering@fb.com>
11419         fpending, obstack, strerror-override: use pure+const function attrs
11420         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
11421         * lib/obstack.c (_obstack_allocated_p): Likewise.
11422         * lib/obstack.h (_obstack_memory_used): Likewise.
11423         (_obstack_memory_used): Likewise.
11424         * lib/strerror-override.h (strerror_override): Declare with
11425         the "const" attribute.
11427 2013-10-18  Eric Blake  <eblake@redhat.com>
11429         extern-inline: make safe for -Wundef usage
11430         Reported by Vladimir 'phcoder' Serbinenko in
11431         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
11432         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
11434 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
11436         mkfifo-tests, etc.: allow HP-UX 11.11 bug
11437         Problem reported by Daniel Richard G. in
11438         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
11439         * doc/posix-functions/mkfifo.texi (mkfifo):
11440         * doc/posix-functions/mkfifoat.texi (mkfifoat):
11441         * doc/posix-functions/mknod.texi (mknod):
11442         * doc/posix-functions/mknodat.texi (mknodat):
11443         Document the HP-UX 11.11 bug.
11444         * tests/test-mkfifo.h (test_mkfifo):
11445         Allow the HP-UX 11.11 bug.
11447 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11449         acl: allow cross-compilation to Gentoo
11450         Problem reported by Gabriel Marcano in
11451         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
11452         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
11453         test only whether it links.
11455 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11457         mgetgroups: remove dependency on realloc-gnu
11458         The dependency violates the comment in realloc-gnu, which
11459         says that tests can't depend on realloc-gnu; some tests depend
11460         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
11461         Problem reported by Daniel Richard G. in
11462         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
11463         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
11464         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
11465         not realloc-gnu.
11467 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
11469         regex-tests: port to HP-UX 11.11
11470         Problem reported by Daniel Richard G. in
11471         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
11472         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
11474 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11476         verify: document some 'assume' pitfalls
11477         * doc/verify.texi (Compile-time Assertions):
11478         Mention that 'assume (E)' can sometimes slow things down.
11479         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
11481 2013-10-10  Eric Blake  <eblake@redhat.com>
11483         strtoumax: fix typo in previous commit.
11484         * modules/strtoumax (Depends-on): Fix typo.
11485         * modules/strtoimax (Depends-on): Likewise.
11487 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11489         strtoumax: port to Solaris 8
11490         This problem was introduced in the recent HP-UX patch.
11491         Reported by Tom G. Christensen in
11492         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
11493         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
11494         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
11496 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11498         strtoimax, strtoumax: port to HP-UX 11.11
11499         Problem reported by Daniel Richard G. in
11500         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
11501         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
11502         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
11503         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
11504         REPLACE_STRTOUMAX.
11505         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
11506         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
11507         Replace the function if defined as a macro but not as a function.
11508         * modules/inttypes-incomplete (inttypes.h): Substitute
11509         REPLACE_STRTOUMAX.
11510         * modules/strtoumax (configure.ac): Replace strtoumax if
11511         REPLACE_STRTOUMAX.
11513 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11515         strtoimax: port to HP-UX 11.11
11516         Problem reported by Daniel Richard G.
11517         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
11518         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
11519         they might clash with inttypes.h.
11521 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
11523         New module 'count-trailing-zeros'.
11524         * MODULES.html.sh: Mention it.
11525         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
11526         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
11527         * modules/count-trailing-zeros-tests:
11528         * tests/test-count-trailing-zeros.c:
11529         New files.
11531         count-leading-zeros: port to MSC; support types wider than 64 bits
11532         The ideas behind the MSC port are stolen from Emacs.
11533         * lib/count-leading-zeros.h:
11534         Don't include verify.h: it's no longer needed, as types wider than
11535         64 bits are now supported.
11536         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
11537         performance with MSC.  All uses changed.  Do not assume that TYPE
11538         has at most 64 bits.
11539         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
11540         All uses changed.  Fold the subtraction from 31 into the table.
11542         count-one-bits: port to MSC; support types wider than 64 bits
11543         The ideas behind the MSC port are stolen from Emacs.
11544         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
11545         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
11546         Don't include verify.h: it's no longer needed, as types wider than
11547         64 bits are now supported.
11548         (COUNT_ONE_BITS_GENERIC): New macro.
11549         (popcount_supported) [_MSC_VER]: New inline function.
11550         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
11551         performance with MSC.  All uses changed.  Do not assume that TYPE
11552         has at most 64 bits.
11553         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
11555 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
11557         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
11558         * lib/mountlist.c (read_file_system_list): fix leak of directory
11559         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
11561 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
11563         tests: improve diagnostic when an assertion fails
11564         * tests/macros.h (ASSERT): Report the assertion that failed.
11566 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
11568         verify: new macro 'assume'
11569         This is taken from Emacs, and should be generally useful.
11570         * doc/verify.texi (assume): Document it.
11571         * lib/verify.h (assume): New macro.
11572         (__has_builtin): Expand to 0 if not defined.
11574 2013-09-26  Eric Blake  <eblake@redhat.com>
11576         dup2, dup3: work around another cygwin crasher
11577         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
11578         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
11579         * tests/test-dup2.c (main): Likewise.
11580         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
11581         * lib/dup3.c (dup3): Likewise.
11582         * doc/posix-functions/dup2.texi (dup2): Document it.
11583         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11585         getdtablesize: work around cygwin issue
11586         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
11587         * modules/getdtablesize (configure.ac): Build replacement.
11588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
11589         * modules/unistd (Makefile.am): Expose the witness.
11590         * lib/unistd.in.h (getdtablesize): Declare replacement.
11591         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
11592         * tests/test-getdtablesize.c (main): Test it.
11593         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
11595 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
11597         pmccabe2html: escaping of special characters
11598         Escape all '<', '>', and '&' in HTML output.
11599         * build-aux/pmccabe2html (html_fnc): Call gsub()
11600         instead of sub() to capture all '<', '>', and '&'.
11601         Neither of '<' and '>' is special in a regexp,
11602         so first arguments to gsub() are corrected. Also,
11603         in replacement strings, ampersand must be escaped.
11604         Finally, '&' must be handled first, then '<' and '>'.
11606 2013-09-24  Eric Blake  <eblake@redhat.com>
11608         manywarnings: enable nicer gcc warning messages
11609         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
11610         some -f options for optimal warnings.
11612 2013-09-21  Jim Meyering  <meyering@fb.com>
11614         timespec: use the new TIMESPEC_RESOLUTION in a few more places
11615         * lib/timespec-add.c (timespec_add): Also replace 999999999
11616         with TIMESPEC_RESOLUTION - 1.
11617         * lib/timespec-sub.c (timespec_sub): Likewise.
11619 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11621         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
11622         Problem reported by Dagobert Michelsen via Eric Blake in
11623         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
11624         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
11625         not AC_COMPILE_IFELSE.
11627 2013-09-23  Eric Blake  <eblake@redhat.com>
11629         configmake: support new --runstatedir option
11630         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
11631         even if autoconf was too old to provide the command line option.
11632         * modules/configmake (Makefile.am): Propagate it to .h file.
11634 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11636         ctype, string: depend on extern-inline
11637         This is needed to complete the recent OS X fixes.
11638         Also, fix related documentation as suggested by Eric Blake.
11639         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
11640         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
11641         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
11642         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
11643         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
11644         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
11645         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
11646         * doc/posix-functions/toupper.texi:
11647         List the 'ctype' gnulib module.
11648         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
11649         * doc/posix-functions/strncpy.texi:
11650         List the 'string' gnulib module.
11651         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
11652         Add string.
11653         * modules/ctype, modules/string (Depends-on): Add extern-inline.
11655 2013-09-19  Pádraig Brady  <P@draigBrady.com>
11657         userspec: support optional parameters to parse_user_spec()
11658         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
11659         then avoid group processing and treat the full spec as a user.
11660         (parse_with_separator): Allow the USERNAME and GROUPNAME to
11661         be optional params (NULL), in which case they're ignored.
11663 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
11665         timespec: new function make_timespec, and new constants
11666         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
11667         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
11668         (make_timespec): New function.
11669         * lib/dtotimespec.c (dtotimespec):
11670         * lib/timespec-add.c (timespec_add):
11671         * lib/timespec-sub.c (timespec_sub):
11672         * lib/utimens.c (validate_timespec):
11673         * lib/utimensat.c (rpl_utimensat):
11674         Use these new constants and functions.
11676         stdio: OS X port of putc_unlocked + extern inline
11677         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
11678         * doc/posix-functions/putc_unlocked.texi:
11679         * doc/posix-functions/putchar_unlocked.texi:
11680         Document this portability problem.
11682         signal: OS X port of sigaddset etc. + extern inline
11683         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
11684         (sigismember): #undef on problematic Apple platforms.
11685         * doc/posix-functions/sigaddset.texi:
11686         * doc/posix-functions/sigdelset.texi:
11687         * doc/posix-functions/sigemptyset.texi:
11688         * doc/posix-functions/sigfillset.texi:
11689         * doc/posix-functions/sigismember.texi:
11690         Document this portability problem.
11692         extern-inline: do not always suppress extern inline on OS X
11693         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
11694         extern inline on Apple only if the particular compile-time
11695         configuration is known to have the problem.
11696         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
11697         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
11698         other Gnulib modules.
11700         extern-inline: document fixes for ctype and wctype macros
11701         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
11702         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
11703         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
11704         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
11705         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
11706         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
11707         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
11708         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
11709         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
11710         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
11711         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
11712         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
11713         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
11714         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
11715         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
11716         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
11717         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
11718         * doc/posix-functions/strncpy.texi:
11719         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
11720         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
11721         Document that Gnulib fixes portability problems with these
11722         functions on OS X 10.8 and earlier when called from plain inline
11723         or extern inline functions.
11725 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
11727         fflush, freadahead, fseeko: Fix for Android
11728         Suggested by Bruno Haible in:
11729         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
11730         * lib/stdio-impl.h: Use local __sfileext definition.
11732 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
11734         pmccabe2html: Portability to other awk versions.
11735         The functions systime() and strftime() are available
11736         in Gawk only.  Properly close two HTML-tags 'style'
11737         and 'span'.
11738         * build-aux/pmccabe2html (BEGIN): Store timing
11739         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
11740         systime() in HTML_COMMENT.
11741         (html_header): Correctly close tag 'style'.
11742         (END): Replace strftime() by CHRONOS_TIME.  Close
11743         tag 'span' correctly, not as 'div'.
11745 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
11747         getgroups: statement without effect
11748         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
11749         Change equality conditional to expected assignment.
11751 2013-09-09  Eric Blake  <eblake@redhat.com>
11753         glob: fix compilation
11754         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
11756 2013-09-07  Eric Blake  <eblake@redhat.com>
11758         glob: fix build for platforms without __THROW
11759         * lib/glob.in.h (__THROW): Add definition again.
11761 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
11763         regex-quote: fix buffer access out of bounds
11764         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
11765         * lib/regex-quote.c (regex_quote_spec_pcre):
11766         Fix typo that resulted in an out-of-bounds read.
11768 2013-09-04  Eric Blake  <eblake@redhat.com>
11770         glob: avoid -Wattribute warnings on glibc
11771         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
11772         __THROWNL, not __THROW, on static functions.
11773         * lib/glob.in.h (__THROW): Adjust...
11774         (__THROWNL): ...accordingly.
11776 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
11778         headers: check that _GL_INLINE_HEADER_BEGIN is defined
11779         Suggested by Bruce Korb in:
11780         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
11781         * doc/extern-inline.texi (extern inline):
11782         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
11783         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
11784         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
11785         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
11786         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
11787         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
11788         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
11789         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
11790         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
11791         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
11792         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
11793         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
11794         * lib/xtime.h:
11795         Check that _GL_INLINE_HEADER_BEGIN is defined.
11797 2013-08-29  Pádraig Brady  <P@draigBrady.com>
11799         bootstrap: remove the --version requirement from ancillary tools
11800         * build-aux/bootstrap (check_exists): A new refactored function to
11801         determine if a command exists.
11802         (find_tool): Use the new function which does not require the
11803         --version option to be supported.
11804         (check_versions): Use the new function.
11806 2013-08-26  Simon Josefsson  <simon@josefsson.org>
11808         gc: support HMAC-SHA256 and HMAC-SHA512.
11809         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
11810         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
11811         functions.
11812         (gc_hmac_md5): Use symbolic constant.
11813         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
11814         (gc_hmac_sha256, gc_hmac_sha512): New functions.
11815         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
11816         * m4/sha256.m4: Protect against empty expansion.
11817         * m4/sha512.m4: Likewise.
11818         * lib/hmac-sha256.c: New file.
11819         * lib/hmac-sha512.c: Likewise.
11820         * m4/gc-hmac-sha256.m4: Likewise.
11821         * m4/gc-hmac-sha512.m4: Likewise.
11822         * m4/gc-sha256.m4: Likewise.
11823         * m4/gc-sha512.m4: Likewise.
11824         * modules/crypto/gc-hmac-sha256: Likewise.
11825         * modules/crypto/gc-hmac-sha256-tests: Likewise.
11826         * modules/crypto/gc-hmac-sha512: Likewise.
11827         * modules/crypto/gc-hmac-sha512-tests: Likewise.
11828         * modules/crypto/hmac-sha256: Likewise.
11829         * modules/crypto/hmac-sha256-tests: Likewise.
11830         * modules/crypto/hmac-sha512: Likewise.
11831         * modules/crypto/hmac-sha512-tests: Likewise.
11832         * tests/test-gc-hmac-sha256.c: Likewise.
11833         * tests/test-gc-hmac-sha512.c: Likewise
11834         * tests/test-hmac-sha256.c: Likewise.
11835         * tests/test-hmac-sha512.c: Likewise
11837 2013-08-24  Daiki Ueno  <ueno@gnu.org>
11839         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
11840         of AC_CHECK_DECLS.
11842 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11844         selinux-at: omit unnecessary include
11845         * lib/selinux-at.c: Don't include dosname.h; not needed, since
11846         this source file doesn't use its macros, and subsidiary files that
11847         use the macros already include it.
11849 2013-08-21  Eric Blake  <eblake@redhat.com>
11851         d-ino: avoid false negative on symlink
11852         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
11853         Reported by Stephane Chazelas.
11855 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
11857         bootstrap: port to OpenBSD sed
11858         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
11859         does not interpret `-' as a file argument to mean stdin.
11861 2013-08-15  Eric Blake  <eblake@redhat.com>
11863         warnings: minor optimization
11864         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
11866         warnings: check -Wfoo rather than -Wno-foo
11867         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
11868         -Wno-, test if the compiler recognizes the positive form instead.
11870 2013-08-15  Karl Berry  <karl@gnu.org>
11872         * config/srclist-update: add option "doclicense" to placate
11873         pulling *.texi files from Emacs.  Write terse usage
11874         documentation at the top.
11876 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
11878         xvasprintf-tests: port to GCC with hardening flags
11879         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
11880         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
11881         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
11883 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11885         fpending: port to recent Cygwin change to stdio_ext.h
11886         Reported by LRN in
11887         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
11888         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
11889         just declare __fpending unless it's a macro.
11890         A duplicate decl shouldn't hurt.
11891         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
11892         call compiles and links, instead of separately checking for
11893         decl and lib function.
11894         * modules/fpending (configure-ac):
11895         Adjust to fpending.m4's renaming of shell variable.
11897 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11899         sys_time: port to OpenBSD
11900         * lib/sys_time.in.h: Simply delegate to the system's header
11901         in the BSDish cases as well.  Problem reported by Mike Miller in
11902         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
11903         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
11904         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
11905         wider than time_t.
11907 2013-08-09  Pádraig Brady  <P@draigBrady.com>
11909         bootstrap: support checksum utils having -c but not --status
11910         * build-aux/bootstrap: Only look for sha1sum if updating po files.
11911         Add sha1 to the list of supported checksum utils since it's now
11912         supported through adjustments below.
11913         (update_po_files): Remove the use of --status
11914         in a way that will suppress all error messages, but since this is
11915         only used to minimize updates, it shouldn't cause an issue.
11916         Exit early if there is a problem updating the po file checksums.
11917         (find_tool): Remove the check for --version support as this
11918         is optional as per commit 86186b17.  Don't even check for the
11919         presence of the command as if that is needed, it's supported
11920         through configuring prerequisites in bootstrap.conf.
11921         Prompt that when a tool isn't found, one can define an environment
11922         variable to add to the hardcoded search list.
11924 2013-08-05  Jim Meyering  <meyering@fb.com>
11926         regex: port to non-glibc/lock-using systems
11927         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
11928         system with GNULIB_LOCK would fail due to absence of the
11929         included "glthread/lock.h".  This would affect any package
11930         for which the "lock" module is used only by the regex module,
11931         and not explicitly used.
11932         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
11933         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
11934         Add a dependency on the "lock" module.
11936 2013-07-20  Daiki Ueno  <ueno@gnu.org>
11938         localecharset: make locale_charset thread-safe on Mac OS X
11939         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
11940         instead of MB_CUR_MAX.
11942 2013-07-20  Daiki Ueno  <ueno@gnu.org>
11944         gettext: update to version 0.18.3
11945         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
11946         require AC_PROG_SED to allow user to specify custom sed command when
11947         generating en@quot PO file.
11949 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
11951         bootstrap: use correct source when copying build-aux files
11952         * build-aux/bootstrap (gnulib_extra_files): This variable is
11953         relative to upstream gnulib layout, not downstream.
11955 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
11957         tmpdir: fix bug in VMS port
11958         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
11959         See Steven M. Schweda in
11960         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
11962 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11964         tmpdir: port to VMS, to // != /, and to long dirs
11965         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
11966         __secure_getenv, so that we're more like the glibc version.
11967         All uses changed.
11968         (path_search): Don't put slash after directory if __VMS.
11969         Problem reported by Steven M. Schweda in
11970         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
11971         Simplify code to add slash; no need for a loop.
11972         Do not remove trailing slash from "//".
11973         Do not assume dlen <= INT_MAX.
11975 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11977         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
11978         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
11979         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
11980         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
11982         accept4, dup3, pipe2: port to Cygwin
11983         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
11984         * lib/accept4.c (accept4) [O_BINARY]:
11985         * lib/dup3.c (dup3) [O_BINARY]:
11986         * lib/pipe2.c (pipe2) [O_BINARY]:
11987         Use set_binary_mode, not setmode.
11988         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
11989         * modules/binary-io (Depends-on): Remove module indicator.
11990         These last two bits undo the previous change to pipe2 and binary-io.
11992 2013-07-09  Pádraig Brady  <P@draigBrady.com>
11994         mountlist: add support for deallocating returned list entries
11995         * lib/mountlist.c (free_mount_entry): A new exported function
11996         to deallocate a mount list entry.
11997         (read_file_system_list): Refactor to use the new deallocation function.
11998         Suggested by Anton Ovchinnikov.
12000 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12002         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
12003         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
12004         * lib/stdalign.in.h (_Alignas, _Alignof):
12005         Port to FreeBSD 9.1, and to C11 and C++11.
12006         (_Alignas): Also support ICC.
12007         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
12008         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
12010 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12012         fnmatch: don't goto over declaration
12013         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
12014         undefined behavior for goto over a declaration.
12015         Problem reported by Charlie Brown in
12016         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
12018         pipe2: decouple from binary-io a bit
12019         This is for Emacs, which needs pipe2 but not binary-io.
12020         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
12021         * modules/binary-io (Depends-on): Add module indicator.
12023 2013-07-03  Eric Blake  <eblake@redhat.com>
12025         mgetgroups: relax license to LGPLv2+
12026         * modules/getugroups (License): Change from GPLv3+.
12027         * modules/mgetgroups (License): Likewise.
12028         * modules/getgroups (License): Change from LGPLv3+.
12030         xalloc-oversized: relax license to LGPLv2+
12031         * modules/xalloc-oversized (License): Change from GPLv3+.
12033         nproc: relax license to LGPLv2+
12034         * modules/nproc (License): Change from LGPLv3+.
12036         bootstrap: honor --no-git
12037         * build-aux/bootstrap: Don't even try to use git when user is
12038         pointing to a static checkout.
12040 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12042         ignore-value: port to gcc -pedantic
12043         * lib/ignore-value.h (ignore_value):
12044         Port to gcc -pedantic, by using __extension__.
12045         Reindent as per usual gnulib style nowadays.
12046         Simplify GCC version check.
12048 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
12050         extern-inline: port to gcc -std=c89
12051         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
12052         Do not use __gnu_inline__ if pedantic and pre-C99.
12054 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
12056         doc: document extern-inline
12057         * doc/extern-inline.texi: New file.
12058         * doc/gnulib.texi (alloca-opt): Include it.
12059         * m4/extern-inline.m4: Move some comments to documentation,
12060         and others closer to what they describe.
12062         doc: chatter less
12063         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
12064         (updated-stamp): Use it.  This causes 'make' to output just
12065         one file name rather than zillions.
12067         fflush, fseeko: port to musl cross-compiles
12068         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
12069         on some implementation that (1) is not known to be buggy,
12070         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
12071         cross-compiled to so we can't easily check for lack of
12072         conformance.  This is for cross-compiling to musl.
12073         Reported by Rich Felker in
12074         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
12075         * m4/fclose.m4 (gl_FUNC_FCLOSE):
12076         * m4/fflush.m4 (gl_FUNC_FFLUSH):
12077         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
12078         Adjust to above change.
12079         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
12080         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
12081         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
12082         known not to work, or unknown.
12084 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12086         msvc-inval: port to mingw-w64
12087         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
12088         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
12089         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
12091 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
12093         getcwd-lgpl: port to Tru64
12094         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
12095         Problem reported by Steven M. Schweda in
12096         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
12098         tests: port large-fd POSIX spawn tests to OS X
12099         Problem reported by Daiki Ueno in
12100         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
12101         * tests/test-posix_spawn_file_actions_addclose.c:
12102         * tests/test-posix_spawn_file_actions_adddup2.c:
12103         * tests/test-posix_spawn_file_actions_addopen.c:
12104         Include <limits.h>, for OPEN_MAX, if available.
12105         (big_fd): New static function.
12106         (main): Use it.
12108 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
12110         tests/nap.h: use an adaptive delay to avoid ctime update issues
12111         The recent change in nap.h (5191133e) decreased the probability of lost
12112         races to about a third, however such problems could still be observed
12113         in virtual machines and openSUSE's OBS.
12114         Before, nap() detected the needed time once empirically and then used
12115         that delay (together with a small correction multiplier) in further
12116         calls.  This problem has been reported and discussed several times,
12117         including guesses about possible kernel issues:
12118         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
12119         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
12120         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
12121         http://bugs.gnu.org/12820
12122         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
12123         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
12124         Now, nap() avoids the race alltogether by verifying on a reference
12125         file whether a timestamp difference has happened.
12126         * tests/nap.h (nap_fd): Define file descriptor variable for the
12127         witness file.
12128         (nap_works): Change return value to bool.  Change passing
12129         the old file's status by value instead of by reference as this function
12130         does no longer update that timestamp; rename the function argument from
12131         st to old_st.  Remove the local variables cdiff and mdiff because that
12132         function now returns true/false instead of the precise delay.
12133         (guess_delay): Remove function.
12134         (clear_tmp_file): Add new function to close and unlink the witness file.
12135         (nap): Instead of re-using the delay which has been calculated during
12136         the first call, avoid the race by actually verifying that a timestamp
12137         difference can be observed on the current file system.  Use an adaptive
12138         approach for the delay to minimize execution time.  Assert that the
12139         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
12140         = 2^31 - 1 = 2.1s.
12141         Use atexit to call clear_tmp_file when the process terminates.
12143 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12145         sig2str: port to C++
12146         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
12147         Reported by Daniel J Sebald in
12148         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
12150 2013-05-30  Eric Blake  <eblake@redhat.com>
12152         docs: mention cygwin shortcoming in <sys/un.h>
12153         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
12155         vasnprintf: silence mingw compiler warning
12156         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
12158 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12160         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
12161         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
12162         This fixes a porting bug I recently reintroduced in regex, and
12163         some other instances that I discovered while testing the fix.
12164         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
12165         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
12166         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
12167         with an empty argument if this is a pedantic pre-C99 GCC.
12168         * lib/verify.h: Do not use _Static_assert if this is a pedantic
12169         pre-C11 GCC.
12171         regex: adapt to locking regime instead of depending on pthread
12172         Instead of depending on pthread, adapt to whatever thread
12173         modules are in use.  Problem reported by Ludovic Courtès in
12174         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
12175         and by Mats Erik Andersson in
12176         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
12177         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
12178         Support either the 'lock' module, or the 'pthread' module, or
12179         no module.
12180         (lock_lock, lock_unlock): New macros.
12181         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
12182         * modules/lock, modules/pthread (configure.ac): Add module indicator.
12183         * modules/regex (Depends-on): Remove pthread.
12185 2013-05-22  Eric Blake  <eblake@redhat.com>
12187         getgroups: document portability issues
12188         * doc/glibc-functions/initgroups.texi (initgroups): Mention
12189         multithread safety.
12190         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
12191         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
12192         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
12193         getugroups.
12194         * doc/posix-functions/getgroups.texi (getgroups): Mention
12195         multithread safety and mgetgroups.
12197 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
12199         test-lchown, test-chown: also skip test if chown fails with EPERM
12200         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
12201         skip this test, to handle FAT file systems.
12202         * tests/test-chown.h (test_chown): Likewise.
12204 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12206         regex: fix dfa race in multithreaded uses
12207         Problem reported by Ludovic Courtès in
12208         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
12209         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
12210         New macros.  All uses of __libc_lock_define, __libc_lock_init
12211         changed to use the first two of these.
12212         (__libc_lock_lock, __libc_lock_unlock): New macros, for
12213         non-glibc platforms.
12214         (struct re_dfa_t): Define the lock unconditionally.
12215         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
12216         '#ifdef _LIBC"s.
12217         * modules/regex (Depends-on): Add pthread, if we use the
12218         included regex.
12220         * lib/regcomp.c: Do actions that are not needed for glibc,
12221         but may be needed elsewhere.
12222         (regfree, re_compile_internal): Destroy the lock.
12223         (re_compile_internal): Check for lock-initialization failure.
12225         malloca: port to compilers that reject size-zero arrays
12226         This fixes a bug introduced in my previous patch.
12227         * lib/malloca.c (struct preliminary_header): Use an int
12228         rather than a character array of size int; that's simpler.
12229         (struct header): Remove, replacing with ...
12230         (union header): New type.  This avoids the need for declaring a
12231         character array of size zero, which is not allowed on some platforms.
12232         All uses changed.
12234 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
12236         parse-datetime, tests: don't use "string" + int
12237         Recent versions of 'clang' complain about C source code that
12238         uses expressions of the form '"string literal" + integer',
12239         I guess on the theory that it's confusing for readers who are
12240         used to C++.  On those grounds I suppose it's OK to make this
12241         minor style change.
12242         * lib/parse-datetime.y (parse_datetime):
12243         * tests/test-fchdir.c (main):
12244         * tests/test-snprintf-posix.h (test_function):
12245         * tests/test-snprintf.c (main):
12246         * tests/test-vasnprintf-posix.c (test_function):
12247         * tests/test-vasnprintf.c (test_function):
12248         * tests/test-vsnprintf.c (main):
12249         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
12250         Rewrite '"str" + E' to '&"str"[E]'.
12252 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
12254         argmatch: port to C++
12255         * lib/argmatch.h [__cplusplus]: Add extern "C".
12257         argp: typo fix
12258         * lib/argp-help.c: Typo in comment.
12260 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
12262         manywarnings: update for GCC 4.8.0
12263         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12264         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
12265         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
12266         -Wmissing-noreturn, as they are duplicates of other warnings.
12267         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
12268         was documented to be flaky in earlier versions of GCC.
12270         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
12271         * tests/test-spawn.c (main):
12272         * tests/test-sys_socket.c (main):
12273         * tests/test-sys_wait.c (main):
12274         Don't have a switch value that isn't covered by a case.
12276         getaddrinfo-tests: port --enable-gcc-warnings to clang
12277         * tests/test-getaddrinfo.c (simple):
12278         Avoid casts from looser to stricter-aligned pointers.
12280         thread: port --enable-gcc-warnings to clang
12281         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
12282         Include <signal.h>, to pacify a warning about pthread_sigmask.
12284         stdio: use __REDIRECT for fwrite, fwrite_unlocked
12285         * lib/stdio.in.h (fwrite):
12286         When working around bug 11959, use __REDIRECT rather than '#define
12287         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
12288         fix the -Wunused-value issue with clang, and it works with GCC too.
12289         Problem with targeting reported by Eric Blake in
12290         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
12291         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
12292         debugging the fwrite issue.
12294         stdio: port --enable-gcc-warnings to clang
12295         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
12296         since the GCC workaround for fwrite does not pacify clang.
12298         sig2str: port --enable-gcc-warnings to clang
12299         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
12301         obstack: port --enable-gcc-warnings to clang
12302         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
12303         Avoid casts from looser to stricter-aligned pointers.
12305         memchr2: port --enable-gcc-warnings to clang
12306         * lib/memchr2.c (memchr2):
12307         Avoid casts from looser to stricter-aligned pointers.
12309         mbsstr: port --enable-gcc-warnings to clang
12310         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
12311         Avoid casts from looser to stricter-aligned pointers.
12313         malloca: port --enable-gcc-warnings to clang
12314         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
12315         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
12317         inttostr: port --enable-gcc-warnings to clang
12318         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
12320         warnings: port to clang
12321         Problem reported by Daniel P. Berrange via Eric Blake in
12322         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
12323         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
12324         (gl_WARN_ADD): Use it.
12326 2013-05-11  Jim Meyering  <meyering@fb.com>
12328         quotearg: do not read beyond end of buffer
12329         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
12330         end of an ARG for which no length was specified.  With an N-byte
12331         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
12332         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
12333         via coreutils' misc/sort-debug-keys.sh test and detected by running
12334         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
12335         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
12336         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
12337         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
12338         characters correctly."
12340 2013-05-11  Daiki Ueno  <ueno@gnu.org>
12342         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
12343         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
12344         compilation target is Mac OS X 10.6.
12345         Problem reported by parafin and Andoni Morales in
12346         <http://savannah.gnu.org/bugs/?37844> and
12347         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
12349 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12351         mkdir-p: remove assumptions about umask and mode
12352         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
12353         umask is 0, or that MODE is a subset of MODE_BITS.
12355 2013-05-10  Eric Blake  <eblake@redhat.com>
12357         maint.mk: catch more abuse of HAVE_DECL in syntax-check
12358         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
12360 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
12362         deps: require Automake >= 1.9.6 in generated Makefile fragments
12364         That is the same minimal version required in the DEPENDENCIES file.
12365         Moreover, the old code generated a requirement of Automake >= 1.5,
12366         and that is an insanely outdated version.
12368         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
12369         * tests/havelib/rpathlx/Makefile.am: Likewise.
12370         * tests/havelib/rpathly/Makefile.am: Likewise.
12371         * tests/havelib/rpathlyx/Makefile.am: Likewise.
12372         * tests/havelib/rpathlz/Makefile.am: Likewise.
12373         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
12374         * tests/havelib/rpathx/Makefile.am: Likewise.
12375         * tests/havelib/rpathy/Makefile.am: Likewise.
12376         * tests/havelib/rpathz/Makefile.am: Likewise.
12378 2013-05-08  Eric Blake  <eblake@redhat.com>
12380         bootstrap: AC_INIT may have more than four parameters
12381         * build-aux/bootstrap (extract_package_name): Correctly extract
12382         non-empty tarname field.  Avoid range in regex.
12383         Based on a report by Sami Kerola <kerolasa@iki.fi>.
12385 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12387         qacl: port to MS-Windows port of GNU Emacs
12388         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
12389         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
12390         port of GNU Emacs.  Problem reported by Eli Zaretskii in
12391         <http://bugs.gnu.org/14295#14>.
12393 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
12395         acl: include quote.h
12396         * lib/copy-acl.c: Include quote.h.
12397         * lib/set-acl.c: Likewise.
12399 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
12401         fchownat, renameat, unlinkat: update statat dependencies
12402         These modules use statat and lstatat, not fstatat; so depend on
12403         the statat module, which was split out recently from fstatat.
12404         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
12405         * modules/renameat: Likewise.  Also delete fstat.
12406         URL: http://bugs.gentoo.org/468790
12408 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
12410         Assume gnulib is checked out from Git, not CVS
12412         In fact, access to the gnulib repository through CVS has been
12413         disabled, or more precisely, got broken and was never restored; see:
12414         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
12416         Note that support for CVS is not removed completely and unthinkingly
12417         by this change: only support for CVS checkouts of gnulib itself is
12418         removed.  For example, the 'bootstrap' script still cater to .cvsingore
12419         files and CVS directories, for the benefit of those poor gnulib clients
12420         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
12422         * gnulib-tool: Simplify accordingly.
12423         * posix-modules: Likewise.
12424         * MODULES.html.sh: Likewise.
12425         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
12426         repository.
12427         * doc/gnulib-intro.texi: Likewise.
12428         * doc/gnulib-readme.texi: Likewise.
12429         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
12430         sample '.gitignore' file rather than a sample '.cvsignore'.
12431         * NEWS: Update.
12432         * m4/extensions.m4: While at it, remove a comment mistakenly referring
12433         to "CVS Autoconf" rather than "git Autoconf".
12435 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
12437         utimensat-tests, etc.: try to fix some races
12438         Problem reported by Bernhard Voelker in
12439         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
12440         I don't know whether this patch fixes that race condition, but it
12441         fixes *some* race conditions, so it should be a win.
12442         * modules/chown-tests (Depends-on):
12443         * modules/fchownat-tests (Depends-on):
12444         * modules/fdutimensat-tests (Depends-on):
12445         * modules/futimens-tests (Depends-on):
12446         * modules/lchown-tests (Depends-on):
12447         * modules/stat-time-tests (Depends-on):
12448         * modules/utimens-tests (Depends-on):
12449         * modules/utimensat-tests (Depends-on):
12450         Depend on nanosleep, not usleep.
12451         * modules/chown-tests (test_chown_LDADD):
12452         * modules/lchown-tests (test_lchown_LDADD):
12453         * modules/stat-time-tests (test_stat_time_LDADD):
12454         New macro.
12455         * modules/fchownat-tests (test_fchownat_LDADD):
12456         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
12457         * modules/futimens-tests (test_futimens_LDADD):
12458         * modules/utimens-tests (test_utimens_LDADD):
12459         * modules/utimensat-tests (test_utimensat_LDADD):
12460         Add $(LIB_NANOSLEEP).
12461         * modules/stat-time-tests (Files): Add tests/nap.h.
12462         * tests/nap.h: Include <limits.h>, for INT_MAX.
12463         (lt_mtime): Remove.
12464         (diff_timespec): New function.
12465         (get_stat): Rename from get_mtime.  All callers changed.
12466         (nap_works): Determine the needed delay by inspecting the
12467         file system's timestamp jumps; this should be more reliable.
12468         Look at both mtime and ctime, and take the maximum of the two jumps.
12469         (nap_works, guess_delay):
12470         Return a nanosecond count, not a microsecond count.
12471         All callers changed.
12472         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
12473         failure.
12474         (nap): Multiply the guess by 1.125, to accommodate the case where
12475         the file system's clock is a bit slower than nanosleep's clock.
12476         * tests/test-stat-time.c (BASE): New macro.
12477         Include nap.h.
12478         (nap): Remove; nap.h now defines this.  This removes a duplicate
12479         implementation of 'nap'.
12481         utimens, utimensat: work around Solaris UTIME_OMIT bug
12482         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
12483         Linux kernel 2.6.32 does.  Work around it in the same way.
12484         * doc/posix-functions/futimens.texi (futimens):
12485         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
12486         * lib/utimens.c (fdutimens, lutimens):
12487         * lib/utimensat.c (rpl_utimensat): Work around the bug.
12489         gettext: now it's your responsibility to add -I$(top_builddir)/intl
12490         Formerly, it was your responsibility to do this for all Makefile.ams
12491         other than Gnulib's.  Now it's your responsibility to do it for
12492         Gnulib's Makefile.am, too.
12493         * NEWS: Document this.
12494         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
12496         acl: include errno.h to get errno
12497         Reported by Daiki Ueno in
12498         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
12499         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
12501 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
12503         tests: don't assume getdtablesize () <= 10000000
12504         * modules/cloexec-tests:
12505         * modules/dup2-tests:
12506         * modules/dup3-tests:
12507         * modules/nonblocking-tests:
12508         * modules/posix_spawn_file_actions_addclose-tests:
12509         * modules/posix_spawn_file_actions_adddup2-tests:
12510         * modules/posix_spawn_file_actions_addopen-tests:
12511         * modules/unistd-safer-tests:
12512         Depend on the getdtablesize module.
12513         * tests/test-cloexec.c:
12514         * tests/test-dup-safer.c:
12515         * tests/test-dup2.c:
12516         * tests/test-dup3.c:
12517         * tests/test-fcntl.c:
12518         * tests/test-nonblocking.c:
12519         * tests/test-posix_spawn_file_actions_addclose.c:
12520         * tests/test-posix_spawn_file_actions_adddup2.c:
12521         * tests/test-posix_spawn_file_actions_addopen.c:
12522         Don't assume getdtablesize () <= 10000000.
12524 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
12526         extern-inline: work around bug in Sun c99
12527         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
12528         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
12530 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12532         qacl: new module, broken out from the acl module
12533         This is for GNU Emacs, which wants the acl functions but does
12534         not want 'error' invoked when they fail.
12535         * lib/acl-internal.h: Do not include error.h, quote.h.
12536         (ENOSYS, ENOTSUP): Remove; no longer needed.
12537         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
12538         * lib/acl.h: Include <stdbool.h>.
12539         (acl_errno_valid): New function.
12540         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
12541         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
12542         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
12543         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
12544         (ACL_INTERNAL_INLINE): Remove; no longer needed.
12545         * lib/file-has-acl.c (file_has_acl):
12546         * lib/qcopy-acl.c (qcopy_acl):
12547         * lib/qset-acl.c (qset_acl):
12548         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
12549         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
12550         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
12551         lib/file-has-acl.c, m4/acl.m4 to qacl module.
12552         Add lib/set-acl.c.
12553         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
12554         Add qacl.
12555         (configure.ac): Move gl_FUNC_ACL to qacl module.
12556         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
12557         Rename set-mode-acl.c to set-acl.c.
12558         * lib/acl-errno-valid.c: New file.
12559         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
12560         copy_acl function remains in copy-acl.c.
12561         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
12562         (_): Remove; not needed.
12563         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
12564         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
12565         * modules/qacl: New file, moved from the old modules/acl.
12566         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
12567         Remove set-mode-acl.c, copy-acl.c.
12568         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
12570         alignof, intprops, malloca: port better to IBM's C compiler
12571         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
12572         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
12573         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
12575 2013-04-25  Daiki Ueno  <ueno@gnu.org>
12577         wctype-h: fix gettext link error on mingw
12578         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
12579         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
12580         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
12581         rpl_towupper and rpl_towupper.
12583 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
12585         regex-tests, regex: allow glibc re_search behavior
12586         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
12587         re_search input data to make the multi-character collating element
12588         in it clearly visible, and treat re_search return code 0 as valid.
12589         * m4/regex.m4 (gl_REGEX): Likewise.
12591 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12593         stdalign: doc fix
12594         * doc/posix-headers/stdalign.texi (stdalign.h):
12595         Gnulib doesn't support '_Alignof expr'.
12597 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12599         stdalign: port to stricter ISO C11
12600         ISO C11 says that _Alignof's operand must be a parenthesized type.
12601         Problem reported by Eli Zaretskii in
12602         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
12603         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
12604         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
12606 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12608         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
12609         Problem reported by Marco Atzeri in
12610         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
12611         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
12612         Simply delegate to the system <sys/select.h> in this case too.
12613         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
12614         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
12615         be needed on Solaris either.
12616         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
12617         Simply delegate to the system <sys/time.h> in this case.
12619 2013-03-19  Karl Berry  <karl@gnu.org>
12621         * build-aux/gnupload: check for erroneous (with gnupload) use of
12622         ftp-upload.gnu.org, tweak help.
12624 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12626         copy-file, rpmatch: fix problems found by cppcheck
12627         Reported by Arno Onken in
12628         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
12629         * lib/rpmatch.c (try): Fix memory leak.
12630         * lib/copy-file.c: Include "ignore-value.h".
12631         (qcopy_file_preserving): Ignore chown value.
12632         * modules/copy-file (Depends-on): Add ignore-value.
12634 2013-01-27  Jim Meyering  <jim@meyering.net>
12636         prefix-gnulib-mk: give better diagnostics
12637         * build-aux/prefix-gnulib-mk: Don't just "die".
12638         Give better diagnostics upon failure.
12640 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12642         putenv: port to Solaris 10
12643         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
12644         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
12645         is not what is wanted here.
12646         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
12647         declaration, not for its existence.
12649 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
12651         mktime: fix configure typo
12652         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
12654 2013-03-12  Eric Blake  <eblake@redhat.com>
12656         regex-tests: skip UTF-8 test on mingw
12657         * modules/regex-tests (Depends-on): Add localcharset.
12658         * tests/test-regex.c (main): Use it to skip test on mingw.
12660 2013-03-11  Eric Blake  <eblake@redhat.com>
12662         tests: make it easier to bypass alarm time in debugger
12663         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
12664         * tests/test-memmem.c (main): Likewise.
12665         * tests/test-passfd.c (main): Likewise.
12666         * tests/test-ptsname.c (main): Likewise.
12667         * tests/test-ptsname_r.c (main): Likewise.
12668         * tests/test-strcasestr.c (main): Likewise.
12669         * tests/test-strstr.c (main): Likewise.
12671         regex: port to mingw's recent addition of undeclared alarm
12672         * doc/posix-functions/alarm.texi (alarm): Document that alarm
12673         exists but still doesn't work in newer mingw.
12674         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
12675         not existence.  Ensure SIGALRM is not trapped.
12676         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
12677         * m4/regex.m4 (gl_REGEX): Likewise.
12678         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
12679         * tests/test-regex.c (main): Use correct probe for alarm.
12681         putenv: avoid compilation warning on mingw
12682         * lib/putenv.c (_unsetenv): Protect variable declaration.
12683         (putenv): Fix indentation.
12685 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
12687         unistd: don't prevent Tru64 Unix from using gnulib strtod.
12688         * lib/unistd.in.h: be careful not to include un-needed system
12689         stdlib.h from here, because that prevents gnulib stdlib.h from
12690         defining rpl_strtod correctly.
12692 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
12694         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
12695         changesets, but for the 'precision 0' test.
12696         * tests/test-vasprintf-posix.c (test_function): Don't insist on
12697         round-to-even, since POSIX says rounding is implementation-defined
12698         and OS X 10.8.2 rounds 1.51 to 1 here.
12700         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
12701         changeset.
12702         * tests/test-vasprintf-posix.c (test_function): Don't insist on
12703         round-to-even, since POSIX says rounding is implementation-defined
12704         and OS X 10.8.2 rounds 1.5 to 1 here.
12706 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12708         vasnprintf-posix-tests: allow rounding 1.5 to 1
12709         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
12710         round-to-even, since POSIX says rounding is implementation-defined
12711         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
12712         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
12714         bootstrap: port to FreeBSD
12715         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
12716         that treat '--' differently.  Reported by Mats Erik Andersson in
12717         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
12719 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
12721         regex: rename remaining __attribute calls to __attribute__.
12722         2012-02-25 changed definition of __attribute, but left some uses
12723         unchanged, preventing compilation of regex module on most non-gcc
12724         environments.
12725         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
12726         (lookup_collation_sequence_value, build_range_exp)
12727         (build_collating_symbol): Set attributes with newly renamed
12728         __attribute__ decorator.
12729         * lib/regex_internal.c (re_string_peek_byte_case)
12730         (re_node_set_compare, re_node_set_contains): Likewise.
12731         * lib/regexec.c (acquire_init_state_context): Likewise.
12733 2013-03-06  Bruno Haible  <bruno@clisp.org>
12735         execute: Revert last change, but use a different condition.
12736         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
12737         on Windows.
12739 2013-03-05  Eric Blake  <eblake@redhat.com>
12741         execute: drop dead code
12742         * lib/execute.c (nonintr_close, nonintr_open): Delete.
12744 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
12746         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
12747         * m4/non-recursive-gnulib-prefix-hack.m4
12748         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
12749         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
12750         <http://bugs.gnu.org/10305#237>.
12752 2013-03-04  Eric Blake  <eblake@redhat.com>
12754         test-getsockopt: avoid compiler warning
12755         * tests/test-getsockopt.c (includes): Ensure close is declared.
12757 2013-03-02  Bruno Haible  <bruno@clisp.org>
12759         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
12760         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
12762 2013-03-02  Bruno Haible  <bruno@clisp.org>
12764         gettext: Update to version 0.18.2.
12765         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
12766         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
12767                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
12769 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12771         regex: merge patches from libc
12773         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12774         * lib/regex_internal.h (__attribute__): Rename from __attribute.
12775         All uses changed.
12776         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
12777         (re_string_wchar_at, re_string_elem_size_at):
12778         Mark function as possibly unused.
12780         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
12781         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
12782         elements compare against the byte sequence of it, not its name.
12784 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12786         putenv: port better to native Windows
12787         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
12788         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
12789         (_unsetenv): Use _putenv if available.
12790         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
12791         a bit less likely to cause damage.
12792         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
12793         Fix the wrong value with SetEnvironmentVariable.
12794         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
12795         code better.
12797 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12799         regex: ignore old-style-definition warnings
12800         * lib/regex.c: Add pragma to ignore these warnings.
12801         Problem reported for GNU tar by Pavel Raiskup.
12803 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12805         getcwd: support coreutils better
12806         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
12807         but this might not be correct in coreutils, which disables
12808         the raw decl checks.  Problem reported by Nagendra in
12809         <http://bugs.gnu.org/10305#192>.
12810         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
12811         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
12812         Test the getcwd function, not any macro, since getcwd.c wants the
12813         function.
12814         * m4/getcwd.m4 (gl_FUNC_GETCWD):
12815         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
12816         compile, as might happen if there's a macro but no function.
12818         strtod: support coreutils better
12819         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
12820         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
12821         disables the raw decl checks.  This assumes there is an underlying
12822         strtod, but that's a safe assumption these days.
12823         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
12825         mountlist: port to HP NonStop
12826         Reported by Joachim Schmitz in
12827         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
12828         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
12829         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
12831 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12833         extern-inline: avoid compilation error with HP-UX cc
12834         Reported by Richard Lloyd in
12835         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
12836         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
12837         Suppress extern inline with HP-UX cc.  This should be safe,
12838         though it may hurt performance.  Perhaps someone with some HP-UX
12839         experience can come up with a higher-performance fix.
12841 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12843         putenv: fix heap corruption with mixed putenv/_putenv
12844         Problem reported by Michael Goffioul in
12845         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
12846         * lib/putenv.c (putenv) [HAVE__PUTENV]:
12847         Rely on _putenv to allocate the new environment.
12848         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
12849         * modules/putenv (configure.ac): Use it.
12851 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
12853         unsetenv etc.: port to Solaris 11 + GNU Emacs
12854         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
12855         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
12856         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
12857         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
12858         idea but is too painful to fix right now), and without this gnulib
12859         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
12860         compiling unsetenv.c on Solaris 11.  Fix the problem for
12861         unsetenv.c, and fix other similar occurrences.
12863 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12865         secure_getenv: fix C++ declaration typo
12866         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
12867         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
12868         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
12870 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12872         careadlinkat: stop exporting careadlinkatcwd
12873         Only Emacs used it directly, and Emacs no longer needs it.
12874         * NEWS: Document this simplification.
12875         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
12876         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
12877         for readlink.
12878         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
12879         Don't include stdlib.h; no longer needed.
12880         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
12881         * lib/relocwrapper.c: Adjust comment to match new dependencies.
12882         * modules/areadlink (Depends-on): Add readlink.
12883         (Maintainer): Add self.
12884         * modules/careadlinkat (Depends-on): Remove readlink.
12886         extensions: port better to HP-UX
12887         This is merged from git Autoconf.
12888         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
12889         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
12890         so that it's compatible with the value used when compiling.
12892         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
12893         Problem reported by Mats Erik Andersson in
12894         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
12895         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
12896         openpty function exists, not merely when we intend to replace it.
12897         This corrects the 2013-01-31 patch, which mistakenly defined
12898         HAVE_OPENPTY even on hosts that lacked it.
12900 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
12902         secure_getenv: fix include typo
12903         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
12905         secure_getenv: port better to FreeBSD and Solaris
12906         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
12907         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
12908         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
12909         This works better on BSDish platforms.
12910         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
12911         Test for issetugid if __secure_getenv is missing.
12913 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12915         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
12916         Some of these changes are merged in from git Autoconf.
12917         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
12918         When deciding whether to define _XOPEN_SOURCE, inspect the
12919         preprocessor macro __hpux instead of the more-heavyweight
12920         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
12921         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
12922         as the key for __EXTENSIONS__.
12924         unistd: avoid namespace pollution on non-glibc systems
12925         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
12926         This avoids namespace pollution on non-glibc systems, by causing
12927         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
12928         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
12929         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
12931 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12933         tmpdir: use secure_getenv
12934         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
12935         Define to secure_getenv, not getenv.
12936         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
12937         as that's now secure_getenv's job.
12938         * modules/tmpdir (Depends-on): Add secure_getenv.
12940         tempname: use secure_getenv
12941         * lib/tempname.c (__secure_getenv) [!_LIBC]:
12942         Define to secure_getenv, not getenv.
12943         * modules/tempname (Depends-on):
12944         Add secure_getenv.
12946         secure_getenv: new module
12947         * MODULES.html.sh (Extra functions based on ANSI C 89):
12948         Add secure_getenv.
12949         * doc/glibc-functions/secure_getenv.texi: New file.
12950         * doc/gnulib.texi: Include it.
12951         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
12952         New files.
12953         * lib/stdlib.in.h (secure_getenv): New decl.
12954         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
12955         * modules/stdlib (stdlib.h):
12956         Add secure_getenv checks.
12958 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12960         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
12961         Reported for OS X 10.8.2 by Assaf Gordon in
12962         <http://bugs.gnu.org/13516>.
12963         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
12964         !HAVE_OPENAT && !HAVE_FDOPENDIR.
12965         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
12966         so that they can be kept in sync more easily.  Avoid PATH_MAX
12967         test on the Hurd.  Sync from test-getcwd.c for errno tests after
12968         mkdir or chdir failure.
12969         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
12970         lib/getcwd.c.
12971         (test_abort_bug): Do not test for the deep directory bug unless we
12972         have openat support.  Avoid PATH_MAX test on the Hurd.
12974         regex-tests, regex: fix bug: memset undeclared
12975         * tests/test-regex.c: Don't include regex.h twice.  Include
12976         string.h, to declare memset.  Christensen's report also mentioned
12977         this issue.
12978         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
12979         test-regex.c, to avoid future problems like this.  Remove
12980         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
12981         twice.
12983         regex-tests: fix link errors on older Solaris
12984         These need to link with @LIBINTL@ to get libintl_gettext.
12985         Problem reported by Tom G. Christensen in
12986         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
12987         * modules/regex-tests (test_regex_LDADD): New macro.
12989 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
12991         regex-tests: new module
12992         * modules/regex-tests, tests/test-regex.c: New files.
12994         regex: fix off-by-one error in configure test
12995         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
12997 2013-01-31  Eric Blake  <eblake@redhat.com>
12999         regex: avoid infinite configure test
13000         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
13002 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
13004         openpty: fix bug where HAVE_OPENPTY wasn't defined
13005         See the thread starting at:
13006         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
13007         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
13008         openpty function exists, not merely when we intend to replace it.
13010 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13012         sys_time: port to Solaris 2.6
13013         There is a circularity problem on Solaris 2.6, where <time.h> includes
13014         <sys/time.h> for struct timespec.  The include nesting is gnulib
13015         <time.h>, system <time.h>, gnulib <sys/time.h>, system
13016         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
13017         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
13018         <sys/siginfo.h>; the last, innermost file needs struct
13019         timestruc_t, which is defined in <sys/time.h>, which has not been
13020         fully parsed.  Problem reported by Tom G. Christensen in
13021         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
13022         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
13023         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
13024         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
13025         uses split double-inclusion guards.
13027 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13029         regex: test for buffer overrun
13030         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
13031         for the just-fixed regex bug.
13033 2013-01-29  Andreas Schwab  <schwab@suse.de>
13035         regex: fix buffer overrun in regexp matcher [BZ #15078]
13036         * lib/regexec.c (extend_buffers): Add parameter min_len.
13037         (check_matching): Pass minimum needed length.
13038         (clean_state_log_if_needed): Likewise.
13039         (get_subexp): Likewise.
13041 2013-01-28  Pádraig Brady  <P@draigBrady.com>
13043         mountlist: don't consider "devtmpfs" as dummy
13044         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
13045         as there is storage associcated with it.
13047 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
13049         futimens-tests, utimens-tests: Depend on gettext.
13050         This works around a problem introduced in my 2013-01-12 patch,
13051         which added @LIBINTL@ to these modules.
13052         * modules/futimens-tests (Depends-on):
13053         * modules/utimens-tests (Depends-on): Add gettext.
13055 2013-01-26  Eric Blake  <eblake@redhat.com>
13057         test-getpeername: fix typo
13058         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
13060 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
13062         bootstrap: remove the need for a sorted .gitignore file
13063         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
13064         rename to insert_if_absent(), so that we don't need or generate
13065         a sorted .gitignore file.  We do require a .gitignore with no
13066         existing duplicate entries and enforce that.
13067         (sort_patterns): Remove this function as we now use the simpler
13068         technigue of inserting blacklist entries at the top of the file,
13069         assuming gnulib won't be inserting !whitelist entries.
13071 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13073         readlinkat: don't depend on gl_FUNC_OPENAT
13074         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
13075         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
13076         renameat.m4, symlinkat.m4; but one thing at a time.
13078         statat: new module, split out from fstatat
13079         GNU Emacs needs the POSIX-specified fstatat, but not the
13080         gnulib-specified statat and lstat.  Split the latter two into a
13081         new module 'statat'.
13082         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
13083         * lib/openat.h, lib/statat.c (STATAT_INLINE):
13084         Rename from FSTATAT_INLINE. All uses changed.
13085         * modules/fstatat (Files): Remove lib/statat.c.
13086         (gl_MODULE_INDICATOR([fstatat])): Remove.
13087         (lib_SOURCES): Remove.
13088         (Maintainer): Add self.
13089         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
13090         * tests/test-fstatat.c (BASE): Don't define if already defined.
13091         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
13093 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
13095         tests: don't assume fd 99 is closed
13096         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
13097         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
13098         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
13099         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
13100         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
13101         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
13102         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
13103         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
13104         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
13105         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
13106         * tests/test-fwrite.c, tests/test-getpeername.c:
13107         * tests/test-getsockname.c, tests/test-getsockopt.c:
13108         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
13109         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
13110         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
13111         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
13112         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
13113         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
13114         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
13115         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
13116         * tests/test-unlinkat.c, tests/test-unlockpt.c:
13117         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
13118         Close file descriptor 99, instead of assuming it's already closed.
13120 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13122         stpncpy: port to OS X 10.8
13123         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
13124         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
13126 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
13128         unistd: port to recent mingw
13129         * lib/unistd.in.h: Remove special invocation convention for mingw,
13130         which breaks for the latest mingw version.  See John W. Eaton in
13131         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
13133         largefile: port better to Mac OS X 10.5
13134         This patch is backported from Autoconf git.
13135         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
13136         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
13137         with ino_t size being different for configuration time versus
13138         build/run time.  Problem reported by PHO in
13139         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
13141 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13143         doc: clarify -Werror
13144         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
13145         clarify that it's intended for developers, not for ordinary builds,
13146         and mention --enable-gcc-warnings as one possible use.
13148 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
13150         stdint: fix build with Android's Bionic fox x86
13151         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
13152         was already included as _SSIZE_T_DEFINED_ might also be defined
13153         in include/machine/_types.h, which is included by stdio.h
13155 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
13157         net_if-tests: port to Solaris 7 + GCC 3.4.6
13158         Problem reported by Tom G. Christensen in
13159         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
13160         * tests/test-net_if.c (ni): Move to next the code that uses it,
13161         so that it's declared only if needed.
13163 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
13165         net_if-tests: port to older Solaris
13166         Problem reported by Tom G. Christensen in
13167         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
13168         * modules/net_if-tests (NET_IF_LIB): New substitution.
13169         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
13170         (HAVE_IF_NAMEINDEX): New C macro.
13171         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
13173         system-quote-tests: port to older Solaris
13174         Problem reported by Tom G. Christensen in
13175         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
13176         * tests/test-system-quote-child.c (fopen, fread): Undef.
13178         c-xvasprintf etc.: fix link errors on older Solaris
13179         These need to link with @LIBINTL@ to get libintl_gettext.
13180         Problem reported by Tom G. Christensen in
13181         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
13182         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
13183         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
13184         * modules/futimens-tests (test_futimens_LDADD):
13185         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
13187 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13189         locale: port to Solaris 2.6 and 7 + GNU gettext
13190         * lib/locale.in.h: Just include_next <locale.h> when
13191         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
13192         when combining the localename module with GNU gettext 0.18.2.
13193         Problem reported by Tom G. Christensen in
13194         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
13196 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13198         stdlib: port to Solaris 2.6
13199         Also, the code worked on Solaris 7 through 9 only by accident.
13200         Problem reported by Tom G. Christensen in
13201         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
13202         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
13203         simply include the system stdlib.h.
13204         * lib/getopt.in.h (__need_system_stdlib_h):
13205         * lib/pthread.in.h (__need_system_stdlib_h):
13206         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
13207         Define when including <stdlib.h>, to avoid problems at least for
13208         the pthread case on Solaris 2.6 and 7.  These .h files can get by
13209         with the system stdlib.h.
13211 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
13213         doc: update main copyright year
13214         * doc/gnulib.texi: Update copyright date.
13216         doc: improve ISO 8601 discussion
13217         * doc/parse-datetime.texi (Combined date and time of day items):
13218         Specify more carefully what formats are supported and what is
13219         done with excess precision.
13221 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
13223         doc: avoid small caps
13224         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
13225         they're more trouble than they're worth.  Suggested by Karl Berry
13226         in <http://bugs.gnu.org/13360>.
13228         regex: conform to strict C
13229         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
13230         From Aharon Robbins.
13232         gnulib-tool: fix incompatibility with autopoint 0.18.2
13233         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
13234         Problem reported by Tom G. Christensen in
13235         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
13237 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13239         fprintftime: bring back and reword fwrite comment
13240         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
13242         stdio: remove now-unnecessary stdio.c
13243         Since stdio.in.h no longer uses inline functions, we no longer
13244         need to compile the extern versions.
13245         * lib/stdio.c: Remove.
13246         * modules/stdio (Files): Remove lib/stdio.c.
13247         (lib_SOURCES): Remove.
13249         unicodeio: depend on stdio, not ignore-value
13250         * lib/unicodeio.c: Do not include ignore-value.h.
13251         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
13252         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
13254         fprintftime: depend on stdio, not ignore-value
13255         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
13256         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
13257         since the stdio module arranges to silence that warning now.
13258         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
13260 2012-10-04  Simon Josefsson  <simon@josefsson.org>
13262         stdint-tests: Fix expanded-before-required-warning.
13263         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
13265 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13267         fwrite: silence __wur only for older glibc versions
13268         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
13269         This will help us remove this workaround some time in the far future.
13271 2013-01-03  Eric Blake  <eblake@redhat.com>
13273         fwrite: silence __wur without using inline
13274         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
13275         just gcc, and in a way that avoids inline issues.
13276         * modules/stdio (Depends-on): Drop extern-inline.
13278 2013-01-03  Jim Meyering  <jim@meyering.net>
13280         update-copyright: avoid copyright notice date corruption
13281         Given a sequence of copyright year numbers in which the final
13282         one was a two-digit number that happened to be a substring of
13283         a preceding four-digit year number, we would mistakenly update
13284         the substring (from two- to four-digit) rather than the two-digit
13285         number at the end, which, combined with the addition of the current
13286         4-digit year number would yield two 5-digit year numbers, e.g.,
13287         here, it would convert the first "99" to "1999, 2013" rather than
13288         the final one:
13289           1991, 99
13290           11999, 20131, 1999
13291         * build-aux/update-copyright: Tighten a regexp.
13292         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
13293         Reported by Joseph Myers in
13294         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
13296 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13298         regex: omit needless signed-pointer casts
13299         * lib/regcomp.c (build_charclass, build_charclass_op):
13300         Use char *, not unsigned char *, for class name and extra.
13301         The char values are always nonnegative so there's no need to
13302         insist on unsigned char * here, and using char * removes the need
13303         for casts.  Reported by Aharon Robbins in
13304         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13306         regex: support Gawk, which never uses alloca
13307         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
13308         Do not include in this case.  Gawk doesn't supply a substitute
13309         alloca.h and doesn't need one.
13311         regex: port __libc_lock_define usage to C89
13312         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
13313         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
13314         does not conform to C89, as it has an empty macro argument.
13315         Reported by Aharon Robbins in
13316         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13318 2013-01-01  Eric Blake  <eblake@redhat.com>
13320         maint: update all copyright year number ranges
13321         Run "make update-copyright".
13323         version-etc: bump copyright year reported in --version
13324         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
13326 2012-12-31  Eric Blake  <eblake@redhat.com>
13328         sigprocmask-tests: skip test if pid is unexpectedly large
13329         * tests/test-sigprocmask.c (main): Add range check.
13331         git-version-gen: avoid test -z portability glitch
13332         * build-aux/git-version-gen: Prefer portable test spelling, since
13333         git-version-gen is run on more than just developer machines.
13335 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
13337         git-version-gen: add --fallback option to use if git is not present
13338         * build-aux/git-version-gen: Add support for the new option --fallback,
13339         which comes into play when there is no $tarball_version_file and
13340         git is not working.
13341         (scriptversion): Update.
13343         maint.mk: handle missing git with more grace
13344         * top/maint.mk (no-submodule-changes, public-submodule-commit):
13345         Quietly proceed if git is not present.
13347 2012-12-31  Eric Blake  <eblake@redhat.com>
13349         dup2: work around cygwin bug
13350         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
13351         * lib/dup2.c (rpl_dup2): Work around it.
13352         * doc/posix-functions/dup2.texi (dup2): Document it.
13354 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
13356         regex: remove unnecessary dependency on localcharset.h
13357         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
13358         hasn't been needed for years.
13359         * modules/regex (Depends-on): Remove localcharset.
13361         regex: revert single-byte change
13362         * lib/regexec.c (check_node_accept_bytes): Revert previous change
13363         to this function.  This was alredy fixed in a different way, at
13364         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
13365         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
13366         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
13368         regex: simplify based on Gawk version
13369         * lib/regex_internal.c (re_dfa_add_node): Simplify.
13370         Reported by Aharon Robbins in
13371         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13373 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13375         regex: check that pattern char is single-byte
13376         Reported by Aharon Robbins in
13377         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13378         * lib/regexec.c (check_node_accept_bytes):
13379         Return 0 if the pattern string has a multibyte character here.
13381         regex: implement rational ranges
13382         Reported by Aharon Robbins in
13383         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13384         * lib/regcomp.c (build_range_exp) [!_LIBC]:
13385         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
13386         Implement rational ranges.
13388         regex: avoid redefining __wctype
13389         Reported by Aharon Robbins in
13390         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13391         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
13392         #undef before defining.
13394         regex: port to hosts where malloc (0) == NULL
13395         Reported by Aharon Robbins in
13396         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13397         * lib/regex_internal.c (re_node_set_alloc):
13398         Don't assume that malloc (0) yields nonnull.
13399         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
13400         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
13401         * modules/regex (Files): Add m4/eealloc.m4.
13403         regex: port to C89
13404         Reported by Aharon Robbins in
13405         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
13406         * lib/regcomp.c (init_word_char): Declaration before statement.
13408         regex: merge glibc changes
13409         Also, copy the license wording from glibc.  This simplifies
13410         merging changes.  gnulib-tool will change the wording to GPL as
13411         appropriate, when importing it to other packages.  The only
13412         glibc change made since the last merge, which needs merging, is:
13413         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
13414         * lib/regex_internal.h (gettext): Remove use of INTUSE.
13416         * users.txt: Add Emacs.
13418         doc: omit mention of version when not needed
13419         * doc/gnulib-intro.texi (Portability and Application Code):
13420         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
13421         Don't mention particular dates or versions when not necessary, so
13422         that the documentation won't go out of date so quickly.
13424         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
13426 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
13428         bootstrap: pass --force to autoreconf.
13429         * build-aux/bootstrap (AUTORECONFFLAGS): New.
13430         Add "--force" so that Automake's ylwrap and other such tools
13431         be updated at each bootstrap invocation.
13432         Use it.
13434 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13436         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
13437         The earlier patch forgot to update one of the #if conditions, causing
13438         a problem on Debian testing i386 reported by Mats Erik Andersson
13439         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
13440         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
13441         (__argp_fmtstream_puts, argp_fmtstream_puts)
13442         (__argp_fmtstream_write, argp_fmtstream_write)
13443         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
13445         * doc/gnulib-readme.texi: Minor fixups.
13446         (Portability guidelines): Modernize URLs.  Remove some repetition.
13447         (Indent with spaces not TABs): Reword to avoid too-long lines.
13448         Remove some '@ifset standalone' stuff that isn't used.
13450         * doc/gnulib-readme.texi (Portability guidelines):
13451         ctype.h, not ctime.h.
13453         Correct name of POSIX.1-2001.
13454         * doc/posix-functions/fgetc.texi (fgetc):
13455         * doc/posix-functions/fgets.texi (fgets):
13456         * doc/posix-functions/fread.texi (fread):
13457         * doc/posix-functions/fscanf.texi (fscanf):
13458         * doc/posix-functions/getc.texi (getc):
13459         * doc/posix-functions/getchar.texi (getchar):
13460         * doc/posix-functions/scanf.texi (scanf):
13461         POSIX.1-2001, not POSIX-2001.
13463         doc: move README into manual
13464         * README: Move contents to new file doc/gnulib-readme.texi.
13465         Replace with a one-line summary.
13466         * doc/gnulib.texi (Brief Overview): New section,
13467         with old intro preface.  Include gnulib-readme.texi for contents.
13468         (Philosophy): Rename from "Introduction", since this
13469         section no longer introduces the rest.  Write a new preface.
13470         * doc/gnulib-readme.texi: New file, with the old contents of
13471         README texinfo-ized.  This way, the README info appears
13472         in the online and printed manual.
13474 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
13476         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
13477         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
13478         c_vasprintf() prototype.
13480 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
13482         c-vasprintf: Fix "empty declaration" warning reported by GCC.
13483         * lib/c-vasprintf.h: Remove stray semicolon.
13485 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13487         gettext: avoid obsolete macro AM_PROG_MKDIR_P
13488         It is obsolete and is planned to be removed from Automake 1.14; see
13489         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
13490         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
13491         (installdirs-data, installdirs-data-yes):
13492         Use $(MKDIR_P), not $(mkdir_p).
13493         * m4/intl.m4 (AM_INTL_SUBDIR):
13494         * m4/po.m4 (AM_PO_SUBDIRS):
13495         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
13497 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13499         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
13500         On this platform, we are not optimizing but we are using
13501         the substitute for extern inlines, so compile as if
13502         C99-style extern inline, or a substitute, is available.
13503         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
13504         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
13505         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
13506         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
13507         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
13508         Declare as ARGP_FS_EI, not as extern.
13509         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
13510         (__option_is_short, _option_is_end, __option_is_end)
13511         [!_LIBC && __USE_EXTERN_INLINES]:
13512         Declare as ARGP_EI, not as extern.
13514 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13516         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
13517         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
13518         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
13519         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
13520         ...), as the latter is fatal with older Autoconfs.
13521         Problem reported and fix suggested by Eric Blake in thread starting at
13522         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
13524 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13526         AC_PROG_MKDIR_P: don't workaround if not buggy
13527         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
13528         Define only for Autoconf versions before 2.62.
13529         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
13530         undocumented m4_PACKAGE_VERSION, for consistency with the
13531         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
13532         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
13533         was introduced in 2.62.
13535 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
13537         New 'c-*printf' modules for formatted output in C locale.
13539         New module 'c-vasnprintf'.
13540         * modules/c-vasnprintf: New file.
13541         * lib/c-vasnprintf.c: New file.
13542         * lib/c-vasnprintf.h: New file.
13544         New module 'c-snprintf'.
13545         * modules/c-snprintf: New file.
13546         * modules/c-snprintf-tests: New file.
13547         * lib/c-snprintf.c: New file.
13548         * lib/c-snprintf.h: New file.
13549         * tests/test-c-snprintf.c: New file.
13550         * tests/test-c-snprintf.sh: New file.
13552         New module 'c-vsnprintf'.
13553         * modules/c-vsnprintf: New file.
13554         * modules/c-vsnprintf-tests: New file.
13555         * lib/c-vsnprintf.c: New file.
13556         * lib/c-vsnprintf.h: New file.
13557         * tests/test-c-vsnprintf.c: New file.
13558         * tests/test-c-vsnprintf.sh: New file.
13560         New module 'c-vasprintf'.
13561         * modules/c-vasprintf: New file.
13562         * modules/c-vasprintf-tests: New file.
13563         * lib/c-asprintf.c: New file.
13564         * lib/c-vasprintf.c: New file.
13565         * lib/c-vasprintf.h: New file.
13566         * tests/test-c-vasprintf.c  +: New file.
13567         * tests/test-c-vasprintf.sh: New file.
13569         New module 'c-xvasprintf'.
13570         * modules/c-xvasprintf: New file.
13571         * modules/c-xvasprintf-tests: New file.
13572         * lib/c-xasprintf.c: New file.
13573         * lib/c-xvasprintf.c: New file.
13574         * lib/c-xvasprintf.h: New file.
13575         * tests/test-c-xvasprintf.c: New file.
13576         * tests/test-c-xvasprintf.sh: New file.
13578 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13580         argp: better 'inline'
13581         Use extern-inline module to declare extern inline functions.
13582         This avoids some bogus warning diagnostics.  Problem discovered
13583         when modifying GNU tar to use the manywarnings module.
13584         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
13585         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
13586         Define based on extern-inline.
13587         * modules/argp (Depends-on): Add extern-inline.
13589 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13591         filemode, sys_stat: Handle MPX files a la AIX.
13592         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
13593         * lib/sys_stat.in.h (S_ISMPX): New macro.
13594         * tests/test-sys_stat.c: Add tests for MPX files.
13596 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
13598         x-to-1: honor $PERL
13599         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
13600         a chance to use his preferred version of Perl.  This is typically
13601         required by Darwin users whose default /usr/bin/perl does not have all
13602         the libraries required by help2man, and who need to use their MacPorts
13603         installation of Perl instead.
13605 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
13607         gnu-web-doc-update: add all the new files, even in new directories
13608         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
13609         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
13610         Use it.
13611         (main): Don't use cvsutils to get the list of unknown files,
13612         just add all the existing files and directories.
13614 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
13616         gnu-web-doc-update: improve --help
13617         * build-aux/gnu-web-doc-update: Move comments into --help.
13619 2012-12-07  Eric Wong  <normalperson@yhbt.net>
13621         mountlist: recognize more "dummy" file systems
13622         * lib/mountlist.c (ME_DUMMY_0):
13623         Add these dummy FS names to the list:
13624         - "debugfs" virtual filesystem for kernel debugging
13625         - "devpts" PTY slave filesystem
13626         - "devtmpfs" device filesystem on top of tmpfs/ramfs
13627         - "fusectl" control filesystem for FUSE
13628         - "mqueue" enumerates POSIX message queues
13629         - "rpc_pipefs" kernel <-> userspace bridge for NFS
13630         - "sysfs" is for exporting kernel objects
13631         - "devfs" device filesystem for Linux 2.4 and FreeBSD
13633 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
13635         extern-inline: avoid incompatibility with Darwin Libc
13636         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
13637         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
13638         Problem reported by Akim Demaille in
13639         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
13641 2012-12-11  Simon Josefsson  <simon@josefsson.org>
13643         gnupload: Work with GnuPG using gpg-agent (for smartcards).
13644         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
13645         let it handle password prompting.
13647 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
13649         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
13650         * lib/canonicalize.c (canonicalize_filename_mode):
13651         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
13652         fetching the current directory.  Don't overrun the beginning of
13653         rpath if there's no slashes after the MS-Windows drive letter.
13655 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
13657         maint.mk: avoid extra forks
13658         * top/maint.mk (_cfg_mk): The GNU make manual documents that
13659         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
13660         So use that instead of "$(shell test -f FILE && echo FILE)".
13662 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13664         vasnprintf: fix ASCII_ONLY typo
13665         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
13666         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
13667         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
13668         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
13669         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
13671 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
13673         list, oset, xlist, xoset: fix extern inline issue with C99
13674         This was introduced by my recent changes for 'inline'.
13675         Problem reported for gettext by Daiki Ueno in
13676         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
13677         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
13678         (gl_list_nx_create, gl_list_size, gl_list_node_value)
13679         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
13680         (gl_list_previous_node, gl_list_get_at)
13681         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
13682         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
13683         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
13684         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
13685         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
13686         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
13687         (gl_list_iterator_free, gl_sortedlist_search)
13688         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
13689         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
13690         (gl_sortedlist_remove):
13691         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
13692         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
13693         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
13694         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
13695         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
13696         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
13697         (gl_list_add_at, gl_sortedlist_add):
13698         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
13699         Wrap these extern decls inside "#if 0", because they are implemented
13700         as inline functions, and extern inline is not what's wanted here.
13701         It would simplify these .h files to remove the extern decls entirely,
13702         although a downside would be less-clear separation between
13703         specification and implementation.
13705 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
13707         sys_stat: no 'static inline'
13708         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
13709         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
13711         extern-inline: no 'static inline'
13712         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
13713         Do not require AC_C_INLINE.
13714         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
13715         'static inline', for older compilers.
13717         snippet/warn-on-use: no 'static inline'
13718         * build-aux/snippet/warn-on-use.h:
13719         Remove unnecessary 'inline' in comment.
13721         rbtree-list, rbtreehash-list: no 'static inline'
13722         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
13723         * lib/gl_anytree_list2.h (node_at):
13724         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
13725         (gl_oset_first, add_nodes_to_buckets):
13726         Now static, not static inline.
13728         regex: no 'static inline'
13729         * lib/regex_internal.c (calc_state_hash):
13730         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
13731         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
13732         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
13733         Now static, not static inline.
13734         (inline) [__GNUC__ < 3 && _LIBC]:
13735         Remove macro; no longer needed.
13737         xvasprintf: no 'static inline'
13738         * lib/xvasprintf.c (xstrcat):
13739         Now static, not static inline.
13740         * m4/xvasprintf.m4 (gl_XVASPRINTF):
13741         Do not require AC_C_INLINE.
13743         parse-datetime, parse-duration: no 'static inline'
13744         * lib/parse-datetime.y (to_uchar):
13745         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
13746         (scale_n_add):
13747         Now static, not static inline.
13748         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
13749         * modules/parse-duration (configure.ac):
13750         Do not require AC_C_INLINE.
13752         getaddrinfo: no 'static inline'
13753         * lib/getaddrinfo.c (validate_family):
13754         Now static, not static inline.
13755         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
13756         Do not require AC_C_INLINE.
13758         ftruncate, fts, lstat, openat, raise: no 'static inline'
13759         * lib/ftruncate.c (chsize_nothrow):
13760         * lib/fts.c (opendirat, diropen):
13761         * lib/lstat.c (orig_lstat):
13762         * lib/openat.c (orig_openat):
13763         * lib/raise.c (raise_nothrow):
13764         Now static, not static inline.
13765         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
13766         * m4/fts.m4 (gl_FUNC_FTS_CORE):
13767         * m4/lstat.m4 (gl_PREREQ_LSTAT):
13768         * m4/openat.m4 (gl_PREREQ_OPENAT):
13769         * m4/raise.m4 (gl_PREREQ_RAISE):
13770         Do not require AC_C_INLINE.
13772         fflush, stat: no 'static inline'
13773         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13774         (clear_ungetc_buffer, disable_seek_optimization)
13775         (restore_seek_optimization, update_fpos_cache):
13776         * lib/stat.c (orig_stat):
13777         Now static, not static inline.
13778         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
13779         (update_fpos_cache):
13780         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
13781         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
13782         * m4/stat.m4 (gl_PREREQ_STAT):
13783         Do not require AC_C_INLINE.
13785         error, filevercmp: no 'static inline'
13786         * lib/error.c (is_open, flush_stdout):
13787         * lib/filevercmp.c (order):
13788         Now static, not static inline.
13789         * m4/error.m4 (gl_PREREQ_ERROR):
13790         * modules/filevercmp (configure.ac):
13791         Do not require AC_C_INLINE.
13793         dup, execute, fatal-signal, etc.: no 'static inline'
13794         * lib/dup.c (dup_nothrow):
13795         * lib/execute.c (nonintr_close, nonintr_open):
13796         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
13797         * lib/fopen.c (orig_fopen):
13798         * lib/freadseek.c (freadptrinc):
13799         * lib/freopen.c (orig_freopen):
13800         * lib/fstat.c (orig_fstat, fstat_nothrow):
13801         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
13802         (get_rusage_as_via_iterator):
13803         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
13804         * lib/getdtablesize.c (_setmaxstdio_nothrow):
13805         * lib/isatty.c (_isatty_nothrow):
13806         * lib/open.c (orig_open):
13807         * lib/read.c (read_nothrow):
13808         * lib/sigprocmask.c (signal_nothrow):
13809         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
13810         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
13811         * lib/wait-process.c (unregister_slave_subprocess):
13812         * lib/write.c (write_nothrow):
13813         Now static, not static inline.
13814         * lib/spawn-pipe.c (nonintr_open): Define only if
13815         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
13816         * m4/dup.m4 (gl_PREREQ_DUP):
13817         * m4/execute.m4 (gl_EXECUTE):
13818         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
13819         * m4/fopen.m4 (gl_PREREQ_FOPEN):
13820         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
13821         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
13822         * m4/fstat.m4 (gl_PREREQ_FSTAT):
13823         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
13824         * m4/isatty.m4 (gl_PREREQ_ISATTY):
13825         * m4/open.m4 (gl_PREREQ_OPEN):
13826         * m4/read.m4 (gl_PREREQ_READ):
13827         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
13828         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
13829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
13830         * m4/wait-process.m4 (gl_WAIT_PROCESS):
13831         * m4/write.m4 (gl_PREREQ_WRITE):
13832         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
13833         Do not require AC_C_INLINE.
13835         c-strtod, memcoll, readutmp: no 'static inline'
13836         * lib/c-strtod.c (c_locale):
13837         * lib/memcoll.c (strcoll_loop):
13838         * lib/readutmp.c (desirable_utmp_entry):
13839         Now static, not static inline.
13840         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
13841         * m4/memcoll.m4 (gl_MEMCOLL):
13842         * m4/readutmp.m4 (gl_READUTMP):
13843         Do not require AC_C_INLINE.
13845         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
13846         * lib/arctwo.c (to_uchar):
13847         * lib/md4.c (set_uint32):
13848         * lib/md5.c (set_uint32):
13849         * lib/sha1.c (set_uint32):
13850         * lib/sha256.c (set_uint32):
13851         * lib/sha512.c (set_uint64):
13852         Now static, not static inline.  This is a bit simpler, and doesn't
13853         affect performance with GCC and default optimization.
13854         * m4/arctwo.m4 (gl_ARCTWO):
13855         * m4/md4.m4 (gl_MD4):
13856         * m4/md5.m4 (gl_MD5):
13857         * m4/sha1.m4 (gl_SHA1):
13858         * m4/sha256.m4 (gl_SHA256):
13859         * m4/sha512.m4 (gl_SHA512):
13860         Do not require AC_C_INLINE.
13862         cond, lock, thread: better 'inline'
13863         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
13864         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
13865         New macros.  Use them instead of static inline, for header functions.
13866         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
13867         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
13868         * lib/glthread/lock.c (gl_waitqueue_init)
13869         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
13870         * lib/glthread/thread.c (get_current_thread_handle):
13871         Change 'static inline' to 'inline'.
13872         * lib/glthread/cond.h, lib/glthread/thread.h:
13873         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13874         * m4/cond.m4 (gl_COND):
13875         * m4/lock.m4 (gl_PREREQ_LOCK):
13876         * m4/thread.m4 (gl_THREAD):
13877         Do not require AC_C_INLINE.
13878         * modules/cond, modules/thread (Depends-on): Add extern-inline.
13880         chdir-long, cycle-check, savewd: better 'inline'
13881         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
13882         (find_non_slash):
13883         * lib/cycle-check.c (is_zero_or_power_of_two):
13884         * lib/savewd.c (savewd_delegating):
13885         Change 'static inline' to 'inline'.
13886         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
13887         Replace all remaining uses of 'static inline' with it.
13888         * lib/savewd.h:
13889         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13890         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
13891         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
13892         * m4/savewd.m4 (gl_SAVEWD):
13893         Do not require AC_C_INLINE.
13894         * modules/savewd (Depends-on): Add extern-inline.
13896         base32, base64: no need for 'inline'
13897         * lib/base32.c (to_uchar, get_8, decode_8):
13898         * lib/base64.c (to_uchar, get_4, decode_4):
13899         Change 'static inline' to 'inline'.
13900         * m4/base32.m4 (gl_PREREQ_BASE32):
13901         * m4/base64.m4 (gl_PREREQ_BASE64):
13902         Do not require AC_C_INLINE.
13904         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
13905         * lib/gl_array_oset.c (gl_array_nx_add_at):
13906         (gl_array_remove_at):
13907         * lib/gl_linkedhash_list.c (hash_resize_after_add)
13908         (add_to_bucket, remove_from_bucket):
13909         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
13910         Change 'static inline' to 'static', as it's simpler to omit
13911         'inline' unless there's a significant performance advantage.
13913         list, oset, xlist, xoset, xsublist: simplify via extern inline
13914         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
13915         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
13916         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
13917         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
13918         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
13919         New macro.  Replace all uses of 'static inline' with it.
13920         [HAVE_INLINE]: Implement functions as *_INLINE functions,
13921         instead of as macros FOO that are defined to static inline
13922         functions FOO_inline.
13923         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
13924         * lib/gl_xsublist.c:
13925         Reimplement from scratch, by defining the corresponding *_INLINE
13926         macro and including the corresponding .h file.  This is simpler.
13927         * modules/list, modules/oset, modules/xlist, modules/xoset:
13928         (Files): Remove m4/gl_list.m4.
13929         (configure.ac): Remove gl_LIST.
13930         * m4/gl_list.m4: Remove.
13931         * modules/list, modules/oset, modules/xlist, modules/xoset:
13932         * modules/xsublist:
13933         (Depends-on): Depend on extern-inline, not inline.
13935         xalloc: better 'inline'
13936         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
13937         New macro.  Replace all uses of 'static inline' with it.
13938         (static_inline): Remove.
13939         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
13940         Let 'extern inline' do the work automatically, instead of doing
13941         it by hand.
13942         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
13943         Remove.  All uses removed.
13944         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
13946         gethrxtime: better 'inline'
13947         * lib/xtime.c: New file.
13948         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
13949         * lib/xtime.h (XTIME_INCLUDE):
13950         New macros.  Replace all uses of 'static inline' with them.
13951         * lib/gethrxtime.c (gethrxtime): Define only if
13952         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
13953         this source file is now always compiled, because of the extern inline.
13954         * lib/gethrxtime.h, lib/xtime.h:
13955         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13956         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
13957         if gethrtime works, as they're not needed in that case.
13958         (gl_XTIME): Do not require AC_C_INLINE.
13959         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
13960         compiled now.  Move the check into gl_GETHRXTIME.
13961         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
13962         (Depends-on): Add extern-inline.
13963         (configure.ac): gethrxtime is always compiled now.
13964         (lib_SOURCES): Add gethrxtime.c.
13966         wctype-h: better 'inline'
13967         * lib/wctype-h.c: New file.
13968         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
13969         New macro.  Replace all uses of 'static inline' with it.
13970         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13971         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
13972         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
13973         (Depends-on): Add extern-inline.
13975         unistd: better 'inline'
13976         * lib/unistd.c: New file.
13977         * lib/unistd.in.h (_GL_UNISTD_INLINE):
13978         New macro.  Replace all uses of 'static inline' with it.
13979         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13980         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
13981         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
13982         (Depends-on): Add extern-inline.
13984         sys_socket: better 'inline'
13985         * lib/sys_socket.c: New file.
13986         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
13987         New macro.  Replace all uses of 'static inline' with it.
13988         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13989         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
13990         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
13991         (Depends-on): Add extern-inline.
13993         stdio: better 'inline'
13994         * lib/stdio.c: New file.
13995         * lib/stdio.in.h (_GL_STDIO_INLINE):
13996         New macro.  Replace all uses of 'static inline' with it.
13997         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13998         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
13999         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
14000         (Depends-on): Add extern-inline.
14002         sigaction: better 'inline'
14003         * lib/sig-handler.c: New file.
14004         * lib/sig-handler.h (SIG_HANDLER_INLINE):
14005         New macro.  Replace all uses of 'static inline' with it.
14006         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14007         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
14008         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
14009         (Depends-on): Add extern-inline.
14011         selinux-h: better 'inline'
14012         * lib/se-context.c, lib/se-selinux.c: New files.
14013         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
14014         * lib/se-context.in.h (SE_CONTEXT_INLINE):
14015         New macro.  Replace all uses of 'static inline' with it.
14016         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14017         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
14018         New macro.  Replace all uses of 'static inline' with it.
14019         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14020         * modules/selinux-h (Files, lib_SOURCES):
14021         Add lib/se-context.c, lib/se-selinux.c.
14022         (Depends-on): Add extern-inline.
14023         (configure.ac): Do not require AC_C_INLINE.
14025         pthread: better 'inline'
14026         * lib/pthread.c: New file.
14027         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
14028         New macro.  Replace all uses of 'static inline' with it.
14029         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14030         * m4/pthread.m4 (gl_PTHREAD_CHECK):
14031         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
14032         * modules/pthread (Files): Add lib/pthread.c.
14033         (Depends-on): Add extern-inline.
14035         math: better 'inline'
14036         * lib/math.c: New file.
14037         * lib/math.in.h (_GL_MATH_INLINE):
14038         New macro.  Replace all uses of 'static inline' with it.
14039         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14040         * m4/math_h.m4 (gl_MATH_H):
14041         Do not require AC_C_INLINE.
14042         * modules/math (Files, lib_SOURCES):
14043         Add lib/math.c.
14044         (Depends-on): Add extern-inline.
14046         count-one-bits: better 'inline'
14047         * lib/count-one-bits.c: New file.
14048         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
14049         New macro.  Replace all uses of 'static inline' with it.
14050         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14051         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
14052         Do not require AC_C_INLINE.
14053         * modules/count-one-bits (Files, lib_SOURCES):
14054         Add lib/count-one-bits.c.
14055         (Depends-on): Add extern-inline.
14057         count-leading-zeros: better 'inline'
14058         * lib/count-leading-zeros.c: New file.
14059         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
14060         New macro.  Replace all uses of 'static inline' with it.
14061         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14062         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
14063         Do not require AC_C_INLINE.
14064         * modules/count-leading-zeros (Files, lib_SOURCES):
14065         Add lib/count-leading-zeros.c.
14066         (Depends-on): Add extern-inline.
14068         bitrotate: better 'inline'
14069         * lib/bitrotate.c: New file.
14070         * lib/bitrotate.h (BITROTATE_INLINE):
14071         New macros.
14072         Replace all uses of 'static inline' with them.
14073         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14074         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
14075         (Depends-on): Add extern-inline.
14076         (configure.ac): Do not require AC_C_INLINE.
14078 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
14080         maint.mk: avoid gratuitous failure
14081         Reported by Stefano Lattarini in
14082         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
14083         * top/maint.mk (public-submodule-commit): Quote more safely.
14085 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
14087         canonicalize, canonicalize-lgpl: support MS-Windows file names
14088         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
14089         for test cases, which it'd be nice to add at some point.
14090         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
14091         * lib/canonicalize.c (canonicalize_filename_mode):
14092         * lib/canonicalize-lgpl.c (__realpath):
14093         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
14094         slash is at the beginning of the file name.  Use ISSLASH, instead
14095         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
14096         the first character with '/'.  Test for
14097         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
14098         with a drive letter.
14099         * lib/canonicalize.c (SLASHES): New macro.
14100         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
14102 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
14104         fts: introduce FTS_VERBATIM
14105         * lib/fts_.h (FTS_VERBATIM): New bit flag.
14106         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
14107         * lib/fts.c (fts_open): Honor it.
14109 2012-11-09  Pádraig Brady  <P@draigBrady.com>
14111         getlogin-tests: allow errno == ENXIO
14112         * tests/test-getlogin.c (main): Skip tests if getlogin fails
14113         with errno == ENXIO (No controlling tty).
14114         getlogin_r-tests: Likewise. Also allow errno == ENOENT
14115         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
14116         with errno == ENOENT.  This was reported to happen in various
14117         situations on GNU/Linux.
14119 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
14121         getlogin-tests: allow errno == ENOENT
14122         * tests/test-getlogin.c (main): Skip tests if getlogin fails
14123         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
14124         when running a test in an Emacs shell buffer.
14126 2012-11-08  Jim Meyering  <jim@meyering.net>
14128         tests/nap.h: avoid warning about unused variable
14129         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
14131         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
14132         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
14133         white space before each of the special-cased file names, to avoid
14134         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
14135         in http://bugs.gnu.org/12830.
14137 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
14139         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
14140         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
14141         fails with errno == EBADF when fd is opened with O_PATH.
14142         Reported by Jim Meyering in
14143         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
14144         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
14145         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
14147 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14149         test-utimens: speed up by taking shorter naps
14150         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
14151         New functions.
14152         (nap): Use them, to do a better job of guessing the delay.
14153         On Fedora 17 with ext4 atop md atop hard disks, this made
14154         test-utimens run 10x faster, because the test napped for
14155         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
14156         <http://bugs.gnu.org/12820#11>.
14158 2012-11-07  Jim Meyering  <jim@meyering.net>
14160         mountlist.c: fix a compilation failure
14161         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
14162         I introduced while transforming commit v0.0-7683-g613bcb6
14164 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
14166         errno: port to LynxOS 178 2.2.2
14167         Problem reported by Joel Brobecker in
14168         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
14169         * doc/posix-headers/errno.texi (errno.h): Document this.
14170         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
14171         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
14172         Supply a string for EILSEQ.
14173         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
14175 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
14177         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
14178         Linux kernel 2.6.39 introduced O_PATH (see
14179         <http://lwn.net/Articles/433854/>) and this is a better fallback
14180         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
14181         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
14182         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
14183         * lib/fcntl.in.h (O_ACCMODE):
14184         * tests/test-fcntl-h.c (main):
14185         Do not reject O_ACCMODE merely because it has more than the
14186         minimal number of bits, as POSIX allows extensions here.
14188 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
14190         mountlist: do not classify a bind-mounted dir entry as "dummy"
14191         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
14192         the "none"-testing clause.
14193         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
14194         exception for bind-mounted directories.
14196 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
14198         quote: provide a means to escape strings with nul characters
14199         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
14200         (quote, quote_n): Rename formal arguments for consistency with
14201         quotearg.
14203 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
14205         test-raise: don't assume 199 is an invalid signal
14206         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
14208         sh-quote-tests: port to Solaris 9
14209         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
14210         Problem reported by Dagobert Michelsen in
14211         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
14213 2012-10-28  Jim Meyering  <jim@meyering.net>
14215         maint.mk: rename a new configurable variable
14216         * top/maint.mk (_gl_translatable_string_re): Rename from
14217         translation-markers: _gl_ prefix to insulate from user Makefile code,
14218         and the _re suffix to inform that it's a regular expression.
14220 2012-10-26  Eric Blake  <eblake@redhat.com>
14222         maint.mk: let packages tweak sc_po_check pattern
14223         * top/maint.mk (sc_po_check): Add translation-markers, to allow
14224         finding files with other translation markers.
14226 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14228         euidaccess: speed up 'configure' on GNU hosts
14229         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
14230         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
14231         it's needed only in this case.  Use AC_CHECK_DECLS, not
14232         AC_CHECK_DECLS_ONCE.
14233         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
14234         or AC_REQUIRE for AC_FUNC_GETGROUPS.
14236         * lib/regexec.c (re_search_internal): Fix grammar in comment.
14238 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
14240         fchmodat, fchownat, fstatat: port to non-inlining compilers
14241         Problem reported for FreeBSD 9 by Jim Meyering in
14242         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
14243         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
14244         New files, which define FCHMODAT_INLINE etc.
14245         * lib/fchmodat.c (FCHMODAT_INLINE):
14246         * lib/fchownat.c (FCHOWNAT_INLINE):
14247         * lib/fstatat.c (FSTATAT_INLINE):
14248         Remove, as chmodat.c etc. now do this.
14249         * modules/fchmodat (Files): Add lib/chmodat.c.
14250         * modules/fchownat (Files): Add lib/chownat.c.
14251         * modules/fstatat (Files): Add lib/statat.c.
14253 2012-10-15  Jim Meyering  <jim@meyering.net>
14255         fchmodat.c, fchownat.c: compile-impeding typos
14256         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
14257         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
14258         Introduced in commit v0.0-7636-gd202279.
14260 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
14262         fcntl-h: support GNU flags like O_IGNORE_CTTY
14263         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
14264         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
14265         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
14266         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
14267         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
14268         Define to 0 if not already defined.
14269         * tests/test-fcntl-h.c: Test these new flags.
14271 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
14273         faccessat, etc.: support AT_FDCWD-only use
14274         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
14275         this function only if its first argument is AT_FDCWD.
14276         Emacs wants faccessat for AT_EACCESS but not for any first-arg
14277         values other than AT_FDCWD, so it doesn't want all the openat
14278         machinery with fchdir etc.
14279         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
14280         * modules/fstatat, modules/mkdirat, modules/openat (Files):
14281         * modules/unlinkat (Files):
14282         Remove lib/openat-priv.h, as at-internal supplies this file.
14283         Removing this file here allows us to support programs like Emacs
14284         that avoid at-internal.
14286         faccessat: speed up 'configure' on mainstream hosts
14287         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
14288         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
14289         since it's only on unusual platforms that we need to check for
14290         'access', and it's better not to slow 'configure' down on all
14291         platforms.
14293         faccessat: port to Solaris 10
14294         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
14295         Needed on Solaris 10, which doesn't have AT_EACCESS,
14296         so we need the Gnulib fcntl.h, which defines it.
14298 2012-10-14  Pádraig Brady  <P@draigBrady.com>
14299         canonicalize: fix C89 compilation
14300         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
14301         declarations so C89 is supported.  Also remove the comment
14302         referencing memorty allocation as the suggested feature could
14303         not be implemented as suggested.
14304         Reported by Michael Goffioul.
14306 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14308         group-member: omit unnecessary dependencies
14309         This is for Emacs, which has its own allocator and where we
14310         don't want to use xalloc.
14311         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
14312         since we no longer use xmalloc.  Do not include stdbool.h, since
14313         the changes below happen to remove the only use of bool.
14314         (GROUPBUF_SIZE): New constant.
14315         (struct group_info): Remove n_groups member.  Add groupbuf member.
14316         This lets us get the groups without using malloc, usually.
14317         (free_group_info, get_group_info): Adjust to this.
14318         (get_group_info): Return the number of groups found, or -1 on error.
14319         Use plain malloc not xmalloc, and treat its failure as if there
14320         are no groups, as the user already loses in case of error.
14321         (group_member): Simplify, based on changes to get_group_info.
14322         * modules/group-member (Depends-on): Remove dependencies on
14323         xalloc and stdbool.  Add dependency on xalloc-oversized.
14325 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
14327         gethrxtime: port to C++
14328         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
14330 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14332         ptsname: fix macro-name typo
14333         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
14335 2012-10-03  Simon Josefsson  <simon@josefsson.org>
14337         inttostr: Relax license.
14338         * modules/inttostr (License): Change from LGPL to LGPLv2+.
14340 2012-10-03  Eric Blake  <eblake@redhat.com>
14342         ptsname_r: support ptys returned by FreeBSD posix_openpt
14343         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
14344         lives in /dev/pts/.
14346 2012-10-02  Eric Blake  <eblake@redhat.com>
14348         pselect: reject invalid file descriptors
14349         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
14350         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
14351         * modules/pselect (Depends-on): Add dup2.
14352         * doc/posix-functions/pselect.texi (pselect): Document this.
14354         select: reject invalid file descriptors
14355         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
14356         * lib/select.c (rpl_select) [!win32]: Work around it.
14357         * modules/select (Depends-on): Add dup2.
14358         * doc/posix-functions/select.texi (select): Document this.
14360         select: enhance test
14361         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
14362         New functions.
14363         (test_function): Enhance test.
14364         (do_select_bad_fd): Avoid any stale errno values.
14366         ptsname: reject invalid file descriptors
14367         http://www.austingroupbugs.net/view.php?id=503
14368         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
14369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
14370         * modules/stdlib (Makefile.am): Replace witness.
14371         * lib/stdlib.in.h (ptsname): Allow for replacement.
14372         * modules/ptsname (configure.ac): Trigger replacement.
14373         * doc/posix-functions/ptsname.texi (ptsname): Document this.
14375 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
14377         hash-pjw-bare: new module
14378         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
14379         * lib/hash-pjw-bare.h: Likewise.
14380         * modules/hash-pjw-bare: New file.
14381         * MODULES.html.sh (Misc): Add it.
14383 2012-10-02  Eric Blake  <eblake@redhat.com>
14385         manywarnings: cater to more gcc infelicities
14386         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
14387         -Wuninitialized without -O.
14389 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
14391         select, poll tests: Make setsockopt invocation effective.
14392         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
14393         the bind() call.
14394         * tests/test-select.h (open_server_socket): Likewise.
14396 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14398         sockets, sys_stat: restore AC_C_INLINE
14399         This undoes the 2012-09-22 patch.
14400         * m4/sockets.m4 (gl_SOCKETS):
14401         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
14402         Restore AC_C_INLINE, since MSVC requires __inline or _inline
14403         and does not support plain 'inline'.  Reported by Bruno Haible in
14404         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
14406 2012-09-30  Bruno Haible  <bruno@clisp.org>
14408         localeconv tests: Avoid test failure on OpenIndiana.
14409         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
14410         skip the 'grouping' and 'mon_grouping' tests.
14411         Reported by Jim Meyering.
14413 2012-09-30  Bruno Haible  <bruno@clisp.org>
14415         havelib: Follow libtool developments.
14416         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
14417         Suggested by Simon Josefsson.
14419 2012-09-29  Jim Meyering  <meyering@redhat.com>
14421         fstatat.c: fix a compile-impeding typo
14422         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
14423         Introduced in commit v0.0-7636-gd202279.
14424         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
14426 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
14428         extern-inline: provide a -Wundef safe config.h
14429         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
14430         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
14431         to produce a -Wundef warning free config.h.
14433 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
14435         hash-pjw: relax license to LGPLv2+
14436         * modules/hash-pjw (License): Relax, with consent of author.
14438 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
14440         maint.mk: fix strict vs. lazy variable issues with RELEASE
14441         * top/maint.mk (_equal): New function.
14442         (member_check): Strip the result to avoid spurious spaces.
14443         (url_dir_list): Do not use ifeq, which is strict, as it will
14444         require RELEASE_TYPE to be defined.
14445         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
14446         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
14447         (announcement_Cc_alpha,announcement_mail_headers_alpha)
14448         (announcement_Cc_beta,announcement_mail_headers_beta)
14449         (announcement_Cc_stable,announcement_mail_headers_stable): these.
14450         (release): Do not depend on $(release-type), as it forces its
14451         evaluation.  Bounce to it.
14453 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
14455         maint.mk: formatting changes
14456         * top/maint.mk: Indent bodies of if's.
14458 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
14460         maint.mk: factor the validation of RELEASE_TYPE
14461         With help from Jim Meyering.
14462         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
14463         * top/maint.mk (_empty, _sp): Move their definition earlier.
14464         (member-check, release-type): New.
14465         Use the latter instead of $(RELEASE_TYPE).
14466         Remove now useless local checks.
14468 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
14470         maint.mk: provide "make upload" to ease uploading
14471         See
14472         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
14473         Do not depend simply on the current $(VERSION), as there may have been
14474         new commits since the tarball generation.  Rather, rely on $(RELEASE),
14475         as "make release-commit" already does.
14477         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
14478         "make TYPE".
14480         * top/maint.mk (upload_command, upload, release): New.
14481         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
14482         (VERSION): first word of $(RELEASE) is always right.
14483         (emit_upload_commands): Adjust.
14484         * top/README-release: Update.
14486 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
14488         maint.mk: silent rules
14489         With help from Stefano Lattarini.
14490         * top/maint.mk (writable-files): Use $(AM_V_GEN).
14491         (announcement): Use $(AM_V_at).
14493 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
14495         localename: port gl_locale_name_thread_unsafe to FreeBSD
14496         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
14497         and use the simpler FreeBSD implementation on Mac OS X as well.
14498         Original idea suggested by Ed Maste in
14499         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
14501 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14503         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
14504         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
14505         * lib/mbuiter.c, lib/xsize.c: New files.
14506         * lib/binary-io.h (BINARY_IO_INLINE):
14507         * lib/eealloc.h (EEALLOC_INLINE):
14508         * lib/mbfile.h (MBFILE_INLINE):
14509         * lib/mbiter.h (MBITER_INLINE):
14510         * lib/mbuiter.h (MBUITER_INLINE):
14511         * lib/xsize.h (XSIZE_INLINE):
14512         New macros.
14513         Replace all uses of 'static inline' with them.
14514         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14515         * m4/eealloc.m4 (gl_EEALLOC):
14516         * m4/mbfile.m4 (gl_MBFILE):
14517         * m4/mbiter.m4 (gl_MBITER):
14518         * m4/xsize.m4 (gl_XSIZE):
14519         Do not require AC_C_INLINE.
14520         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
14521         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
14522         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
14523         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
14524         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
14525         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
14526         * modules/binary-io, modules/eealloc, modules/mbfile:
14527         * modules/mbiter, modules/mbuiter:
14528         (Depends-on): Add extern-inline.
14530         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
14531         * lib/pipe-filter-aux.c: New file.
14532         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
14533         Replace all uses of 'static inline' with it.
14534         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14535         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
14536         (filter_retcode): No real need for inline here.
14537         * modules/pipe-filter-gi, modules/pipe-filter-ii:
14538         (Files): Add lib/pipe-filter-aux.c.
14539         (Depends-on): Add extern-inline.
14540         (configure.ac): Do not require AC_C_INLINE.
14541         (lib_SOURCES): Add pipe-filter-aux.c.
14543         fdutimensat: omit unnecessary AC_C_INLINE
14544         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
14546         fchmodat, fchownat, fstatat: use extern-inline
14547         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
14548         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
14549         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
14550         New macros.
14551         * lib/openat.h:
14552         Replace all uses of 'static inline' with them.
14553         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14554         * modules/fchmodat, modules/fchownat, modules/fstatat:
14555         * modules/openat-h:
14556         (Depends-on):
14557         Add extern-inline.
14558         (configure.ac): Remove AC_C_INLINE.
14560         acl, mbchar, priv-set: use extern-inline
14561         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
14562         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
14563         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
14564         New macros.
14565         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
14566         Replace all uses of 'static inline' with it.
14567         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14568         * m4/acl.m4 (gl_FUNC_ACL):
14569         * m4/mbchar.m4 (gl_MBCHAR):
14570         * m4/priv-set.m4 (gl_PRIV_SET):
14571         Remove AC_C_INLINE, since 'inline' is no longer used directly.
14572         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
14573         Add extern-inline.
14575         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
14576         * m4/sockets.m4 (gl_SOCKETS):
14577         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
14578         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
14579         environments where it's already guaranteed to work, so we needn't
14580         check for it at 'configure'-time.
14582         tls-tests: omit unnecessary 'inline'
14583         * tests/test-tls.c (perhaps_yield): No longer inline.
14584         Simplicity and portability trump efficiency in test cases.
14586         utimens-tests: avoid unnecessary 'inline'
14587         * modules/fdutimensat-tests (configure.ac):
14588         * modules/futimens-tests (configure.ac):
14589         * modules/utimens-tests (configure.ac):
14590         * modules/utimensat-tests (configure.ac):
14591         Remove AC_C_INLINE.
14592         * tests/test-utimens-common.h (ctime_compare):
14593         No longer inline.  Simplicity and portability trump efficiency here.
14595         misc: don't limit commentary to inline functions
14596         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
14597         * lib/xalloc-oversized.h, lib/xsize.h:
14598         Contrast macros to functions in general, not just to inline functions,
14599         when the commentary does not apply only to inline functions.
14601 2012-09-20  Jim Meyering  <meyering@redhat.com>
14603         non-recursive-gnulib-prefix-hack: new module
14604         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
14605         the file that originated in Bison.
14606         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
14607         largely copied from a snippet that resided in bison's configure.ac.
14608         * modules/non-recursive-gnulib-prefix-hack: New file.
14609         * MODULES.html.sh (Support for maintaining and releasing projects):
14610         Add it.
14612 2012-09-18  Jim Meyering  <meyering@redhat.com>
14614         maint.mk: generalize _gl_tight_scope for non-recursive make
14615         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
14616         that *.h would describe additional .h files in the directory
14617         specified by $(_gl_TS_dir).  I.e., add this...
14618         (_gl_TS_other_headers): New variable.
14620         maint.mk: exempt trailing blanks found in "binary" files
14621         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
14622         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
14623         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
14625 2012-09-17  Jim Meyering  <meyering@redhat.com>
14627         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
14628         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
14629         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
14630         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
14632 2012-09-17  Jim Meyering  <meyering@redhat.com>
14634         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
14635         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
14636         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
14637         It is not in the same category as "exit (0)" or "exit (1)", and
14638         besides, I know of no symbolic name for that 77.  Reported by
14639         Richard W.M. Jones in
14640         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
14642 2012-09-17  Jim Meyering  <meyering@redhat.com>
14644         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
14645         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
14646         all uses of #define, not just those that start in column 1.
14647         Richard W.M. Jones reported a false positive in
14648         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
14650 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14652         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
14653         * lib/localcharset.c (locale_charset) [DARWIN7]:
14654         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
14655         as these two values are incompatible.  Problem reported by Max Horn.
14656         For more discussion, please see
14657         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
14659         doc: document sticky-EOF issue
14660         * doc/posix-functions/fgetc.texi (fgetc):
14661         * doc/posix-functions/fgets.texi (fgets):
14662         * doc/posix-functions/fread.texi (fread):
14663         * doc/posix-functions/fscanf.texi (fscanf):
14664         * doc/posix-functions/getc.texi (getc):
14665         * doc/posix-functions/getchar.texi (getchar):
14666         * doc/posix-functions/scanf.texi (scanf):
14667         Mention that glibc and default Solaris do not conform to
14668         C99 and POSIX-2001 or later, with respect to how getchar
14669         etc. behave when feof reports nonzero.
14671 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
14673         poll: fix poll(0, NULL, msec)
14674         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
14675         but nfd is 0.  In that case poll should behave like select.
14677 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
14678             Paolo Bonzini  <bonzini@gnu.org>
14680         poll: fix for systems that can't recv() on a non-socket
14681         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
14682         is readable.  In this case POLLHUP will not be supported.
14683         * doc/posix-functions/poll.texi: Document this.
14685 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
14687         poll/select: document portability problems not fixed by Gnulib.
14688         * doc/posix-functions/poll.texi: poll does not work well on
14689         pipes under Windows.  It has the same limitations as select on
14690         BeOS.
14691         * doc/posix-functions/select.texi: select does not work well
14692         on pipes under Windows.
14694 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14696         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
14697         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
14698         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
14699         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
14701 2012-09-06  Eric Blake  <eblake@redhat.com>
14703         net_if: give more details about the bug being fixed
14704         * doc/posix-headers/net_if.texi: Add clarification.
14706 2012-09-05  Eric Blake  <eblake@redhat.com>
14708         net_if: new module
14709         * modules/net_if: New module, borrowing ideas from netinet_in.
14710         * m4/net_if_h.m4: New file.
14711         * lib/net_if.in.h: Likewise.
14712         * doc/posix-headers/net_if.texi (net/if.h): Document it.
14713         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14714         * tests/test-net_if.c: Make function checks conditional.
14715         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
14717 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
14719         readutmp: fix non-portable UT_PID use
14720         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
14721         Use `UT_PID (u) > 0' as absolute condition.
14723 2012-09-04  Jim Meyering  <meyering@redhat.com>
14725         fts: reduce two or more trailing spaces to just one, usually
14726         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
14727         or more slashes, trim all but the final one.  But if a name consists
14728         solely of two slashes, don't modify it.  If it consists solely of
14729         three or more slashes, strip all but one.
14731         This is part of the solution to a minor problem with rm:
14732         it would print a bogus ELOOP diagnostic when failing to remove
14733         the slash-decorated name of a symlink-to-directory:
14735             $ mkdir d && ln -s d s && env rm -r s/
14736             rm: cannot remove 's': Too many levels of symbolic links
14738         With the change below and a trivial don't-trim-trailing-slashes
14739         adjustment to remove.c, it does this:
14741             $ env rm -r s/
14742             rm: cannot remove 's/': Not a directory
14744         Improved by: Eric Blake
14746         fts: when there is no risk of overlap, use memcpy, not memmove
14747         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
14749 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
14751         stdbool: be more compatible with mixed C/C++ compiles
14752         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
14753         Define to bool, true, false, respectively, as GCC's builtin
14754         stdbool.h does.  Problem reported by Michael Goffioul in
14755         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
14757 2012-08-28  Jim Meyering  <meyering@redhat.com>
14759         revert last change: it was not needed
14760         * tests/test-vc-list-files-git.sh: There's already a test for
14761         a working git, just below.
14763 2012-08-28  Jim Meyering  <meyering@redhat.com>
14765         tests: test-vc-list-files-git.sh: skip if git is not available
14766         * tests/test-vc-list-files-git.sh: Skip this test when git is
14767         not available.
14769 2012-08-26  Bruno Haible  <bruno@clisp.org>
14771         gnulib-tool: Remove no-op option --no-changelog.
14772         * gnulib-tool (func_usage): Don't mention --no-changelog.
14773         (do_changelog): Remove variable.
14774         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
14776 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14778         doc: remove fdl-1.2.texi
14779         It is no longer used or maintained, and its use of @acronym
14780         is problematic.  See the thread containing
14781         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
14782         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
14783         * doc/old-licenses/fdl-1.2.texi: Remove.
14785         execinfo: port to FreeBSD
14786         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
14787         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
14788         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
14789         * modules/execinfo (Link): Add $(LIB_EXECINFO).
14791 2012-08-23  Jim Meyering  <meyering@redhat.com>
14793         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
14794         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
14795         to placate gcc's -Wold-style-declaration.
14797 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14799         doc: do not use @acronym
14800         * doc/inet_ntoa.texi (inet_ntoa):
14801         * doc/parse-datetime.texi (Seconds since the Epoch)
14802         (Specifying time zone rules):
14803         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
14804         Don't use @acronym.  Problem reported by John Darlington in
14805         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
14807 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14809         stdnoreturn: port to newer GCCs
14810         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
14811         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
14812         Problem reported by Jim Meyering in
14813         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
14814         Also, rename the 'test' function to a void a clash with the
14815         already-supplied 'main' function; this fixes a bug that incorrectly
14816         rejected GCC 4.7.1's <stdnoreturn.h>.
14817         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
14818         Document GCC problem.
14820 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
14822         pipe-filter: fix comment typo
14823         * lib/pipe-filter.h: Mention correct function.
14825 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
14827         execinfo: new module
14828         This is for Emacs.  Currently, it provides a no-effect stub
14829         on all platforms where it does not already work.
14830         It already works on glibc-based systems, and on Solaris 11.
14831         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
14832         New files.
14833         * doc/glibc-headers/execinfo.texi (execinfo.h):
14834         * MODULES.html.sh (Misc): Document it.
14836 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14838         extern-inline: support old GCC 'inline'
14839         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
14840         if available.  This applies to GCC versions 2.7 through 4.2, or
14841         when newer GCC is using -fgnu89-inline.  The goal is to address
14842         some of the performance issues mentioned by Bruno Haible in
14843         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
14845 2012-08-20  Eric Blake  <eblake@redhat.com>
14847         maint.mk: avoid redundant file name in message
14848         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
14849         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
14850         (sc_makefile_path_separator_check): Remove bogus $(ME).
14852 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
14854         timer-time: fix link order when static linking on glibc
14855         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
14856         _after_ -lrt so that it's significant.
14858 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14860         timespec: omit unnecessary AC_C_INLINE
14861         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
14863         stat-time: omit unnecessary AC_C_INLINE
14864         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14865         Do not require AC_C_INLINE.
14867         ignore-value: omit unnecessary AC_C_INLINE
14868         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
14870         sys_select: avoid 'static inline'
14871         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
14873         mktime: avoid 'static inline'
14874         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
14875         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
14877 2012-08-19  Bruno Haible  <bruno@clisp.org>
14879         gnulib-tool: Improve coding style.
14880         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
14881         func_emit_lib_Makefile_am.
14882         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
14884 2012-08-19  Bruno Haible  <bruno@clisp.org>
14886         gnulib-tool: Fix indentation.
14887         * gnulib-tool (func_import): Fix indentation.
14889 2012-08-19  Bruno Haible  <bruno@clisp.org>
14891         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
14892         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
14893         on the list of removed files.
14895 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
14897         test-parse-datetime: avoid glibc leap-second glitch
14898         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
14899         with the 2012 rules.  Problem reported by Bruce Dubbs in
14900         <http://bugs.gnu.org/12206>.
14902 2012-08-14  Bruno Haible  <bruno@clisp.org>
14904         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
14905         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
14906         from argument.
14907         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
14909 2012-08-14  Eric Blake  <eblake@redhat.com>
14911         ldexp: relax license
14912         * modules/ldexp (License): Trivial relax, since the module only
14913         provides a permissively licensed m4 file.
14915 2012-08-13  Bruno Haible  <bruno@clisp.org>
14917         gnulib-tool: Fix persistence of --witness-c-macro option.
14918         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
14919         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
14921 2012-08-11  Eric Blake  <eblake@redhat.com>
14923         count-leading-zeros: use a lookup table on non-gcc compilers
14924         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
14925         alternate implementation, suggested by Jim Meyering.
14927 2012-08-10  Eric Blake  <eblake@redhat.com>
14929         count-leading-zeros: new module
14930         * modules/count-leading-zeros: New module.
14931         * m4/count-leading-zeros.m4: New file.
14932         * lib/count-leading-zeros.h: Likewise.
14933         * modules/count-leading-zeros-tests: New test.
14934         * tests/test-count-leading-zeros.c: New file.
14935         * MODULES.html.sh (Integer arithmetic functions): Document it.
14937 2012-08-07  Simon Josefsson  <simon@josefsson.org>
14938             Jim Meyering  <meyering@redhat.com>
14940         maintainer-makefile: Fix syntax error with dash.
14941         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
14942         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
14944 2012-08-05  Jim Meyering  <meyering@redhat.com>
14946         extern-inline: also ignore -Wmissing-declarations
14947         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
14948         required with gcc-4.8.0-to-be.
14950         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
14951         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
14952         for /error ?([^,]*)/.  This avoids false-positives for strings like
14953         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
14955 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
14957         gnumakefile: better interaction with Automake-NG
14958         * modules/gnumakefile [Makefile.am]: The makefiles generated by
14959         Automake-NG always contain a definition of VPATH, even in non-VPATH
14960         builds (its value being simply '.' in that case).  So, in the
14961         'clean-GNUmakefile' rule, to determine whether running under a
14962         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
14963         '$(VPATH)' expands to the empty string.
14965 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
14967         base64: Use extern C scope in header file, for C++.
14968         * lib/base64.h: Add C++ namespace protection.
14970 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
14972         stat-time, timespec, u64: support naive out-of-dir builds
14973         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
14974         Use '#include "foo.h"', not '#include <foo.h>', when including
14975         one's own interface.  This works better when configuring with
14976         out-of-directory builds, since packages need not add an
14977         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
14979 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14981         utimens: use extern-inline
14982         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
14983         * lib/utimens.h: Add copyright notice, since this is now large enough
14984         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14985         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
14986         * modules/utimens (Depends-on): Add extern-inline.
14988         u64: use extern-inline
14989         * lib/u64.c: New file.
14990         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14991         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
14992         * modules/u64 (Files): Add lib/u64.c.
14993         (Depends-on): Add extern-inline.
14994         (configure.ac): No need to require AC_C_INLINE, since extern-inline
14995         does that now.
14996         (lib_SOURCES): Add u64.c.
14998         timespec: use extern-inline
14999         * lib/timespec.c: New file.
15000         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15001         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
15002         * modules/timespec (Files): Add lib/timespec.c.
15003         (Depends-on): Add extern-inline.
15004         (lib_SOURCES): Add timespec.c.
15006         stat-time: use extern-inline
15007         * lib/stat-time.c: New file.
15008         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15009         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
15010         * modules/stat-time (Files): Add lib/stat-time.c.
15011         (Depends-on): Add extern-inline.
15012         (lib_SOURCES): Add stat-time.c.
15014         extern-inline: new module
15015         * modules/extern-inline, m4/extern-inline.m4: New files.
15016         This is for better support of 'extern inline' a la ISO C99,
15017         with a portable alternative on compilers that do not support
15018         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
15019         of the Emacs executable, when compiled with debugging disabled,
15020         which is a typical way that Emacs is built while developing.
15022 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
15024         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
15025         * build-aux/do-release-commit-and-tag: Move variable definitions
15026         together.
15027         ($branch): Instead of defaulting to "master", default to the current
15028         branch (as gnu-web-doc-update does).
15029         (help): Display the current values of the option arguments.
15030         * top/maint.mk (release-commit): New.
15031         * top/README-release: Simplify the corresponding step.
15033 2012-07-30  Eric Blake  <eblake@redhat.com>
15035         passfd: fix comment on recvfd
15036         * lib/passfd.c (recvfd): Fix comment.
15037         Reported by Jann Horn <jannhorn@googlemail.com>.
15039 2012-07-30  Jim Meyering  <meyering@redhat.com>
15041         maint.mk: avoid a sub-shell
15042         * top/maint.mk (release-prep): Remove unneeded sub-shell.
15044 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
15046         maint.mk: use silent-rules support from Automake
15047         * top/maint.mk (news-check, vc-diff-check, announcement)
15048         (no-submodule-changes, alpha beta stable, release-prep)
15049         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
15051 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
15053         maint.mk: provide a web-manual-update target
15054         * top/maint.mk: here.
15055         * top/README-release: Use it to simplify the web manual update step.
15057 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
15059         README-release: shorten the circuit to post a news
15060         * top/README-release: Point directly to the news submission form.
15062 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
15064         gnu-web-doc-update: fix --help
15065         * build-aux/gnu-web-doc-update: The information "top level" was written
15066         twice.
15068 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
15070         maint.mk: absolute VPATH issue
15071         * top/maint.mk (release-prep): Help Git find .git/.
15072         From Jim Meyering.
15074 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
15076         gitlog-to-changelog: fix previous change
15077         * build-aux/gitlog-to-changelog: Fix condition.
15078         Add missing ";".
15080 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
15082         gitlog-to-changelog: don't expect .git to be in $srcdir
15083         Reported by Bruno Haible.
15084         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
15085         * build-aux/gitlog-to-changelog (&git_dir_option): New.
15086         Use it.
15088 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
15090         maint.mk: absolute VPATH build fix
15091         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
15092         $(srcdir) is not a parent of $(builddir).
15094 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
15096         clean-temp: Fix memory leak.
15097         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
15098         'files' members of tmpdir.
15100 2012-07-27  Jim Meyering  <meyering@redhat.com>
15102         maint.mk: new rule: refresh-gnulib-patches
15103         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
15104         Use this rule to refresh them.
15105         * top/maint.mk (refresh-gnulib-patches): New rule.
15107 2012-07-24  Bruno Haible  <bruno@clisp.org>
15109         gnulib-tool: Fix handling of inctests variable.
15110         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
15111         Reported by Nick Bowler <nbowler@elliptictech.com>.
15113 2012-07-22  Bruno Haible  <bruno@clisp.org>
15115         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
15116         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
15117         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
15118         Remove exemption for getpass.h.
15119         Suggested by Eric Blake.
15121 2012-07-20  Eric Blake  <eblake@redhat.com>
15123         verify: document conflict with -Wnested-externs
15124         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
15126         maint.mk: forbid exit(-1)
15127         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
15129 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
15131         fsusage: port back to Solaris
15132         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
15133         error (fsd not declared) on Solaris 10.  Reported privately by
15134         Andrew Borodin.
15136 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
15138         gnu-web-doc-update: fix error messages
15139         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
15141         gnu-web-doc-update: check the requirements.
15142         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
15143         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
15144         * build-aux/bootstrap (find_tool): Comment change.
15146 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
15148         maint.mk: minor simplication.
15149         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
15150         for default values.
15152 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
15154         gitlog-to-changelog: VPATH build issues
15155         If builddir is not a subdirectory of srcdir, running git from it will
15156         fail.
15157         * build-aux/gitlog-to-changelog (--srcdir): New option.
15159 2012-07-15  Bruno Haible  <bruno@clisp.org>
15161         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
15162         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
15163         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
15164         Remove exemption for fpending.h.
15165         Suggested by Eric Blake.
15167 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15169         pthread_sigmask: fix bug on FreeBSD 9
15170         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
15171         Include string.h.
15172         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
15173         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
15174         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
15175         but pthread_sigmask (1729, NULL, NULL) returns zero.
15176         See <http://bugs.gnu.org/11884>.
15177         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
15178         by inspecting whether the main call changed the old mask.
15180 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
15182         README-release: make it more legible
15183         * top/README-release: Improve typography slightly.
15185 2012-07-15  Jim Meyering  <meyering@redhat.com>
15187         maint: require that each sc_... command start with "@"
15188         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
15189         "make sc_maint" helps us avoid this nit.
15191 2012-07-15  Jim Meyering  <meyering@redhat.com>
15193         maint.mk: add leading "@" to quiet new "make syntax-check" rule
15194         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
15196 2012-07-13  Eric Blake  <eblake@redhat.com>
15198         maint.mk: new syntax check for HAVE_DECL checks
15199         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
15200         * cfg.mk
15201         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
15202         Exempt some false positives.
15203         Based on a report by Karel Zak.
15205         argp: make HAVE_DECL usage consistent
15206         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
15207         macros, not whether they are defined.
15208         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
15209         convention with other declaration checks.
15210         Reported by Karel Zak, with suggestions from Paul Eggert.
15212         stat-time: relax license to LGPLv2+
15213         * modules/stat-time (License): Relax, with consent of all authors.
15215         strndup: fix m4 usage error
15216         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
15217         defined, to either 0 or 1.
15218         Reported by Karel Zak.
15220 2012-07-11  Jim Meyering  <meyering@redhat.com>
15222         maint: enable the sc_avoid_if_before_free syntax-check rule
15223         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
15224         (if_before_free_offenders_): Define.
15225         (if_before_free_basename_re_): Define.
15226         Exempt current files with useless if-before-free.
15228 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
15230         gettext: do not assume '#define ... defined ...' behavior
15231         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
15232         Do not use '#define FOO ... defined BAR ...', as the C standard says
15233         it's not portable to expect that this works after macro expansion.
15234         Problem reported for gzip by Steven M. Schweda in
15235         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
15237 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
15239         getloadavg: clean out old Emacs and Autoconf cruft
15240         See Glenn Morris in <http://bugs.gnu.org/11905>.
15241         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
15242         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
15243         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
15244         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
15246 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
15248         bootstrap: let warn be like tests/init.sh's warn_
15249         Reported by Jim Meyering.
15250         * build-aux/bootstrap (warn): Remove, replaced by...
15251         (warnf_, warn_): these.
15252         Adjust callers.
15253         Shorten messages that no longer fit in 80 columns.
15255 2012-07-09  Bruno Haible  <bruno@clisp.org>
15257         getopt: Simplify after Emacs changed.
15258         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
15259         (gl_GETOPT_IFELSE): Remove macro.
15261 2012-07-09  Jim Meyering  <meyering@redhat.com>
15263         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
15264         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
15266         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
15267         Bugs in both of those conspired to make the
15268         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
15269         _sc_search_regexp's handling of non-empty $in_files would filter
15270         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
15271         choice of in_files value meant there would be no match in most
15272         projects, due to the presence of two or more Makefile.in files.
15273         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
15274         Fix a bug in how a non-empty $$in_files was processed:
15275         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
15276         in spite of the name, it's a regexp, not a list of file names.
15278 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15280         getloadavg, getopt: fix commentary re configure.in
15281         Autoconf is deprecating the name 'configure.in', so change it to
15282         to the new name 'configure.ac' in a couple of places.
15283         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
15284         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
15285         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
15286         Emacs has renamed it to configure.ac, and it no longer refers
15287         to these macros anyway.
15289         timespec: mark functions with const attributes
15290         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
15291         Mark with _GL_ATTRIBUTE_CONST.
15293 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
15295         canonicalize[-lgpl]: handle "guessing" values when cross-building
15296         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15297         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
15298         matches "*yes" instead of just "yes".  Regression introduced in commit
15299         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
15301 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
15302             Bruno Haible  <bruno@clisp.org>
15304         canonicalize: make the right guess when cross-compiling to GNU
15305         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
15306         determine whether cross-compiling to glibc systems, so as to
15307         include GNU/Hurd.
15309 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15311         timespec-sub: avoid duplicate include
15312         * lib/timespec-sub.c: Do not include <config.h> twice.
15313         Reported by Juanma Barranquero.
15315 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
15317         bootstrap: use a more consistent error reporting scheme
15318         * build-aux/bootstrap (warn, die): New.
15319         Use them.
15321 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15323         sys_time: allow too-wide tv_sec
15324         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
15325         timeval even if tv_sec is wider than time_t.  This allows
15326         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
15327         as without this patch gnulib replaces struct timeval
15328         and OpenBSD futimes therefore has a type mismatch.
15329         * doc/posix-headers/sys_time.texi: Mention this.
15331         pthread: check for both pthread_create and pthread_join
15332         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
15333         alter the check so that it tests for both pthread_create and
15334         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
15335         Suggested by Bruno Haible and Richard Yao in
15336         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
15338         parse-datetime: doc tuneup
15339         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
15340         spacing issues.
15342 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
15344         do-release-commit-and-tag: fix the previous commit
15345         * build-aux/do-release-commit-and-tag: Actually the test was right,
15346         but the comment and the error message were misleading.
15347         Fix comment, and improve error message.
15348         Perform check first, so that NEWS is not modified uselessly.
15350         do-release-commit-and-tag: fix typo
15351         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
15352         _not_ start with a stub.
15354 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15356         pthread: check for pthread_create, not pthread_join
15357         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
15358         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
15359         pthread_join in libc.  I hope this removes the need for all the
15360         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
15361         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
15363 2012-07-04  Jim Meyering  <meyering@redhat.com>
15365         parse-datetime: fix failure to diagnose invalid input
15366         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
15367         rather than diagnosing the invalid input.  Now it reports this:
15368         date: invalid date '\260'
15369         * lib/parse-datetime.y (to_uchar): Define.
15370         (yylex): Don't sign-extend "other" bytes.
15371         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
15372         Thanks to Bruno Haible for the patch to this file.
15373         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
15374         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
15376 2012-07-03  Jim Meyering  <meyering@redhat.com>
15378         bootstrap: do not require now-removed build-aux/missing
15379         Now that build-aux/missing is, er, missing, bootstrap would
15380         silently fail.
15381         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
15382         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
15383         no longer part of gnulib.
15384         Diagnose the failure.
15386 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
15388         alloca: add support for HP NonStop TNS/E native
15389         * lib/alloca.in.h (alloca): Support the new host.
15390         From a suggestion by Joachim Schmitz in
15391         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
15393 2012-07-02  Pádraig Brady  <P@draigBrady.com>
15395         fsusage: remove code not needed on non GNU/Linux systems.
15397         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
15398         Don't include headers no longer needed in this case.
15399         * lib/fsusage.c [STAT_STATVFS &&
15400         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
15401         STAT_STATFS2_FRSIZE to exclude code not used in this case.
15403 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
15405         fsusage: include files needed for glibc 2.6 fallback
15406         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
15407         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
15408         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
15409         Problem reported by Ludovic Courtès in
15410         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
15412         fsusage: avoid needless check on GNU/Linux
15413         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
15414         on GNU/Linux systems, since it can't possibly work.
15416 2012-07-01  Bruno Haible  <bruno@clisp.org>
15418         log: Fix an autoconf >= 2.64 warning.
15419         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
15420         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
15422 2012-06-28  Bruno Haible  <bruno@clisp.org>
15424         log10f: Fix possible configuration problem.
15425         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
15426         $LOGF_LIBM.
15427         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
15429 2012-06-28  Bruno Haible  <bruno@clisp.org>
15431         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
15432         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
15433         not gl_cv_func_unlink_works.
15434         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
15436 2012-06-27  Eric Blake  <eblake@redhat.com>
15438         config: drop scripts that automake says are not independent
15439         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
15440         * build-aux/elisp-comp: Delete.
15441         * build-aux/missing: Likewise.
15442         * build-aux/ylwrap: Likewise.
15443         * modules/elisp-comp: Likewise.
15444         * MODULES.html.sh: Drop mention of elisp-comp.
15445         * NEWS: Mention this.
15447 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
15449         root-uid: new module
15450         This is for portability to Tandem's NonStop Kernel.
15451         * lib/root-uid.h, modules/root-uid: New files.
15452         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
15453         * lib/write-any-file.c, tests/test-sethostname2.c:
15454         Include "root-uid.h".
15455         * lib/euidaccess.c (euidaccess):
15456         * lib/pt_chown.c (main):
15457         * lib/unlinkdir.c (cannot_unlink_dir):
15458         * lib/write-any-file.c (can_write_any_file):
15459         * m4/mknod.m4 (gl_FUNC_MKNOD):
15460         * tests/test-sethostname2.c (geteuid, main):
15461         Don't assume ROOT_UID == 0.
15462         * modules/euidaccess (Depends-on):
15463         * modules/pt_chown (Depends-on):
15464         * modules/sethostname-tests (Depends-on):
15465         * modules/unlinkdir (Depends-on):
15466         * modules/write-any-file (Depends-on):
15467         Add root-uid.
15469         regex: use locale-independent comparison for codeset name
15470         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
15471         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
15472         for codeset name.
15473         * lib/regex_internal.h: Do not include <strings.h>, since we
15474         no longer use strcasecmp.
15475         * modules/regex (Depends-on): Remove strcase.
15477 2012-06-23  Bruno Haible  <bruno@clisp.org>
15479         getopt-posix: No longer guarantee that option processing is resettable.
15480         * doc/posix-functions/getopt.texi: Drop description of problem with
15481         internal state. Fix info about mingw and msvc9.
15482         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
15483         option processing by getopt(). Run three test programs instead of one.
15484         Simplify cross-compilation guess.
15485         * NEWS: Mention the change.
15486         Reported by Rich Felker <dalias@aerifal.cx>.
15488 2012-06-26  Bruno Haible  <bruno@clisp.org>
15490         argp, regex: Ensure strcasecmp gets declared.
15491         * lib/argp-help.c: Include <strings.h>.
15492         * lib/regex_internal.h: Likewise.
15493         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
15495 2012-06-24  Bruno Haible  <bruno@clisp.org>
15497         ptsname_r: Make it consistent with ptsname on AIX.
15498         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
15499         implementation as for OSF/1.
15500         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
15501         a pty master.
15503         ptsname_r: Make it consistent with ptsname on OSF/1.
15504         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
15505         OSF/1.
15507 2012-06-24  Bruno Haible  <bruno@clisp.org>
15509         ttyname_r: Fix result on OSF/1, Solaris.
15510         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
15512 2012-06-24  Bruno Haible  <bruno@clisp.org>
15514         ptsname_r: Add support for Solaris.
15515         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
15516         Solaris.
15518         ptsname_r: Fix test failure on native Windows.
15519         * modules/ptsname_r (Depends-on): Add isatty.
15521         ptsname_r: Fix test failures on IRIX, Solaris.
15522         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
15523         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
15524         accordingly.
15525         * lib/ptsname_r.c: Include <fcntl.h>.
15526         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
15527         set errno if fd is invalid.
15528         * tests/test-isatty.c (main): Update comments.
15530 2012-06-24  Bruno Haible  <bruno@clisp.org>
15532         ptsname test: Extend test.
15533         * tests/test-ptsname.c: Include <errno.h>.
15534         (main): Test behaviour with invalid file descriptor.
15536 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
15538         time: fix obsolete comment
15539         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
15540         reference to HAVE_STRUCT_TIMESPEC in comment.
15542 2012-06-23  Bruno Haible  <bruno@clisp.org>
15544         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
15545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
15546         does not handle abbreviated long options with equivalent
15547         disambiguations, set gl_replace_getopt to yes.
15548         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
15550 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
15552         time_r: fix typo that always overrode localtime_r decl
15553         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
15554         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
15555         not in a standard include.
15557 2012-06-22  Bruno Haible  <bruno@clisp.org>
15559         Write "Mac OS X" instead of "MacOS X".
15560         * README: Write "Mac OS X" instead of "MacOS X".
15561         * build-aux/bootstrap: Likewise.
15562         * build-aux/install-reloc: Likewise.
15563         * lib/acl-internal.h: Likewise.
15564         * lib/acl_entries.c: Likewise.
15565         * lib/argp-ba.c: Likewise.
15566         * lib/argp-pv.c: Likewise.
15567         * lib/config.charset: Likewise.
15568         * lib/copy-acl.c: Likewise.
15569         * lib/csharpexec.c: Likewise.
15570         * lib/euidaccess.c: Likewise.
15571         * lib/fbufmode.c: Likewise.
15572         * lib/fflush.c: Likewise.
15573         * lib/file-has-acl.c: Likewise.
15574         * lib/filemode.h: Likewise.
15575         * lib/fpurge.c: Likewise.
15576         * lib/freadable.c: Likewise.
15577         * lib/freadahead.c: Likewise.
15578         * lib/freading.c: Likewise.
15579         * lib/freadptr.c: Likewise.
15580         * lib/freadseek.c: Likewise.
15581         * lib/fseeko.c: Likewise.
15582         * lib/fseterr.c: Likewise.
15583         * lib/fsusage.c: Likewise.
15584         * lib/fwritable.c: Likewise.
15585         * lib/fwriting.c: Likewise.
15586         * lib/get-rusage-as.c: Likewise.
15587         * lib/get-rusage-data.c: Likewise.
15588         * lib/getdomainname.c: Likewise.
15589         * lib/idpriv-drop.c: Likewise.
15590         * lib/idpriv-droptemp.c: Likewise.
15591         * lib/localcharset.c: Likewise.
15592         * lib/locale.in.h: Likewise.
15593         * lib/localename.c: Likewise.
15594         * lib/mbsrtowcs-state.c: Likewise.
15595         * lib/nproc.c: Likewise.
15596         * lib/passfd.c: Likewise.
15597         * lib/posix_openpt.c: Likewise.
15598         * lib/printf-parse.c: Likewise.
15599         * lib/progreloc.c: Likewise.
15600         * lib/safe-read.h: Likewise.
15601         * lib/safe-write.h: Likewise.
15602         * lib/sched.in.h: Likewise.
15603         * lib/set-mode-acl.c: Likewise.
15604         * lib/signal.in.h: Likewise.
15605         * lib/stdint.in.h: Likewise.
15606         * lib/stdio-impl.h: Likewise.
15607         * lib/stdlib.in.h: Likewise.
15608         * lib/strtod.c: Likewise.
15609         * lib/sys_select.in.h: Likewise.
15610         * lib/tcgetsid.c: Likewise.
15611         * lib/unistd.in.h: Likewise.
15612         * lib/unlockpt.c: Likewise.
15613         * lib/vasnprintf.c: Likewise.
15614         * lib/vma-iter.c: Likewise.
15615         * lib/wcsrtombs-state.c: Likewise.
15616         * m4/acl.m4: Likewise.
15617         * m4/acosl.m4: Likewise.
15618         * m4/asinl.m4: Likewise.
15619         * m4/atanl.m4: Likewise.
15620         * m4/c-stack.m4: Likewise.
15621         * m4/cosl.m4: Likewise.
15622         * m4/expl.m4: Likewise.
15623         * m4/extensions.m4: Likewise.
15624         * m4/fdatasync.m4: Likewise.
15625         * m4/fmal.m4: Likewise.
15626         * m4/frexp.m4: Likewise.
15627         * m4/frexpf.m4: Likewise.
15628         * m4/frexpl.m4: Likewise.
15629         * m4/fsusage.m4: Likewise.
15630         * m4/getdomainname.m4: Likewise.
15631         * m4/getloadavg.m4: Likewise.
15632         * m4/getopt.m4: Likewise.
15633         * m4/gettext.m4: Likewise.
15634         * m4/gnulib-common.m4: Likewise.
15635         * m4/intdiv0.m4: Likewise.
15636         * m4/intlmacosx.m4: Likewise.
15637         * m4/largefile.m4: Likewise.
15638         * m4/ldexpl.m4: Likewise.
15639         * m4/link-follow.m4: Likewise.
15640         * m4/locale-ar.m4: Likewise.
15641         * m4/locale-fr.m4: Likewise.
15642         * m4/locale-ja.m4: Likewise.
15643         * m4/locale-tr.m4: Likewise.
15644         * m4/locale-zh.m4: Likewise.
15645         * m4/locale_h.m4: Likewise.
15646         * m4/lock.m4: Likewise.
15647         * m4/logl.m4: Likewise.
15648         * m4/mathfunc.m4: Likewise.
15649         * m4/minus-zero.m4: Likewise.
15650         * m4/mktime.m4: Likewise.
15651         * m4/mmap-anon.m4: Likewise.
15652         * m4/multiarch.m4: Likewise.
15653         * m4/nanosleep.m4: Likewise.
15654         * m4/nocrash.m4: Likewise.
15655         * m4/poll.m4: Likewise.
15656         * m4/printf-frexpl.m4: Likewise.
15657         * m4/printf.m4: Likewise.
15658         * m4/signbit.m4: Likewise.
15659         * m4/sinl.m4: Likewise.
15660         * m4/sqrtl.m4: Likewise.
15661         * m4/strerror_r.m4: Likewise.
15662         * m4/tanl.m4: Likewise.
15663         * m4/threadlib.m4: Likewise.
15664         * m4/ttyname_r.m4: Likewise.
15665         * m4/unlink.m4: Likewise.
15666         * m4/visibility.m4: Likewise.
15667         * m4/wcwidth.m4: Likewise.
15668         * tests/minus-zero.h: Likewise.
15669         * tests/test-alloca-opt.c: Likewise.
15670         * tests/test-copy-acl.sh: Likewise.
15671         * tests/test-copy-file.sh: Likewise.
15672         * tests/test-fdatasync.c: Likewise.
15673         * tests/test-file-has-acl.sh: Likewise.
15674         * tests/test-flock.c: Likewise.
15675         * tests/test-fsync.c: Likewise.
15676         * tests/test-localename.c: Likewise.
15677         * tests/test-malloca.c: Likewise.
15678         * tests/test-nonblocking-pipe.h: Likewise.
15679         * tests/test-nonblocking-socket.h: Likewise.
15680         * tests/test-openpty.c: Likewise.
15681         * tests/test-posix_openpt.c: Likewise.
15682         * tests/test-ptsname.c: Likewise.
15683         * tests/test-ptsname_r.c: Likewise.
15684         * tests/test-sameacls.c: Likewise.
15685         * tests/test-select.h: Likewise.
15686         * tests/test-set-mode-acl.sh: Likewise.
15687         * tests/test-snprintf-posix.h: Likewise.
15688         * tests/test-sprintf-posix.h: Likewise.
15689         * tests/test-strtod.c: Likewise.
15690         * tests/test-time.c: Likewise.
15691         * tests/test-vasnprintf-posix.c: Likewise.
15692         * tests/test-vasprintf-posix.c: Likewise.
15693         * doc/acl-resources.txt: Likewise.
15694         * doc/**/*.texi: Likewise.
15695         Reported by Max Horn <max@quendi.de>.
15697 2012-06-22  Bruno Haible  <bruno@clisp.org>
15699         grantpt: Relax requirement regarding invalid file descriptors.
15700         * lib/grantpt.c: Don't include <fcntl.h>.
15701         (grantpt): Don't verify the validity of the file descriptor.
15702         * modules/grantpt (Depends-on): Remove fcntl-h.
15703         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
15704         file descriptors.
15705         * doc/posix-functions/grantpt.texi: Document more platforms on which
15706         grantpt succeeds for invalid file descriptors.
15707         Reported by Rich Felker <dalias@aerifal.cx>.
15709 2012-06-22  Bruno Haible  <bruno@clisp.org>
15711         fbufmode test: Don't test unportable behaviour.
15712         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
15713         (main): Invoke it three times.
15714         Reported by Szabolcs Nagy <nsz@port70.net>
15715         and Rich Felker <dalias@aerifal.cx>.
15717 2012-06-21  Bruno Haible  <bruno@clisp.org>
15719         gnulib-tool: Refactor inctests variable.
15720         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
15721         (func_modules_transitive_closure,
15722         func_modules_transitive_closure_separately,
15723         func_import, func_create_testdir): Update.
15725         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
15726         * gnulib-tool: Accept option --without-tests.
15727         (func_usage): Document --without-tests option. Rearrange.
15728         (inctests): Normalize according to the mode.
15729         * NEWS: Mention the change.
15730         Suggested by Simon Josefsson.
15732 2012-06-21  Bruce Korb  <bkorb@gnu.org>
15734         parse-duration test: Avoid spurious output.
15735         * tests/test-parse-duration.sh: Reindent with leading tabs.
15737 2012-06-21  Jim Meyering  <meyering@redhat.com>
15739         maint: disable the strncpy prohibition
15740         * cfg.mk: Do not prohibit strncpy here.
15742 2012-06-21  Bruno Haible  <bruno@clisp.org>
15744         nonblocking: Avoid compilation error on mingw64.
15745         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
15746         fscanf.
15747         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
15748         * modules/vfscanf (configure.ac): Likewise.
15749         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
15750         definition only if stdio.h has prepared it.
15751         Reported by Daniel P. Berrange <berrange@redhat.com>.
15753 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
15755         gnulib-tool: Use readlink if it is available.
15756         * gnulib-tool (func_readlink): Choose function more appropriately.
15758 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15760         posixtm-tests: port to buggy compiler
15761         Problem reported by Simon Josefsson in
15762         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
15763         * modules/posixtm-tests (Depends-on): Add stdint.
15764         * tests/test-posixtm.c (struct posixtm_test.t_expected):
15765         Now of type int_least64_t, not int64_t, both because that's
15766         what INT64_C returns and because int_least64_t works even
15767         on 72-bit hosts.
15768         (T): Use INT64_C on constants outside the traditional int range,
15769         to work around compiler bug noted by Simon.
15771         mktime: fix integer overflow in 'configure'-time test
15772         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
15773         after integer overflow.  Problem reported by Rich Felker in
15774         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
15775         Also, don't look for further instances of a bug if we've already
15776         found one instance; this helps 'configure' run faster.
15778 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
15780         tmpfile, clean-temp: Fix invocation of GetVersionEx.
15781         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
15782         GetVersionEx correctly.
15783         * lib/clean-temp.c (supports_delete_on_close): Likewise.
15785 2012-06-20  Bruno Haible  <bruno@clisp.org>
15787         fdopen: Allow implementations that don't reject invalid fd arguments.
15788         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
15789         succeeds.
15790         Reported by Rich Felker <dalias@aerifal.cx>.
15792 2012-06-20  Simon Josefsson  <simon@josefsson.org>
15794         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
15795         bring in LIBINTL.
15797 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15799         init.sh: do not rely on autoupated PWD
15800         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
15801         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
15802         Although Nelson's bug was not necessarily fixed by this patch,
15803         it seems wise to make the change for safety.
15804         * tests/init.sh (path_prepend_): Do not rely on PWD updating
15805         automagically after 'cd'; this is not reliable on older shells.
15806         (setup_): Fail if we cannot cd to temporary directory.
15808 2012-06-19  Bruno Haible  <bruno@clisp.org>
15810         stat, fstat: Avoid warnings on mingw64.
15811         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
15812         redefining.
15813         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
15814         Reported by Daniel P. Berrange <berrange@redhat.com>.
15816 2012-06-19  Bruno Haible  <bruno@clisp.org>
15818         stdioext: Add support for musl libc.
15820         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
15821         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
15823         * m4/fseterr.m4: New file.
15824         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
15825         function exists.
15826         * modules/fseterr (Files): Add m4/fseterr.m4.
15827         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
15828         __fseterr does not exist.
15829         (Makefile.am): Remove fseterr.c from lib_SOURCES.
15831         * lib/freadable.h: Update comment.
15833         * lib/fwritable.h: Update comment.
15835         * lib/freading.h: Update comment.
15837         * lib/fwriting.h: Update comment.
15839         * m4/freadahead.m4: New file.
15840         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
15841         that function exists.
15842         * modules/freadahead (Files): Add m4/freadahead.m4.
15843         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
15844         __freadahead does not exist.
15845         (Makefile.am): Remove freadahead.c from lib_SOURCES.
15847         * m4/freadptr.m4: New file.
15848         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
15849         function exists.
15850         * modules/freadptr (Files): Add m4/freadptr.m4.
15851         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
15852         __freadptr does not exist.
15853         (Makefile.am): Remove freadptr.c from lib_SOURCES.
15855         * m4/freadseek.m4: New file.
15856         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
15857         exists.
15858         * modules/freadseek (Files): Add m4/freadseek.m4.
15859         (configure.ac): Invoke gl_FUNC_FREADSEEK.
15861         * lib/fpurge.c (fpurge): Update comment.
15863         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
15865 2012-06-19  Bruno Haible  <bruno@clisp.org>
15867         *printf-posix: Put more info into config.log.
15868         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
15869         exit code into config.log.
15871 2012-06-19  Bruno Haible  <bruno@clisp.org>
15873         getopt-gnu: Fix exit code overflow in autoconf test.
15874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
15875         to keep them below < 128.
15877 2012-06-17  Jim Meyering  <meyering@redhat.com>
15879         maint.mk: fix typo in code to derive GPG key at release time
15880         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
15882 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15884         regex: avoid warning when pointers are not long
15885         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
15886         and uintptr_t, not long, for portability to hosts where pointers and
15887         long have different sizes.  Issue noted by Daniel P. Berrange in
15888         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
15889         and fix suggested by Bruno Haible in
15890         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
15892 2012-06-17  Bruno Haible  <bruno@clisp.org>
15894         dummy: Relicense into the public domain.
15895         * modules/dummy (License): Set to "public domain".
15896         Suggested by Reuben Thomas.
15898 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
15900         announce-gen: VPATH issues
15901         * build-aux/announce-gen (--srcdir): New option, used to trim the
15902         $srcdir part of the path from $builddir to NEWS.
15903         * top/maint.mk (announcement): Adjust.
15905 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
15907         gnu-web-doc-update: VPATH builds
15908         * build-aux/gnu-web-doc-update (--builddir): New option.
15909         Revamp the handling of options.
15910         Prefer $(...) to `...`.
15911         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
15912         the template, and it is GNU mktemp specific.
15913         Prefer set -e to long series of &&.
15914         Restore the initial git branch, not "master".
15915         Properly initialize submodules (don't rely only on bootstrap).
15916         Do not reconfigure blindly, use config.status.
15917         * top/README-release: Update instructions for gnu-web-doc-update.
15919 2012-06-11  Jim Meyering  <meyering@redhat.com>
15921         maint.mk: revert most of the previous change re "all these"
15922         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
15923         For rationale, see the discussion at
15924         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
15926 2012-06-10  Karl Berry  <karl@gnu.org>
15928         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
15930         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
15932 2012-06-10  Bruce Korb  <bkorb@gnu.org>
15934         parse-duration: Relicense under LGPLv2+.
15935         * modules/parse-duration (License): Change to LGPLv2+.
15937 2012-06-10  Jim Meyering  <meyering@redhat.com>
15939         maint.mk: prohibit common grammar error: "all these"
15940         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
15941         the list of prohibited word sequences.  It should be "all of these".
15942         * lib/tempname.c (__gen_tempname): Fix one of them.
15944 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
15946         do-release-commit-and-tag: support VPATH builds
15947         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
15948         (noteworthy): Defined earlier to factor its value.
15949         (noteworthy_stub): New.
15950         Use it to factor.
15951         (help_version): Split into...
15952         (help, version): these.
15953         Adjust the option processing part.
15954         Support "--option=value" in addition to "--option value".
15955         (builddir): New.
15956         (--builddir): New option.
15957         * top/README-release: Document this.
15958         Reword slightly so that the reader cannot understand that he
15959         has to do these steps before calling do-release-commit-and-tag.
15961 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
15963         readme-release: also require announce-gen and maintainer-makefile
15964         * modules/readme-release (Depends-on): here.
15965         * modules/announce-gen, modules/do-release-commit-and-tag,
15966         modules/gnu-web-doc-update, modules/maintainer-makefile
15967         (Description): Point to readme-release.
15969 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
15971         maint.mk: fix VPATH issues.
15972         * top/maint.mk (news-check): GNU Make understand $< very well.
15973         (release-prep): NEWS is in $(srcdir).
15975 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
15977         readme-release: require the promoted modules.
15978         * modules/readme-release (Depends-on): Add
15979         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
15980         in this text.
15982 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
15983             Bruno Haible  <bruno@clisp.org>
15985         error, strerror-override: Support mingw64 from Fedora 17.
15986         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
15987         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
15988         EINPROGRESS.
15989         * lib/strerror-override.h (strerror_override): Test it.
15990         * lib/strerror-override.c (strerror_override): Likewise.
15991         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
15993 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
15994             Bruno Haible  <bruno@clisp.org>
15996         error, strerror-override: Support mingw64 from Fedora 17.
15997         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
15998         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
15999         * lib/strerror-override.h (strerror_override): Test it.
16000         * lib/strerror-override.c (strerror_override): Likewise.
16002 2012-06-03  Bruno Haible  <bruno@clisp.org>
16004         error, strerror-override: Support new errno values from POSIX:2008.
16005         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
16006         ENOTRECOVERABLE.
16007         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
16008         platforms.
16009         * lib/strerror-override.c (strerror_override): Conditionalize the
16010         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
16011         * lib/strerror-override.h (strerror_override): Declare also if
16012         GNULIB_defined_EOWNERDEAD is defined.
16013         * tests/test-errno.c (e130, e131): New variables.
16014         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
16015         ENOTRECOVERABLE.
16016         Reported by Paolo Bonzini.
16018 2012-05-31  Jim Meyering  <meyering@redhat.com>
16020         savewd: add missing dependency on sys_wait module
16021         * modules/savewd (Depends-on): Add sys_wait, needed at least
16022         for MSVC.  Report and suggested change by Michael Goffioul.
16024 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16026         system-quote-tests: port to CentOS 5
16027         Problem reported by Tom G. Christensen in
16028         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
16029         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
16031 2012-05-29  Jim Meyering  <meyering@redhat.com>
16033         maint: fix typos in comments and ChangeLog
16034         Culprits identified and fixed mostly automatically using these commands:
16035         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
16036         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
16037         using http://github.com/lyda/misspell-check
16038         * ChangeLog: Fix typos.
16039         * doc/solaris-versions: Likewise.
16040         * lib/regexec.c (re_search_stub): Likewise.
16041         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
16043 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
16045         manywarnings: remove duplicate -Wmultichar entry
16046         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
16047         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
16048         so keep the entry marked as documented.
16050 2012-05-27  Karl Berry  <karl@gnu.org>
16052         * config/srclist.txt (mktime.c): remove last libc sync,
16053         perhaps just temporarily.
16055 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
16057         regex: don't assume uint64_t or uint32_t
16058         * lib/regcomp.c (init_word_char): Don't assume that the types
16059         uint64_t and uint32_t exist.  The C standard doesn't guarantee
16060         them, and on some 32-bit compilers there is no uint64_t.
16061         Problem reported by Gianluigi Tiesi in
16062         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
16064 2012-05-25  Jim Meyering  <meyering@redhat.com>
16066         maint.mk: add strncpy-prohibiting syntax-check rule
16067         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
16069 2012-05-24  Jim Meyering  <meyering@redhat.com>
16071         maint.mk: compute $(gpg_key_ID) more portably
16072         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
16073         That use of sed is not portable to some fringe systems.
16074         Reported by Paul Eggert in
16075         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
16077 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16079         mktime: sync from glibc
16080         * config/srclist.txt: Uncomment mktime.c.
16081         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
16082         First, indent with tabs, since glibc uses tabs and doesn't want to
16083         change and we'd rather be identical to glibc.  Also, two small
16084         coding changes:
16085         (isdst_differ): Use &&, not &, as && is the usual style.
16086         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
16087         for clarity.
16089 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
16091         announce-gen: du -h is more portable than du --human
16092         * build-aux/announce-gen (sizes): Invoke du with -h instead
16093         of --human.  Accept leading white space in its output.
16095 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
16097         announce-gen: Improve diagnostics.
16098         * build-aux/announce-gen: When parsing command line options,
16099         prefer "announce-gen: option --release-type requires an argument"
16100         to "Option release-type requires an argument".
16102 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
16104         maint.mk: gpg_key_ID: use sed more portably
16105         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
16106         the closing brace.
16107         (refresh-po): Fuse two sed invocations into one.
16109 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
16111         gitlog-to-changelog: support the log message format used in Bison.
16112         * build-aux/gitlog-to-changelog: Support --strip-tab and
16113         --strip-cherry-picked.
16115 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
16117         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
16118         the rest of the current time slice to another thread in the current
16119         process. So if the thread that feeds the file decscriptor we're
16120         polling is not in the current process, we get busy-waiting.
16121         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
16122         Patch from Theodore Leblond.
16123         * lib/select.c: Split polling out of the loop that sets the output
16124         fd_sets.  Check for zero result and loop if the wait timeout is
16125         infinite.
16127 2012-05-21  Simon Josefsson  <simon@josefsson.org>
16129         select: Fix build error on IRIX 6.5.
16130         * lib/select.c: Include stddef.h for NULL.
16132 2012-05-21  Simon Josefsson  <simon@josefsson.org>
16134         gc: fix libgcrypt detection on older machines.
16135         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
16136         copyright years because the file has been distributed every year
16137         since it was created.
16139 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
16141         crypto: fix bug in large buffer handling
16142         Problem reported by Serge Belyshev for glibc in
16143         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
16144         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
16145         * lib/md4.c (md4_process_block):
16146         * lib/md5.c (md5_process_block):
16147         * lib/sha1.c (sha1_process_block):
16148         * lib/sha256.c (sha256_process_block):
16149         Don't assume the buffer length is less than 2**32.
16150         * lib/sha512.c (sha512_process_block): Likewise.
16151         Here, the bug is present only in the rare case where the host does
16152         not support uint64_t or where size_t is wider than 64 bits.
16153         Use u64size to work around the problems.
16154         * lib/u64.h (u64size): New macro.
16156 2012-05-15  Pádraig Brady  <P@draigBrady.com>
16158         fsusage: fix block size returned on older Linux 2.6
16160         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
16161         which is available since Linux 2.6.
16162         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
16163         when the member is available so it can be used as a fallback.
16164         * doc/posix-functions/statvfs.texi: Mention the hang issue
16165         on Linux < 2.6.36.
16167 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
16169         bootstrap: suppress stderr chatter
16170         * build-aux/bootstrap (insert_sorted_if_absent, main program):
16171         Omit unnecessary chatter to stderr.  The main program chatter
16172         was there only inadvertantly.
16174         bootstrap: .gitignore files created by autopoint, libtool
16175         I ran into this problem when bootstrapping the latest diffutils.
16176         After './bootstrap', 'git status' reported lots of untracked files
16177         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
16178         autopoint and do not need to be version-controlled.
16179         * build-aux/bootstrap: Put into .gitignore the files that
16180         autopoint and libtool create, by keeping track of files that exist
16181         after but not before these programs are run.
16182         (version_controlled_file): Move up.  2nd arg is now full file
16183         name, not base name; this is more convenient.  Put CVS at the end,
16184         as it's now somewhat deprecated.
16186 2012-05-14  Jim Meyering  <meyering@redhat.com>
16188         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
16189         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
16190         definition.  Reported by Bruno Haible.
16192 2012-05-13  Bruno Haible  <bruno@clisp.org>
16193             Paul Eggert  <eggert@cs.ucla.edu>
16195         binary-io: Define set_binary_mode function.
16196         * lib/binary-io.h (set_binary_mode): New function.
16197         (SET_BINARY): Define in terms of set_binary_mode.
16198         * modules/binary-io (configure.ac): Require AC_C_INLINE.
16199         * tests/test-binary-io.c (main): Accept an argument, and test either
16200         set_binary_mode or SET_BINARY depending on the argument.
16201         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
16202         argument. Clean up also t-bin-out0.tmp.
16204 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
16206         bootstrap: take advantage of POSIX shell features
16208         The 'bootstrap' script offered by Gnulib script already uses POSIX
16209         shell features (like $((...)) arithmetic expansions) that are not
16210         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
16211         means that bootstrap must already be run using a proper POSIX shell,
16212         which will thus provide more features, like ${var#pattern} parameter
16213         expansion or inversion of a command exit status with '!'.  We can
16214         thus use these features to improve the clarity and the performances
16215         of the bootstrap script.
16217         Suggested by Eric Blake.
16219         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
16220         of sed/expr plus command substitutions, to save some forks.  While
16221         we are at it, prefer the POSIX $(...) form of command substitution,
16222         rather than the legacy form `...` (since the former is visually
16223         clearer and interacts better with quoting), and prefer the idiom:
16224           "if ! CMD; then ACTION ..."
16225         over the idiom:
16226           "if CMD; then :; else ACTION ..."
16227         which was required by legacy Bourne shells not supporting '!'.
16229 2012-05-12  Bruno Haible  <bruno@clisp.org>
16231         system-quote: Add more comments.
16232         * lib/system-quote.h: Add more comments about wilcards and limitations.
16233         Suggested by Eli Zaretskii <eliz@gnu.org>.
16235         sh-quote, system-quote: Add comments about wildcards.
16236         * lib/sh-quote.h: Clarify what happens with wildcard characters.
16237         * lib/system-quote.h: Likewise.
16238         Reported by Eli Zaretskii <eliz@gnu.org>.
16240 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
16242         fsusage: check for GNU/Linux statvfs problem dynamically
16243         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
16244         Define STAT_STATFS2_BSIZE too, since in this case the code now
16245         checks dynamically whether statvfs is reliable, falling back on
16246         Linux-style statfs otherwise.
16247         (statvfs_works): New function, for dynamically testing statvfs.
16248         (get_fs_usage) [STAT_STATVFS]: Use it.
16249         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
16250         statvfs on GNU/Linux hosts, since it's now done dynamically.
16252 2012-05-10  Bruno Haible  <bruno@clisp.org>
16254         system-quote, execute, spawn-pipe: Escape '?' on Windows.
16255         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
16256         '?' character.
16257         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
16258         * tests/test-system-quote-main.c (check_all): Check also strings like
16259         "??????????".
16260         Reported by Eli Zaretskii <eliz@gnu.org>.
16262 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
16264         _Noreturn: port config.h to gcc -Wundef
16265         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
16266         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
16267         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
16269 2012-05-10  Bruno Haible  <bruno@clisp.org>
16271         system-quote: Refactor.
16272         * lib/system-quote.h (system_quote_copy): Fix comment.
16273         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
16274         New functions, extracted from system_quote_copy.
16275         (system_quote_length, system_quote_copy): Use these functions.
16276         Reported by Paul Eggert.
16278 2012-05-08  Bruno Haible  <bruno@clisp.org>
16280         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
16281         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
16283 2012-05-08  Bruno Haible  <bruno@clisp.org>
16285         Tests for module 'system-quote'.
16286         * modules/system-quote-tests: New file.
16287         * tests/test-system-quote.sh: New file.
16288         * tests/test-system-quote-main.c: New file.
16289         * tests/test-system-quote-child.c: New file.
16291         New module 'system-quote'.
16292         * lib/system-quote.h: New file.
16293         * lib/system-quote.c: New file.
16294         * modules/system-quote: New file.
16296 2012-05-08  Bruno Haible  <bruno@clisp.org>
16298         sh-quote: Make C++ safe and allow multiple inclusion.
16299         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
16300         declarations in extern "C".
16302 2012-05-08  Bruno Haible  <bruno@clisp.org>
16304         sh-quote tests: Make tests stricter.
16305         * tests/test-sh-quote.c (check_one): Check the return value of
16306         shell_quote_copy.
16307         (main): Check a string with a CR character. Check a string that
16308         contains UCHAR_MAX.
16310 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
16312         warnings.m4: provide a means to specify the program to compile.
16313         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
16314         (gl_WARN_ADD): here.
16315         Use gl_AS_VAR_APPEND.
16316         Support an argument to specify the program to compile.
16317         (gl_WARN_ADD): Accept an argument to specify the program to compile.
16318         AC_SUBST the WARN_CFLAGS when they are used.
16319         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
16320         leave this to gl_WARN_ADD.
16322 2012-05-08  Eric Blake  <eblake@redhat.com>
16324         doc: recommendations on gettext version
16325         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
16326         choice between versions.
16327         * DEPENDENCIES (gettext): Cover both approaches.
16329 2012-05-08  Jim Meyering  <meyering@redhat.com>
16331         init.sh: explain why EXEEXT support uses aliases rather than functions
16332         * tests/init.sh: Add a comment.
16334         init.sh: don't let bash aliases interfere with tests
16335         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
16336         is bash.  This avoids problems for those who alias standard commands to
16337         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
16338         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
16340 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16342         stdint: be more consistent with glibc, SunOS libc
16343         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
16344         (gl_int_fast16_t, gl_uint_fast16_t)
16345         (gl_int_fast32_t, gl_uint_fast32_t)
16346         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
16347         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
16348         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
16349         Be consistent with glibc by default, and with SunOS 5.10 and later
16350         if __sun is defined.  This lessens the likelihood of clashes if
16351         code compiled for older hosts is combined with code compiled for
16352         newer ones.  Problem reported by Niels Möller in
16353         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
16355 2012-05-07  Eric Blake  <eblake@redhat.com>
16357         isatty: relax license to LGPLv2+
16358         * modules/isatty (License): Relax license.
16360 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16362         stat-size: comment fix
16363         * lib/stat-size.h: Remove obsolete comment about indenting.
16365 2012-05-06  Bruno Haible  <bruno@clisp.org>
16367         Tests for module 'sh-quote'.
16368         * modules/sh-quote-tests: New file.
16369         * tests/test-sh-quote.c: New file.
16371 2012-05-06  Bruno Haible  <bruno@clisp.org>
16373         sh-quote: Improve shell_quote_argv's signature.
16374         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
16375         * lib/sh-quote.c (shell_quote_argv): Likewise.
16377 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16379         stdint: document issues with int_fast8_t etc.
16380         * doc/posix-headers/stdint.texi (stdint.h): Say that other
16381         stdint.h substitutes may define these types differently.  See
16382         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
16384 2012-05-05  Bruno Haible  <bruno@clisp.org>
16386         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
16387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
16388         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
16389         or 'guessing no (mishandles large arguments)'.
16391 2012-05-05  Bruno Haible  <bruno@clisp.org>
16393         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
16394         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
16395         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
16396         set gl_cv_func_link_follows_symlink to "guessing no".
16398 2012-05-05  Bruno Haible  <bruno@clisp.org>
16400         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
16401         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
16402         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
16403         "guessing no".
16404         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
16406 2012-05-05  Bruno Haible  <bruno@clisp.org>
16408         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
16409         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
16410         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
16411         set gl_cv_struct_dirent_d_ino to "guessing yes".
16413 2012-05-05  Bruno Haible  <bruno@clisp.org>
16415         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
16416         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
16417         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
16418         "guessing yes".
16420 2012-05-05  Bruno Haible  <bruno@clisp.org>
16422         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
16423         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
16424         compiling to a glibc system, set gl_cv_func_signbit and
16425         gl_cv_func_signbit_gcc to "guessing yes".
16427 2012-05-05  Bruno Haible  <bruno@clisp.org>
16429         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
16430         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
16431         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
16432         to "guessing yes".
16433         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
16434         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
16436 2012-05-05  Bruno Haible  <bruno@clisp.org>
16438         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
16439         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
16440         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
16441         gl_cv_func_realpath_works to "guessing yes".
16443 2012-05-05  Bruno Haible  <bruno@clisp.org>
16445         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
16446         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
16447         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
16449 2012-05-04  Bruno Haible  <bruno@clisp.org>
16451         Tweak last commit.
16452         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
16453         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16455 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
16457         unistd_h: make it easier to avoid sys_types_h
16458         This is useful for Emacs, which has its own method of porting to
16459         Windows, and which therefore does not need the sys_types_h module.
16460         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
16461         code moved here from gl_SYS_TYPES_H.
16462         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
16463         using the code directly.
16464         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
16465         gl_SYS_TYPES_H.
16466         * modules/sys_types (Files):
16467         * modules/unistd (Files): Add m4/off_t.m4.
16469 2012-05-03  Bruno Haible  <bruno@clisp.org>
16471         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
16472         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
16473         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
16474         "guessing yes" or "guessing no".
16475         (gl_FUNC_LSTAT): Update.
16476         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
16477         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16478         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
16480 2012-05-03  Bruno Haible  <bruno@clisp.org>
16482         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
16483         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
16484         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
16485         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
16486         cross-compiling, choose the first alternative on glibc systems.
16487         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
16489 2012-05-03  Bruno Haible  <bruno@clisp.org>
16491         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
16492         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
16493         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
16495 2012-05-03  Bruno Haible  <bruno@clisp.org>
16497         chown: Avoid "guessing no" when cross-compiling to glibc systems.
16498         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
16500 2012-05-03  Bruno Haible  <bruno@clisp.org>
16502         Avoid "guessing no" guesses when cross-compiling to glibc systems.
16503         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
16504         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
16505         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
16506         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
16507         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
16508         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
16509         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
16510         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
16511         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
16512         compiling to glibc systems, set gl_cv_func_chown_slash_works,
16513         gl_cv_func_chown_ctime_works to "guessing yes".
16514         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
16515         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
16516         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
16517         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
16518         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
16519         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
16520         compiling to glibc systems, set gl_cv_func_open_directory_works to
16521         "guessing yes".
16522         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
16523         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
16524         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
16525         "guessing yes".
16526         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
16527         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
16528         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
16529         compiling to glibc systems, set gl_cv_func_floorf_ieee to
16530         "guessing yes".
16531         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
16532         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
16533         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
16534         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
16535         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
16536         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
16537         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
16538         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
16539         "guessing yes".
16540         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
16541         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
16542         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
16543         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
16544         "guessing yes".
16545         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
16546         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
16547         "guessing yes".
16548         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
16549         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
16550         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
16551         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
16552         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
16553         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
16554         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
16555         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
16556         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
16557         compiling to glibc systems, set gl_cv_func_log10f_ieee to
16558         "guessing yes".
16559         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
16560         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
16561         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
16562         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
16563         "guessing yes".
16564         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
16565         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
16566         "guessing yes".
16567         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
16568         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
16569         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
16570         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
16571         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
16572         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
16573         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
16574         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
16575         compiling to glibc systems, set gl_cv_func_mkfifo_works to
16576         "guessing yes".
16577         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
16578         compiling to glibc systems, set gl_cv_func_mknod_works to
16579         "guessing yes".
16580         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
16581         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
16582         "guessing yes".
16583         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
16584         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
16585         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
16586         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
16587         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
16588         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
16589         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
16590         compiling to glibc systems, set gl_cv_func_svid_putenv to
16591         "guessing yes".
16592         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
16593         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
16594         "guessing yes".
16595         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
16596         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
16597         "guessing yes".
16598         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
16599         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
16600         to "guessing yes".
16601         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
16602         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
16603         to "guessing yes".
16604         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
16605         compiling to glibc systems, set gl_cv_func_rmdir_works to
16606         "guessing yes".
16607         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
16608         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
16609         gl_cv_func_unlink_parent_fails to "guessing yes".
16610         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
16611         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
16612         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
16613         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
16614         gl_cv_func_rename_dest_works to "guessing yes".
16615         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
16616         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
16617         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
16618         compiling to glibc systems, set gl_cv_func_roundf_ieee to
16619         "guessing yes".
16620         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
16621         compiling to glibc systems, set gl_cv_func_roundl_ieee to
16622         "guessing yes".
16623         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
16624         compiling to glibc systems, set gl_cv_func_setenv_works to
16625         "guessing yes".
16626         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
16627         compiling to glibc systems, set gl_cv_func_unsetenv_works to
16628         "guessing yes".
16629         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
16630         compiling to glibc systems, set gl_cv_func_sleep_works to
16631         "guessing yes".
16632         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
16633         compiling to glibc systems, set gl_cv_func_stat_file_slash to
16634         "guessing yes".
16635         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
16636         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
16637         "guessing yes".
16638         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
16639         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
16640         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
16641         compiling to glibc systems, set gl_cv_func_truncf_ieee to
16642         "guessing yes".
16643         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
16644         compiling to glibc systems, set gl_cv_func_truncl_ieee to
16645         "guessing yes".
16646         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
16647         compiling to glibc systems, set gl_cv_func_usleep_works to
16648         "guessing yes".
16649         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
16650         compiling to glibc systems, set gl_cv_func_futimesat_works to
16651         "guessing yes".
16653 2012-05-03  Bruno Haible  <bruno@clisp.org>
16655         Say "guessing yes" or "guessing no" when cross-compiling.
16656         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
16657         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
16658         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
16659         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
16660         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
16661         am_cv_func_working_getline to "guessing yes" or "guessing no".
16662         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
16663         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
16664         (gl_FUNC_MEMMEM): When cross-compiling, set
16665         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
16666         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
16667         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
16668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
16669         set gl_cv_func_strcasestr_works_always to "guessing yes" or
16670         "guessing no".
16671         (gl_FUNC_STRCASESTR): When cross-compiling, set
16672         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
16673         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
16674         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
16675         (gl_FUNC_STRSTR): When cross-compiling, set
16676         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
16677         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
16678         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
16679         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
16680         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
16682 2012-05-01  Bruno Haible  <bruno@clisp.org>
16684         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
16685         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
16686         * build-aux/reloc-ldflags: Likewise.
16687         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
16689 2012-05-01  Bruno Haible  <bruno@clisp.org>
16691         gnulib-tool: Remove transitional code.
16692         * gnulib-tool: Don't warn about --import with 0 arguments any more.
16693         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
16695 2012-05-01  Bruno Haible  <bruno@clisp.org>
16697         getcwd: Fix misindentation.
16698         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
16700 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
16702         exclude: process exclude and include directives in order
16703         This restores the pre-2009 behavior, and is part of a fix of a
16704         grep bug reported by Quentin Arce in
16705         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
16706         * lib/exclude.c (struct exclude): Remove 'tail' member.
16707         (new_exclude_segment): Prepend the new segment instead of appending.
16708         Return void, since that's now more convenient.
16709         (file_pattern_matches): Renamed from excluded_file_pattern_p.
16710         (file_name_matches): Renamed from excluded_file_name_p.
16711         (file_pattern_matches, file_name_matches):
16712         Return true if the pattern matches, not if it excludes.
16713         All callers changed.
16714         (excluded_file_name): Process the list in reverse order;
16715         since the list is now reversed this restores the pre-2009 behavior.
16716         (add_exclude): Adjust to new reversed-order list.  Use local var
16717         rather than macro, for clarity.
16718         * tests/test-exclude7.sh: Adjust to corrected behavior.
16720         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
16721         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
16722         it's not possible here.  Handle the case of \ at end of pattern
16723         without dumping core.
16724         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
16726         _Noreturn: future-proof non-GNU and non-MSVC compilers
16727         * build-aux/snippet/_Noreturn.h (_Noreturn):
16728         * m4/gnulib-common.m4 (gl_COMMON_BODY):
16729         Do not define _Noreturn if __STDC_VERSION__ indicates this is
16730         C11 or later.  This is more likely to work with random future C
16731         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
16732         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
16734         exclude: handle wildcards with FNM_EXTMATCH
16735         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
16736         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
16737         comment that "has wildcards" really means "has or may have
16738         wildcards".  Simplify by avoiding the need to call strcspn.
16740 2012-04-29  Bruno Haible  <bruno@clisp.org>
16742         gnulib-tool: Fix list of authors.
16743         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
16745 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
16747         bootstrap: support Automake-NG in $buildreq
16748         * bootstrap (check_versions): Handle automake and aclocal from
16749         Automake-NG specially.  They can be specified as respectively
16750         the "automake-ng" and "aclocal-ng" requirements.
16752 2012-04-25  Eric Blake  <eblake@redhat.com>
16754         bootstrap: only force latest Makefile.in.in for gettext module
16755         * build-aux/bootstrap (with_gettext): Only install latest
16756         Makefile.in.in for projects requesting bleeding edge gettext.
16758 2012-04-22  Bruno Haible  <bruno@clisp.org>
16760         doc: Mention reason for replacement on glibc/Linux systems.
16761         * doc/posix-functions/dprintf.texi: Mention the problem with special
16762         'long double' values.
16763         * doc/posix-functions/fprintf.texi: Likewise.
16764         * doc/posix-functions/printf.texi: Likewise.
16765         * doc/posix-functions/snprintf.texi: Likewise.
16766         * doc/posix-functions/sprintf.texi: Likewise.
16767         * doc/posix-functions/vdprintf.texi: Likewise.
16768         * doc/posix-functions/vfprintf.texi: Likewise.
16769         * doc/posix-functions/vprintf.texi: Likewise.
16770         * doc/posix-functions/vsnprintf.texi: Likewise.
16771         * doc/posix-functions/vsprintf.texi: Likewise.
16772         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
16773         platforms with F_DUPFD_CLOEXEC problems.
16774         * doc/posix-functions/glob.texi: Mention which platforms are affected
16775         by the problem with symbolic links.
16776         * doc/posix-functions/linkat.texi: Mention the problem with
16777         AT_SYMLINK_FOLLOW on Linux.
16779 2012-04-22  Bruno Haible  <bruno@clisp.org>
16781         pwrite: Don't replace on all platforms.
16782         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
16784 2012-04-22  Bruno Haible  <bruno@clisp.org>
16786         rint* tests: Avoid gcc warnings.
16787         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
16788         * tests/test-rintf.c (INFINITY, NAN): Likewise.
16789         * tests/test-rintl.c (INFINITY, NAN): Likewise.
16791 2012-04-21  Bruno Haible  <bruno@clisp.org>
16793         users.txt: Update.
16794         * users.txt: Add freedink, wdiff. Update URLs for projects that have
16795         switched from CVS to git, bzr, or svn.
16797 2012-04-21  Bruno Haible  <bruno@clisp.org>
16799         Large File Support for native Windows platforms.
16801         * m4/largefile.m4 (gl_LARGEFILE): New macro.
16802         * modules/largefile (configure.ac): Require gl_LARGEFILE.
16804         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
16805         type.
16806         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
16807         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
16808         * doc/posix-headers/sys_types.texi: Mention the effect of the
16809         'largefile' module.
16811         * lib/fcntl.in.h: Add comments about off_t.
16812         * modules/fcntl-h (Depends-on): Add sys_types.
16814         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
16815         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
16816         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
16817         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
16818         * modules/unistd (Depends-on): Add sys_types.
16819         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
16821         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
16822         instead of lseek.
16823         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
16824         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
16825         * modules/lseek (Depends-on): Add sys_types.
16827         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
16828         msvc-nothrow.h.
16829         (SetFileSize): New function.
16830         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
16831         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
16832         if Large File Support is requested.
16833         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
16834         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
16836         * lib/stdio.in.h: Add comments about off_t.
16837         * modules/stdio (Depends-on): Add sys_types.
16839         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
16840         instead of ftello.
16841         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
16842         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
16843         (gl_PREREQ_FTELLO): New macro.
16844         * modules/ftello (Depends-on): Add sys_types.
16845         (configure.ac): Incoke gl_PREREQ_FTELLO.
16847         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
16848         instead of fseeko.
16849         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
16850         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
16851         (gl_PREREQ_FSEEKO): New macro.
16852         * modules/fseeko (Depends-on): Add sys_types.
16853         (configure.ac): Invoke gl_PREREQ_FSEEKO.
16855         * lib/sys_stat.in.h: Add comments about off_t.
16856         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
16857         64-bit integer for st_size in 'struct stat'.
16858         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
16859         Define _GL_WINDOWS_64_BIT_ST_SIZE.
16860         * modules/sys_stat (Depends-on): Add sys_types.
16861         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
16863         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
16864         instead of stat or _stat.
16866         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
16867         'struct _stati64' instead of fstat and 'struct stat'.
16868         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
16869         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
16871         Reported by Ray Satiro <raysatiro@yahoo.com>.
16873 2012-04-19  Eric Blake  <eblake@redhat.com>
16875         bootstrap: accommodate older libtool
16876         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
16877         Reported by Daniel P. Berrange.
16879 2012-04-19  Jim Meyering  <meyering@redhat.com>
16881         announce-gen: avoid failure due to lack of Digest::SHA1
16882         Even with the preferred Digest::SHA available, this script
16883         would fail when the backup module, Digest::SHA1, was not installed.
16884         * build-aux/announce-gen: Quote the conditional use of "use".
16885         Reported by Reuben Thomas in:
16886         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
16888         bootstrap: don't let a user's CDPATH setting affect this script
16889         When CDPATH is set, cd will sometimes generate output.
16890         When "cd" is run in a subshell whose output matters, that
16891         surprising-to-some output can cause malfunction.
16892         Unsetting CDPATH turns off this shell "feature."
16893         * build-aux/bootstrap (CDPATH): Unset.
16894         Reported by Reuben Thomas in:
16895         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
16896         and inspired by his patch here:
16897         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
16899 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
16900         and Jim Meyering  <meyering@redhat.com>
16902         maint.mk: catch "see @xref{}" and similar
16903         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
16904         prohibit "See also @xref{", "Also see @pxref{", and similar.
16906 2012-04-16  Jim Meyering  <meyering@redhat.com>
16908         bootstrap: really use gnulib's po/Makefile.in.in
16909         * build-aux/bootstrap: Correct the source file name in previous change.
16910         Reported by Akim Demaille.
16912         configmake: correct minor inconsistency in Makefile rule
16913         * modules/configmake (Makefile.am): All other rules like this one
16914         run the final "mv -f ..." in the same backslash-continued command
16915         as the one that does everything else.  This one put the mv -f ...
16916         command on a separate, non-backslash-continued line.
16917         Make it like the others.
16919         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
16920         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
16921         the one from gettext.  Reported by Akim Demaille.
16923 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
16925         Fix recursion of install-* into po directories.
16926         Bison's install-pdf bug reported by Hans Aberg at
16927         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
16928         * build-aux/po/Makefile.in.in (install-dvi, install-html)
16929         (install-info, install-pdf, install-ps): New targets.
16931 2012-04-16  Jim Meyering  <meyering@redhat.com>
16933         maint: avoid spurious "make sc_maint" failure
16934         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
16935         exempt all *.class file names, for lib/javaversion.class.
16937 2012-04-15  Bruno Haible  <bruno@clisp.org>
16939         lseek: Make configure test independent of environment.
16940         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
16941         Windows, we know that lseek() on pipes is broken; skip the runtime
16942         test.
16944 2012-04-14  Bruno Haible  <bruno@clisp.org>
16946         stat: Bypass buggy override in mingw64.
16947         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
16948         * lib/stat.c (stat) [mingw64]: Define to _stat.
16949         * doc/posix-functions/stat.texi: Mention mingw64 bug.
16951 2012-04-14  Bruno Haible  <bruno@clisp.org>
16953         pathmax: Fix compilation error on MSVC 9.
16954         * modules/pathmax (Depends-on): Add unistd.
16956 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
16958         README: document pointer comparison assumption
16959         * README (Portability guidelines): Document assumption about
16960         pointer comparisons, in response to a recent bug-gnulib comment by
16961         Jeffrey Kegler.
16963 2012-04-12  Bruno Haible  <bruno@clisp.org>
16965         Tests for module 'getrusage'.
16966         * modules/getrusage-tests: New file.
16967         * tests/test-getrusage.c: New file.
16969         New module 'getrusage'.
16970         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
16971         warn-on-use.h.
16972         (getrusage): New declaration.
16973         * lib/getrusage.c: New file.
16974         * m4/getrusage.m4: New file.
16975         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
16976         is declared.
16977         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
16978         HAVE_GETRUSAGE.
16979         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
16980         snippet/c++defs, snippet/warn-on-use.
16981         (Makefile.am): Update generation of sys/resource.h. Substitute
16982         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
16983         * modules/getrusage: New file.
16984         * doc/posix-functions/getrusage.texi: Mention the new module.
16986 2012-04-12  Bruno Haible  <bruno@clisp.org>
16988         Tests for module 'sys_resource'.
16989         * modules/sys_resource-tests: New file.
16990         * tests/test-sys_resource.c: New file.
16992         New module 'sys_resource'.
16993         * lib/sys_resource.in.h: New file.
16994         * m4/sys_resource_h.m4: New file.
16995         * modules/sys_resource: New file.
16996         * doc/posix-headers/sys_resource.texi: Mention the new module.
16998 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
17000         ioctl: Fix compilation error on mingw.
17001         * lib/ioctl.c: Include <windows.h>.
17002         Also reported by Ray Satiro <raysatiro@yahoo.com>.
17004 2012-04-04  Jim Meyering  <meyering@redhat.com>
17006         regex: correct #pragma guard expression
17007         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
17008         not 4.3.  Correct its cpp guard expression.
17010 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
17012         regex: remove unnecessary type punning
17013         Problem reported by Vladimir Serbinenko in
17014         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
17015         * lib/regex.h (struct re_pattern_buffer): Change the type of
17016         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
17017         Fix comment to match code.
17018         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
17019         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
17020         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
17021         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
17022         (set_regs):
17023         Omit no-longer-necessary casts.
17025 2012-04-03  Bruno Haible  <bruno@clisp.org>
17027         Tests for module 'ilogbl'.
17028         * modules/ilogbl-tests: New file.
17029         * tests/test-ilogbl.c: New file.
17031         New module 'ilogbl'.
17032         * lib/math.in.h (ilogbl): New declaration.
17033         * lib/ilogbl.c: New file.
17034         * m4/ilogbl.m4: New file.
17035         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
17036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
17037         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
17038         Split sed invocation, to avoid the limit of 100 substitutions of
17039         HP-UX 'sed'.
17040         * modules/ilogbl: New file.
17041         * tests/test-math-c++.cc: Check the declaration of ilogbl.
17042         * doc/posix-functions/ilogbl.texi: Mention the new module.
17044 2012-04-03  Bruno Haible  <bruno@clisp.org>
17046         Tests for module 'ilogbf'.
17047         * modules/ilogbf-tests: New file.
17048         * tests/test-ilogbf.c: New file.
17050         New module 'ilogbf'.
17051         * lib/math.in.h (ilogbf): New declaration.
17052         * lib/ilogbf.c: New file.
17053         * m4/ilogbf.m4: New file.
17054         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
17055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
17056         REPLACE_ILOGBF.
17057         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
17058         REPLACE_ILOGBF.
17059         * modules/ilogbf: New file.
17060         * tests/test-math-c++.cc: Check the declaration of ilogbf.
17061         * doc/posix-functions/ilogbf.texi: Mention the new module.
17063 2012-04-03  Bruno Haible  <bruno@clisp.org>
17065         Tests for module 'ilogb'.
17066         * modules/ilogb-tests: New file.
17067         * tests/test-ilogb.c: New file.
17068         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
17069         tests/test-logb-ieee.h.
17071         New module 'ilogb'.
17072         * lib/math.in.h (ilogb): New declaration.
17073         * lib/ilogb.c: New file.
17074         * m4/ilogb.m4: New file.
17075         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
17076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
17077         REPLACE_ILOGB.
17078         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
17079         REPLACE_ILOGB.
17080         * modules/ilogb: New file.
17081         * tests/test-math-c++.cc: Check the declaration of ilogb.
17082         * doc/posix-functions/ilogb.texi: Mention the new module.
17084 2012-04-03  Bruno Haible  <bruno@clisp.org>
17086         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
17087         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
17088         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
17089         (main): Check their values.
17090         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
17091         problem.
17093 2012-04-03  Bruno Haible  <bruno@clisp.org>
17095         Tests for module 'logbl-ieee'.
17096         * modules/logbl-ieee-tests: New file.
17097         * tests/test-logbl-ieee.c: New file.
17099         New module 'logbl-ieee'.
17100         * modules/logbl-ieee: New file.
17102         Tests for module 'logb-ieee'.
17103         * modules/logb-ieee-tests: New file.
17104         * tests/test-logb-ieee.c: New file.
17106         New module 'logb-ieee'.
17107         * modules/logb-ieee: New file.
17109         Tests for module 'logbf-ieee'.
17110         * modules/logbf-ieee-tests: New file.
17111         * tests/test-logbf-ieee.c: New file.
17112         * tests/test-logb-ieee.h: New file.
17114         New module 'logbf-ieee'.
17115         * modules/logbf-ieee: New file.
17117 2012-04-03  Bruno Haible  <bruno@clisp.org>
17119         Tests for module 'logbl'.
17120         * modules/logbl-tests: New file.
17121         * tests/test-logbl.c: New file.
17123         New module 'logbl'.
17124         * lib/math.in.h (logbl): New declaration.
17125         * lib/logbl.c: New file.
17126         * m4/logbl.m4: New file.
17127         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
17128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
17129         REPLACE_LOGBL.
17130         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
17131         REPLACE_LOGBL.
17132         * modules/logbl: New file.
17133         * tests/test-math-c++.cc: Check the declaration of logbl.
17134         * doc/posix-functions/logbl.texi: Mention the new module.
17136 2012-04-02  Bruno Haible  <bruno@clisp.org>
17138         Tests for module 'logbf'.
17139         * modules/logbf-tests: New file.
17140         * tests/test-logbf.c: New file.
17142         New module 'logbf'.
17143         * lib/math.in.h (logbf): New declaration.
17144         * lib/logbf.c: New file.
17145         * m4/logbf.m4: New file.
17146         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
17147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
17148         REPLACE_LOGBF.
17149         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
17150         REPLACE_LOGBF.
17151         * modules/logbf: New file.
17152         * tests/test-math-c++.cc: Check the declaration of logbf.
17153         * doc/posix-functions/logbf.texi: Mention the new module.
17155 2012-04-02  Bruno Haible  <bruno@clisp.org>
17157         logb tests: More tests.
17158         * tests/test-logb.h: New file, based on tests/test-logb.c and
17159         tests/test-frexp.h.
17160         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
17161         (main): Just invoke test_function.
17162         * modules/logb-tests (Files): Add tests/test-logb.h,
17163         tests/minus-zero.h, tests/randomd.c.
17164         (Makefile.am): Add randomd.c to test_logb_SOURCES.
17166         logb: Provide replacement and workarounds.
17167         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
17168         is 1.
17169         * lib/logb.c: New file.
17170         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
17171         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
17172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
17173         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
17174         * modules/logb (Files): Add lib/logb.c.
17175         (Depends-on): Add isfinite, frexp, isnand.
17176         (configure.ac): Compile the replacement code logb.c if needed.
17177         * tests/test-math-c++.cc: Check the declaration of logb.
17178         * doc/posix-functions/logb.texi: Mention the replacement and the bug
17179         with subnormal numbers.
17181 2012-04-02  Bruno Haible  <bruno@clisp.org>
17183         log10* tests: Speed up.
17184         * tests/test-log10.h (test_function): Reduce amount of random numbers
17185         to test.
17187 2012-04-01  Bruno Haible  <bruno@clisp.org>
17189         logf-ieee: Fix test whether logf works.
17190         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
17192 2012-04-01  Bruno Haible  <bruno@clisp.org>
17194         log10l: Work around log10l-ieee test failure on IRIX 6.5.
17195         * lib/log10l.c: Include <float.h>
17196         (log10l): On IRIX, normalize the +Infinity value.
17197         * modules/log10l (Depends-on): Add 'float'.
17198         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
17199         +Infinity.
17201         log10f-ieee: Work around test failure on NetBSD 5.1.
17202         * m4/log10f-ieee.m4: New file.
17203         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
17204         test whether log10f works with a negative argument. Replace it if not.
17205         * lib/log10f.c (log10f): For negative arguments, return NaN.
17206         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
17207         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
17208         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
17210         log10f-ieee: Work around test failure on Solaris 9.
17211         * modules/log10f-ieee (Depends-on): Add log10-ieee.
17212         (configure.ac): Require gl_FUNC_LOG10F.
17214         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
17215         * m4/log10-ieee.m4: New file.
17216         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
17217         whether log10 works with a negative argument. Replace it if not.
17218         * lib/log10.c (log10): For negative arguments, return NaN.
17219         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
17220         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
17221         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
17223         Tests for module 'log10l-ieee'.
17224         * modules/log10l-ieee-tests: New file.
17225         * tests/test-log10l-ieee.c: New file.
17227         New module 'log10l-ieee'.
17228         * modules/log10l-ieee: New file.
17230         Tests for module 'log10-ieee'.
17231         * modules/log10-ieee-tests: New file.
17232         * tests/test-log10-ieee.c: New file.
17234         New module 'log10-ieee'.
17235         * modules/log10-ieee: New file.
17237         Tests for module 'log10f-ieee'.
17238         * modules/log10f-ieee-tests: New file.
17239         * tests/test-log10f-ieee.c: New file.
17240         * tests/test-log10-ieee.h: New file.
17242         New module 'log10f-ieee'.
17243         * modules/log10f-ieee: New file.
17245 2012-04-01  Bruno Haible  <bruno@clisp.org>
17247         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
17248         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
17249         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
17250         workaround.
17251         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
17252         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
17253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
17254         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
17255         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
17256         (Depends-on): Update conditions.
17257         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
17258         IRIX 6.5, OSF/1 5.1 problems.
17260 2012-04-01  Bruno Haible  <bruno@clisp.org>
17262         log10f: Work around OSF/1 5.1 bug.
17263         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
17264         * lib/log10f.c (log10f): If logf exists, use it and provide just the
17265         workaround.
17266         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
17267         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
17268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
17269         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
17270         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
17271         (Depends-on): Update conditions.
17272         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
17274 2012-04-01  Bruno Haible  <bruno@clisp.org>
17276         log10: Work around OSF/1 5.1 bug.
17277         * lib/math.in.h (log10): New declaration.
17278         * lib/log10.c: New file.
17279         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
17280         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
17281         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
17282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
17283         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
17284         * modules/log10 (Files): Add lib/log10.c.
17285         (Depends-on): Add math.
17286         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
17287         * tests/test-math-c++.cc: Check the declaration of log10.
17288         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
17290 2012-03-31  Bruno Haible  <bruno@clisp.org>
17292         log10l tests: More tests.
17293         * modules/log10l-tests (Files): Add tests/test-log10l.h,
17294         tests/minus-zero.h, tests/randoml.c.
17295         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
17296         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
17297         (main): Invoke test_function.
17299         log10f tests: More tests.
17300         * modules/log10f-tests (Files): Add tests/test-log10.h,
17301         tests/minus-zero.h, tests/randomf.c.
17302         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
17303         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
17304         (main): Invoke test_function.
17306         log10 tests: More tests.
17307         * tests/test-log10.h: New file.
17308         * modules/log10-tests (Files): Add tests/test-log10.h,
17309         tests/minus-zero.h, tests/randomd.c.
17310         (Makefile.am): Add randomd.c to test_log10_SOURCES.
17311         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
17312         (main): Invoke test_function.
17314 2012-03-31  Simon Josefsson  <simon@josefsson.org>
17316         fflush: Fix syntax error.
17317         * lib/fflush.c: Include unused-parameter.h, needed for
17318         _GL_UNUSED_PARAMETER.
17319         * modules/fflush (Depends-on): Add snippet/unused-parameter.
17321 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
17323         regex: pacify GCC when compiling GRUB
17324         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
17325         a diagnostic.  Reported by Vladimir Serbinenko in
17326         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
17328 2012-03-29  Eric Blake  <eblake@redhat.com>
17330         stdio: don't assume gets any more
17331         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
17332         support.
17333         * modules/stdio (Makefile.am): Likewise.
17334         * lib/stdio-read.c (gets): Likewise.
17335         * tests/test-stdio-c++.cc: Likewise.
17336         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
17337         * lib/stdio.in.h (gets): Make warning occur in more places.
17338         * doc/posix-functions/gets.texi (gets): Update documentation.
17339         Reported by Christer Solskogen.
17341         maint.mk: fix syntax checks without exclusions
17342         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
17343         Reported by Daniel P. Berrange.
17345         strerror_r: avoid compiler warning
17346         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
17347         level.
17349         fflush: avoid compiler warning
17350         * lib/fflush.c (update_fpos_cache): Mark variables that are
17351         potentially unused.
17353 2012-03-25  Bruno Haible  <bruno@clisp.org>
17355         Tests for module 'localeconv'.
17356         * modules/localeconv-tests: New file.
17357         * tests/test-localeconv.c: New file.
17359         New module 'localeconv'.
17360         * lib/locale.in.h (localeconv): New declaration.
17361         * lib/localeconv.c: New file.
17362         * m4/localeconv.m4: New file.
17363         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
17364         REPLACE_LOCALECONV.
17365         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
17366         REPLACE_LOCALECONV.
17367         * modules/localeconv: New file.
17368         * modules/nl_langinfo (Depends-on): Add localeconv.
17369         * modules/human (Depends-on): Likewise.
17370         * doc/posix-functions/localeconv.texi: Mention the new module.
17372 2012-03-25  Bruno Haible  <bruno@clisp.org>
17374         locale: Provide a complete 'struct lconv'.
17375         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
17376         'struct lconv' does not contain int_p_cs_precedes.
17377         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
17378         * doc/posix-headers/locale.texi: Update.
17380         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
17381         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
17382         * doc/posix-headers/locale.texi: Update.
17384         locale: Provide a working 'struct lconv'.
17385         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
17386         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
17387         'struct lconv' does not even contain decimal_point.
17388         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
17389         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
17390         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
17391         * doc/posix-headers/locale.texi: Mention the problems with
17392         'struct lconv'.
17393         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17395 2012-03-24  Bruno Haible  <bruno@clisp.org>
17397         Enable common subexpression optimization in GCC.
17398         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
17399         macros.
17400         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
17401         GCC attribute 'const'.
17402         (uc_locale_language): Declare with GCC attribute 'pure'.
17403         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
17404         with GCC attribute 'const'.
17405         * lib/unictype.in.h (uc_is_general_category_withtable,
17406         uc_combining_class, uc_combining_class_name,
17407         uc_combining_class_long_name, uc_bidi_class_name,
17408         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
17409         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
17410         uc_decimal_value, uc_digit_value, uc_numeric_value,
17411         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
17412         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
17413         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
17414         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
17415         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
17416         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
17417         Declare with GCC attribute 'const'.
17418         (uc_general_category_name, uc_general_category_long_name,
17419         uc_general_category_byname, uc_general_category,
17420         uc_is_general_category, uc_combining_class_byname,
17421         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
17422         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
17423         Declare with GCC attribute 'pure'.
17424         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
17425         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
17426         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
17427         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
17428         with GCC attribute 'pure'.
17429         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
17430         'const'.
17431         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
17432         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
17433         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
17434         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
17435         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
17436         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
17437         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
17438         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
17439         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
17440         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
17441         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
17442         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
17443         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
17444         GCC attribute 'pure'.
17445         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
17446         'const'.
17447         * lib/uniwidth.in.h (uc_width): Simplify declaration.
17448         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
17449         u32_strwidth): Declare with GCC attribute 'pure'.
17451         Enable common subexpression optimization in GCC.
17452         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
17453         (alphasort): Declare with GCC attribute 'pure'.
17454         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
17455         (atoll): Declare with GCC attribute 'pure'.
17456         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
17457         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
17458         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
17459         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
17460         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
17461         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
17462         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
17464 2012-03-24  Bruno Haible  <bruno@clisp.org>
17466         gnulib-tool: Avoid unintended error output from 'cmp'.
17467         * gnulib-tool (func_add_file, func_update_file, func_import): Use
17468         "cmp -s", not "cmp > /dev/null".
17470 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
17472         gnulib-tool: fix imprecise comments w.r.t. an automake bug
17474         It's not just Automake versions < 1.9b that creates an empty
17475         pkgdatadir at installation time if pkgdata_DATA is specified
17476         to empty; modern automake versions do this as well, at least
17477         until automake 1.11.4 (not yet released at the moment of writing,
17478         but soon to appear).  That behaviour was generally considered a
17479         feature rather than a bug, at least until this discussion:
17480         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
17482         See also automake bugs #10997 and #11030.
17484         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
17485         reference to relevant automake bug numbers.
17486         (func_emit_tests_Makefile_am): Likewise.
17488 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
17490         announce-gen: use Digest::SHA when possible
17491         * build-aux/announce-gen: Use Digest::SHA when possible, falling
17492         back to Digest::SHA1 if necessary.
17494 2012-03-20  Jim Meyering  <meyering@redhat.com>
17496         tests: avoid gcc warnings about argv vs. const initializers
17497         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
17498         warnings about discarding 'const' qualifier from pointer target type.
17499         * tests/test-posix_spawn2.c (main): Likewise.
17501 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
17503         README-release: simplify slightly
17504         * top/README-release: Run "git checkout master" only once.
17506 2012-03-15  Mark Wielaard  <mark@klomp.org>
17508         git-merge-changelog: add specific example on how to use with hg.
17509         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
17511 2012-03-18  Mark Wielaard  <mark@klomp.org>
17513         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
17515 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
17517         git-version-gen: don't let "prefix" envvar cause trouble
17518         * build-aux/git-version-gen (prefix): Initialize properly,
17519         so as not to use a value specified via the environment.
17520         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
17522 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
17524         regex: diagnose too-large repeat counts in EREs
17525         Previously, the code did not diagnose the too-large repeat count
17526         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
17527         as if it were 'b\{1000000000}', which is unexpected.
17528         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
17529         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
17530         is a reasonable one for this problem.  Another option would be to
17531         create a new REG_OVERFLOW error for repeat counts that are too large.
17532         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
17533         count is too large, so that the caller can distinguish the two cases.
17534         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
17535         "Too large" return code, and that repeat counts are one example of this.
17537 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
17539         doc: some glibc x32 integer width issues
17540         * doc/posix-headers/sys_types.texi (sys/types.h):
17541         * doc/posix-headers/time.texi (time.h):
17542         Mention that glibc x32 does not conform to POSIX in a couple of
17543         areas related to integer widths.
17545 2012-03-15  Bruno Haible  <bruno@clisp.org>
17547         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
17548         * lib/fma.c (VOLATILE): New macro.
17549         (FUNC): Use it to work around a GCC compiler bug.
17551 2012-03-13  Bruno Haible  <bruno@clisp.org>
17553         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
17554         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
17555         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
17556         REPLACE_HYPOTL to 1.
17557         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
17559 2012-03-13  Bruno Haible  <bruno@clisp.org>
17561         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
17562         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
17563         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
17564         REPLACE_REMAINDERL to 1.
17565         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
17566         bug.
17568 2012-03-13  Bruno Haible  <bruno@clisp.org>
17570         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
17571         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
17572         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
17573         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
17574         too big rounding errors.
17575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
17576         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
17577         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
17578         (Depends-on): Update conditions.
17579         * tests/test-sqrtl.c (my_ldexpl): New function.
17580         (main): Add test of a particular value.
17581         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
17583 2012-03-13  Pádraig Brady  <P@draigBrady.com>
17585         doc: Update timer_* platform portability notes.
17586         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
17587         that always return ENOSYS.
17588         * doc/posix-functions/timer_delete.texi: Likewise.
17589         * doc/posix-functions/timer_gettime.texi: Likewise.
17590         * doc/posix-functions/timer_settime.texi: Likewise.
17592 2012-03-13  Bruno Haible  <bruno@clisp.org>
17594         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
17595         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
17596         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
17597         REPLACE_CBRTL to 1.
17598         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
17600 2012-03-13  Bruno Haible  <bruno@clisp.org>
17602         remainderl: Avoid compilation error on AIX >= 5.2.
17603         * lib/math.in.h (remainderl): Undefine macro from the system header.
17605 2012-03-13  Bruno Haible  <bruno@clisp.org>
17607         Avoid compilation errors with MSVC option -fp:strict.
17608         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
17609         * lib/cbrtf.c: Likewise.
17610         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
17612 2012-03-12  Bruno Haible  <bruno@clisp.org>
17614         uninorm: Don't crash in out-of-memory conditions.
17615         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
17616         gracefully.
17617         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
17618         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
17620 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
17622         quote: fix syntax-check
17623         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
17624         also exports quote_quoting_options.
17626 2012-03-12  Simon Josefsson  <simon@josefsson.org>
17628         Collapse list of copyright years to ranges.  See
17629         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
17630         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
17631         build-aux/csharpexec.sh.in, build-aux/gnupload,
17632         build-aux/install-reloc, build-aux/javacomp.sh.in,
17633         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
17634         build-aux/move-if-change, build-aux/reloc-ldflags,
17635         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
17637 2012-03-11  Bruno Haible  <bruno@clisp.org>
17639         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
17640         * m4/log2f-ieee.m4: New file.
17641         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
17642         whether log2f works with a minus zero argument. Replace it if not.
17643         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
17644         (Depends-on): Add log2-ieee.
17645         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
17646         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
17648         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
17649         * m4/log2-ieee.m4: New file.
17650         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
17651         whether log2 works with a minus zero argument. Replace it if not.
17652         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
17653         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
17654         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
17656         Tests for module 'log2l-ieee'.
17657         * modules/log2l-ieee-tests: New file.
17658         * tests/test-log2l-ieee.c: New file.
17660         New module 'log2l-ieee'.
17661         * modules/log2l-ieee: New file.
17663         Tests for module 'log2-ieee'.
17664         * modules/log2-ieee-tests: New file.
17665         * tests/test-log2-ieee.c: New file.
17667         New module 'log2-ieee'.
17668         * modules/log2-ieee: New file.
17670         Tests for module 'log2f-ieee'.
17671         * modules/log2f-ieee-tests: New file.
17672         * tests/test-log2f-ieee.c: New file.
17673         * tests/test-log2-ieee.h: New file.
17675         New module 'log2f-ieee'.
17676         * modules/log2f-ieee: New file.
17678 2012-03-11  Bruno Haible  <bruno@clisp.org>
17680         Tests for module 'log2l'.
17681         * modules/log2l-tests: New file.
17682         * tests/test-log2l.c: New file.
17684         New module 'log2l'.
17685         * lib/math.in.h (log2l): New declaration.
17686         * lib/log2l.c: New file.
17687         * m4/log2l.m4: New file.
17688         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
17689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
17690         REPLACE_LOG2L.
17691         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
17692         REPLACE_LOG2L.
17693         * modules/log2l: New file.
17694         * tests/test-math-c++.cc: Check the declaration of log2l.
17695         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
17696         and OSF/1 problems.
17698 2012-03-11  Bruno Haible  <bruno@clisp.org>
17700         Tests for module 'log2f'.
17701         * modules/log2f-tests: New file.
17702         * tests/test-log2f.c: New file.
17704         New module 'log2f'.
17705         * lib/math.in.h (log2f): New declaration.
17706         * lib/log2f.c: New file.
17707         * m4/log2f.m4: New file.
17708         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
17709         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
17710         REPLACE_LOG2F.
17711         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
17712         REPLACE_LOG2F.
17713         * modules/log2f: New file.
17714         * tests/test-math-c++.cc: Check the declaration of log2f.
17715         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
17716         and OSF/1 and Cygwin problems.
17718 2012-03-11  Bruno Haible  <bruno@clisp.org>
17720         Tests for module 'log2'.
17721         * modules/log2-tests: New file.
17722         * tests/test-log2.c: New file.
17723         * tests/test-log2.h: New file.
17725         New module 'log2'.
17726         * lib/math.in.h (log2): New declaration.
17727         * lib/log2.c: New file.
17728         * m4/log2.m4: New file.
17729         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
17730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
17731         REPLACE_LOG2.
17732         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
17733         REPLACE_LOG2.
17734         * modules/log2: New file.
17735         * tests/test-math-c++.cc: Check the declaration of log2.
17736         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
17737         and OSF/1 and Cygwin problems.
17739 2012-03-11  Bruno Haible  <bruno@clisp.org>
17741         exp2* tests: More tests.
17742         * tests/test-exp2.h (test_function): Test all integral arguments that
17743         don't need to overflow or denormalized numbers.
17744         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
17745         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
17746         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
17748 2012-03-10  Bruno Haible  <bruno@clisp.org>
17750         log1pl-ieee: Work around test failure on AIX 7.1.
17751         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
17753         log1pl-ieee: Work around test failure on IRIX 6.5.
17754         * m4/log1pl-ieee.m4: New file.
17755         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
17756         test whether log1pl works with a minus zero argument. Replace it if
17757         not.
17758         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
17759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
17760         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
17761         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
17762         (Depends-on): Update conditions.
17763         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
17764         m4/signbit.m4.
17765         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
17766         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
17768         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
17769         * m4/log1pf-ieee.m4: New file.
17770         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
17771         test whether log1pf works with a minus zero argument. Replace it if
17772         not.
17773         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
17774         m4/signbit.m4.
17775         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
17776         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
17778         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
17779         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
17780         (configure.ac): Require gl_FUNC_LOG1PF.
17782         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
17783         * m4/log1p-ieee.m4: New file.
17784         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
17785         whether log1p works with a minus zero argument. Replace it if not.
17786         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
17787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
17788         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
17789         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
17790         (Depends-on): Update conditions.
17791         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
17792         m4/signbit.m4.
17793         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
17794         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
17796         Tests for module 'log1pl-ieee'.
17797         * modules/log1pl-ieee-tests: New file.
17798         * tests/test-log1pl-ieee.c: New file.
17800         New module 'log1pl-ieee'.
17801         * modules/log1pl-ieee: New file.
17803         Tests for module 'log1p-ieee'.
17804         * modules/log1p-ieee-tests: New file.
17805         * tests/test-log1p-ieee.c: New file.
17807         New module 'log1p-ieee'.
17808         * modules/log1p-ieee: New file.
17810         Tests for module 'log1pf-ieee'.
17811         * modules/log1pf-ieee-tests: New file.
17812         * tests/test-log1pf-ieee.c: New file.
17813         * tests/test-log1p-ieee.h: New file.
17815         New module 'log1pf-ieee'.
17816         * modules/log1pf-ieee: New file.
17818 2012-03-10  Bruno Haible  <bruno@clisp.org>
17820         Tests for module 'log1pl'.
17821         * modules/log1pl-tests: New file.
17822         * tests/test-log1pl.c: New file.
17824         New module 'log1pl'.
17825         * lib/math.in.h (log1pl): New declaration.
17826         * lib/log1pl.c: New file.
17827         * m4/log1pl.m4: New file.
17828         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
17829         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
17830         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
17831         * modules/log1pl: New file.
17832         * tests/test-math-c++.cc: Check the declaration of log1pl.
17833         * doc/posix-functions/log1pl.texi: Mention the new module.
17835 2012-03-10  Bruno Haible  <bruno@clisp.org>
17837         Tests for module 'log1pf'.
17838         * modules/log1pf-tests: New file.
17839         * tests/test-log1pf.c: New file.
17841         New module 'log1pf'.
17842         * lib/math.in.h (log1pf): New declaration.
17843         * lib/log1pf.c: New file.
17844         * m4/log1pf.m4: New file.
17845         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
17846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
17847         REPLACE_LOG1PF.
17848         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
17849         REPLACE_LOG1PF.
17850         * modules/log1pf: New file.
17851         * tests/test-math-c++.cc: Check the declaration of log1pf.
17852         * doc/posix-functions/log1pf.texi: Mention the new module.
17854 2012-03-10  Bruno Haible  <bruno@clisp.org>
17856         log1p tests: More tests.
17857         * tests/test-log1p.h: New file.
17858         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
17859         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
17860         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
17861         (main): Invoke test_function.
17863         log1p: Provide replacement for Minix and MSVC.
17864         * lib/math.in.h (log1p): New declaration.
17865         * lib/log1p.c: New file.
17866         * m4/log1p.m4: New file.
17867         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
17868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
17869         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
17870         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
17871         (Depends-on): Add math, isnand, log, round.
17872         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
17873         HAVE_LOG1P is 0.
17874         * tests/test-math-c++.cc: Check the declaration of log1p.
17875         * doc/posix-functions/log1p.texi: Mention the replacement.
17877 2012-03-10  Bruno Haible  <bruno@clisp.org>
17879         math tests: Small simplification.
17880         * tests/test-exp.h (test_function): Use the same err_bound for
17881         'double' on platforms with sizeof (long double) == sizeof (double)
17882         than on platforms with sizeof (long double) > sizeof (double).
17883         * tests/test-exp2.h (test_function): Likewise.
17884         * tests/test-expm1.h (test_function): Likewise.
17885         * tests/test-log.h (test_function): Likewise.
17887 2012-03-10  Bruno Haible  <bruno@clisp.org>
17889         Fix some comments.
17890         * lib/expl.c: Fix an ambiguous comment.
17891         * lib/expm1.c: Likewise.
17892         * lib/expm1l.c: Likewise.
17893         * lib/exp2.c: Likewise.
17894         * lib/exp2l.c: Likewise.
17896 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
17898         regex: allow inclusion of <regex.h> before <limits.h>
17899         Without this patch, portable programs had to include <limits.h> before
17900         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
17901         I ran into this problem with a test version of GNU grep on Solaris 8.
17902         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
17903         This is done conditionally so that this change can be merged
17904         back to glibc.
17905         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
17906         using the included regex.
17908         fts: depend on fdopendir
17909         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
17910         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
17911         problem was introduced when fdopendir was split out.
17913 2012-03-10  Bruno Haible  <bruno@clisp.org>
17915         Remove unused variables.
17916         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
17917         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
17919 2012-03-10  Bruno Haible  <bruno@clisp.org>
17921         isnanf-nolibm: Fix last commit.
17922         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
17924         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
17925         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
17927 2012-03-10  Bruno Haible  <bruno@clisp.org>
17929         logf-ieee: Work around test failure on NetBSD 5.1.
17930         * m4/logf-ieee.m4: New file.
17931         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
17932         whether logf works with a negative argument. Replace it if not.
17933         * lib/logf.c (logf): For negative arguments, return NaN.
17934         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
17935         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
17936         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
17938         logf-ieee: Work around test failure on Solaris 9.
17939         * modules/logf-ieee (Depends-on): Add log-ieee.
17940         (configure.ac): Require gl_FUNC_LOGF.
17942         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
17943         * m4/log-ieee.m4: New file.
17944         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
17945         log works with a negative argument. Replace it if not.
17946         * lib/log.c (log): For negative arguments, return NaN.
17947         * modules/log-ieee (Files): Add m4/log-ieee.m4.
17948         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
17949         * doc/posix-functions/log.texi: Mention the log-ieee module.
17951         Tests for module 'logl-ieee'.
17952         * modules/logl-ieee-tests: New file.
17953         * tests/test-logl-ieee.c: New file.
17955         New module 'logl-ieee'.
17956         * modules/logl-ieee: New file.
17958         Tests for module 'log-ieee'.
17959         * modules/log-ieee-tests: New file.
17960         * tests/test-log-ieee.c: New file.
17962         New module 'log-ieee'.
17963         * modules/log-ieee: New file.
17965         Tests for module 'logf-ieee'.
17966         * modules/logf-ieee-tests: New file.
17967         * tests/test-logf-ieee.c: New file.
17968         * tests/test-log-ieee.h: New file.
17970         New module 'logf-ieee'.
17971         * modules/logf-ieee: New file.
17973 2012-03-10  Bruno Haible  <bruno@clisp.org>
17975         log: Fix bug introduced on 2012-03-09.
17976         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
17978 2012-03-10  Pádraig Brady  <P@draigBrady.com>
17980         timer-time: link explicitly with pthreads on glibc
17981         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
17982         to support static linking, when newer glibc is
17983         detected, as that contains pthread emulation of
17984         POSIX timer functions where required.
17985         * modules/timer-time: Depend on threadlib to
17986         pull in the appropriate library to link.
17988 2012-03-10  Bruno Haible  <bruno@clisp.org>
17990         log* tests: More tests.
17991         * tests/test-log.h: New file.
17992         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
17993         (main): Invoke test_function.
17994         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
17995         (main): Invoke test_function.
17996         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
17997         (main): Invoke test_function.
17998         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
17999         tests/randomd.c.
18000         (Makefile.am): Add randomd.c to test_log_SOURCES.
18001         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
18002         tests/randomf.c.
18003         (Makefile.am): Add randomf.c to test_logf_SOURCES.
18004         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
18005         tests/randoml.c.
18006         (Depends-on): Add 'float'.
18007         (Makefile.am): Add randoml.c to test_logl_SOURCES.
18009 2012-03-09  Bruno Haible  <bruno@clisp.org>
18011         logl: Work around OSF/1 5.1 bug.
18012         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
18013         * lib/logl.c (logl): If logl exists, use it and provide just the
18014         workaround.
18015         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
18016         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
18017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
18018         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
18019         * modules/logl (configure.ac): Consider REPLACE_LOGL.
18020         (Depends-on): Update conditions.
18021         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
18023 2012-03-09  Bruno Haible  <bruno@clisp.org>
18025         logf: Work around OSF/1 5.1 bug.
18026         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
18027         * lib/logf.c (logf): If logf exists, use it and provide just the
18028         workaround.
18029         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
18030         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
18031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
18032         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
18033         * modules/logf (configure.ac): Consider REPLACE_LOGF.
18034         (Depends-on): Update conditions.
18035         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
18037 2012-03-09  Bruno Haible  <bruno@clisp.org>
18039         log: Work around OSF/1 5.1 bug.
18040         * lib/math.in.h (log): New declaration.
18041         * lib/log.c: New file.
18042         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
18043         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
18044         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
18045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
18046         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
18047         * modules/log (Files): Add lib/log.c.
18048         (Depends-on): Add math.
18049         (configure.ac): If REPLACE_LOG is 1, compile an override.
18050         * tests/test-math-c++.cc: Check the declaration of log.
18051         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
18053 2012-03-09  Jim Meyering  <meyering@redhat.com>
18055         readtokens.c: adjust wording in a comment
18056         * lib/readtokens.c: Insert omitted "that" in a comment.
18058 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
18060         modechange: add notations +40, 00440, etc.
18061         * lib/modechange.c (mode_compile): Support new notations
18062         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
18064 2012-03-08  Bruno Haible  <bruno@clisp.org>
18066         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
18067         * m4/exp2l-ieee.m4: New file.
18068         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
18069         test whether exp2l works with a NaN argument and with a negative
18070         infinity argument. Replace it if not.
18071         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
18072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
18073         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
18074         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
18075         (Depends-on): Update conditions.
18076         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
18077         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
18078         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
18080         Tests for module 'exp2l-ieee'.
18081         * modules/exp2l-ieee-tests: New file.
18082         * tests/test-exp2l-ieee.c: New file.
18084         New module 'exp2l-ieee'.
18085         * modules/exp2l-ieee: New file.
18087         Tests for module 'exp2-ieee'.
18088         * modules/exp2-ieee-tests: New file.
18089         * tests/test-exp2-ieee.c: New file.
18091         New module 'exp2-ieee'.
18092         * modules/exp2-ieee: New file.
18094         Tests for module 'exp2f-ieee'.
18095         * modules/exp2f-ieee-tests: New file.
18096         * tests/test-exp2f-ieee.c: New file.
18097         * tests/test-exp2-ieee.h: New file.
18099         New module 'exp2f-ieee'.
18100         * modules/exp2f-ieee: New file.
18102 2012-03-08  Bruno Haible  <bruno@clisp.org>
18104         Tests for module 'exp2l'.
18105         * modules/exp2l-tests: New file.
18106         * tests/test-exp2l.c: New file.
18108         New module 'exp2l'.
18109         * lib/math.in.h (exp2l): New declaration.
18110         * lib/exp2l.c: New file.
18111         * lib/expl-table.c: New file, extracted from lib/expl.c.
18112         * lib/expl.c (gl_expl_table): New declaration.
18113         (expl): Remove expl_table. Update reference.
18114         * m4/exp2l.m4: New file.
18115         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
18116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
18117         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
18118         * modules/exp2l: New file.
18119         * modules/expl (Files): Add lib/expl-table.c.
18120         (configure.ac): Compile also expl-table.c.
18121         * tests/test-math-c++.cc: Check the declaration of exp2l.
18122         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
18123         problem.
18125 2012-03-08  Bruno Haible  <bruno@clisp.org>
18127         Tests for module 'exp2f'.
18128         * modules/exp2f-tests: New file.
18129         * tests/test-exp2f.c: New file.
18131         New module 'exp2f'.
18132         * lib/math.in.h (exp2f): New declaration.
18133         * lib/exp2f.c: New file.
18134         * m4/exp2f.m4: New file.
18135         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
18136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
18137         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
18138         * modules/exp2f: New file.
18139         * tests/test-math-c++.cc: Check the declaration of exp2f.
18140         * doc/posix-functions/exp2f.texi: Mention the new module and the
18141         IRIX problem.
18143 2012-03-08  Bruno Haible  <bruno@clisp.org>
18145         Tests for module 'exp2'.
18146         * modules/exp2-tests: New file.
18147         * tests/test-exp2.c: New file.
18148         * tests/test-exp2.h: New file.
18150         New module 'exp2'.
18151         * lib/math.in.h (exp2): New declaration.
18152         * lib/exp2.c: New file.
18153         * m4/exp2.m4: New file.
18154         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
18155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
18156         REPLACE_EXP2.
18157         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
18158         REPLACE_EXP2.
18159         * modules/exp2: New file.
18160         * tests/test-math-c++.cc: Check the declaration of exp2.
18161         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
18162         and OpenBSD problems.
18164 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
18166         savedir: fix comment typo
18167         * lib/savedir.c (savedirstream): Fix typo in comment.
18169 2012-03-08  Bruno Haible  <bruno@clisp.org>
18171         test-readtokens.c: use const; remove unwarranted cast
18172         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
18174 2012-03-08  Bruno Haible  <bruno@clisp.org>
18176         fmal: Avoid compilation error on AIX.
18177         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
18178         AIX 5.2..7.1.
18180 2012-03-08  Bruno Haible  <bruno@clisp.org>
18182         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
18183         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
18184         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
18185         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
18186         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
18187         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
18188         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
18190 2012-03-08  Bruno Haible  <bruno@clisp.org>
18192         remainderf: Override buggy system function on IRIX 6.5.
18193         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
18194         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
18195         when it exists.
18196         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
18198 2012-03-08  Jim Meyering  <meyering@redhat.com>
18200         test-readtokens.c: avoid const-related compilation warnings
18201         * tests/test-readtokens.c: Avoid const-related compilation warnings.
18203 2012-03-07  Jim Meyering  <meyering@redhat.com>
18204             Bruno Haible  <bruno@clisp.org>
18206         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
18207         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
18208         tests/randomd.c.
18209         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
18210         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
18211         tests/randoml.c.
18212         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
18214 2012-03-07  Bruno Haible  <bruno@clisp.org>
18216         expm1l: Avoid compilation error on AIX.
18217         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
18218         AIX 5.2..7.1.
18220 2012-03-07  Bruno Haible  <bruno@clisp.org>
18222         expm1l: Don't override undeclared system function on IRIX 6.5.
18223         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
18224         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
18225         it exists. Set HAVE_DECL_EXPM1L.
18226         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
18227         HAVE_EXPM1L.
18228         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
18229         HAVE_EXPM1L.
18230         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
18232 2012-03-07  Bruno Haible  <bruno@clisp.org>
18234         remainderl: Don't override undeclared system function on IRIX 6.5.
18235         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
18236         HAVE_REMAINDERL.
18237         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
18238         declared when it exists. Set HAVE_DECL_REMAINDERL.
18239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
18240         not HAVE_REMAINDERL.
18241         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
18242         HAVE_REMAINDERL.
18243         * doc/posix-functions/remainderl.texi: Mention missing declaration
18244         problem.
18246 2012-03-07  Bruno Haible  <bruno@clisp.org>
18248         rintf: Don't override undeclared system function on IRIX 6.5.
18249         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
18250         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
18251         exists. Set HAVE_DECL_RINTF.
18252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
18253         HAVE_RINTF.
18254         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
18255         HAVE_RINTF.
18256         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
18258 2012-03-07  Bruno Haible  <bruno@clisp.org>
18260         roundl: Avoid compilation error on AIX.
18261         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
18262         AIX 5.2..7.1.
18264 2012-03-07  Bruno Haible  <bruno@clisp.org>
18266         roundl: Don't override undeclared system function on IRIX 6.5.
18267         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
18268         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
18269         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
18270         * modules/roundl (configure.ac): For replacement code, test
18271         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
18272         (Depends-on): Update conditions.
18273         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
18275 2012-03-07  Bruno Haible  <bruno@clisp.org>
18277         roundf: Don't override undeclared system function on IRIX 6.5.
18278         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
18279         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
18280         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
18281         * modules/roundf (configure.ac): For replacement code, test
18282         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
18283         (Depends-on): Update conditions.
18284         * modules/roundf-ieee (Depends-on): Update conditions.
18285         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
18287 2012-03-07  Bruno Haible  <bruno@clisp.org>
18289         round: Don't override undeclared system function on IRIX 6.5.
18290         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
18291         argument.
18292         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
18293         also when it is not declared. Set HAVE_ROUND. For replacement code,
18294         test HAVE_ROUND, not HAVE_DECL_ROUND.
18295         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
18296         not HAVE_DECL_ROUND.
18297         (Depends-on): Update conditions.
18298         * modules/round-ieee (Depends-on): Update conditions.
18299         * doc/posix-functions/round.texi: Mention the IRIX problem.
18301 2012-03-07  Bruno Haible  <bruno@clisp.org>
18303         copysignf: Don't override undeclared system function on IRIX 6.5.
18304         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
18305         HAVE_COPYSIGNF.
18306         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
18307         declared when it exists. Set HAVE_DECL_COPYSIGNF.
18308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
18309         not HAVE_COPYSIGNF.
18310         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
18311         HAVE_COPYSIGNF.
18312         * doc/posix-functions/copysignf.texi: Mention missing declaration
18313         problem.
18315 2012-03-07  Jim Meyering  <meyering@redhat.com>
18317         readtokens: add tests
18318         * modules/readtokens-tests: New file.
18319         * tests/test-readtokens.c: New file.
18321 2012-03-07  Jim Meyering  <meyering@redhat.com>
18323         quotearg: the module must now include quote.h
18324         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
18325         So must the module.
18326         * modules/quotearg (Files): Add quote.h.
18328 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
18330         readtokens: avoid core dumps with unusual calling patterns
18331         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
18332         * lib/readtokens.c: Include limits.h.
18333         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
18334         (readtoken): Don't cache the delimiters; the cache code was buggy
18335         if !delim && saved_delim, or if the new n_delim differs from the old.
18336         Also, it wasn't thread-safe.
18338 2012-03-07  Bruno Haible  <bruno@clisp.org>
18340         quote: Adhere to common module description layout.
18341         * modules/quote (Makefile.am): Add back empty section.
18343 2012-03-06  Akim Demaille  <demaille@gostai.com>
18345         quote: fuse into quotearg
18346         This patch is made for the benefit of Bison.
18347         quote does not leave the choice of the quoting style to the user.
18348         quoting_style provides poor customizability, yet quoting_options,
18349         which is very rich, is hidden inside quotearg.c.  So in order to
18350         allow quote customization, move its implementation to quotearg.c.
18351         * lib/quote.c: Remove.
18352         * modules/quote: Adjust.
18353         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
18354         warning: provide all the members of literal structs.
18355         (quote_quoting_options): New.
18356         (quote, quote_n): Import implementation from quote.c.
18357         * lib/quote.h: Import the comments from quote.c.
18358         (quote_quoting_options): New.
18360 2012-03-06  Bruno Haible  <bruno@clisp.org>
18362         Tests for module 'expm1l-ieee'.
18363         * modules/expm1l-ieee-tests: New file.
18364         * tests/test-expm1l-ieee.c: New file.
18366         New module 'expm1l-ieee'.
18367         * modules/expm1l-ieee: New file.
18369         Tests for module 'expm1f-ieee'.
18370         * modules/expm1f-ieee-tests: New file.
18371         * tests/test-expm1f-ieee.c: New file.
18373         New module 'expm1f-ieee'.
18374         * modules/expm1f-ieee: New file.
18376         Tests for module 'expm1-ieee'.
18377         * modules/expm1-ieee-tests: New file.
18378         * tests/test-expm1-ieee.c: New file.
18379         * tests/test-expm1-ieee.h: New file.
18381         New module 'expm1-ieee'.
18382         * modules/expm1-ieee: New file.
18383         * m4/expm1-ieee.m4: New file.
18384         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
18385         whether expm1 works with a minus zero argument. Replace it if not.
18386         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
18387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
18388         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
18389         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
18390         (Depends-on): Update conditions.
18391         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
18392         AIX problem.
18394 2012-03-06  Bruno Haible  <bruno@clisp.org>
18396         Work around expm1f bug on IRIX 6.5.
18397         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
18398         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
18399         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
18400         not work.
18401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
18402         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
18403         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
18404         (Depends-on): Update conditions.
18405         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
18407 2012-03-06  Bruno Haible  <bruno@clisp.org>
18409         Tests for module 'expm1l'.
18410         * modules/expm1l-tests: New file.
18411         * tests/test-expm1l.c: New file.
18413         New module 'expm1l'.
18414         * lib/math.in.h (expm1l): New declaration.
18415         * lib/expm1l.c: New file.
18416         * m4/expm1l.m4: New file.
18417         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
18418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
18419         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
18420         * modules/expm1l: New file.
18421         * tests/test-math-c++.cc: Check the declaration of expm1l.
18422         * doc/posix-functions/expm1l.texi: Mention the new module.
18424 2012-03-06  Bruno Haible  <bruno@clisp.org>
18426         Tests for module 'expm1f'.
18427         * modules/expm1f-tests: New file.
18428         * tests/test-expm1f.c: New file.
18430         New module 'expm1f'.
18431         * lib/math.in.h (expm1f): New declaration.
18432         * lib/expm1f.c: New file.
18433         * m4/expm1f.m4: New file.
18434         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
18435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
18436         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
18437         * modules/expm1f: New file.
18438         * tests/test-math-c++.cc: Check the declaration of expm1f.
18439         * doc/posix-functions/expm1f.texi: Mention the new module.
18441 2012-03-06  Bruno Haible  <bruno@clisp.org>
18443         Tests for module 'expm1'.
18444         * modules/expm1-tests: New file.
18445         * tests/test-expm1.c: New file.
18446         * tests/test-expm1.h: New file.
18448         New module 'expm1'.
18449         * lib/math.in.h (expm1): New declaration.
18450         * lib/expm1.c: New file.
18451         * m4/expm1.m4: New file.
18452         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
18453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
18454         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
18455         * modules/expm1: New file.
18456         * tests/test-math-c++.cc: Check the declaration of expm1.
18457         * doc/posix-functions/expm1.texi: Mention the new module.
18459 2012-03-06  Bruno Haible  <bruno@clisp.org>
18461         math: Ensure declarations of math functions.
18462         * modules/acosf (Depends-on): Add 'extensions'.
18463         * modules/asinf (Depends-on): Likewise.
18464         * modules/atan2f (Depends-on): Likewise.
18465         * modules/atanf (Depends-on): Likewise.
18466         * modules/cbrt (Depends-on): Likewise.
18467         * modules/cbrtf (Depends-on): Likewise.
18468         * modules/cbrtl (Depends-on): Likewise.
18469         * modules/copysignf (Depends-on): Likewise.
18470         * modules/copysignl (Depends-on): Likewise.
18471         * modules/cosf (Depends-on): Likewise.
18472         * modules/coshf (Depends-on): Likewise.
18473         * modules/expf (Depends-on): Likewise.
18474         * modules/fabsf (Depends-on): Likewise.
18475         * modules/fabsl (Depends-on): Likewise.
18476         * modules/fmaf (Depends-on): Likewise.
18477         * modules/fmal (Depends-on): Likewise.
18478         * modules/fmodf (Depends-on): Likewise.
18479         * modules/fmodl (Depends-on): Likewise.
18480         * modules/frexpf (Depends-on): Likewise.
18481         * modules/frexpl (Depends-on): Likewise.
18482         * modules/hypot (Depends-on): Likewise.
18483         * modules/hypotf (Depends-on): Likewise.
18484         * modules/hypotl (Depends-on): Likewise.
18485         * modules/ldexpf (Depends-on): Likewise.
18486         * modules/ldexpl (Depends-on): Likewise.
18487         * modules/log10f (Depends-on): Likewise.
18488         * modules/log10l (Depends-on): Likewise.
18489         * modules/log1p (Depends-on): Likewise.
18490         * modules/logb (Depends-on): Likewise.
18491         * modules/logf (Depends-on): Likewise.
18492         * modules/modff (Depends-on): Likewise.
18493         * modules/modfl (Depends-on): Likewise.
18494         * modules/powf (Depends-on): Likewise.
18495         * modules/remainderf (Depends-on): Likewise.
18496         * modules/remainderl (Depends-on): Likewise.
18497         * modules/rintf (Depends-on): Likewise.
18498         * modules/rintl (Depends-on): Likewise.
18499         * modules/sinf (Depends-on): Likewise.
18500         * modules/sinhf (Depends-on): Likewise.
18501         * modules/sqrtf (Depends-on): Likewise.
18502         * modules/tanf (Depends-on): Likewise.
18503         * modules/tanhf (Depends-on): Likewise.
18504         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
18505         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
18506         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
18507         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
18508         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
18509         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
18510         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
18511         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
18512         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
18513         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
18514         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
18515         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
18516         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
18517         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
18518         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
18519         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
18520         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
18521         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
18522         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
18523         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
18524         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
18525         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
18526         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
18527         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
18528         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
18529         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
18530         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
18531         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
18532         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
18533         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
18534         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18535         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
18536         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
18537         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
18538         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
18539         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
18540         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
18541         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
18542         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
18543         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
18544         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
18546 2012-03-06  Bruno Haible  <bruno@clisp.org>
18548         math: Update module names in warnings.
18549         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18550         tanl): Use specific module name in warn-on-use warning.
18552 2012-03-06  Bruno Haible  <bruno@clisp.org>
18554         expl: Simplify computation.
18555         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
18557 2012-03-05  Bruno Haible  <bruno@clisp.org>
18559         exp* tests: More tests.
18560         * tests/test-exp.h: New file.
18561         * tests/test-exp.c: Include <float.h> and test-exp.h.
18562         (main): Invoke test_function.
18563         * tests/test-expf.c: Include <float.h> and test-exp.h.
18564         (main): Invoke test_function.
18565         * tests/test-expl.c: Include <float.h> and test-exp.h.
18566         (main): Invoke test_function.
18567         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
18568         (Makefile.am): Add randomd.c to test_exp_SOURCES.
18569         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
18570         (Makefile.am): Add randomf.c to test_expf_SOURCES.
18571         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
18572         (Depends-on): Add 'float'.
18573         (Makefile.am): Add randoml.c to test_expl_SOURCES.
18575         expl: Fix precision of computed result.
18576         * lib/expl.c: Completely rewritten.
18577         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
18578         (Maintainer): Add me.
18579         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
18581 2012-03-05  Bruno Haible  <bruno@clisp.org>
18583         cbrt* tests: More tests.
18584         * tests/test-cbrt.h: New file.
18585         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
18586         (main): Invoke test_function.
18587         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
18588         (main): Invoke test_function.
18589         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
18590         (main): Invoke test_function.
18591         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
18592         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
18593         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
18594         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
18595         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
18596         (Depends-on): Add 'float'.
18597         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
18599 2012-03-05  Bruno Haible  <bruno@clisp.org>
18601         hypot* tests: More tests.
18602         * tests/test-hypot.h: New file, partially extracted from
18603         tests/test-hypotl.c.
18604         * tests/test-hypot.c: Include test-hypot.h.
18605         (main): Invoke test_function.
18606         * tests/test-hypotf.c: Include test-hypot.h.
18607         (main): Invoke test_function.
18608         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
18609         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
18610         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
18611         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
18612         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
18613         tests/randomf.c.
18614         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
18615         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
18616         tests/randoml.c.
18617         (Depends-on): Add 'fpucw', 'float'.
18618         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
18620 2012-03-05  Bruno Haible  <bruno@clisp.org>
18622         fpucw: Doc about FreeBSD.
18623         * lib/fpucw.h: Mention FreeBSD in comments.
18625 2012-03-04  Bruno Haible  <bruno@clisp.org>
18627         sqrt* tests: More tests.
18628         * tests/test-sqrt.h: New file.
18629         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
18630         (main): Invoke test_function.
18631         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
18632         (main): Invoke test_function.
18633         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
18634         (main): Invoke test_function.
18635         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
18636         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
18637         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
18638         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
18639         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
18640         (Depends-on): Add 'float'.
18641         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
18643 2012-03-04  Bruno Haible  <bruno@clisp.org>
18645         remainder* tests: More tests.
18646         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
18647         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
18648         (main): Invoke test_function.
18649         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
18650         (main): Invoke test_function.
18651         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
18652         (main): Invoke test_function.
18653         * modules/remainder-tests (Files): Add tests/test-remainder.h,
18654         tests/randomd.c.
18655         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
18656         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
18657         tests/randomf.c.
18658         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
18659         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
18660         tests/randoml.c.
18661         (Depends-on): Add 'float'.
18662         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
18664 2012-03-04  Bruno Haible  <bruno@clisp.org>
18666         remainder, remainderf, remainderl: Fix computation for large quotients.
18667         * lib/remainder.c: Completely rewritten.
18668         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
18669         USE_FLOAT.
18670         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
18671         USE_LONG_DOUBLE.
18672         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
18673         isnand, isinf. Remove round, fma.
18674         * modules/remainderf (Files): Add lib/remainder.c.
18675         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
18676         Remove roundf, fmaf.
18677         * modules/remainderl (Files): Add lib/remainder.c.
18678         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
18679         isinf. Remove roundl, fmal.
18680         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
18681         REMAINDER_LIBM.
18682         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
18683         REMAINDERF_LIBM.
18684         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
18685         REMAINDERL_LIBM.
18687 2012-03-04  Bruno Haible  <bruno@clisp.org>
18689         fmod* tests: More tests.
18690         * tests/test-fmod.h (my_ldexp): New function.
18691         (test_function): Reduce amount of random numbers to test. Add tests
18692         of very large quotients x / y.
18693         * tests/test-fmod.c (MAX_EXP): New macro.
18694         * tests/test-fmodf.c (MAX_EXP): Likewise.
18695         * tests/test-fmodl.c (MAX_EXP): Likewise.
18697 2012-03-04  Bruno Haible  <bruno@clisp.org>
18699         fmod, fmodl: Fix computation for large quotients x / y.
18700         * lib/fmod.c: Completely rewritten.
18701         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
18702         USE_LONG_DOUBLE.
18703         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
18704         isnand. Remove fma.
18705         * modules/fmodl (Files): Add lib/fmod.c.
18706         (Depends-on): Add float, isfinite, signbit, fabsl,
18707         frexpl, ldexpl, isnanl. Remove fma.
18708         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
18709         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
18711 2012-03-03  Bruno Haible  <bruno@clisp.org>
18713         fmod* tests: More tests.
18714         * tests/test-fmod.h: New file.
18715         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
18716         (main): Invoke test_function.
18717         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
18718         (main): Invoke test_function.
18719         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
18720         (main): Invoke test_function.
18721         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
18722         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
18723         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
18724         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
18725         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
18726         (Depends-on): Add 'float'.
18727         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
18729 2012-03-03  Bruno Haible  <bruno@clisp.org>
18731         rint* tests: More tests.
18732         * tests/test-rint.h: New file, partially extracted from
18733         tests/test-rintl.c.
18734         * tests/test-rint.c: Include test-rint.h.
18735         (main): Invoke test_function.
18736         * tests/test-rintf.c: Include test-rint.h.
18737         (main): Invoke test_function.
18738         * tests/test-rintl.c: Include test-rint.h.
18739         (main): Invoke test_function.
18740         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
18741         (Makefile.am): Add randomd.c to test_rint_SOURCES.
18742         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
18743         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
18744         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
18745         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
18747 2012-03-03  Bruno Haible  <bruno@clisp.org>
18749         modf* tests: More tests.
18750         * tests/test-modf.h: New file.
18751         * tests/test-modf.c: Include <float.h> and test-modf.h.
18752         (main): Invoke test_function.
18753         * tests/test-modff.c: Include <float.h> and test-modf.h.
18754         (main): Invoke test_function.
18755         * tests/test-modfl.c: Include <float.h> and test-modf.h.
18756         (main): Invoke test_function.
18757         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
18758         (Makefile.am): Add randomd.c to test_modf_SOURCES.
18759         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
18760         (Makefile.am): Add randomf.c to test_modff_SOURCES.
18761         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
18762         (Depends-on): Add 'float'.
18763         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
18765 2012-03-03  Bruno Haible  <bruno@clisp.org>
18767         fabs* tests: More tests.
18768         * tests/test-fabs.h: New file, partially extracted from
18769         tests/test-fabsl.c.
18770         * tests/test-fabs.c (RANDOM): New macro.
18771         * tests/test-fabsf.c (RANDOM): New macro.
18772         * tests/test-fabsl.c (RANDOM): New macro.
18773         * modules/fabs-tests (Files): Add tests/randomd.c.
18774         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
18775         * modules/fabsf-tests (Files): Add tests/randomf.c.
18776         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
18777         * modules/fabsl-tests (Files): Add tests/randoml.c.
18778         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
18780 2012-03-03  Bruno Haible  <bruno@clisp.org>
18782         ldexp* tests: More tests.
18783         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
18784         * tests/test-ldexp.c (RANDOM): New macro.
18785         * tests/test-ldexpf.c (RANDOM): New macro.
18786         * tests/test-ldexpl.c (RANDOM): New macro.
18787         * modules/ldexp-tests (Files): Add tests/randomd.c.
18788         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
18789         * modules/ldexpf-tests (Files): Add tests/randomf.c.
18790         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
18791         * modules/ldexpl-tests (Files): Add tests/randoml.c.
18792         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
18794 2012-03-03  Bruno Haible  <bruno@clisp.org>
18796         frexp* tests: More tests.
18797         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
18798         * tests/test-frexp.c (RANDOM): New macro.
18799         * tests/test-frexpf.c (RANDOM): New macro.
18800         * tests/test-frexpl.c (RANDOM): New macro.
18801         * modules/frexp-tests (Files): Add tests/randomd.c.
18802         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
18803         * modules/frexpf-tests (Files): Add tests/randomf.c.
18804         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
18805         * modules/frexpl-tests (Files): Add tests/randoml.c.
18806         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
18808 2012-03-03  Bruno Haible  <bruno@clisp.org>
18810         Support for pseudo-random numbers in tests.
18811         * tests/randomf.c: New file.
18812         * tests/randomd.c: New file.
18813         * tests/randoml.c: New file.
18814         * tests/macros.h (randomf, randomd, randoml): New declarations.
18816 2012-03-03  Bruno Haible  <bruno@clisp.org>
18818         frexp* tests: Refactor.
18819         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
18820         * tests/test-frexp.c: Include and use it.
18821         * tests/test-frexpf.c: Likewise.
18822         * tests/test-frexpl.c: Likewise.
18823         * modules/frexp-tests (Files): Add tests/test-frexp.h.
18824         * modules/frexpf-tests (Files): Likewise.
18825         * modules/frexpl-tests (Files): Likewise.
18827 2012-03-02  Jim Meyering  <meyering@redhat.com>
18829         maint: don't specify XZ_OPT=-9ev in dist-related rule
18830         Using xz's -9 option is warranted only if you have a very large
18831         tarball (see xz's documentation for the sizes vs. presets), and
18832         requires 64MiB of memory at decompression time.
18833         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
18834         Automake's default of just "-e" is fine.  Override on a
18835         per-package basis by setting XZ_OPT e.g., in cfg.mk.
18837 2012-03-01  Eric Blake  <eblake@redhat.com>
18839         maint.mk: allow announcement for non-gnulib project
18840         * maint.mk (announcement): Skip gnulib version if not used.
18842 2012-03-01  Jim Meyering  <meyering@redhat.com>
18844         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
18845         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
18846         envvar settings cannot interfere.  Otherwise, setting envvars like
18847         prohibit=foo require=bar, etc. would cause spurious test failures.
18849 2012-03-01  Eric Blake  <eblake@redhat.com>
18851         maint.mk: add per-line exclusions to prohibitions
18852         * maint.mk (_sc_search_regexp): Add $exclude parameter.
18853         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
18854         (sc_const_long_option): Use it.
18856 2012-03-01  Bruno Haible  <bruno@clisp.org>
18858         Tests for module 'expl-ieee'.
18859         * modules/expl-ieee-tests: New file.
18860         * tests/test-expl-ieee.c: New file.
18862         New module 'expl-ieee'.
18863         * modules/expl-ieee: New file.
18865         Tests for module 'exp-ieee'.
18866         * modules/exp-ieee-tests: New file.
18867         * tests/test-exp-ieee.c: New file.
18869         New module 'exp-ieee'.
18870         * modules/exp-ieee: New file.
18872         Tests for module 'expf-ieee'.
18873         * modules/expf-ieee-tests: New file.
18874         * tests/test-expf-ieee.c: New file.
18875         * tests/test-exp-ieee.h: New file.
18877         New module 'expf-ieee'.
18878         * modules/expf-ieee: New file.
18880 2012-02-29  Bruno Haible  <bruno@clisp.org>
18882         cbrtl-ieee: Work around test failure on IRIX 6.5.
18883         * m4/cbrtl-ieee.m4: New file.
18884         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
18885         test whether cbrtl works with a minus zero argument. Replace it if not.
18886         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
18887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
18888         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
18889         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
18890         (Depends-on): Update conditions.
18891         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
18892         m4/signbit.m4.
18893         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
18894         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
18895         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
18897         Tests for module 'cbrtl-ieee'.
18898         * modules/cbrtl-ieee-tests: New file.
18899         * tests/test-cbrtl-ieee.c: New file.
18901         New module 'cbrtl-ieee'.
18902         * modules/cbrtl-ieee: New file.
18904         Tests for module 'cbrt-ieee'.
18905         * modules/cbrt-ieee-tests: New file.
18906         * tests/test-cbrt-ieee.c: New file.
18908         New module 'cbrt-ieee'.
18909         * modules/cbrt-ieee: New file.
18911         Tests for module 'cbrtf-ieee'.
18912         * modules/cbrtf-ieee-tests: New file.
18913         * tests/test-cbrtf-ieee.c: New file.
18914         * tests/test-cbrt-ieee.h: New file.
18916         New module 'cbrtf-ieee'.
18917         * modules/cbrtf-ieee: New file.
18919 2012-02-29  Bruno Haible  <bruno@clisp.org>
18921         cbrtf: Work around bug in IRIX 6.5 system function.
18922         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
18923         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
18924         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
18925         work.
18926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
18927         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
18928         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
18929         (Depends-on): Update conditions.
18930         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
18932 2012-02-29  Bruno Haible  <bruno@clisp.org>
18934         Tests for module 'cbrtl'.
18935         * modules/cbrtl-tests: New file.
18936         * tests/test-cbrtl.c: New file.
18938         New module 'cbrtl'.
18939         * lib/math.in.h (cbrtl): New declaration.
18940         * lib/cbrtl.c: New file.
18941         * m4/cbrtl.m4: New file.
18942         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
18943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
18944         HAVE_DECL_CBRTL.
18945         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
18946         HAVE_DECL_CBRTL.
18947         * modules/cbrtl: New file.
18948         * tests/test-math-c++.cc: Check the declaration of cbrtl.
18949         * doc/posix-functions/cbrtl.texi: Mention the new module.
18951 2012-02-29  Bruno Haible  <bruno@clisp.org>
18953         Tests for module 'cbrtf'.
18954         * modules/cbrtf-tests: New file.
18955         * tests/test-cbrtf.c: New file.
18957         New module 'cbrtf'.
18958         * lib/math.in.h (cbrtf): New declaration.
18959         * lib/cbrtf.c: New file.
18960         * m4/cbrtf.m4: New file.
18961         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
18962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
18963         HAVE_DECL_CBRTF.
18964         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
18965         HAVE_DECL_CBRTF.
18966         * modules/cbrtf: New file.
18967         * tests/test-math-c++.cc: Check the declaration of cbrtf.
18968         * doc/posix-functions/cbrtf.texi: Mention the new module.
18970 2012-02-29  Bruno Haible  <bruno@clisp.org>
18972         cbrt: Provide replacement on MSVC and Minix.
18973         * lib/math.in.h (cbrt): New declaration.
18974         * lib/cbrt.c: New file.
18975         * m4/cbrt.m4: New file.
18976         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
18977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
18978         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
18979         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
18980         (Depends-on): Add dependencies.
18981         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
18982         * tests/test-math-c++.cc: Check the declaration of cbrt.
18983         * doc/posix-functions/cbrt.texi: Mention that the module provides a
18984         replacement.
18986 2012-02-29  Bruno Haible  <bruno@clisp.org>
18988         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
18989         * m4/hypotl-ieee.m4: New file.
18990         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
18991         test whether hypotl works with mixed NaN and Infinity arguments.
18992         Replace it if not.
18993         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
18994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
18995         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
18996         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
18997         (Depends-on): Update conditions.
18998         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
18999         (Depends-on): Add hypot-ieee.
19000         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
19001         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
19003         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
19004         * m4/hypotf-ieee.m4: New file.
19005         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
19006         test whether hypotf works with mixed NaN and Infinity arguments.
19007         Replace it if not.
19008         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
19009         (Depends-on): Add hypot-ieee.
19010         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
19011         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
19013         hypot-ieee: Work around test failure on OSF/1 and native Windows.
19014         * lib/math.in.h (hypot): New declaration.
19015         * lib/hypot.c: New file.
19016         * m4/hypot-ieee.m4: New file.
19017         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
19018         whether hypot works with mixed NaN and Infinity arguments. Replace it
19019         if not.
19020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
19021         REPLACE_HYPOT.
19022         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
19023         * modules/hypot (Files): Add lib/hypot.c.
19024         (Depends-on): Add dependencies.
19025         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
19026         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
19027         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
19028         * tests/test-math-c++.cc: Check the declaration of hypot.
19029         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
19031         Tests for module 'hypotl-ieee'.
19032         * modules/hypotl-ieee-tests: New file.
19033         * tests/test-hypotl-ieee.c: New file.
19035         New module 'hypotl-ieee'.
19036         * modules/hypotl-ieee: New file.
19038         Tests for module 'hypot-ieee'.
19039         * modules/hypot-ieee-tests: New file.
19040         * tests/test-hypot-ieee.c: New file.
19042         New module 'hypot-ieee'.
19043         * modules/hypot-ieee: New file.
19045         Tests for module 'hypotf-ieee'.
19046         * modules/hypotf-ieee-tests: New file.
19047         * tests/test-hypotf-ieee.c: New file.
19048         * tests/test-hypot-ieee.h: New file.
19050         New module 'hypotf-ieee'.
19051         * modules/hypotf-ieee: New file.
19053 2012-02-29  Bruno Haible  <bruno@clisp.org>
19055         Remove unused variables.
19056         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
19057         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19058         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
19059         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
19061 2012-02-29  Eric Blake  <eblake@redhat.com>
19063         termios: fix pid_t always, not just for tcgetsid
19064         * doc/posix-headers/termios.texi (termios.h): Mention problem.
19065         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
19066         just when building tcgetsid.
19068 2012-02-29  Bruno Haible  <bruno@clisp.org>
19070         Tests for module 'hypotl'.
19071         * modules/hypotl-tests: New file.
19072         * tests/test-hypotl.c: New file.
19074         New module 'hypotl'.
19075         * lib/math.in.h (hypotl): New declaration.
19076         * lib/hypotl.c: New file.
19077         * m4/hypotl.m4: New file.
19078         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
19079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
19080         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
19081         * modules/hypotl: New file.
19082         * tests/test-math-c++.cc: Check the hypotl declaration.
19083         * doc/posix-functions/hypotl.texi: Mention the new module.
19085 2012-02-29  Eric Blake  <eblake@redhat.com>
19087         tcgetsid: fix cygwin header bug
19088         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
19090         docs: update cygwin progress
19091         * doc/posix-functions/llround.texi (llround): Added in cygwin
19092         1.7.8.
19093         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
19094         * doc/glibc-functions/program_invocation_name.texi
19095         (program_invocation_name): Likewise.
19096         * doc/glibc-functions/program_invocation_short_name.texi
19097         (program_invocation_short_name): Likewise.
19098         * doc/glibc-functions/madvise.texi (madvise): Likewise.
19099         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
19100         Likewise.
19101         * doc/posix-functions/pthread_spin_destroy.texi
19102         (pthread_spin_destroy): Added in cygwin 1.7.10.
19103         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
19104         Likewise.
19105         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
19106         Likewise.
19107         * doc/posix-functions/pthread_spin_trylock.texi
19108         (pthread_spin_trylock): Likewise.
19109         * doc/posix-functions/pthread_spin_unlock.texi
19110         (pthread_spin_unlock): Likewise.
19111         * doc/posix-functions/pthread_setschedprio.texi
19112         (pthread_setschedprio): Likewise.
19113         * doc/posix-functions/pthread_attr_getstack.texi
19114         (pthread_attr_getstack): Likewise.
19115         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
19116         (pthread_attr_getstackaddr): Likewise.
19117         * doc/glibc-functions/pthread_getattr_np.texi
19118         (pthread_getattr_np): Likewise.
19119         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
19120         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
19121         * doc/posix-functions/clock_settime.texi (clock_settime):
19122         Likewise.
19123         * doc/posix-functions/pthread_attr_getguardsize.texi
19124         (pthread_attr_getguardsize): Likewise.
19125         * doc/posix-functions/pthread_attr_setguardsize.texi
19126         (pthread_attr_setguardsize): Likewise.
19127         * doc/posix-functions/pthread_attr_setstack.texi
19128         (pthread_attr_setstack): Likewise.
19129         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
19130         (pthread_attr_setstackaddr): Likewise.
19131         * doc/posix-functions/clock_getcpuclockid.texi
19132         (clock_getcpuclockid): Likewise.
19133         * doc/posix-functions/pthread_getcpuclockid.texi
19134         (pthread_getcpuclockid): Likewise.
19135         * doc/glibc-functions/error.texi (error): Likewise.
19136         * doc/glibc-functions/error_at_line.texi (error_at_line):
19137         Likewise.
19138         * doc/glibc-functions/error_message_count.texi
19139         (error_message_count): Likewise.
19140         * doc/glibc-functions/error_one_per_line.texi
19141         (error_one_per_line): Likewise.
19142         * doc/glibc-functions/error_print_progname.texi
19143         (error_print_progname): Likewise.
19144         * doc/posix-functions/pthread_condattr_getclock.texi
19145         (pthread_condattr_getclock): Likewise.
19146         * doc/posix-functions/pthread_condattr_setclock.texi
19147         (pthread_condattr_setclock): Likewise.
19148         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
19149         Likewise.
19150         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
19151         * doc/glibc-functions/getpt.texi (getpt): Likewise.
19152         * doc/glibc-functions/get_current_dir_name.texi
19153         (get_current_dir_name): Likewise.
19154         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
19155         Likewise.
19156         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
19157         wrong return type.
19158         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
19159         1.7.11.
19161 2012-02-29  Bruno Haible  <bruno@clisp.org>
19163         Tests for module 'hypotf'.
19164         * modules/hypotf-tests: New file.
19165         * tests/test-hypotf.c: New file.
19167         New module 'hypotf'.
19168         * lib/math.in.h (hypotf): New declaration.
19169         * lib/hypotf.c: New file.
19170         * m4/hypotf.m4: New file.
19171         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
19172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
19173         REPLACE_HYPOTF.
19174         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
19175         REPLACE_HYPOTF.
19176         * modules/hypotf: New file.
19177         * tests/test-math-c++.cc: Check the hypotf declaration.
19178         * doc/posix-functions/hypotf.texi: Mention the new module.
19180         hypot: Prepare for hypotf module.
19181         * m4/hypot.m4: New file.
19182         * modules/hypot (Files): Add m4/hypot.m4.
19183         (configure.ac): Invoke gl_FUNC_HYPOT.
19185 2012-02-29  Bruno Haible  <bruno@clisp.org>
19187         hypot tests: More tests.
19188         * tests/test-hypot.c: Include <float.h>.
19189         (main): Add tests about overflow and underflow.
19191 2012-02-29  Bruno Haible  <bruno@clisp.org>
19193         math code: Add comments.
19194         * lib/acosl.c: Add comment about related glibc source files.
19195         * lib/asinl.c: Likewise.
19196         * lib/atanl.c: Likewise.
19197         * lib/expl.c: Likewise.
19198         * lib/logl.c: Likewise.
19199         * lib/sincosl.c: Likewise.
19200         * lib/sinl.c: Likewise.
19201         * lib/tanl.c: Likewise.
19202         * lib/trigl.c: Likewise.
19203         * lib/cosl.c: Likewise. Fix comments.
19205 2012-02-28  Bruno Haible  <bruno@clisp.org>
19207         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
19208         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
19209         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
19210         HUGE_VALL are defined.
19211         (numeric_equald): Renamed from numeric_equal.
19212         (numeric_equalf, numeric_equall): New functions.
19213         (main): Check also HUGE_VALF, HUGE_VALL.
19214         * modules/math-tests (Files): Add tests/macros.h.
19215         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
19216         HUGE_VALL.
19218 2012-02-28  Bruno Haible  <bruno@clisp.org>
19220         doc: Move ISO C11 feature notes into POSIX chapters.
19221         * doc/posix-functions/aligned_alloc.texi: Renamed from
19222         doc/glibc-functions/aligned_alloc.texi.
19223         * doc/posix-functions/quick_exit.texi: Renamed from
19224         doc/glibc-functions/quick_exit.texi.
19225         * doc/posix-headers/uchar.texi: Renamed from
19226         doc/glibc-headers/uchar.texi.
19227         * doc/posix-functions/c16rtomb.texi: Renamed from
19228         doc/glibc-functions/c16rtomb.texi.
19229         * doc/posix-functions/c32rtomb.texi: Renamed from
19230         doc/glibc-functions/c32rtomb.texi.
19231         * doc/posix-functions/mbrtoc16.texi: Renamed from
19232         doc/glibc-functions/mbrtoc16.texi.
19233         * doc/posix-functions/mbrtoc32.texi: Renamed from
19234         doc/glibc-functions/mbrtoc32.texi.
19235         * doc/gnulib.texi: Update.
19236         (Glibc uchar.h): Remove section.
19237         Suggested by Eric Blake.
19239 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
19241         stdnoreturn: port to MSVC better
19242         MSVC standard headers use __declspec(noreturn), so #define noreturn
19243         to empty on that platform.  Reported by Bruno Haible in
19244         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
19245         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
19246         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
19248 2012-02-28  Bruno Haible  <bruno@clisp.org>
19250         doc: Mention new glibc headers and functions.
19251         * doc/glibc-headers/uchar.texi: New file.
19252         * doc/glibc-functions/aligned_alloc.texi: New file.
19253         * doc/glibc-functions/c16rtomb.texi: New file.
19254         * doc/glibc-functions/c32rtomb.texi: New file.
19255         * doc/glibc-functions/clock_adjtime.texi: New file.
19256         * doc/glibc-functions/fanotify_init.texi: New file.
19257         * doc/glibc-functions/fanotify_mark.texi: New file.
19258         * doc/glibc-functions/inet6_opt_append.texi: New file.
19259         * doc/glibc-functions/inet6_opt_find.texi: New file.
19260         * doc/glibc-functions/inet6_opt_finish.texi: New file.
19261         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
19262         * doc/glibc-functions/inet6_opt_init.texi: New file.
19263         * doc/glibc-functions/inet6_opt_next.texi: New file.
19264         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
19265         * doc/glibc-functions/inet6_rth_add.texi: New file.
19266         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
19267         * doc/glibc-functions/inet6_rth_init.texi: New file.
19268         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
19269         * doc/glibc-functions/inet6_rth_segments.texi: New file.
19270         * doc/glibc-functions/inet6_rth_space.texi: New file.
19271         * doc/glibc-functions/login.texi: New file.
19272         * doc/glibc-functions/mbrtoc16.texi: New file.
19273         * doc/glibc-functions/mbrtoc32.texi: New file.
19274         * doc/glibc-functions/name_to_handle_at.texi: New file.
19275         * doc/glibc-functions/ntp_gettimex.texi: New file.
19276         * doc/glibc-functions/open_by_handle_at.texi: New file.
19277         * doc/glibc-functions/prlimit.texi: New file.
19278         * doc/glibc-functions/process_vm_readv.texi: New file.
19279         * doc/glibc-functions/process_vm_writev.texi: New file.
19280         * doc/glibc-functions/recvmmsg.texi: New file.
19281         * doc/glibc-functions/scandirat.texi: New file.
19282         * doc/glibc-functions/sendmmsg.texi: New file.
19283         * doc/glibc-functions/setns.texi: New file.
19284         * doc/glibc-functions/timespec_get.texi: New file.
19285         * doc/gnulib.texi: Include them.
19286         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
19287         sections.
19288         Reported by Eric Blake.
19290 2012-02-28  Bruno Haible  <bruno@clisp.org>
19292         Avoid compilation errors with MSVC option -fp:strict.
19293         * lib/floor.c: Use MSVC specific pragma fenv_access.
19294         * lib/ceil.c: Likewise.
19295         * lib/trunc.c: Likewise.
19296         * lib/round.c: Likewise.
19297         * lib/rint.c: Likewise.
19298         * lib/fma.c: Likewise.
19299         * lib/integer_length.c: Likewise.
19300         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19301         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19302         * tests/test-floor2.c: Likewise.
19303         * tests/test-floorf2.c: Likewise.
19304         * tests/test-ceil2.c: Likewise.
19305         * tests/test-ceilf2.c: Likewise.
19306         * tests/test-trunc2.c: Likewise.
19307         * tests/test-truncf2.c: Likewise.
19308         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
19310 2012-02-27  Bruno Haible  <bruno@clisp.org>
19312         Tests for module 'sqrtl-ieee'.
19313         * modules/sqrtl-ieee-tests: New file.
19314         * tests/test-sqrtl-ieee.c: New file.
19316         New module 'sqrtl-ieee'.
19317         * modules/sqrtl-ieee: New file.
19319         Tests for module 'sqrt-ieee'.
19320         * modules/sqrt-ieee-tests: New file.
19321         * tests/test-sqrt-ieee.c: New file.
19323         New module 'sqrt-ieee'.
19324         * modules/sqrt-ieee: New file.
19326         Tests for module 'sqrtf-ieee'.
19327         * modules/sqrtf-ieee-tests: New file.
19328         * tests/test-sqrtf-ieee.c: New file.
19329         * tests/test-sqrt-ieee.h: New file.
19331         New module 'sqrtf-ieee'.
19332         * modules/sqrtf-ieee: New file.
19334 2012-02-27  Bruno Haible  <bruno@clisp.org>
19336         remainderl-ieee: Work around test failure on OSF/1.
19337         * m4/remainderl-ieee.m4: New file.
19338         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
19339         present, test whether remainderl works with a zero second argument.
19340         Replace it if not.
19341         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
19342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
19343         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
19344         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
19345         (Depends-on): Update conditions.
19346         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
19347         (Depends-on): Add remainder-ieee.
19348         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
19349         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
19350         module.
19352         remainderf-ieee: Work around test failure on OSF/1.
19353         * m4/remainderf-ieee.m4: New file.
19354         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
19355         present, test whether remainderf works with a zero second argument.
19356         Replace it if not.
19357         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
19358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
19359         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
19360         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
19361         (Depends-on): Update conditions.
19362         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
19363         (Depends-on): Add remainder-ieee.
19364         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
19365         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
19366         module.
19368         remainder-ieee: Work around test failure on OSF/1.
19369         * m4/remainder-ieee.m4: New file.
19370         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
19371         present, test whether remainder works with a zero second argument.
19372         Replace it if not.
19373         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
19374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
19375         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
19376         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
19377         (Depends-on): Update dependencies.
19378         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
19379         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
19380         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
19382         Tests for module 'remainderl-ieee'.
19383         * modules/remainderl-ieee-tests: New file.
19384         * tests/test-remainderl-ieee.c: New file.
19386         New module 'remainderl-ieee'.
19387         * modules/remainderl-ieee: New file.
19389         Tests for module 'remainder-ieee'.
19390         * modules/remainder-ieee-tests: New file.
19391         * tests/test-remainder-ieee.c: New file.
19393         New module 'remainder-ieee'.
19394         * modules/remainder-ieee: New file.
19396         Tests for module 'remainderf-ieee'.
19397         * modules/remainderf-ieee-tests: New file.
19398         * tests/test-remainderf-ieee.c: New file.
19399         * tests/test-remainder-ieee.h: New file.
19401         New module 'remainderf-ieee'.
19402         * modules/remainderf-ieee: New file.
19404 2012-02-27  Bruno Haible  <bruno@clisp.org>
19406         modff, modfl: Fix configure syntax error.
19407         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
19408         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19410 2012-02-27  Bruno Haible  <bruno@clisp.org>
19412         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
19413         * m4/fmodl-ieee.m4: New file.
19414         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
19415         whether fmodl works with zero arguments. Replace it if not.
19416         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
19417         (Depends-on): Add fmod-ieee.
19418         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
19419         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
19421         fmodf-ieee: Work around test failure on OSF/1.
19422         * m4/fmodf-ieee.m4: New file.
19423         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
19424         whether fmodf works with zero arguments. Replace it if not.
19425         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
19426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
19427         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
19428         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
19429         (Depends-on): Update dependencies.
19430         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
19431         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
19432         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
19434         fmodf-ieee: Work around test failure on MSVC 9.
19435         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
19436         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
19438         fmod-ieee: Work around test failures on OSF/1, mingw.
19439         * m4/fmod-ieee.m4: New file.
19440         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
19441         whether fmod works with zero arguments. Replace it if not.
19442         * lib/math.in.h (fmod): New declaration.
19443         * lib/fmod.c: New file.
19444         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
19445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
19446         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
19447         * modules/fmod (Files): Add lib/fmod.c.
19448         (Depends-on): Add math, isinf, trunc, fma.
19449         (configure.ac): Arrange to compile lib/fmod.c if needed.
19450         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
19451         m4/signbit.m4.
19452         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
19453         * tests/test-math-c++.cc: Check the declaration of fmod.
19454         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
19456         fmodl-ieee: Fix test failures.
19457         * lib/fmodl.c (fmodl): Treat Inf specially.
19458         * modules/fmodl (Depends-on): Add isinf.
19460         Tests for module 'fmodl-ieee'.
19461         * modules/fmodl-ieee-tests: New file.
19462         * tests/test-fmodl-ieee.c: New file.
19464         New module 'fmodl-ieee'.
19465         * modules/fmodl-ieee: New file.
19467         Tests for module 'fmod-ieee'.
19468         * modules/fmod-ieee-tests: New file.
19469         * tests/test-fmod-ieee.c: New file.
19471         New module 'fmod-ieee'.
19472         * modules/fmod-ieee: New file.
19474         Tests for module 'fmodf-ieee'.
19475         * modules/fmodf-ieee-tests: New file.
19476         * tests/test-fmodf-ieee.c: New file.
19477         * tests/test-fmod-ieee.h: New file.
19479         New module 'fmodf-ieee'.
19480         * modules/fmodf-ieee: New file.
19482 2012-02-27  Bruno Haible  <bruno@clisp.org>
19484         Tests for module 'rintl-ieee'.
19485         * modules/rintl-ieee-tests: New file.
19486         * tests/test-rintl-ieee.c: New file.
19488         New module 'rintl-ieee'.
19489         * modules/rintl-ieee: New file.
19491         Tests for module 'rint-ieee'.
19492         * modules/rint-ieee-tests: New file.
19493         * tests/test-rint-ieee.c: New file.
19495         New module 'rint-ieee'.
19496         * modules/rint-ieee: New file.
19498         Tests for module 'rintf-ieee'.
19499         * modules/rintf-ieee-tests: New file.
19500         * tests/test-rintf-ieee.c: New file.
19501         * tests/test-rint-ieee.h: New file.
19503         New module 'rintf-ieee'.
19504         * modules/rintf-ieee: New file.
19506 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
19508         regex: re_search etc. should return -2 when memory exhausted
19509         This bug was uncovered when testing 'grep'.  Without the fix,
19510         re_search and friends return -1 when memory is exhausted, but -1
19511         means no match, and this causes grep to falsely report no-match
19512         instead of memory-exhaustion.  See
19513         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
19514         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
19515         trouble; this can occur if re_search_internal ran out of memory.
19517 2012-02-26  Bruno Haible  <bruno@clisp.org>
19519         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
19520         * m4/modfl-ieee.m4: New file.
19521         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
19522         whether modfl works with Inf. Replace it if not.
19523         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
19524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
19525         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
19526         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
19527         (Depends-on): Update dependencies.
19528         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
19529         m4/signbit.m4.
19530         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
19531         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
19533         modfl-ieee: Fix dependencies.
19534         * modules/modfl-ieee (Depends-on): Add modf-ieee.
19536         modfl-ieee: Fix test failures.
19537         * lib/modfl.c (modfl): Treat NaN and Inf specially.
19538         * modules/modfl (Depends-on): Add isfinite, isinf.
19540         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
19541         * m4/modff-ieee.m4: New file.
19542         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
19543         whether modff works with NaN and Inf. Replace it if not.
19544         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
19545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
19546         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
19547         * modules/modff (configure.ac): Consider REPLACE_MODFF.
19548         (Depends-on): Update dependencies.
19549         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
19550         m4/signbit.m4.
19551         (Depends-on): Add modf-ieee.
19552         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
19553         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
19555         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
19556         * m4/modf-ieee.m4: New file.
19557         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
19558         whether modf works with NaN and Inf. Replace it if not.
19559         * lib/math.in.h (modf): New declaration.
19560         * lib/modf.c: New file.
19561         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
19562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
19563         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
19564         * modules/modf (Files): Add lib/modf.c.
19565         (Depends-on): Add math, isfinite, trunc, isinf.
19566         (configure.ac): Addrange to compile lib/modf.c if needed.
19567         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
19568         m4/signbit.m4.
19569         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
19570         * tests/test-math-c++.cc: Check the declaration of modf.
19571         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
19573         Tests for module 'modfl-ieee'.
19574         * modules/modfl-ieee-tests: New file.
19575         * tests/test-modfl-ieee.c: New file.
19577         New module 'modfl-ieee'.
19578         * modules/modfl-ieee: New file.
19580         Tests for module 'modf-ieee'.
19581         * modules/modf-ieee-tests: New file.
19582         * tests/test-modf-ieee.c: New file.
19584         New module 'modf-ieee'.
19585         * modules/modf-ieee: New file.
19587         Tests for module 'modff-ieee'.
19588         * modules/modff-ieee-tests: New file.
19589         * tests/test-modff-ieee.c: New file.
19590         * tests/test-modf-ieee.h: New file.
19592         New module 'modff-ieee'.
19593         * modules/modff-ieee: New file.
19595 2012-02-26  Bruno Haible  <bruno@clisp.org>
19597         Tests for module 'fabsl-ieee'.
19598         * modules/fabsl-ieee-tests: New file.
19599         * tests/test-fabsl-ieee.c: New file.
19601         New module 'fabsl-ieee'.
19602         * modules/fabsl-ieee: New file.
19604         Tests for module 'fabs-ieee'.
19605         * modules/fabs-ieee-tests: New file.
19606         * tests/test-fabs-ieee.c: New file.
19608         New module 'fabs-ieee'.
19609         * modules/fabs-ieee: New file.
19611         Tests for module 'fabsf-ieee'.
19612         * modules/fabsf-ieee-tests: New file.
19613         * tests/test-fabsf-ieee.c: New file.
19614         * tests/test-fabs-ieee.h: New file.
19616         New module 'fabsf-ieee'.
19617         * modules/fabsf-ieee: New file.
19619 2012-02-26  Bruno Haible  <bruno@clisp.org>
19621         Tests for module 'fmal-ieee'.
19622         * modules/fmal-ieee-tests: New file.
19623         * tests/test-fmal-ieee.c: New file.
19625         New module 'fmal-ieee'.
19626         * modules/fmal-ieee: New file.
19628         Tests for module 'fma-ieee'.
19629         * modules/fma-ieee-tests: New file.
19630         * tests/test-fma-ieee.c: New file.
19632         New module 'fma-ieee'.
19633         * modules/fma-ieee: New file.
19635         Tests for module 'fmaf-ieee'.
19636         * modules/fmaf-ieee-tests: New file.
19637         * tests/test-fmaf-ieee.c: New file.
19638         * tests/test-fma-ieee.h: New file.
19640         New module 'fmaf-ieee'.
19641         * modules/fmaf-ieee: New file.
19643 2012-02-26  Bruno Haible  <bruno@clisp.org>
19645         Tests for module 'ldexpl-ieee'.
19646         * modules/ldexpl-ieee-tests: New file.
19647         * tests/test-ldexpl-ieee.c: New file.
19649         New module 'ldexpl-ieee'.
19650         * modules/ldexpl-ieee: New file.
19652         Tests for module 'ldexp-ieee'.
19653         * modules/ldexp-ieee-tests: New file.
19654         * tests/test-ldexp-ieee.c: New file.
19656         New module 'ldexp-ieee'.
19657         * modules/ldexp-ieee: New file.
19659         Tests for module 'ldexpf-ieee'.
19660         * modules/ldexpf-ieee-tests: New file.
19661         * tests/test-ldexpf-ieee.c: New file.
19662         * tests/test-ldexp-ieee.h: New file.
19664         New module 'ldexpf-ieee'.
19665         * modules/ldexpf-ieee: New file.
19667 2012-02-26  Bruno Haible  <bruno@clisp.org>
19669         Refactor frexp*-ieee tests.
19670         * tests/test-frexp-ieee.h: New file.
19671         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
19672         (main): Just call test_function.
19673         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
19674         (main): Just call test_function.
19675         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
19676         (main): Just call test_function.
19677         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
19678         * modules/frexp-ieee-tests (Files): Likewise.
19679         * modules/frexpl-ieee-tests (Files): Likewise.
19681         Tests for module 'frexpl-ieee'.
19682         * modules/frexpl-ieee-tests: New file.
19683         * tests/test-frexpl-ieee.c: New file.
19685         New module 'frexpl-ieee'.
19686         * modules/frexpl-ieee: New file.
19688         Tests for module 'frexp-ieee'.
19689         * modules/frexp-ieee-tests: New file.
19690         * tests/test-frexp-ieee.c: New file.
19692         New module 'frexp-ieee'.
19693         * modules/frexp-ieee: New file.
19695         Tests for module 'frexpf-ieee'.
19696         * modules/frexpf-ieee-tests: New file.
19697         * tests/test-frexpf-ieee.c: New file.
19699         New module 'frexpf-ieee'.
19700         * modules/frexpf-ieee: New file.
19702 2012-02-26  Bruno Haible  <bruno@clisp.org>
19704         roundl-ieee tests: More tests.
19705         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
19706         (main): Add tests for [MX] shaded specification in POSIX.
19707         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19708         (Depends-on): Add isnanl-nolibm.
19710         round-ieee tests: More tests.
19711         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
19712         (main): Add tests for [MX] shaded specification in POSIX.
19713         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19714         (Depends-on): Add isnand-nolibm.
19716         roundf-ieee tests: More tests.
19717         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
19718         (main): Add tests for [MX] shaded specification in POSIX.
19719         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19720         (Depends-on): Add isnanf-nolibm.
19722         truncl-ieee tests: More tests.
19723         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
19724         (main): Add tests for [MX] shaded specification in POSIX.
19725         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19726         (Depends-on): Add isnanl-nolibm.
19728         trunc-ieee tests: More tests.
19729         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
19730         (main): Add tests for [MX] shaded specification in POSIX.
19731         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19732         (Depends-on): Add isnand-nolibm.
19734         truncf-ieee tests: More tests.
19735         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
19736         (main): Add tests for [MX] shaded specification in POSIX.
19737         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19738         (Depends-on): Add isnanf-nolibm.
19740         ceill-ieee tests: More tests.
19741         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
19742         (main): Add tests for [MX] shaded specification in POSIX.
19743         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19744         (Depends-on): Add isnanl-nolibm.
19746         ceil-ieee tests: More tests.
19747         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
19748         (main): Add tests for [MX] shaded specification in POSIX.
19749         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19750         (Depends-on): Add isnand-nolibm.
19752         ceilf-ieee tests: More tests.
19753         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
19754         (main): Add tests for [MX] shaded specification in POSIX.
19755         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19756         (Depends-on): Add isnanf-nolibm.
19758         floorl-ieee tests: More tests.
19759         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
19760         (main): Add tests for [MX] shaded specification in POSIX.
19761         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19762         (Depends-on): Add isnanl-nolibm.
19764         floor-ieee tests: More tests.
19765         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
19766         (main): Add tests for [MX] shaded specification in POSIX.
19767         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19768         (Depends-on): Add isnand-nolibm.
19770         floorf-ieee tests: More tests.
19771         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
19772         (main): Add tests for [MX] shaded specification in POSIX.
19773         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
19774         (Depends-on): Add isnanf-nolibm.
19776 2012-02-26  Bruno Haible  <bruno@clisp.org>
19778         fpieee: More comments.
19779         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
19781 2012-02-25  Bruno Haible  <bruno@clisp.org>
19783         Tests for module 'log10l'.
19784         * modules/log10l-tests: New file.
19785         * tests/test-log10l.c: New file.
19786         * tests/test-math-c++.cc: Check the declaration of log10l.
19788         New module 'log10l'.
19789         * lib/math.in.h (log10l): New declaration.
19790         * lib/log10l.c: New file.
19791         * m4/log10l.m4: New file.
19792         * modules/log10l: New file.
19793         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
19794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
19795         HAVE_DECL_LOG10L.
19796         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
19797         HAVE_DECL_LOG10L.
19798         * doc/posix-functions/log10l.texi: Mention the new module.
19800 2012-02-25  Bruno Haible  <bruno@clisp.org>
19802         fmodl, remainder*: Avoid wrong results due to rounding errors.
19803         * lib/fmodl.c (fmodl): Correct the result if it is not within the
19804         expected bounds.
19805         * lib/remainderf.c (remainderf): Likewise.
19806         * lib/remainder.c (remainder): Likewise.
19807         * lib/remainderl.c (remainderl): Likewise.
19809 2012-02-25  Bruno Haible  <bruno@clisp.org>
19811         Tests for module 'remainderl'.
19812         * modules/remainderl-tests: New file.
19813         * tests/test-remainderl.c: New file.
19814         * tests/test-math-c++.cc: Check the declaration of remainderl.
19816         New module 'remainderl'.
19817         * lib/math.in.h (remainderl): New declaration.
19818         * lib/remainderl.c: New file.
19819         * m4/remainderl.m4: New file.
19820         * modules/remainderl: New file.
19821         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
19822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
19823         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
19824         HAVE_REMAINDERL.
19825         * doc/posix-functions/remainderl.texi: Mention the new module.
19827 2012-02-25  Bruno Haible  <bruno@clisp.org>
19829         Tests for module 'remainderf'.
19830         * modules/remainderf-tests: New file.
19831         * tests/test-remainderf.c: New file.
19832         * tests/test-math-c++.cc: Check the declaration of remainderf.
19834         New module 'remainderf'.
19835         * lib/math.in.h (remainderf): New declaration.
19836         * lib/remainderf.c: New file.
19837         * m4/remainderf.m4: New file.
19838         * modules/remainderf: New file.
19839         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
19840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
19841         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
19842         HAVE_REMAINDERF.
19843         * doc/posix-functions/remainderf.texi: Mention the new module.
19845 2012-02-25  Bruno Haible  <bruno@clisp.org>
19847         remainder: Support for MSVC.
19848         * lib/math.in.h (remainder): New declaration.
19849         * lib/remainder.c: New file.
19850         * m4/remainder.m4: New file.
19851         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
19852         (Depends-on): Add math, round, fma.
19853         (configure.ac): Use results of gl_FUNC_REMAINDER.
19854         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
19855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
19856         HAVE_DECL_REMAINDER.
19857         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
19858         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
19859         * tests/test-math-c++.cc: Check the declaration of remainder.
19860         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
19861         problems are fixed.
19863 2012-02-25  Bruno Haible  <bruno@clisp.org>
19865         Tests for module 'fmodl'.
19866         * modules/fmodl-tests: New file.
19867         * tests/test-fmodl.c: New file.
19868         * tests/test-math-c++.cc: Check the declaration of fmodl.
19870         New module 'fmodl'.
19871         * lib/math.in.h (fmodl): New declaration.
19872         * lib/fmodl.c: New file.
19873         * m4/fmodl.m4: New file.
19874         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
19875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
19876         REPLACE_FMODL.
19877         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
19878         REPLACE_FMODL.
19879         * modules/fmodl: New file.
19880         * doc/posix-functions/fmodl.texi: Mention the new module.
19882 2012-02-25  Bruno Haible  <bruno@clisp.org>
19884         Tests for module 'modfl'.
19885         * modules/modfl-tests: New file.
19886         * tests/test-modfl.c: New file.
19887         * tests/test-math-c++.cc: Check the declaration of modfl.
19889         New module 'modfl'.
19890         * lib/math.in.h (modfl): New declaration.
19891         * lib/modfl.c: New file.
19892         * m4/modfl.m4: New file.
19893         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
19894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
19895         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
19896         * modules/modfl: New file.
19897         * doc/posix-functions/modfl.texi: Mention the new module.
19899 2012-02-25  Bruno Haible  <bruno@clisp.org>
19901         Tests for module 'fabsl'.
19902         * modules/fabsl-tests: New file.
19903         * tests/test-fabsl.c: New file.
19904         * tests/test-math-c++.cc: Check the declaration of fabsl.
19906         New module 'fabsl'.
19907         * lib/math.in.h (fabsl): New declaration.
19908         * lib/fabsl.c: New file.
19909         * m4/fabsl.m4: New file.
19910         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
19911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
19912         REPLACE_FABSL.
19913         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
19914         REPLACE_FABSL.
19915         * modules/fabsl: New file.
19916         * doc/posix-functions/fabsl.texi: Mention the new module.
19918 2012-02-25  Bruno Haible  <bruno@clisp.org>
19920         fabs tests: More tests.
19921         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
19922         (zero): New variable.
19923         (main): Add tests for signed zero.
19924         * modules/fabs-tests (Files): Add tests/minus-zero.h.
19926         fabsf tests: More tests.
19927         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
19928         (zero): New variable.
19929         (main): Add tests for signed zero.
19930         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
19932 2012-02-24  Bruno Haible  <bruno@clisp.org>
19934         atanl: Provide function definition on MSVC.
19935         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
19936         function pointer.
19937         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
19939 2012-02-24  Bruno Haible  <bruno@clisp.org>
19941         acosl: Provide function definition on MSVC.
19942         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
19943         function pointer.
19944         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
19946 2012-02-24  Bruno Haible  <bruno@clisp.org>
19948         asinl: Provide function definition on MSVC.
19949         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
19950         function pointer.
19951         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
19953 2012-02-24  Bruno Haible  <bruno@clisp.org>
19955         tanl: Provide function definition on MSVC.
19956         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
19957         function pointer.
19958         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
19960 2012-02-24  Bruno Haible  <bruno@clisp.org>
19962         cosl: Provide function definition on MSVC.
19963         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
19964         function pointer.
19965         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
19967 2012-02-24  Bruno Haible  <bruno@clisp.org>
19969         sinl: Provide function definition on MSVC.
19970         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
19971         function pointer.
19972         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
19974 2012-02-24  Bruno Haible  <bruno@clisp.org>
19976         logl: Provide function definition on MSVC.
19977         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
19978         function pointer.
19979         * lib/math.in.h (logl): Undefine if it does not exist as a function.
19981 2012-02-24  Bruno Haible  <bruno@clisp.org>
19983         expl: Provide function definition on MSVC.
19984         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
19985         function pointer.
19986         * lib/math.in.h (expl): Undefine if it does not exist as a function.
19988 2012-02-24  Bruno Haible  <bruno@clisp.org>
19990         sqrtl: Provide function definition on MSVC.
19991         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
19992         a function pointer.
19993         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
19995 2012-02-24  Bruno Haible  <bruno@clisp.org>
19997         ceill: Provide function definition on MSVC.
19998         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
19999         used as a function pointer.
20000         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
20002 2012-02-24  Bruno Haible  <bruno@clisp.org>
20004         floorl: Provide function definition on MSVC.
20005         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
20006         used as a function pointer.
20007         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
20009 2012-02-24  Bruno Haible  <bruno@clisp.org>
20011         ceilf: Provide function definition on MSVC.
20012         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
20013         used as a function pointer.
20014         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
20016 2012-02-24  Bruno Haible  <bruno@clisp.org>
20018         floorf: Provide function definition on MSVC.
20019         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
20020         used as a function pointer.
20021         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
20023 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20025         stdnoreturn: new module
20026         This implements a replacement for C11's <stdnoreturn.h>.
20027         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
20028         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
20029         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
20030         * tests/test-stdnoreturn.c: New files.
20032 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
20034         regex: fix false multibyte matches in some regular expressions
20035         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
20036         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
20037         * lib/regex_internal.c (re_string_skip_chars):
20038         Fix miscomputation of remain_len that may cause incomplete
20039         multi-byte character and false match.
20041 2012-02-24  Jim Meyering  <meyering@redhat.com>
20043         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
20044         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
20045         uses with "==" *before* the call, e.g., 0 == strcmp (...)
20046         Remove now-unnecessary str''cmp obfuscation.
20047         Suggested by Akim Demaille.
20049 2012-02-24  Bruno Haible  <bruno@clisp.org>
20051         streq: Rename macro.
20052         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
20053         * NEWS: Mention the change.
20054         * lib/mbrtowc.c (mbrtowc): Update.
20055         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
20056         * lib/wcwidth.c (wcwidth): Update.
20057         Suggested by Akim Demaille and Jim Meyering.
20059 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20061         regex: fix typo in definition of MIN
20062         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
20063         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
20065 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
20066             Bruno Haible  <bruno@clisp.org>
20068         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
20069         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
20070         entries into a stack-allocated buffer directly.
20071         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
20073 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
20074             Bruno Haible  <bruno@clisp.org>
20076         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
20078          - There were several instances of this pattern:
20080              for (;;) {
20081                n = acl (f, GETACLCNT, 0, NULL);
20082                [ allocate an array A of size N ]
20083                if (acl (f, GETACL, n, a) == n)
20084                  break;
20085              }
20087            This loop might never terminate if some other process is constantly
20088            manipulating the file's ACL.  The loop should be rewritten to
20089            terminate.
20091          - The acl (... GETACLNT ...) call is merely an optimization; its value
20092            is merely a hint as to how big to make the array.  A better
20093            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
20094            and just guess a reasonably-big size, growing the size and trying
20095            again if it's not large enough.  This guarantees termination, and
20096            saves a system call.
20098         * lib/acl-internal.h: Include <limits.h>.
20099         (MIN, SIZE_MAX): New macros.
20100         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
20101         a stack-allocated buffer, and use malloc if it does not fit. Don't
20102         use GETACLCNT.
20103         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
20105 2012-02-19  Bruno Haible  <bruno@clisp.org>
20107         acl: Fix endless loop on Solaris with vxfs.
20108         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
20109         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
20110         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
20111         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
20112         * tests/test-sameacls.c (main)[Solaris]: Likewise.
20113         Reported by Bill Jones in
20114         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
20116 2012-02-19  Bruno Haible  <bruno@clisp.org>
20118         acl: Fix copy-acl test failure on Solaris 11 2011-11.
20119         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
20120         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
20121         that this function returns 0 in some more cases.
20123 2012-02-19  Bruno Haible  <bruno@clisp.org>
20125         acl: Update doc references.
20126         * doc/acl-resources.txt: Update links to Solaris documentation.
20128 2012-02-19  Bruno Haible  <bruno@clisp.org>
20130         Fix test failure in many locales on Solaris 11.
20131         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
20132         'tr' arguments.
20133         * tests/test-pipe-filter-ii1.c (main): Likewise.
20134         * build-aux/bootstrap (check_versions): Run 'tr' command with range
20135         expressions in the C locale.
20136         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20137         * m4/host-os.m4 (gl_HOST_OS): Likewise.
20139 2012-02-19  Bruno Haible  <bruno@clisp.org>
20141         gnulib-tool: Improve usage message.
20142         * gnulib-tool (func_usage): Move doc of --help and --version to the
20143         section "Operation modes".
20145 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
20147         README-release: make it easier to execute commands
20148         * top/README-release: break commands out on to separate lines.
20150 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
20152         GNUmakefile: simplify detection of unconfigured trees
20153         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
20154         whether the tree make is being run from is already configured or
20155         not.  Related simplifications.
20157 2012-02-13  Simon Josefsson  <simon@josefsson.org>
20159         * gnulib-tool (func_usage): Document --help and --version.
20161 2012-02-11  Jim Meyering  <meyering@redhat.com>
20163         bootstrap: don't exit 0 upon gnulib-tool failure
20164         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
20165         its exit status, not 0.
20167 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
20169         README-release: various improvements
20170         * top/README-release: Give a command to push changes for the
20171         release.  Add "distcheck" to list of other pre-release checks.
20172         Fix instance of "make stable" which should be "make TYPE".
20174 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20176         maint: replace FSF snail-mail addresses with URLs
20177         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
20178         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
20179         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
20180         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
20181         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
20182         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
20183         * lib/check-version.c, lib/check-version.h, lib/config.charset:
20184         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
20185         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
20186         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
20187         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
20188         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
20189         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
20190         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
20191         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
20192         * lib/glthread/thread.c, lib/glthread/thread.h:
20193         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
20194         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
20195         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
20196         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
20197         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
20198         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
20199         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
20200         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
20201         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
20202         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
20203         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
20204         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
20205         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
20206         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
20207         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
20208         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
20209         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
20210         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
20211         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
20212         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
20213         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
20214         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
20215         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
20216         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
20217         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
20218         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
20219         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
20220         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
20221         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
20222         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
20223         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
20224         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
20225         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
20226         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
20227         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
20228         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
20229         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
20230         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
20231         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
20232         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
20233         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
20234         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
20235         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
20236         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
20237         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
20238         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
20239         * tests/test-poll.c, tests/test-quotearg-simple.c:
20240         * tests/test-quotearg.c, tests/test-quotearg.h:
20241         * tests/test-round-ieee.c, tests/test-round1.c:
20242         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
20243         * tests/test-roundl-ieee.c, tests/test-roundl.c:
20244         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
20245         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
20246         * tests/test-strerror.c, tests/test-strerror_r.c:
20247         * tests/test-strsignal.c, tests/test-strverscmp.c:
20248         * tests/test-xmemdup0.c:
20249         Replace FSF snail mail addresses with URLs, as per GNU coding
20250         standards.  See glibc bug
20251         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
20253 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
20255         README-release: capitalize a word and split a line
20256         * top/README-release: Fix punctuation and spacing.
20258 2012-02-08  Akim Demaille  <demaille@gostai.com>
20260         fatal-signal: use C prototypes (with explicit void).
20261         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
20262         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
20264 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20266         regex: spelling fix
20267         * lib/regexec.c: spelling fix
20269         regex: rely on stdint.h for SIZE_MAX
20270         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
20272 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20274         regex: merge glibc changes
20276         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
20277         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
20278         (init_word_char): Work even if bitset words are not exactly 32 or
20279         64 bits wide.  Don't assume there are no padding bits.
20280         * lib/regex.c [_LIBC]: Do not include <config.h>.
20281         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
20282         and -Wtype-limits.
20283         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
20284         needless disagreement with glibc.  All uses changed.  Define it to
20285         1 only if _GNU_SOURCE, to match glibc.
20286         (_REG_RM_NAME): Remove; no longer needed, since the names in
20287         question are now all protected by __USE_GNU.
20288         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
20289         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
20290         * lib/regex_internal.h (MIN): New macro.
20292         2012-01-03 Ulrich Drepper <drepper@gmail.com>
20293         * lib/regcomp.c (init_word_char): Optimize regex a bit.
20295         2011-12-30 Jakub Jelinek <jakub@redhat.com>
20296         * lib/regex_internal.c (re_string_fetch_byte_case):
20297         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
20298         is miscompiled, and it turns out it is because of an incorrect
20299         attribute on re_string_fetch_byte_case.  Unlike
20300         re_string_peek_byte_case, this one is really not pure, it modifies
20301         memory (increments pstr->cur_idx), and with the pure attribute GCC
20302         assumed it doesn't and it cached the presumed value of
20303         regexp->cur_idx in a variable across the
20304          for (;; ++i)
20305            {
20306              if (i >= BRACKET_NAME_BUF_SIZE)
20307                return REG_EBRACK;
20308              if (token->type == OP_OPEN_CHAR_CLASS)
20309                ch = re_string_fetch_byte_case (regexp);
20310              else
20311                ch = re_string_fetch_byte (regexp);
20312              if (re_string_eoi(regexp))
20313                return REG_EBRACK;
20314              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
20315                break;
20316              elem->opr.name[i] = ch;
20317            }
20319         2011-11-29 Andreas Schwab <schwab@redhat.com>
20320         * lib/regcomp.c (build_equiv_class):
20321         Fix access after end of search string in regex matcher.
20323         2011-11-12 Ulrich Drepper <drepper@redhat.com>
20324         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
20326         2011-10-12 Ulrich Drepper <drepper@redhat.com>
20327         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
20329         2011-10-11 Ulrich Drepper <drepper@redhat.com>
20330         * lib/regcomp.c (parse_branch, parse_sub_exp):
20331         More regex memory leak fixes and tests.
20332         (parse_sub_exp, parse_bracket_exp):
20333         Fix memory leak for some invalid regular expressions.
20335         2011-05-28 Ulrich Drepper <drepper@gmail.com>
20336         * lib/regex_internal.c, lib/regexec.c:
20337         Fix unnecessary overallocation due to incomplete character.  When
20338         incomplete characters are found at the end of a string the code
20339         ran amok and allocated lots of memory.  Stricter limits are now in
20340         place.
20342         2011-05-20 Reuben Thomas <rrt@sc3d.org>
20343         * lib/regex.h: Update documentation.
20345         2011-05-16 Aharon Robbins <arnold@skeeve.com>
20346         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
20348         2010-05-05 Andreas Schwab <schwab@redhat.com>
20349         * lib/regexec.c (find_collation_sequence_value):
20350         Fix lookup of collation sequence value during regexp matching.
20352         2010-01-22 Ulrich Drepper <drepper@redhat.com>
20353         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
20355         2008-01-16 Ulrich Drepper <drepper@redhat.com>
20356         * lib/regex.h: Cleanup namespace.
20358         2007-11-26 Ulrich Drepper <drepper@redhat.com>
20359         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
20361         2007-08-26 Ulrich Drepper <drepper@redhat.com>
20362         * lib/regex_internal.h: Prevent some declarations and definitions
20363         to be seen when used in tests.
20365         2005-05-06 Ulrich Drepper <drepper@redhat.com>
20366         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
20367         __libc_lock_* macros if not _LIBC.
20368         (struct re_dfa_t): Add lock.
20370 2012-02-07  Eric Blake  <eblake@redhat.com>
20372         maint.mk: also prohibit lower-case @var@
20373         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
20374         lower case, like @top_srcdir@.
20376 2012-02-04  Eric Blake  <eblake@redhat.com>
20378         canonicalize: avoid uninitialized memory use
20379         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
20380         random '/' left in dest.
20381         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
20383 2012-02-04  Bruno Haible  <bruno@clisp.org>
20385         isatty: Fix test failure of ptsname_r on native Windows.
20386         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
20387         and don't set errno.
20388         (isatty): Test first whether fd is valid. Set errno when returning 0.
20390 2012-02-04  Bruno Haible  <bruno@clisp.org>
20392         spawn-pipe tests: Fix a NULL program name in a diagnostic.
20393         * tests/test-spawn-pipe-main.c: Include progname.h.
20394         (main): Invoke set_program_name.
20395         * modules/spawn-pipe-tests (Depends-on): Add progname.
20397         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
20398         * tests/test-nonblocking-socket-main.c: Include progname.h.
20399         (main): Invoke set_program_name.
20400         * modules/nonblocking-socket-tests (Depends-on): Add progname.
20402         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
20403         * tests/test-nonblocking-pipe-main.c: Include progname.h.
20404         (main): Invoke set_program_name.
20405         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
20407 2012-02-04  Eric Blake  <eblake@redhat.com>
20409         canonicalize-lgpl: fix // handling
20410         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
20412         canonicalize: fix // handling
20413         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
20414         /// to //, since only // is special.
20416 2012-02-04  Bruno Haible  <bruno@clisp.org>
20418         ioctl: Fix test failure on native Windows.
20419         * lib/ioctl.c: Include msvc-nothrow.h.
20420         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
20422 2012-02-04  Bruno Haible  <bruno@clisp.org>
20424         fsync: Avoid test failure on native Windows.
20425         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
20426         read-only.
20428 2012-02-04  Bruno Haible  <bruno@clisp.org>
20430         sys_select: Avoid syntax error on OpenBSD 5.0.
20431         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
20432         currently being included, just include the system's <sys/select.h>.
20434 2012-02-04  Bruno Haible  <bruno@clisp.org>
20436         sys_select: Avoid syntax error on OpenBSD 5.0.
20437         * lib/sys_select.in.h: Include <signal.h> only after the include_next
20438         <sys/select.h>, not before.
20439         Reported by Jiri B <jirib@devio.us>.
20441 2012-02-04  Bruno Haible  <bruno@clisp.org>
20443         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
20444         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
20445         global variables.
20446         * tests/test-get-rusage-data.c (main): Likewise.
20447         Reported by Jim Meyering.
20449 2012-02-04  Bruno Haible  <bruno@clisp.org>
20451         stdioext: Fix last commit.
20452         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
20454 2012-02-03  Bruno Haible  <bruno@clisp.org>
20456         stdioext: Add tentative support for Plan9.
20457         * lib/stdio-impl.h: Include <errno.h>.
20458         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
20459         * lib/freadable.c (freadable): Likewise.
20460         * lib/fwritable.c (fwritable): Likewise.
20461         * lib/fbufmode.c (fbufmode): Likewise.
20462         * lib/freading.c (freading): Likewise.
20463         * lib/fwriting.c (fwriting): Likewise.
20464         * lib/freadptr.c (freadptr): Likewise.
20465         * lib/freadseek.c (freadptrinc): Likewise.
20466         * lib/freadahead.c (freadahead): Likewise.
20467         * lib/fpurge.c (fpurge): Likewise.
20468         * lib/fseeko.c (rpl_fseeko): Likewise.
20469         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
20470         Reported by Jens Staal <staal1978@gmail.com>.
20472 2012-02-02  Jim Meyering  <meyering@redhat.com>
20474         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
20475         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
20476         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
20477         not even to try to add the attribute.  Instead, add a pragma to suppress
20478         the suggestion/warning.
20480 2012-01-31  Karl Berry  <karl@gnu.org>
20482         setstate doc: typo.
20483         * doc/posix-functions/setstate.texi (setstate): { not (.
20485 2012-01-31  Bruno Haible  <bruno@clisp.org>
20487         popen: Make more robust on Windows.
20488         * lib/popen.c: On native Windows, use the _popen based code even if
20489         HAVE_POPEN is set.
20490         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
20491         environment variable on native Windows.
20493 2012-01-30  Bruno Haible  <bruno@clisp.org>
20495         pclose: Fix typo.
20496         * lib/stdio.in.h (pclose): Fix typo in warning message.
20498 2012-01-30  Bruno Haible  <bruno@clisp.org>
20500         doc about getlogin_r, setstate.
20501         * doc/posix-functions/getlogin_r.texi: List the incompatible
20502         declaration problem under "not fixed by gnulib".
20503         * doc/posix-functions/setstate.texi: Mention incompatible declaration
20504         problem on Solaris 11 and other platforms.
20506 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
20507             Bruno Haible  <bruno@clisp.org>
20509         poll tests: Make test more robust.
20510         * tests/test-poll.c: Include macros.h.
20511         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
20512         return value of various I/O operations.
20513         * modules/poll-tests (Files): Add tests/macros.h.
20515 2012-01-30  Bruno Haible  <bruno@clisp.org>
20517         sys_stat: Fix support for mingw64 and MSVC.
20518         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
20519         header files already do it.
20520         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
20521         stat itself.
20522         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
20524 2012-01-30  Bruno Haible  <bruno@clisp.org>
20526         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
20527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
20528         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
20530 2012-01-29  Bruno Haible  <bruno@clisp.org>
20532         quotearg: Fix test failure on MacOS X 10.5.
20533         * tests/test-quotearg-simple.c: Include localcharset.h.
20534         (main): If the locale encoding is not ASCII, bypass the tests of
20535         locale_quoting_style and clocale_quoting_style.
20536         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
20538 2012-01-29  Jim Meyering  <meyering@redhat.com>
20540         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
20541         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
20542         detect uses of canonicalize_file_name.
20544 2012-01-28  Bruno Haible  <bruno@clisp.org>
20546         test-framework-sh: Fix test failure with AIX 7.1 diff.
20547         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
20548         in column 1, like 'diff -c' does.
20549         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
20550         whether 'diff -u' is used. Instead, test whether the output contains
20551         some '@' character.
20553 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20555         strtoimax: eliminate need for stdint.h, inttypes.h checks
20556         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
20557         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
20558         the prerequisites for a recently-introduced strtoimax test.
20559         I guess this might cause strtoimax to be replaced when not
20560         strictly necessary on older hosts, but this shouldn't introduce
20561         any bugs and it should make Emacs 'configure' faster on typical
20562         modern hosts.  Problem discovered when importing the latest gnulib
20563         to an Emacs test version.
20564         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
20566 2012-01-28  Bruno Haible  <bruno@clisp.org>
20568         sys_time: Override 'struct timeval' on some native Windows platforms.
20569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
20570         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
20571         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
20572         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
20573         needs to be overridden.
20574         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
20575         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
20576         * tests/test-sys_select.c: Check that the tv_sec member has the same
20577         size as a 'time_t'.
20578         * tests/test-sys_time.c: Likewise.
20579         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
20580         is set, set also REPLACE_GETTIMEOFDAY.
20581         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
20582         convert the resulting 'struct timeval' before returning.
20583         * lib/select.c: Include <sys/time.h>.
20584         (select, timeval): Undefine at the right place.
20585         * modules/select (Depends-on): Add sys_time.
20586         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
20587         some Windows platforms.
20588         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
20590 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
20592         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
20593         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
20594         an integer.
20595         * lib/fcntl.c (dupfd): Likewise.
20596         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
20598 2012-01-28  Bruno Haible  <bruno@clisp.org>
20600         fcntl: Avoid compilation error on native Windows.
20601         * modules/fcntl (Depends-on): Add 'close'.
20603 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
20605         select, poll, isatty: Avoid warnings on x86_64 mingw64.
20606         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
20607         pointer to an integer.
20608         * lib/poll.c (IsConsoleHandle): Likewise.
20609         * lib/isatty.c (IsConsoleHandle): Likewise.
20611 2012-01-28  Jim Meyering  <meyering@redhat.com>
20613         doc: clarify README-release
20614         * top/README-release: Clarify: you should make a point to have
20615         the latest stable versions of build tools in your PATH, and the
20616         reference to buildreq is solely for its list of tool names, not
20617         for its minimal-functional version numbers.
20618         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
20620         maint.mk: use more readable (yet functionally equivalent) quoting
20621         It is common to quote a single quote in a single quoted string like
20622         this:  '...'\''...'.  Unless you know the idiom, that looks like
20623         gibberish, so prefer to double-quote the string when possible.
20624         Then you can use a more readable, lone single quote: "...'..."
20625         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
20626         "don't" is more readable than the equivalent 'don'\''t'.
20627         (sc_cast_of_x_alloc_return_value): Likewise.
20628         (sc_cast_of_alloca_return_value): Likewise.
20629         (sc_makefile_path_separator_check): Similar: use ":" in '...',
20630         rather than '\'':'\''.
20632 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
20634         stdalign: relax _Alignof and tighten _Alignas test
20635         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
20636         as it was too strict: alignof must divide offsetof, but it need
20637         not equal offsetof.  Inspired by Joseph S. Myers's comment
20638         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
20639         Conversely, tighten the _Alignas test a bit, as the resulting
20640         alignment must be exactly 8.
20642 2012-01-27  Bruno Haible  <bruno@clisp.org>
20644         stdalign: Document the last change.
20645         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
20647 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
20649         stdalign: check that alignof and offsetof are consistent
20650         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
20651         Problem reported for gnulib by Richard W.M. Jones in
20652         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
20654 2012-01-27  Jim Meyering  <meyering@redhat.com>
20656         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
20657         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
20658         convert a sequence with gaps to the minimal containing range.
20659         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
20660         * tests/test-update-copyright.sh: Test for this.
20661         The FSF confirmed it is ok to do this, assuming there is at
20662         least one significant change per year in the affected range:
20663         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
20665 2012-01-26  Bruno Haible  <bruno@clisp.org>
20667         pipe2: refine doc about thread-safety
20668         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
20669         multithread-safety problem.
20670         * doc/glibc-functions/accept4.texi: Likewise.
20672 2012-01-26  Bruno Haible  <bruno@clisp.org>
20674         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
20675         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
20676         In the test program, include <fcntl.h>, for O_RDONLY.
20678 2012-01-26  Eric Blake  <eblake@redhat.com>
20680         pipe2: document lack of thread-safety in replacement
20681         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
20682         issue in replacement.
20683         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20684         Based on a report by Eric Wong.
20686 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
20687             Bruno Haible  <bruno@clisp.org>
20689         malloca: Avoid warnings on x86_64 mingw64.
20690         * lib/malloca.c: Include <stdint.h>.
20691         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
20692         * modules/malloca (Depends-on): Add stdint.
20693         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
20695 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
20697         obstack: remove __STDC__ conditionals
20698         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
20699         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
20700         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
20701         m4/include_next.m4 as the only gnulib-maintained places that still
20702         refer to __STDC__.
20704 2012-01-24  Bruno Haible  <bruno@clisp.org>
20706         havelib: Modern quoting.
20707         * build-aux/config.rpath: Quote 'like this', not `like this', as per
20708         the recent change to the GNU coding standards.
20710 2012-01-24  Bruno Haible  <bruno@clisp.org>
20712         stdint: Improve support for Android.
20713         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
20714         Reported by Simon Josefsson <simon@josefsson.org>.
20716 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20718         doc: omit trailing empty lines from INSTALL etc.
20719         * doc/Makefile (INSTALL): Omit trailing empty lines.
20720         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
20721         omit trailing empty lines.  This simplifies the build procedure.
20723 2012-01-23  Jim Meyering  <meyering@redhat.com>
20725         tests: avoid spurious warnings about gl_sockets_startup
20726         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
20727         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
20728         reporting a "statement with no effect".
20729         * tests/test-accept.c (main): Mark as "(void)".
20730         * tests/test-accept4.c (main): Likewise.
20731         * tests/test-bind.c (main): Likewise.
20732         * tests/test-connect.c (main): Likewise.
20733         * tests/test-getpeername.c (main): Likewise.
20734         * tests/test-getsockname.c (main): Likewise.
20735         * tests/test-getsockopt.c (main): Likewise.
20736         * tests/test-listen.c (main): Likewise.
20737         * tests/test-recv.c (main): Likewise.
20738         * tests/test-recvfrom.c (main): Likewise.
20739         * tests/test-send.c (main): Likewise.
20740         * tests/test-sendto.c (main): Likewise.
20741         * tests/test-setsockopt.c (main): Likewise.
20742         * tests/test-shutdown.c (main): Likewise.
20744 2012-01-21  Bruno Haible  <bruno@clisp.org>
20746         locale-fr.m4: Fix for Android.
20747         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
20748         failure of the test program on Bionic libc.
20750 2012-01-21  Jim Meyering  <meyering@redhat.com>
20752         bootstrap: fail when bootstrap_post_import_hook fails
20753         Otherwise, it's far too easy to miss diagnostics emitted
20754         between gnulib-tool's output and that of running configure.
20755         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
20757 2012-01-17  Jim Meyering  <meyering@redhat.com>
20759         maint: enable sc_trailing_blank
20760         * build-aux/pmccabe.css: Remove trailing blanks.
20761         * doc/acl-cygwin.txt: Likewise.
20762         * doc/gnu-oids.texi: Likewise
20763         * cfg.mk: Enable sc_trailing_blank.
20764         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
20766 2012-01-17  Jim Meyering  <meyering@redhat.com>
20768         maint: enable sc_prohibit_openat_without_use
20769         * cfg.mk: Enable sc_prohibit_openat_without_use.
20770         Exempt lib/selinux-at.c.
20772 2012-01-17  Jim Meyering  <meyering@redhat.com>
20774         maint: enable sc_prohibit_cloexec_without_use
20775         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
20776         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
20778 2012-01-17  Jim Meyering  <meyering@redhat.com>
20780         maint: enable sc_prohibit_intprops_without_use
20781         * cfg.mk: Enable sc_prohibit_intprops_without_use
20782         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
20784 2012-01-17  Jim Meyering  <meyering@redhat.com>
20786         maint: enable sc_prohibit_hash_pjw_without_use
20787         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
20788         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
20789         to match any use of \<hash_pjw\>, i.e., not necessarily with a
20790         following " (".
20792 2012-01-17  Jim Meyering  <meyering@redhat.com>
20794         maint: enable double-word-prohibiting rule
20795         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
20796         Exempt three files.
20798 2012-01-17  Jim Meyering  <meyering@redhat.com>
20800         maint: remove empty lines at EOF, but excluding modules/*
20801         Apply syntax rules at home as well as abroad.  Most changes
20802         were induced by running this:
20803           make srcdir=. _build-aux=build-aux -f top/maint.mk \
20804             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
20805             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
20806         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
20807         Exempt modules/* and two binary files.
20808         Also exempt doc/INSTALL*, per request from Bruno Haible.
20809         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
20810         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
20811         * doc/Copyright/request-assign.future: Likewise.
20812         * doc/Copyright/request-disclaim.changes: Likewise.
20813         * doc/INSTALL: Likewise.
20814         * doc/INSTALL.ISO: Likewise.
20815         * doc/INSTALL.UTF-8: Likewise.
20816         * doc/acl-cygwin.txt: Likewise.
20817         * doc/acl-resources.txt: Likewise.
20818         * doc/fdl-1.2.texi: Likewise.
20819         * doc/fdl-1.3.texi: Likewise.
20820         * doc/fdl.texi: Likewise.
20821         * lib/argp-pin.c: Likewise.
20822         * lib/round.c: Likewise.
20823         * lib/unicase/u16-totitle.c: Likewise.
20824         * lib/unictype/block_test.c: Likewise.
20825         * lib/uninorm/canonical-decomposition.c: Likewise.
20826         * m4/README: Likewise.
20827         * m4/relocatable-lib.m4: Likewise.
20828         * tests/test-isnand-nolibm.c: Likewise.
20829         * tests/test-isnand.c: Likewise.
20830         * tests/uninorm/NormalizationTest.txt: Likewise.
20832 2012-01-17  Jim Meyering  <meyering@redhat.com>
20834         maint: add framework to run syntax-check rules against gnulib sources
20835         * cfg.mk: New file, to disable all currently-failing tests.
20836         We'll enable them one by one, as they are made to pass.
20837         * Makefile (sc_maint): New rule.
20839 2012-01-21  Bruno Haible  <bruno@clisp.org>
20841         stdint: Add support for Android.
20842         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
20843         include the system's <stdint.h>.
20844         Reported by Simon Josefsson <simon@josefsson.org>.
20846 2012-01-19  Jim Meyering  <meyering@redhat.com>
20848         bootstrap: add bootstrap_post_import_hook
20849         Bison does still need something like the gnulib_mk_hook whose
20850         invocation I had to remove along with slurp in commit 767ccd40.
20851         Technically, we could get along without it, but doing so would
20852         have required living with a warning and a mandatory post-bootstrap
20853         automake rerun.
20854         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
20855         (bootstrap_post_import_hook): New function.
20856         Invoke it after gnulib-tool --import and before autoreconf.
20858 2012-01-18  Jim Meyering  <meyering@redhat.com>
20860         gitlog-to-changelog: don't use "no_"-prefixed variable name
20861         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
20862         to enable both --cluster and --no-cluster.  Change variable name,
20863         s/\$no_cluster/$cluster/, and reverse usage to match.
20865         gitlog-to-changelog: use "||", not "or" in expressions
20866         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
20867         expressions.
20869 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
20871         gitlog-to-changelog: new option --no-cluster
20872         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
20873         clustering of adjacent commit messages.
20875 2012-01-17  Jim Meyering  <meyering@redhat.com>
20877         maint: spell file systems with two words, not one
20878         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
20879         two words, not one.
20881 2012-01-16  Jim Meyering  <meyering@redhat.com>
20883         bootstrap: add a FIXME comment to ensure we eventually remove the hack
20884         * build-aux/bootstrap (gnulib_tool_options): Add comment.
20886 2012-01-16  Eric Blake  <eblake@redhat.com>
20888         bootstrap: cater to autoconf 2.59
20889         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
20890         is not available.
20892         bootstrap: properly check for libtool
20893         * build-aux/bootstrap (libtoolize): Also run libtool when older
20894         usage is detected.
20896 2012-01-15  Bruno Haible  <bruno@clisp.org>
20898         Improve support for MSVC 9.
20899         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
20900         clashes on MSVC.
20901         * lib/fcntl.in.h: Likewise.
20902         * lib/stdlib.in.h: Likewise.
20903         * lib/sys_stat.in.h: Likewise.
20905 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
20907         gnupload: we hold the master copy of this script now
20908         For motivation and more information, see:
20909         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
20910         * build-aux/gnupload: Make it clear in the heading comments that the
20911         master copy of this file is maintained by gnulib.  Since we are at
20912         it, bump its copyright year and ...
20913         ($scriptversion): ... the date in its version.
20914         ($usage): Patches and bug reports should be sent to the gnulib list,
20915         not the automake one.
20916         * config/srclist.txt: Don't try to sync 'gnupload' from automake
20917         anymore.
20919 2012-01-15  Bruno Haible  <bruno@clisp.org>
20921         Fix module 'random'.
20922         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
20923         initstate, setstate are declared.
20925 2012-01-14  Bruno Haible  <bruno@clisp.org>
20927         Tests for module 'random'.
20928         * modules/random-tests: New file.
20929         * tests/test-random.c: New file, based on tests/test-random_r.c.
20931         New module 'random'.
20932         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
20933         declarations.
20934         * lib/random.c: New file, based on glibc/stdlib/random.c.
20935         * m4/random.m4: New file.
20936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
20937         HAVE_RANDOM.
20938         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
20939         * modules/random: New file.
20940         * config/srclist.txt: Add an entry for random.c.
20941         * doc/posix-functions/random.texi: Mention the 'random' module.
20942         * doc/posix-functions/initstate.texi: Likewise.
20943         * doc/posix-functions/setstate.texi: Likewise.
20944         * doc/posix-functions/srandom.texi: Likewise.
20946 2012-01-12  Bruno Haible  <bruno@clisp.org>
20948         random_r: Use common idioms.
20949         * lib/random_r.c: Include <stdlib.h> first.
20951         random_r: Override incompatible API on AIX, OSF/1.
20952         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
20953         Override the system function if REPLACE_RANDOM_R is 1.
20954         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
20955         and OSF/1, set REPLACE_RANDOM_R.
20956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
20957         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
20958         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
20959         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
20960         * doc/glibc-functions/random_r.texi: Likewise.
20961         * doc/glibc-functions/setstate_r.texi: Likewise.
20963         random_r: Support for MSVC 9.
20964         * lib/random_r.c: Include stdint.h, not inttypes.h.
20966 2012-01-12  Eric Blake  <eblake@redhat.com>
20968         inet_ntop: guard extra work by IF_LINT
20969         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
20970         better code generation when not checking for warnings.
20971         Suggested by Paul Eggert and Jim Meyering.
20973         strptime: fix regression on mingw
20974         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
20975         Fix regression.  Reported by Bruno Haible.
20977 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
20978             Bruno Haible  <bruno@clisp.org>
20980         copy-file: add error-code-returning variant.
20981         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
20982         (qcopy_file_preserving): New declaration.
20983         * lib/copy-file.c (qcopy_file_preserving): Renamed from
20984         copy_file_preserving. Change return type to 'int'. Don't emit an error
20985         message here.
20986         (copy_file_preserving): New function.
20987         * tests/test-copy-file.c: Include <stdlib.h>.
20988         (main): Test qcopy_file_preserving if the environment variable
20989         NO_STDERR_OUTPUT is set.
20990         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
20991         with NO_STDERR_OUTPUT
20992         * tests/test-copy-file-2.sh: Likewise.
20994 2012-01-10  Bruno Haible  <bruno@clisp.org>
20996         copy-file: Use 'quote' module consistently.
20997         * lib/copy-file.c (copy_file_preserving): Use quote().
20999         copy-file: Refactor.
21000         * lib/copy-file.c: Include quote.h.
21001         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
21002         message here.
21003         * modules/copy-file (Depends-on): Add quote.
21005         acl: Export qcopy_acl.
21006         * lib/acl.h (qcopy_acl): New declaration.
21007         * lib/copy-acl.c (qcopy_acl): Make non-static.
21009         acl: Rename a local variable.
21010         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
21012         acl: Align return values of copy_acl and qcopy_acl.
21013         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
21014         maybe < -1.
21016 2012-01-11  Eric Blake  <eblake@redhat.com>
21018         strptime: silence gcc warnings
21019         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
21020         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
21021         Reported by Daniel P. Berrange.
21023         inet_ntop: silence gcc warning
21024         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
21025         Reported by Daniel P. Berrange.
21027 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
21029         getloadavg test: skip the test on GNU/Linux without /proc mounted
21030         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
21031         file.  When /proc is not mounted, it always fails with ENOENT.
21032         * tests/test-getloadavg.c (main): Treat ENOENT return code from
21033         getloadavg(3) the same way as ENOSYS and ENOTSUP.
21035 2012-01-10  Bruno Haible  <bruno@clisp.org>
21037         regex: Avoid link error on MSVC 9.
21038         * modules/regex (Depends-on): Add wctype.
21040 2012-01-10  Bruno Haible  <bruno@clisp.org>
21042         doc: Mention --with-tests option.
21043         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
21044         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
21045         --with-tests.
21046         Reported by Reuben Thomas.
21048 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
21050         users.txt: order package names lexicographically.
21051         * users.txt: Order package names lexicographically.
21053 2012-01-10  Jim Meyering  <meyering@redhat.com>
21055         maint.mk: fix description in comment
21056         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
21058         ignore-value: remove deprecated ignore_ptr function
21059         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
21060         * NEWS: Note this.
21062 2012-01-09  Jim Meyering  <meyering@redhat.com>
21064         test-init.sh: avoid a subshell
21065         * tests/test-init.sh: Remove protective subshell.
21066         Suggested by Bernhard Voelker.  While a subshell is normally
21067         required to protect against older shells (Solaris, FreeBSD) that
21068         warn about a missing program before performing redirection, the
21069         shell-selection tests performed by init.sh probably exclude any
21070         offending shell.
21072 2012-01-08  Bruno Haible  <bruno@clisp.org>
21074         setlocale tests: Avoid test failure on Solaris 11 2011-11.
21075         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
21076         variable.
21078 2012-01-08  Bruno Haible  <bruno@clisp.org>
21080         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
21081         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
21082         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
21083         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
21084         macro.
21085         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
21086         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
21087         * lib/spawn_faction_addopen.c: Add workaround implementation if
21088         HAVE_WORKING_POSIX_SPAWN.
21089         * modules/spawn (Makefile): Substitute
21090         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
21091         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
21092         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
21093         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
21094         (Depends-on): Update conditions.
21095         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21096         the Solaris 11 bug.
21098 2012-01-08  Bruno Haible  <bruno@clisp.org>
21100         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
21101         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
21102         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
21103         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
21104         macro.
21105         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
21106         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
21107         * lib/spawn_faction_adddup2.c: Add workaround implementation if
21108         HAVE_WORKING_POSIX_SPAWN.
21109         * modules/spawn (Makefile): Substitute
21110         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
21111         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
21112         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
21113         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
21114         (Depends-on): Update conditions.
21115         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21116         the Solaris 11 bug.
21118 2012-01-08  Bruno Haible  <bruno@clisp.org>
21120         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
21121         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
21122         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
21123         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
21124         HAVE_WORKING_POSIX_SPAWN.
21125         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
21126         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
21127         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
21128         * lib/spawn_faction_addclose.c: Add workaround implementation if
21129         HAVE_WORKING_POSIX_SPAWN.
21130         * modules/spawn (Makefile): Substitute
21131         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
21132         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
21133         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
21134         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
21135         (Depends-on): Update conditions.
21136         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21137         the Solaris 11 bug.
21139 2012-01-08  Bruno Haible  <bruno@clisp.org>
21141         doc: Update for Solaris 11 2011-11.
21142         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
21143         * m4/printf.m4: Update comments.
21145 2012-01-08  Bruno Haible  <bruno@clisp.org>
21147         mktime: Avoid compilation error on Solaris 11.
21148         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
21150 2012-01-08  Bruno Haible  <bruno@clisp.org>
21152         doc: Small fix.
21153         * doc/posix-headers/nl_types.texi: Correct platforms list.
21155 2012-01-08  Simon Josefsson  <simon@josefsson.org>
21157         Add lgpl-3.0 module.
21158         * MODULES.html.sh (Support for building documentation): Add
21159         lgpl-3.0.
21160         * modules/lgpl-3.0: New file.
21162 2012-01-08  Jim Meyering  <meyering@redhat.com>
21164         select.c: indent with spaces, not TABs
21165         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
21167 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
21169         quotearg: do not use grave accent for left quote
21170         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
21171         locale_quoting_style.
21172         (quotearg_buffer_restyled): Fix example.
21173         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
21175 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
21177         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
21178         Most programs do not have translation catalogs for English and much
21179         less separate catalogs for British and American English.  Drop the
21180         suggestion to translators about these two, and provide it
21181         automatically for Unicode locales.  Like most programs, even those
21182         using American English, we use single quotation marks.  This conflicts
21183         with the American typographic convention, but works better when you
21184         cite the entire error message within double quotes.  It also tries not
21185         to clash with established practice and with what non-gnulib programs
21186         will usually do.
21187         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
21188         using an UTF-8 or GB-18030 locale.  The list of other locales with
21189         quotes was provided by Bruno Haible.
21190         (quotearg_buffer_restyled): Adjust instructions to translators.
21191         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
21192         text, since this would be wrong when using Unicode.
21193         * modules/quotearg: Depend on c-strcaseeq.
21195 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
21197         quotearg: fix Wikipedia link
21198         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
21200 2012-01-07  Simon Josefsson  <simon@josefsson.org>
21202         Fix for mingw with MSVC9.
21203         * m4/ld-version-script.m4: Check that compiler rejects version
21204         scripts with syntax errors.  Reported by Bruno Haible
21205         <bruno@clisp.org>.
21207 2012-01-06  Bruno Haible  <bruno@clisp.org>
21209         Talk about "native Windows API", not "Woe32".
21210         * lib/accept4.c: Update comments to mention native Windows.
21211         * lib/execute.c: Likewise.
21212         * lib/fatal-signal.c: Likewise.
21213         * lib/localcharset.c: Likewise.
21214         * lib/nanosleep.c: Likewise.
21215         * lib/nl_langinfo.c: Likewise.
21216         * lib/pclose.c: Likewise.
21217         * lib/pipe-filter-gi.c: Likewise.
21218         * lib/pipe-filter-ii.c: Likewise.
21219         * lib/pipe.c: Likewise.
21220         * lib/pipe2.c: Likewise.
21221         * lib/popen.c: Likewise.
21222         * lib/progreloc.c: Likewise.
21223         * lib/relocatable.c: Likewise.
21224         * lib/sigaction.c: Likewise.
21225         * lib/sigprocmask.c: Likewise.
21226         * lib/spawn-pipe.h: Likewise.
21227         * lib/spawn-pipe.c: Likewise.
21228         * lib/spawni.c: Likewise.
21229         * lib/stat-time.h: Likewise.
21230         * lib/w32spawn.h: Likewise.
21231         * tests/test-isatty.c: Likewise.
21232         * lib/config.charset: More comments.
21233         * doc/gnulib-intro.texi: Mention native Windows.
21234         * doc/posix-functions/_Exit_C99.texi: Likewise.
21235         * doc/posix-headers/fcntl.texi: Likewise.
21237 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
21239         argp: Avoid crash if translator uses % characters in a translation.
21240         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
21241         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
21243 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21245         doc: C11 and C++11 are now official
21246         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
21247         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
21248         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
21249         * modules/stdalign:
21250         Replace references to draft C1X to C11, and to draft C++0X to C++11.
21252 2012-01-06  Bruno Haible  <bruno@clisp.org>
21254         uc-is-grapheme-break tests: Tweak.
21255         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
21256         message.
21258 2012-01-06  Bruno Haible  <bruno@clisp.org>
21260         test-init.sh: correct the test for diff -u
21261         * tests/test-init.sh: Also redirect stdout to /dev/null.
21263 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
21265         Use ', not `, for quoting output.
21266         * build-aux/announce-gen (usage, sizes, print_news_deltas)
21267         (print_changelog_deltas, get_tool_versions, main program):
21268         * build-aux/git-version-gen:
21269         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
21270         * build-aux/move-if-change (help):
21271         * build-aux/useless-if-before-free (usage, main program):
21272         * check-module (parse_module_file, usage)
21273         (find_included_lib_files, check_module):
21274         * lib/argmatch.c (main) [TEST]:
21275         * lib/argp-help.c (_help):
21276         * lib/getopt1.c (main) [TEST]:
21277         * lib/git-merge-changelog.c (usage):
21278         * lib/xstrtol-error.c (xstrtol_error):
21279         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
21280         * m4/argz.m4 (gl_FUNC_ARGZ):
21281         * m4/bison.m4 (gl_BISON):
21282         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
21283         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
21284         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21285         * m4/fpending.m4 (gl_PREREQ_FPENDING):
21286         * m4/gc-random.m4 (gl_GC_RANDOM):
21287         * m4/intl.m4 (gt_CHECK_DECL):
21288         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
21289         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
21290         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
21291         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
21292         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
21293         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
21294         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
21295         * tests/test-dirname.c (main):
21296         * tests/test-getpass.c (main):
21297         * tests/test-iconvme.c (main):
21298         * tests/test-parse-datetime.c (LOG):
21299         * tests/test-xstrtoimax.sh:
21300         * tests/test-xstrtol.sh:
21301         * tests/test-xstrtoll.sh:
21302         * tests/test-xstrtoumax.sh:
21303         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
21304         * top/GNUmakefile (abort-due-to-no-makefile):
21305         Quote 'like this', not `like this', as per the recent change to
21306         the GNU coding standards.
21308 2012-01-05  Bruno Haible  <bruno@clisp.org>
21310         strtoimax: Don't force a replacement on systems where intmax_t is int.
21311         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
21312         'intmax_t' is not larger than 'int'.
21313         Reported by Pádraig Brady <P@draigBrady.com>.
21315 2012-01-05  Bruno Haible  <bruno@clisp.org>
21317         doc: Mention NetBSD bugs.
21318         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
21319         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
21321 2012-01-05  Bruno Haible  <bruno@clisp.org>
21323         strtoumax tests: Enhance tests.
21324         * tests/test-strtoumax.c (main): Add tests for large values.
21326 2012-01-05  Bruno Haible  <bruno@clisp.org>
21328         strtoimax: Work around AIX 5.1 bug.
21329         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
21330         definition.
21331         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
21332         Set HAVE_STRTOIMAX.
21333         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
21334         REPLACE_STRTOIMAX.
21335         * modules/inttypes-incomplete (Makefile.am): Substitute
21336         REPLACE_STRTOIMAX.
21337         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
21338         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
21339         (Depends-on): Update conditions.
21340         * tests/test-strtoimax.c (main): Add tests for large values.
21341         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
21343 2012-01-05  Bruno Haible  <bruno@clisp.org>
21345         inttypes: Modernize.
21346         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
21347         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
21348         (Makefile.am): Update inttypes.h rule.
21350 2012-01-05  Jim Meyering  <meyering@redhat.com>
21352         init.sh: don't waste a subshell just to redirect stderr
21353         * tests/init.sh: In testing for diff -u and diff -c, use a
21354         stderr-redirecting exec inside `...` rather than a subshell.
21356         test-init.sh: avoid failure on HP-UX 11.00
21357         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
21358         resolves to diff -c or cmp.  Reported by Bruno Haible.
21360 2012-01-05  Bruno Haible  <bruno@clisp.org>
21362         Tests for module 'strtoull'.
21363         * modules/strtoull-tests: New file.
21364         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
21366 2012-01-05  Bruno Haible  <bruno@clisp.org>
21368         Tests for module 'strtoll'.
21369         * modules/strtoll-tests: New file.
21370         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
21372 2012-01-05  Bruno Haible  <bruno@clisp.org>
21374         Tests for module 'strtoul'.
21375         * modules/strtoul-tests: New file.
21376         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
21378 2012-01-05  Bruno Haible  <bruno@clisp.org>
21380         Tests for module 'strtol'.
21381         * modules/strtol-tests: New file.
21382         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
21384 2012-01-04  Jim Meyering  <meyering@redhat.com>
21386         test-init.sh: accommodate Solaris 5.10's different diff -u output
21387         * tests/test-init.sh: Also exempt @@ lines from the comparison
21388         of diff output, since Solaris 5.10 and GNU diff formats differ.
21389         Reported by Stefano Lattarini.
21391 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21393         test-posixtm: don't assume signed integer wraparound
21394         * tests/test-posixtm.c (main): Don't assume wraparound semantics
21395         after signed integer overflow.  Inspired by (though it may not
21396         fix) Bruno Haible's bug report in
21397         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
21399         Spell out "Windows 9x" and "Windows XP".
21400         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
21401         "Windows 9x" and "WinXP" with "Windows XP".
21403 2012-01-04  Jim Meyering  <meyering@redhat.com>
21405         test-vc-list-files-cvs.sh: remove obsolete comment
21406         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
21407         double exit.  Now that's all encapsulated via skip_ and Exit.
21409 2012-01-04  Bruno Haible  <bruno@clisp.org>
21411         Talk about "native Windows API", not "Win32".
21412         * lib/classpath.c: Update comments to mention native Windows.
21413         * lib/csharpexec.c: Likewise.
21414         * lib/dup2.c: Likewise.
21415         * lib/error.c: Likewise.
21416         * lib/fcntl.c: Likewise.
21417         * lib/filename.h: Likewise.
21418         * lib/findprog.c: Likewise.
21419         * lib/get-rusage-as.c: Likewise.
21420         * lib/get-rusage-data.c: Likewise.
21421         * lib/getpagesize.c: Likewise.
21422         * lib/javaexec.c: Likewise.
21423         * lib/msvc-inval.c: Likewise.
21424         * lib/msvc-nothrow.c: Likewise.
21425         * lib/nanosleep.c: Likewise.
21426         * lib/nonblocking.c: Likewise.
21427         * lib/printf-parse.c: Likewise.
21428         * lib/setlocale.c: Likewise.
21429         * lib/sigaction.c: Likewise.
21430         * lib/strerror_r.c: Likewise.
21431         * lib/tmpdir.c: Likewise.
21432         * lib/vasnprintf.c: Likewise.
21433         * lib/w32spawn.h: Likewise.
21434         * lib/waitpid.c: Likewise.
21435         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
21436         * m4/locale-ar.m4: Likewise.
21437         * m4/locale-fr.m4: Likewise.
21438         * m4/locale-ja.m4: Likewise.
21439         * m4/locale-tr.m4: Likewise.
21440         * m4/locale-zh.m4: Likewise.
21441         * m4/printf.m4: Likewise.
21442         * tests/test-cloexec.c: Likewise.
21443         * tests/test-copy-acl.sh: Likewise.
21444         * tests/test-copy-file.sh: Likewise.
21445         * tests/test-file-has-acl.sh: Likewise.
21446         * tests/test-set-mode-acl.sh: Likewise.
21447         * tests/test-dup-safer.c: Likewise.
21448         * tests/test-dup2.c: Likewise.
21449         * tests/test-dup3.c: Likewise.
21450         * tests/test-fcntl.c: Likewise.
21451         * tests/test-nonblocking-pipe.h: Likewise.
21452         * tests/test-nonblocking-socket.h: Likewise.
21453         * tests/test-pipe.c: Likewise.
21454         * tests/test-pipe2.c: Likewise.
21455         * tests/test-spawn-pipe-child.c: Likewise.
21456         * doc/acl-resources.txt: Likewise.
21457         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
21458         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
21459         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
21460         * lib/localcharset.c: Update comments to mention native Windows.
21461         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
21462         * lib/localename.c: Likewise.
21463         * lib/progreloc.c: Likewise.
21464         * lib/relocatable.c: Likewise.
21465         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
21466         (windows_compute_revents): Renamed from win32_compute_revents.
21467         (windows_compute_revents_socket): Renamed from
21468         win32_compute_revents_socket.
21469         * lib/select.c: Update comments to mention native Windows.
21470         (windows_poll_handle): Renamed from win32_poll_handle.
21471         * m4/threadlib.m4: Update comments to mention native Windows.
21472         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
21473         --enable-threads=windows instead of --enable-threads=win32. Set
21474         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
21475         * lib/glthread/lock.h: Update comments to mention native Windows.
21476         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
21477         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
21478         USE_WIN32_THREADS.
21479         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
21480         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
21481         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
21482         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
21483         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
21484         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
21485         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
21486         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
21487         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
21488         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
21489         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
21490         * tests/test-tls.c: Likewise.
21491         Rationale:
21492         Microsoft renamed the "Win32 API" to "Windows API", as it is available
21493         on both 32-bit and 64-bit Windows systems.
21494         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
21495         line of distinction is between "native Windows" on one side and Unix/
21496         POSIX systems on the other side. More details in
21497         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
21498         Suggested by Paul Eggert.
21500 2012-01-03  Bruno Haible  <bruno@clisp.org>
21502         isatty: Support for MSVC 9.
21503         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
21504         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
21505         (_isatty_nothrow): New function.
21506         (isatty): Use it instead of _isatty.
21507         (IsConsoleHandle): Add comment, from Paolo Bonzini.
21508         * lib/poll.c (IsConsoleHandle): Likewise.
21509         * lib/select.c (IsConsoleHandle): Likewise.
21510         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
21511         (gl_PREREQ_ISATTY): New macro.
21512         * modules/isatty (Depends-on): Add msvc-inval.
21513         (configure.ac): Invoke gl_PREREQ_ISATTY.
21515 2012-01-03  Jim Meyering  <meyering@redhat.com>
21517         maint.mk: remove temporary transition aid from over 1.5 years ago
21518         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
21519         purpose was to aid in the transition (avoiding silent malfunction)
21520         from that old name to the new _sc_search_regexp.  This shim was
21521         added by commit 219c504b.
21523         init.sh: do not try to accommodate compare arguments starting with "-"
21524         * tests/init.sh (compare_dev_null_): Do not try to accommodate
21525         compare arguments that start with "-".  Besides, we do not worry
21526         about this when invoking diff or cmp; why start now with sed?
21527         Using "--" to separate options from argument would trigger sed
21528         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
21529         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
21531 2012-01-02  Bruno Haible  <bruno@clisp.org>
21533         Enhance tests for module 'isatty'.
21534         * modules/isatty-tests (Depends-on): Add pipe-posix.
21535         * tests/test-isatty.c: Include <fcntl.h>.
21536         (DEV_NULL): New macro.
21537         (main): Test the resut of isatty() also on regular files, pipes, and
21538         /dev/null.
21540         New module 'isatty'.
21541         * lib/unistd.in.h (isatty): New declaration.
21542         * lib/isatty.c: New file, based on an idea of
21543         Bastien Roucariès <roucaries.bastien@gmail.com>.
21544         * m4/isatty.m4: New file.
21545         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
21546         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
21547         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
21548         REPLACE_ISATTY.
21549         * modules/isatty: New file.
21550         * doc/posix-functions/isatty.texi: Mention the new module.
21551         Suggested by Paolo Bonzini.
21553 2012-01-02  Bruno Haible  <bruno@clisp.org>
21555         canonicalize: Tweak 2011-12-29 commit.
21556         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
21557         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
21559 2012-01-02  Jim Meyering  <meyering@redhat.com>
21561         gitlog-to-changelog: describe input syntax in --help output
21562         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
21564         gitlog-to-changelog: fix typo in --help: show backslash before email @
21565         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
21566         in sources, but not in actual output.
21568 2011-12-30  Jim Meyering  <meyering@redhat.com>
21570         gitlog-to-changelog: don't malfunction when name contains %-directive
21571         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
21572         in a name string cause trouble.  E.g., with a user name of "%s",
21573         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
21575 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
21577         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
21578         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
21579         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
21580         the "  (tiny change)" notation that is appended to the standard
21581         ChangeLog "date  name  email" header line.
21583 2012-01-01  Jim Meyering  <meyering@redhat.com>
21585         test-framework-sh: init.sh: fix "make dist" failure
21586         When using gnulib-tool's --with-tests option and any module that
21587         depends on test-framework-sh, "make dist" would fail due to the
21588         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
21589         in the gltests directory, and not in the gllib/ directory.
21590         One way to work around that is to move the EXTRA_DIST += init.sh
21591         from the primary module to the -tests one:
21592         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
21593         * modules/test-framework-sh (Makefile.am): ...not here.
21594         Reported by Tom G. Christensen in
21595         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
21597         version-etc: update copyright year reported by --version
21598         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
21600 2011-12-31  Pádraig Brady  <P@draigBrady.com>
21602         canonicalize: only stat() if required
21603         * lib/canonicalize.c (canonicalize_filename_mode):
21604         Avoid calling l?stat() when both CAN_MISSING,
21605         and CAN_NOLINKS are set, as we neither need
21606         to resolve symlinks or test component existence.
21608 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
21610         doc: cover st_ino issues once; add OpenVMS etc.
21611         * doc/posix-functions/stat.texi (stat):
21612         * doc/posix-functions/lstat.texi (lstat):
21613         * doc/posix-functions/fstatat.texi (fstatat):
21614         * doc/posix-functions/fstat.texi (fstat):
21615         Move general 'struct stat' stuff to sys_stat.texi,
21616         leaving behind a pointer.
21617         * doc/posix-headers/sys_stat.texi (sys/stat.h):
21618         Merge duplicate info about 'struct stat' problems into here.
21619         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
21620         and suggest partial workarounds.
21622         same-inode: port to OpenVMS
21623         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
21624         three st_ino values.
21626 2011-12-30  Pádraig Brady  <P@draigBrady.com>
21628         canonicalize: fix references to stat() and lstat()
21629         * lib/canonicalize.c (canonicalize_filename_mode):
21630         Ensure references always resolve to a replacement
21631         function if required (even via a macro).
21633 2011-12-30  Jim Meyering  <meyering@redhat.com>
21635         gitlog-to-changelog: remove a little duplication
21636         * build-aux/gitlog-to-changelog (main): Grep @lines once,
21637         rather than twice.
21639 2011-12-29  Pádraig Brady  <P@draigBrady.com>
21641         canonicalize: add support for not resolving symlinks
21642         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
21643         indicate we don't want to follow symlinks.  Also
21644         provide CAN_MODE_MASK to aid setting these existing
21645         mutually exclusive values.
21646         * lib/canonicalize.c (canonicalize_filename_mode):
21647         Extract the flags from can_mode parameter, which
21648         are currently just used to select between stat()
21649         and lstat().  Also ensure that mutually exclusive
21650         values are flagged immediately as invalid.
21651         * tests/test-canonicalize.c: Verify symlinks are
21652         not followed, and that invalid flag combinations
21653         are diagnosed.
21655 2011-12-25  Jim Meyering  <meyering@redhat.com>
21657         gitlog-to-changelog: do not clump multi-paragraph entries
21658         Identical header lines (date,name,email+coauthors) are suppressed,
21659         thus putting all entries with those same characteristics under
21660         a single header.  However, when a log entry consists of two or
21661         more paragraphs, it may not be clear where it starts and ends.
21662         This change makes it so that such an entry is always separated
21663         from others by a header line, even when that header would
21664         otherwise be suppressed.
21665         * build-aux/gitlog-to-changelog: Implement the above.
21666         Inspired by a related request from Stefano Lattarini in
21667         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
21669 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21671         announce-gen: fix `cmd' typo in diagnostic
21672         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
21673         diagnostic: a missing '$' meant that the command was not output.
21675 2011-12-23  Jim Meyering  <meyering@redhat.com>
21677         test-framework-sh: distribute init.sh
21678         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
21679         Otherwise, "make -C gnulib-tests check" (at least in grep) would
21680         fail due to the lack of init.sh.
21682         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
21683         * modules/atexit-tests: Rather than listing tests/init.sh,
21684         now that there's a module for it, simply depend on that new module.
21685         * modules/closein-tests: Likewise.
21686         * modules/exclude-tests: Likewise.
21687         * modules/getcwd-tests: Likewise.
21688         * modules/perror-tests: Likewise.
21689         * modules/pread-tests: Likewise.
21690         * modules/pwrite-tests: Likewise.
21691         * modules/vc-list-files-tests: Likewise.
21692         * modules/verify-tests: Likewise.
21693         * modules/xalloc-die-tests: Likewise.
21694         * modules/xstrtoimax-tests: Likewise.
21695         * modules/xstrtol-tests: Likewise.
21696         * modules/xstrtoll-tests: Likewise.
21697         * modules/xstrtoumax-tests: Likewise.
21698         * modules/yesno-tests: Likewise.
21700 2011-12-22  Jim Meyering  <meyering@redhat.com>
21702         test-framework-sh: add minimal tests of init.sh's compare function
21703         * modules/test-framework-sh-tests: New file.
21704         * tests/test-init.sh: New file.
21706         test-framework-sh: new module
21707         * modules/test-framework-sh: New file.
21708         * MODULES.html.sh (Support for maintaining and releasing projects):
21709         List it.
21711         init.sh: do not emit simulated diff output to stderr
21712         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
21714 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
21716         .gitignore: ignore gnulib.dvi and regex.info
21717         * doc/.gitignore:add gnulib.dvi and regex.info
21719 2011-12-22  Jim Meyering  <meyering@redhat.com>
21721         init.sh: correct previous change
21722         * tests/init.sh (compare): My previous change was wrong.
21723         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
21725         init.sh: avoid unwarranted test failure when using "set -e"
21726         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
21727         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
21728         a use like "compare exp out" would get evoke an unconditional failure.
21730 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
21732         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
21733         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
21734         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
21735         autoreconf that did not.
21736         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
21737         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
21739 2011-12-17  Jim Meyering  <meyering@redhat.com>
21741         bootstrap: remove some now-unneeded code
21742         This script arose back when gnulib-tool was young.
21743         Since then, it has seen improvements that render much of this
21744         script unnecessary.  In particular, it can now make symlinks
21745         to the files it uses.  Also, I no longer see as much value in
21746         marking files as read-only via comments.
21747         If you relied on the symlink-creation feature of the preceding
21748         version of this script, you can get most of that functionality
21749         by adding the --symlink option to the definition of
21750         gnulib_tool_option_extras in your bootstrap.conf file.
21751         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
21752         Run autopoint and libtoolize *before* gnulib-tool.
21753         After it, run an abbreviated autoreconf, rather than a loop around
21754         all tools.
21755         (slirp, bt_mark_as_generated): Remove functions.
21757 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21759         ftoastr: fix typo
21760         * lib/ftoastr.h: Fix misspelling in comment.
21762 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
21764         * top/README-release: fix punctuation.
21766 2011-12-17  Jim Meyering  <meyering@redhat.com>
21768         bootstrap: correct the recent buildreq change
21769         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
21770         had no effect.
21771         * build-aux/bootstrap (buildreq): Bracket each search term with
21772         "*...*", so that the shell "case" statement works as intended.
21773         Add comments.
21775 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
21777         build: let bootstrap resort to wget when downloading .po files
21778         * build-aux/bootstrap (download_po_files): Fallback to wget when
21779         downloading the .po files via rsync fails.  This is necessary to
21780         bootstrap from behind a strict firewall.
21782 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
21784         stdint: don't assume C++11 when compiling with g++
21785         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
21786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
21787         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
21788         work also in C++ before C++11, as that improperly inhibits
21789         generating a substitute stdint.h for that case.
21791 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
21793         alloca: protect comment from gnulib-tool
21794         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
21795         that gnulib-tool doesn't think it's a license, and munge it to
21796         say "GCC version 3".
21798 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
21800         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
21801         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
21802         $(abs_top_builddir) instead of $(top_builddir).
21804 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
21806         strftime-tests: also test nanoseconds
21807         * tests/test-strftime.c (T): Add a test of %N.
21809 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
21811         inttypes, stdint: add C++11 support
21812         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
21813         when including inttypes.h and stdint.h.  Support this change to
21814         the standard.
21815         * doc/posix-headers/inttypes.texi (inttypes.h):
21816         * doc/posix-headers/stdint.texi (stdint.h): Document this.
21817         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
21818         Define if not defined already, for the benefit of pre-C++11 hosts.
21819         Define the standard format macros (e.g., PRId8) always.
21820         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
21821         Likewise, if __cpluspus.  Define the standard constant and limit
21822         macros (e.g., INT8_C, INT8_MAX) always.
21823         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
21824         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
21825         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
21826         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
21827         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
21828         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
21829         Likewise.
21831 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21833         nonblocking tests: Fix test failure on Linux/PPC.
21834         Suggested by Prerna Saxena in
21835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
21836         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
21837         Set to 1100000.
21839 2011-12-12  Jim Meyering  <meyering@redhat.com>
21841         argmatch: don't hard-code `' when listing valid option arguments
21842         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
21843         use the quote function to add quotes.  Use fputs rather than
21844         fprintf for the format string with no format directive.
21846 2011-12-07  Eric Blake  <eblake@redhat.com>
21848         bootstrap: detect tools required by gnulib-tool
21849         * build-aux/bootstrap (buildreq): Provide minimum implicit
21850         dependencies.
21851         * DEPENDENCIES: Mention patch as a prereq.
21853 2011-12-04  Bruno Haible  <bruno@clisp.org>
21855         sethostname: Port to Windows platforms.
21856         * lib/sethostname.c: Provide an alternate implementation for Windows
21857         platforms.
21858         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
21859         (main): Skip the test if sethostname() fails with EPERM. On Windows
21860         platforms, don't check the result of gethostname().
21862 2011-12-04  Bruno Haible  <bruno@clisp.org>
21863             Jim Meyering  <meyering@redhat.com>
21865         tests: Avoid spurious error message on platforms without mktemp program.
21866         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
21868 2011-12-04  Bruno Haible  <bruno@clisp.org>
21870         sethostname: Fix documentation.
21871         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
21872         "not fixed" section.
21874 2011-12-03  Bruno Haible  <bruno@clisp.org>
21876         gnulib-tool: Verify that the License field is present and non-empty.
21877         * gnulib-tool (func_get_license_raw): New function, extracted from
21878         func_get_license.
21879         (func_get_license): Use it. Warn if the module is not a test module and
21880         has no license.
21881         Suggested by Jim Meyering.
21883 2011-12-03  Bruno Haible  <bruno@clisp.org>
21885         sethostname tests: Fix link error on mingw.
21886         * tests/test-sethostname1.c: New file, extracted from
21887         tests/test-sethostname.c.
21888         * tests/test-sethostname2.c: New file, extracted from
21889         tests/test-sethostname.c.
21890         * tests/test-sethostname.c: Remove file.
21891         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
21892         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
21893         (Depends-on): Add gethostname.
21894         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
21895         Link the latter with $(GETHOSTNAME_LIB).
21897         sethostname tests: Fix compilation error on mingw.
21898         * tests/test-sethostname.c: Don't include <sys/types.h>.
21899         (geteuid): Use a dummy value without uid_t.
21900         * modules/sethostname-tests (Depends-on): Remove sys_types.
21902         sethostname tests: Avoid a gcc warning.
21903         * tests/test-sethostname.c (main): Remove an unused variable.
21905         Tweak last commit.
21906         * modules/sethostname-tests (Files): Sort by decreasing importance.
21907         (configure.ac): Check for geteuid.
21908         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
21909         the test when there's nothing to test. Drop an unnecessary cast.
21910         Improve an error message. Verify that the final sethostname() call
21911         succeeds.
21913 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
21915         Add a test suite for the sethostname module.
21916         * modules/sethostname-tests: New file.  A test program
21917         for the sethostname module.
21918         * tests/test-sethostname.c: Likewise.
21920 2011-12-03  Bruno Haible  <bruno@clisp.org>
21922         Tweak last commit.
21923         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
21924         Fix preprocessor directives indentation. Fix typos.
21925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
21926         * modules/unistd (Makefile): Likewise.
21928 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
21930         Integrate the sethostname module into unistd.
21931         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
21932         into the unistd.h header.
21933         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
21934         preprocessor directives.
21935         * modules/unistd: Setup the Makefile substitutions of the
21936         SETHOSTNAME preprocessor directives.
21938 2011-12-03  Bruno Haible  <bruno@clisp.org>
21940         Tweak last commit.
21941         * lib/sethostname.c: Don't include <string.h>.
21942         (sethostname): No need to copy the argument string to the stack. Don't
21943         call clearerr. Preserve errno when fprintf failed.
21944         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
21945         Don't invoke AC_REPLACE_FUNCS.
21946         * modules/sethostname (Link): Remove empty section.
21947         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
21948         failure problem.
21950 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
21952         New module 'sethostname'.
21953         * lib/sethostname.c (sethostname): New file.  Provide sethostname
21954         for systems that lack it.
21955         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
21956         sethostname declaration and function.
21957         * modules/sethostname: New file.  Define the sethostname module.
21959 2011-12-03  Bruno Haible  <bruno@clisp.org>
21961         Tweak last commit.
21962         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
21964 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
21966         Split the HOST_NAME_MAX detection into a separate m4 macro.
21967         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
21968         macro so it can be used by the pending sethostname module.
21970 2011-12-03  Bruno Haible  <bruno@clisp.org>
21972         Fix module descriptions syntax.
21973         * modules/argv-iter (License): Fix syntax.
21974         * modules/di-set (License): Likewise.
21975         * modules/ino-map (License): Likewise.
21976         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
21978 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
21980         stdalign: port to Clang 3.0
21981         Problem reported by Simon Josefsson in
21982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
21983         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
21984         which has <stdalign.h> but which does not define alignof.
21985         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
21987 2011-12-01  Eric Blake  <eblake@redhat.com>
21989         mktempd: silence dd usage
21990         * build-aux/mktempd (rand_bytes): Silence dd.
21992 2011-11-30  Simon Josefsson  <simon@josefsson.org>
21994         manywarnings: Don't mention gcc version in docstring.
21995         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
21996         Jim Meyering <meyering@redhat.com>.
21998 2011-11-30  Jim Meyering  <meyering@redhat.com>
22000         hash: mark a few floating point constants with "f" suffix
22001         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
22002         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
22003         floating point constants with "f", since they're destined to be
22004         saved/used as "float"s.
22006 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
22008         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
22009         * tests/test-float.c (test_long_double): Correct and re-enable the
22010         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
22012 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
22014         Avoid subtracting two pointers that don't point into the same block.
22015         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
22016         only pointers into the same memory block are subtracted. We cannot
22017         assume that sizeof (ptrdiff_t) == sizeof (void *).
22019 2011-11-29  Eric Blake  <eblake@redhat.com>
22021         maint.mk: add syntax check for use of compare from init.sh
22022         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
22023         moved here from coreutils.
22025         manywarnings: drop -Wunsuffixed-float-constants
22026         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
22027         '1.0D', which is the only way to silence this warning for 'double'.
22029 2011-11-29  Jim Meyering  <meyering@redhat.com>
22031         hash: mark compute_bucket_size with the pure attribute
22032         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
22034         quotearg, propername: correct pragma guard expression
22035         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
22036         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
22038 2011-11-28  Jim Meyering  <meyering@redhat.com>
22040         propername: do not mark proper_name with the const attribute
22041         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
22042         since it examines data pointed to by its parameter.
22043         * lib/propername.c (proper_name): Instead, add a pragma to suppress
22044         the suggestion from -Wsuggest-attribute=const.
22046         propername: mark one more function as const
22047         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
22049 2011-11-27  Jim Meyering  <meyering@redhat.com>
22051         mark functions with const and pure attributes
22053         Mark functions per suggestions from gcc-4.6 when using these options:
22054         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
22055         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
22056         Follow these guidelines: when possible, apply the attribute to
22057         an extern declaration, not to its definition.  Apply it to the
22058         definition only when the definition is static.
22059         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
22060         * lib/argv-iter.h (argv_iter_n_args): Likewise.
22061         * lib/base64.h (isbase64): Likewise.
22062         * lib/basename-lgpl.c (last_component, base_len): Likewise.
22063         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
22064         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
22065         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
22066         (c_tolower, c_toupper): Likewise.
22067         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
22068         * lib/chdir-long.c (find_non_slash): Likewise.
22069         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
22070         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
22071         * lib/file-type.h (file_type): Likewise.
22072         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
22073         * lib/filevercmp.c (verrevcmp): Likewise.
22074         * lib/freadahead.h (freadahead): Likewise.
22075         * lib/fts.c (fts_maxarglen): Likewise.
22076         * lib/hash-pjw.h (hash_pjw): Likewise.
22077         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
22078         * lib/hash.c (is_prime, next_prime): Likewise.
22079         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
22080         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
22081         (hash_table_ok, hash_get_first, hash_string): Likewise.
22082         (compute_bucket_size): Likewise.
22083         * lib/i-ring.h (i_ring_empty): Likewise.
22084         * lib/isnan.c (isnanl): Likewise.
22085         * lib/math.h (isnanl, rpl_isnanl): Likewise.
22086         * lib/memcasecmp.h (memcasecmp): Likewise.
22087         * lib/memchr2.h (memchr2): Likewise.
22088         * lib/memcmp2.h (memcmp2): Likewise.
22089         * lib/parse-datetime.y (lookup_zone): Likewise.
22090         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
22091         [!WINDOWS_SOCKETS]: Likewise.
22092         * lib/strnlen1.h (strnlen1): Likewise.
22093         * lib/uniwidth.in.h (uc_width): Likewise.
22094         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
22095         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
22096         (quoting_options_from_style): Add a comment.
22097         * lib/propername.h (proper_name): Add a comment.
22099 2011-11-27  Bruno Haible  <bruno@clisp.org>
22101         Remove unused macros from !_LIBC code in glibc-borrowed files.
22102         * lib/fnmatch.c (STRCOLL): Remove macro.
22103         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
22104         * lib/glob.c (__stat, __readdir64): Remove macros.
22105         * lib/tempname.c (__open64, __xstat64): Remove macros.
22106         Suggested by Paul Eggert.
22108 2011-11-27  Bruno Haible  <bruno@clisp.org>
22110         getcwd: Fix link error on MSVC 9.
22111         * modules/getcwd (Depends-on): Add readdir, rewinddir.
22113 2011-11-27  Bruno Haible  <bruno@clisp.org>
22115         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
22116         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
22117         HAVE_OPENDIR is 0.
22118         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
22119         HAVE_CLOSEDIR is 0.
22120         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
22121         is 0.
22122         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
22124 2011-11-27  Bruno Haible  <bruno@clisp.org>
22126         getcwd: Fix bug from 2011-08-17.
22127         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
22128         platforms that need it.
22129         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
22130         code of 4 to be a failure, not a success. This ensures that
22131         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
22133 2011-11-27  Bruno Haible  <bruno@clisp.org>
22135         binary-io tests: Avoid test failure on mingw when libtool is used.
22136         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
22137         Don't verify the size of t-bin-out1.tmp here.
22138         * tests/test-binary-io.sh: Verify it here.
22139         Reported by Simon Josefsson.
22141 2011-11-26  Bruno Haible  <bruno@clisp.org>
22143         Fix conflict between two instantiations of module 'unistd'.
22144         * gnulib-tool (func_emit_autoconf_snippet): Substitute
22145         ${include_guard_prefix} also in the autoconf snippet.
22146         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
22147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
22148         GNULIB_UNISTD_H_GETOPT.
22149         * modules/getopt-posix (configure.ac): Set the
22150         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
22151         * modules/getopt-gnu (configure.ac): Likewise.
22152         * modules/unistd (Makefile.am): Change the substitution value of
22153         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
22154         Reported by Simon Josefsson.
22156 2011-11-25  Bruno Haible  <bruno@clisp.org>
22158         pagealign_alloc: Doc and comments.
22159         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
22160         module.
22161         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
22163 2011-11-25  Jim Meyering  <meyering@redhat.com>
22165         test-update-copyright.sh: avoid false-positive failure
22166         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
22167         around false positive failure on Cygwin/Windows.  The latter was
22168         matching erroneously-created files with names like
22169         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
22171 2011-11-25  Simon Josefsson  <simon@josefsson.org>
22173         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
22174         * m4/valgrind-tests.m4: Check that the parameters that will be
22175         used works, not just a subset of them.  Reported by Bruno Haible
22176         <bruno@clisp.org>.
22178 2011-11-24  Jim Meyering  <meyering@redhat.com>
22180         test-stdalign.c: comment out long double tests
22181         * tests/test-stdalign.c: Don't try to reduce alignment of long double
22182         variables.  That provokes errors like this from gcc-4.7.0 20111124:
22183         error: '_Alignas' specifiers cannot reduce alignment of \
22184         'static_longdouble_alignas'.
22186 2011-11-22  Jim Meyering  <meyering@redhat.com>
22188         init.sh: make "compare /dev/null FILE" output more readable
22189         * tests/init.sh (compare_): Document the preferred order of arguments.
22190         (emit_diff_u_header_): New function.
22191         (compare_dev_null_): Emit a simulated diff, rather than just the
22192         contents of the unexpected file.  Suggestion from Bruno Haible.
22194 2011-11-21  Jim Meyering  <meyering@redhat.com>
22195             Eric Blake  <eblake@redhat.com>
22197         init.sh: work around OSF/1 5.1's mishandling of /dev/null
22198         * tests/init.sh: Make our compare function slightly more portable.
22199         Reported by Bruno Haible in
22200         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
22202 2011-11-21  Simon Josefsson  <simon@josefsson.org>
22204         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
22205         before using it, in code that ends up in config.h.
22207 2011-11-20  Bruno Haible  <bruno@clisp.org>
22209         getcwd: Work around getcwd bug on AIX 5..7.
22210         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
22211         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
22212         Use a different value for gl_cv_func_getcwd_path_max. Move the
22213         definition of HAVE_PARTLY_WORKING_GETCWD from here...
22214         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
22215         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
22216         Define HAVE_MINIMALLY_WORKING_GETCWD.
22217         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
22218         where it is not even minimally working, that is, on AIX.
22219         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
22220         m4/getcwd-path-max.m4.
22221         (main): Update exit code computation.
22222         * doc/posix-functions/getcwd.texi: Mention list of platforms where
22223         getcwd does not handle long file names.
22225 2011-11-20  Bruno Haible  <bruno@clisp.org>
22227         getcwd: Fix bug from 2009-09-10.
22228         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
22229         like "no".
22231 2011-11-20  Simon Josefsson  <simon@josefsson.org>
22233         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
22235 2011-11-20  Bruno Haible  <bruno@clisp.org>
22237         fma tests: Avoid shadowing local variables.
22238         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
22239         expected.
22241 2011-11-20  Bruno Haible  <bruno@clisp.org>
22243         copysignf tests: Fix.
22244         * tests/test-copysignf.c: Fix signature check.
22246 2011-11-20  Bruno Haible  <bruno@clisp.org>
22248         fma: Remove unused code.
22249         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
22250         unused macros.
22252 2011-11-20  Bruno Haible  <bruno@clisp.org>
22254         sethostname: Fix doc about AIX.
22255         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
22256         sethostname; it has it.
22258         sethostname: Mention more portability problems.
22259         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
22260         problem.
22261         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22263 2011-11-19  Bruno Haible  <bruno@clisp.org>
22265         Depend on module fcntl-h when AT_FDCWD is used.
22266         * modules/utimens (Depends-on): Add fcntl-h.
22267         * modules/areadlinkat (Depends-on): Likewise.
22268         * modules/areadlinkat-with-size (Depends-on): Likewise.
22269         * modules/faccessat (Depends-on): Likewise.
22270         * modules/fchmodat (Depends-on): Likewise.
22271         * modules/fchownat (Depends-on): Likewise.
22272         * modules/getcwd (Depends-on): Likewise.
22273         * modules/mkdirat (Depends-on): Likewise.
22274         * modules/mkfifoat (Depends-on): Likewise.
22275         * modules/readlinkat (Depends-on): Likewise.
22276         * modules/symlinkat (Depends-on): Likewise.
22277         * modules/dup2-tests (Depends-on): Likewise.
22278         * modules/fdutimensat-tests (Depends-on): Likewise.
22279         * modules/futimens-tests (Depends-on): Likewise.
22281 2011-11-19  Bruno Haible  <bruno@clisp.org>
22283         euidaccess: Update a comment.
22284         * lib/euidaccess.c: Update comment about platforms with faccessat.
22286 2011-11-19  Bruno Haible  <bruno@clisp.org>
22288         openat: Fix file list.
22289         * modules/openat (Files): Remove lib/at-func.c.
22291 2011-11-19  Bruno Haible  <bruno@clisp.org>
22293         fstatat: Simplify.
22294         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
22295         gnulib should define rpl_fstatat, there is a
22296         "#define fstatat rpl_fstatat" in <sys/stat.h>.
22298 2011-11-19  Bruno Haible  <bruno@clisp.org>
22300         Ensure 'inline' can be used in tests/test-utimens-common.h.
22301         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
22302         * modules/futimens-tests (configure.ac): Likewise.
22303         * modules/utimens-tests (configure.ac): Likewise.
22304         * modules/utimensat-tests (configure.ac): Likewise.
22306 2011-11-19  Simon Josefsson  <simon@josefsson.org>
22308         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
22309         not hash_insert0.
22310         (hash_insert_if_absent): Doc fix.
22312 2011-11-19  Simon Josefsson  <simon@josefsson.org>
22314         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
22316 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
22318         test-getcwd: disambiguate exit status
22319         * tests/test-getcwd.c (test_long_name): Return 0..7.
22320         (main): Exit with an unambiguous exit status.  The old
22321         code yielded a mysterious mixture of two failure codes.
22323         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
22324         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
22325         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
22326         rpl_fstatat or fstatat.  This should fix the other problem
22327         reported by Kai Habel in
22328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
22329         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
22330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
22331         and I reproduced it on a Solaris 8 host we still have in production.
22333 2011-11-18  Jim Meyering  <meyering@redhat.com>
22335         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
22336         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
22337         Add a sentence to the comment.
22338         (hash_insert0): New function that simply calls hash_insert_if_absent.
22339         * lib/hash.h (hash_insert_if_absent): Declare it.
22340         (hash_insert0): Add deprecation attribute.
22341         (_GL_ATTRIBUTE_DEPRECATED): Define.
22342         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
22343         not hash_insert0.
22344         * NEWS: Mention it, even though it's not really an incompatible change.
22346 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
22348         openat: avoid compilation failure due to lack of <errno.h> inclusion
22349         * lib/openat.c: Include <errno.h>.
22351 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22353         * modules/getcwd (Depends-on): Add fdopendir.
22354         This fixes one of the two problems reported by Kai Habel in
22355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
22357         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
22358         stdalign problem reported by Ian Beckwith in
22359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
22360         * modules/crypto/gc-arcfour (Depends-on):
22361         Depend conditionally on crypto/arcfour.
22362         * modules/crypto/gc-arctwo (Depends-on):
22363         Depend conditionally on crypto/arctwo.
22364         * modules/crypto/gc-des (Depends-on):
22365         Depend conditionally on crypto/des.
22366         * modules/crypto/gc-hmac-md5 (Depends-on):
22367         Depend conditionally on crypto/hmac-md5.
22368         * modules/crypto/gc-hmac-sha1 (Depends-on):
22369         Depend conditionally on crypto/hmac-sha1.
22370         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
22371         * modules/crypto/gc-md4 (Depends-on):
22372         Depend conditionally on crypto/md4.
22373         * modules/crypto/gc-md5 (Depends-on):
22374         Depend conditionally on crypto/md5.
22375         * modules/crypto/gc-rijndael (Depends-on):
22376         Depend conditionally on crypto/rijndael.
22377         * modules/crypto/gc-sha1 (Depends-on):
22378         Depend conditionally on crypto/sha1.
22379         * modules/crypto/gc-arcfour:
22380         * modules/crypto/gc-arctwo:
22381         * modules/crypto/gc-des:
22382         * modules/crypto/gc-hmac-md5:
22383         * modules/crypto/gc-hmac-sha1:
22384         * modules/crypto/gc-md2:
22385         * modules/crypto/gc-md4:
22386         * modules/crypto/gc-md5:
22387         * modules/crypto/gc-rijndael:
22388         * modules/crypto/gc-sha1:
22389         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
22390         now that the conditional dependencies do the work for us.
22392 2011-11-17  Jim Meyering  <meyering@redhat.com>
22394         tests: factor st_ctime-comparison out of two headers
22395         * tests/test-utimens-common.h (ctime_compare): Define.
22396         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
22397         * tests/test-lutimens.h (test_lutimens): Likewise.
22398         * tests/test-utimens.h (test_utimens): Likewise.
22400         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
22401         Invoke the test program via an init.sh-using wrapper.
22402         * tests/test-getcwd.sh: New file.
22403         * modules/getcwd-tests (Files): Add it.
22404         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
22406 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
22408         gitlog-to-changelog: support multi-author commits.
22409         The FSF cares about keeping track of all authors of patches to its
22410         projects, but Git doesn't provide obvious support for multi-author
22411         changesets. Consensus seems to be forming around the use of extra
22412         Signed-off-by inspired lines in the log message formatted as
22413         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
22414         multi-author commits between version control systems.
22415         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
22416         log message and output in standard ChangeLog multi-author format.
22417         Reported by Peter Rosin <peda@lysator.liu.se>
22419 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22420             Bruno Haible  <bruno@clisp.org>
22422         Fix some modules' file list.
22423         * modules/fstatat (Files): Add m4/lstat.m4.
22424         * modules/openat (Files): Likewise.
22425         * modules/unlinkat (Files): Likewise.
22427 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
22429         maint.mk: fix tight-scope.mk generation in VPATH builds.
22430         * top/maint.mk (tight-scope.mk): Make sure to prefix file
22431         reference with $(srcdir) so that the file is found correctly even
22432         when running `make syntax-check' in a VPATH build.
22434 2011-11-13  Bruno Haible  <bruno@clisp.org>
22435             Jim Meyering  <meyering@redhat.com>
22437         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
22438         * tests/init.sh (compare): Remove "No differences encountered" or
22439         synonymous output from the 'diff' program.
22441 2011-11-13  Bruno Haible  <bruno@clisp.org>
22443         Makefile: Tweak indentation.
22444         * Makefile: Use tab as first character in every line that contains rule
22445         commands.
22447 2011-11-13  Bruno Haible  <bruno@clisp.org>
22449         Syntax check for copyright statements.
22450         * check-copyright: New file.
22451         * Makefile (sc_check_copyright): New rule.
22453 2011-11-13  Simon Josefsson  <simon@josefsson.org>
22455         * build-aux/git-version-gen: Add --prefix to configure the tag
22456         match string.
22458 2011-11-13  Simon Josefsson  <simon@josefsson.org>
22460         * build-aux/git-version-gen: Add --help and --version.
22462 2011-11-12  Jim Meyering  <meyering@redhat.com>
22464         revamp the other test-exclude?.sh scripts to use init.sh, too
22465         * tests/test-exclude1.sh: Use init.sh.
22466         * tests/test-exclude2.sh: Likewise.
22467         * tests/test-exclude3.sh: Likewise.
22468         * tests/test-exclude4.sh: Likewise.
22469         * tests/test-exclude5.sh: Likewise.
22470         * tests/test-exclude6.sh: Likewise.
22471         * tests/test-exclude7.sh: Likewise.
22472         * tests/test-exclude8.sh: Likewise.
22473         * modules/exclude-tests (Files): List init.sh.
22475         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
22476         These shell scripts ignored failure of the binary test-exclude,
22477         so making the latter return 77 didn't cause them to be skipped.
22478         * tests/test-exclude5.sh: Exit with test-exclude's error status
22479         when that program fails.  Revamp to use init.sh.
22480         * tests/test-exclude2.sh: Likewise.
22482         test-exclude: fix a typo
22483         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
22485 2011-11-11  Bruno Haible  <bruno@clisp.org>
22487         obstack: Fix compilation error on MSVC 9.
22488         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
22490 2011-11-11  Jim Meyering  <meyering@redhat.com>
22492         test-exclude: skip tests rather than failing on deficient systems
22493         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
22494         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
22495         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
22496         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
22498 2011-11-10  Bruno Haible  <bruno@clisp.org>
22500         ptsname_r test: Avoid gcc warning on glibc systems.
22501         * tests/test-ptsname_r.c (null_ptr): New function.
22502         (test_errors): Use it.
22504 2011-11-10  Bruno Haible  <bruno@clisp.org>
22506         ptsname_r: Avoid compilation error on OSF/1 5.1.
22507         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
22508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
22509         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
22510         function is not declared or incompatibly declared.
22511         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
22512         * modules/ptsname_r (Depends-on, configure.ac): Update.
22513         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
22515 2011-11-10  Bruno Haible  <bruno@clisp.org>
22517         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
22518         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
22519         When cross-compiling, guess yes on all platforms except AIX.
22520         Reported by Ludovic Courtès <ludo@gnu.org>.
22522 2011-11-09  Bruno Haible  <bruno@clisp.org>
22524         ptsname_r tests: Fix bugs.
22525         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
22526         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
22528 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
22530         fstatat: work with cross-compilation
22531         Problem reported by Ludovic Courtès in
22532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
22533         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
22534         "cross-compiling" and assume the bug is present.  Replace
22535         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
22536         an inverted sense, to be more conservative about our assumptions.
22537         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
22539 2011-11-09  Bruno Haible  <bruno@clisp.org>
22541         Improve MODULES.html output.
22542         * modules/mkfifoat (Description): Use the word "function".
22543         * modules/readlinkat (Description): Likewise.
22544         * modules/symlinkat (Description): Likewise.
22546 2011-11-09  Eric Blake  <eblake@redhat.com>
22548         ptsname_r-tests: new test module
22549         * modules/ptsname_r-tests: New module.
22550         * tests/test-ptsname_r.c: New file.
22552         ptsname_r: new module
22553         * modules/ptsname_r: New module.
22554         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
22555         * lib/ptsname.c (__ptsname_r): Split...
22556         * lib/ptsname_r.c: ...into new file.
22557         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
22558         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
22559         * modules/stdlib (Makefile.am): Substitute witnesses.
22560         * lib/stdlib.in.h (ptsname_r): Declare it.
22561         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
22562         * MODULES.html.sh (Misc): Likewise.
22563         * modules/ptsname (Depends-on): Alter dependency.
22564         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
22566 2011-11-09  Jim Meyering  <meyering@redhat.com>
22568         announce-gen: be more concise when there's only one URL+tarball
22569         * build-aux/announce-gen (get_tool_versions): When you distribute
22570         only one type of tarball, combine the first two "Here are..."
22571         sections and make the key-checking grammar independent of
22572         how many tarballs there are.
22574 2011-11-09  Eric Blake  <eblake@redhat.com>
22576         openpty: provide a stub on mingw
22577         * lib/pty.in.h (includes): Provide forward declarations.
22578         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
22580         raise: fix mingw handling of SIGPIPE
22581         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
22583 2011-11-08  Bruno Haible  <bruno@clisp.org>
22585         More conditional dependencies.
22586         * modules/faccessat (Depends-on): Add conditions.
22587         * modules/fchmodat (Depends-on): Likewise.
22588         * modules/fchownat (Depends-on): Likewise.
22589         * modules/fstatat (Depends-on): Likewise.
22590         * modules/mkfifoat (Depends-on): Likewise.
22591         * modules/readlinkat (Depends-on): Likewise.
22592         * modules/symlinkat (Depends-on): Likewise.
22593         * modules/unlinkat (Depends-on): Likewise.
22594         * modules/utimensat (Depends-on): Likewise.
22595         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
22596         * modules/linkat (Depends-on): Refine the conditions.
22597         * modules/renameat (Depends-on): Likewise.
22599 2011-11-08  Bruno Haible  <bruno@clisp.org>
22601         faccessat: Move AC_LIBOBJ invocation to module description.
22602         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
22603         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
22604         invocation from here...
22605         * modules/faccessat (configure.ac): ... to here. Invoke
22606         gl_PREREQ_FACCESSAT.
22608 2011-11-08  Bruno Haible  <bruno@clisp.org>
22610         faccessat: Simplify autoconf macro.
22611         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
22612         gl_FUNC_EUIDACCESS.
22614 2011-11-08  Bruno Haible  <bruno@clisp.org>
22616         renameat: Fix dependencies.
22617         * modules/renameat (Depends-on): Add stdbool.
22619 2011-11-08  Bruno Haible  <bruno@clisp.org>
22621         mkfifoat: Fix module description.
22622         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
22623         not gl_UNISTD_MODULE_INDICATOR.
22625 2011-11-08  Bruno Haible  <bruno@clisp.org>
22627         fstatat: Remove unused dependency.
22628         * modules/fstatat (Depends-on): Remove fstat.
22630 2011-11-08  Simon Josefsson  <simon@josefsson.org>
22632         GNUmakefile: behave when Makefile is missing.
22633         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
22635 2011-11-08  Bruno Haible  <bruno@clisp.org>
22637         openat: Conditionalize dependencies.
22638         * lib/openat.c: Reduce the scope of some #includes.
22639         * modules/openat (Depends-on): Add conditions.
22641 2011-11-07  Jim Meyering  <meyering@redhat.com>
22643         maint.mk: extract GPG key ID without using a temporary file
22644         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
22645         without using a temporary file.  Based on a suggestion from Werner Koch
22646         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
22648 2011-11-07  Eric Blake  <eblake@redhat.com>
22650         grantpt: fix typo
22651         * lib/stdlib.in.h (grantpt): Check correct function.
22653         maint.mk: silence new syntax check
22654         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
22656 2011-11-06  Bruno Haible  <bruno@clisp.org>
22658         Doc about floating-point and math API.
22659         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
22660         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
22662 2011-11-06  Bruno Haible  <bruno@clisp.org>
22664         stdalign tests: Skip the test when compiled by Sun C.
22665         * tests/test-stdalign.c (main): Skip the test on Sun C.
22667 2011-11-06  Bruno Haible  <bruno@clisp.org>
22669         ansi-c++-opt: Complete the 2011-06-05 change.
22670         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
22671         does not support namespaces, set the variable to "no", not to ":".
22673 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
22675         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
22677 2011-11-06  Bruno Haible  <bruno@clisp.org>
22679         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
22680         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
22681         (minus_zerol) [HP-UX]: New macro.
22682         (unary_minus) [HP-UX]: New function.
22683         (copysignl) [HP-UX]: Use unary_minus function.
22685 2011-11-06  Bruno Haible  <bruno@clisp.org>
22687         ldexp, ldexpf, ldexpl: Enhance tests.
22688         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
22689         and tests/test-ldexpl.c.
22690         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
22691         LDEXP, MIN_EXP, MAX_EXP): New macros.
22692         Include test-ldexp.h.
22693         (main): Just call test_function.
22694         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
22695         infinity.h, nan.h.
22696         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
22697         MAX_EXP): New macros.
22698         Include test-ldexp.h.
22699         (x, y): Remove variables.
22700         (main): Just call test_function.
22701         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
22702         infinity.h, nan.h.
22703         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
22704         MAX_EXP): New macros.
22705         Include test-ldexp.h.
22706         (x, y): Remove variables.
22707         (main): Just call test_function.
22708         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
22709         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
22710         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
22711         (Depends-on): Add isnand-nolibm, signbit, float.
22712         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
22713         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
22714         (Depends-on): Add isnanf-nolibm, signbit, float.
22716 2011-11-06  Bruno Haible  <bruno@clisp.org>
22718         math tests: Cosmetics.
22719         * tests/test-math-c++.cc: Reorder declarations.
22721 2011-11-05  Bruno Haible  <bruno@clisp.org>
22723         fma*: Simplify test.
22724         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
22725         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
22727         Tests for module 'fmal'.
22728         * modules/fmal-tests: New file.
22729         * tests/test-fmal1.c: New file.
22730         * tests/test-fmal2.c: New file.
22732         New module 'fmal'.
22733         * lib/math.in.h (fmal): New declaration.
22734         * lib/fmal.c: New file.
22735         * m4/fmal.m4: New file.
22736         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
22737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
22738         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
22739         REPLACE_FMAL.
22740         * modules/fmal: New file.
22741         * doc/posix-functions/fmal.texi: Mention the new module and the various
22742         bugs.
22744         Tests for module 'fmaf'.
22745         * modules/fmaf-tests: New file.
22746         * tests/test-fmaf1.c: New file.
22747         * tests/test-fmaf2.c: New file.
22749         New module 'fmaf'.
22750         * lib/math.in.h (fmaf): New declaration.
22751         * lib/fmaf.c: New file.
22752         * m4/fmaf.m4: New file.
22753         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
22754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
22755         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
22756         REPLACE_FMAF.
22757         * modules/fmaf: New file.
22758         * doc/posix-functions/fmaf.texi: Mention the new module and the various
22759         bugs.
22761         Tests for module 'fma'.
22762         * modules/fma-tests: New file.
22763         * tests/test-fma1.c: New file.
22764         * tests/test-fma1.h: New file.
22765         * tests/test-fma2.c: New file.
22766         * tests/test-fma2.h: New file.
22768         New module 'fma'.
22769         * lib/math.in.h (fma): New declaration.
22770         * lib/fma.c: New file.
22771         * m4/fma.m4: New file.
22772         * m4/fegetround.m4: New file.
22773         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
22774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
22775         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
22776         REPLACE_FMA.
22777         * modules/fma: New file.
22778         * doc/posix-functions/fma.texi: Mention the new module and the various
22779         bugs.
22781         Extend gl_MATHFUNC.
22782         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
22783         Support 'void' as argument type.
22784         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
22786 2011-11-05  Jim Meyering  <meyering@redhat.com>
22788         maint.mk: also prohibit inclusion of dirent.h without use
22789         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
22791 2011-11-05  Bruno Haible  <bruno@clisp.org>
22793         ldexpl tests: Avoid test failure on MSVC 9.
22794         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
22795         value. Needed in order to enforce the conversion from a value greater
22796         than LDBL_MAX to Infinity.
22798 2011-11-05  Bruno Haible  <bruno@clisp.org>
22800         New modules 'at-internal', 'openat-h', split off from module 'openat'.
22801         * modules/at-internal: New file, extracted from modules/openat.
22802         * modules/openat-h: New file.
22803         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
22804         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
22805         * modules/openat (Description): Add reference to POSIX function.
22806         (Files): Remove lib/openat.h, lib/openat-proc.c.
22807         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
22808         intprops, unistd.
22809         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
22810         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
22811         gl_FCNTL_MODULE_INDICATOR.
22812         (Include): Remove unistd.h, openat.h.
22813         * modules/areadlinkat (Files): Add lib/at-func.c.
22814         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
22815         openat-die, openat-h, save-cwd.
22816         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
22817         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
22818         openat-die, openat-h, save-cwd, unistd.
22819         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
22820         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
22821         openat-h, save-cwd. Remove fcntl-h, openat.
22822         * modules/fchmodat (Files): Remove lib/openat.h.
22823         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
22824         openat, stdbool, unistd.
22825         * modules/fchownat (Files): Remove lib/openat.h.
22826         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
22827         openat, stdbool, sys_stat.
22828         * modules/fdopendir (Files): Remove lib/openat-priv.h,
22829         lib/openat-proc.c.
22830         (Depends-on): Add at-internal.
22831         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
22832         * modules/fstatat (Files): Remove lib/openat.h.
22833         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
22834         stdbool, unistd.
22835         * modules/fts (Depends-on): Add openat-h.
22836         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
22837         openat.
22838         * modules/mkdirat (Files): Remove lib/openat.h.
22839         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
22840         openat, stdbool, sys_stat.
22841         * modules/mkfifoat (Files): Add lib/at-func.c.
22842         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
22843         openat-h, save-cwd. Remove fcntl-h, openat.
22844         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
22845         * modules/readlinkat (Files): Add lib/at-func.c.
22846         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
22847         openat-h, save-cwd. Remove fcntl-h, openat.
22848         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
22849         openat.
22850         * modules/selinux-at (Files): Add lib/at-func.c.
22851         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
22852         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
22853         * modules/symlinkat (Files): Add lib/at-func.c.
22854         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
22855         openat-h, save-cwd. Remove fcntl-h, openat.
22856         * modules/unlinkat (Files): Remove lib/openat.h.
22857         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
22858         stdbool.
22859         * modules/utimensat (Files): Add lib/at-func.c.
22860         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
22861         openat-die, openat-h, save-cwd.
22862         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
22863         * modules/fdutimensat-tests (Depends-on): Add openat.
22864         * modules/fstatat-tests (Depends-on): Add openat-h.
22865         * modules/readlinkat-tests (Depends-on): Add openat.
22866         * modules/symlinkat-tests (Depends-on): Add openat.
22868 2011-11-05  Bruno Haible  <bruno@clisp.org>
22870         openat: Include <stdbool.h>.
22871         * lib/openat.c: Include <stdbool.h>.
22873 2011-11-04  Bruno Haible  <bruno@clisp.org>
22875         fchownat, renameat, unlinkat: Fix dependencies.
22876         * modules/fchownat (Depends-on): Add fstatat.
22877         * modules/renameat (Depends-on): Likewise.
22878         * modules/unlinkat (Depends-on): Likewise.
22880 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
22882         openat: remove direct dependency on dirent
22883         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
22884         and hasn't been needed ever since fdopendir was split into its own
22885         module on 2009-08-31.
22886         * modules/openat (Depends-on): Remove dirent.
22888 2011-11-04  Bruno Haible  <bruno@clisp.org>
22890         renameat: Optimize code size.
22891         * modules/renameat (configure.ac): Don't compile at-func2.c if
22892         REPLACE_RENAMEAT is 1.
22894 2011-11-04  Bruno Haible  <bruno@clisp.org>
22896         openat tests: Fix file list.
22897         * modules/openat-tests (Files): Add tests/test-open.h.
22899 2011-11-04  Bruno Haible  <bruno@clisp.org>
22901         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
22902         * modules/fchmodat (Depends-on): Add openat-die.
22903         * modules/fchownat (Depends-on): Likewise.
22904         * modules/linkat (Depends-on): Likewise.
22905         * modules/renameat (Depends-on): Likewise.
22906         * modules/openat (Depends-on): Add dirent.
22908 2011-11-04  Jim Meyering  <meyering@redhat.com>
22910         at-func*.c: fix comments
22911         * lib/at-func2.c: Correct/improve first-line comment.
22912         * lib/at-func.c: Correct grammar in first-line comment.
22914 2011-11-04  Bruno Haible  <bruno@clisp.org>
22916         New module 'mkdirat', split off from module 'openat'.
22917         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
22918         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
22919         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
22920         * modules/mkdirat: New file, extracted from modules/openat.
22921         * modules/openat (Files): Remove lib/mkdirat.c.
22922         (Depends-on): Remove mkdir.
22923         (configure.ac): Remove AC_LIBOBJ of mkdirat.
22924         (Include): Remove <sys/stat.h>.
22925         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
22926         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
22927         tests/test-mkdir.h.
22928         (Depends-on): Remove ignore-value.
22929         (Makefile.am): Remove rules for test-mkdirat.
22930         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
22931         of module 'openat'.
22932         * NEWS: Mention the change.
22934 2011-11-04  Bruno Haible  <bruno@clisp.org>
22936         closedir: Avoid warning on mingw.
22937         * lib/closedir.c: Include <unistd.h>.
22939 2011-11-04  Bruno Haible  <bruno@clisp.org>
22941         New module 'fstatat', split off from module 'openat'.
22942         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
22943         defined.
22944         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
22945         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
22946         gl_FUNC_FSTATAT.
22947         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
22948         * modules/fstatat: New file, extracted from modules/openat.
22949         * modules/openat (Files): Remove lib/fstatat.c.
22950         (Depends-on): Remove lstat.
22951         (configure.ac): Remove AC_LIBOBJ of fstatat.
22952         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
22953         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
22954         tests/test-lstat.h, tests/test-stat.h.
22955         (Depends-on): Remove getcwd-lgpl.
22956         (Makefile.am): Remove rules for test-fstatat.
22957         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
22958         of module 'openat'.
22959         * NEWS: Mention the change.
22960         * modules/getcwd (Depends-on): Add fstatat.
22961         * modules/linkat (Depends-on): Likewise.
22962         * modules/mkfifoat-tests (Depends-on): Likewise.
22963         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
22965 2011-11-03  Bruno Haible  <bruno@clisp.org>
22967         New module 'unlinkat', split off from module 'openat'.
22968         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
22969         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
22970         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
22971         * modules/unlinkat: New file, extracted from modules/openat. Correct
22972         the dependency conditions.
22973         * modules/openat (Files): Remove lib/unlinkat.c.
22974         (Depends-on): Remove rmdir, unlink.
22975         (configure.ac): Remove AC_LIBOBJ of unlinkat.
22976         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
22977         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
22978         tests/test-rmdir.h, tests/test-unlink.h.
22979         (Depends-on): Remove unlinkdir.
22980         (Makefile.am): Remove rules for test-unlinkat.
22981         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
22982         of module 'openat'.
22983         * NEWS: Mention the change.
22984         * modules/linkat-tests (Depends-on): Add unlinkat.
22985         * modules/mkfifoat-tests (Depends-on): Likewise.
22986         * modules/readlinkat-tests (Depends-on): Likewise.
22988 2011-11-02  Bruno Haible  <bruno@clisp.org>
22990         New module 'fchmodat', split off from module 'openat'.
22991         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
22992         defined.
22993         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
22994         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
22995         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
22996         * modules/fchmodat: New file, extracted from modules/openat.
22997         * modules/openat (Files): Remove lib/fchmodat.c.
22998         (configure.ac): Remove AC_LIBOBJ of fchmodat.
22999         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
23000         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
23001         (Makefile.am): Remove rules for test-fchmodat.
23002         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
23003         of module 'openat'.
23004         * NEWS: Mention the change.
23006 2011-11-02  Jim Meyering  <meyering@redhat.com>
23008         putenv: indent #definition of "environ" to placate cppi
23009         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
23011         gitlog-to-changelog: provide a ChangeLog-repair mechanism
23012         Git logs are often treated as immutable, because editing them
23013         changes the SHA1 checksums of all descendants.  Thus, errors in
23014         git logs tend to stay there forever.  However, when we generate
23015         a ChangeLog file -- typically for distribution -- from that git log,
23016         we can actually make corrections in the generated file.  The key
23017         lies in recording in machine-readable/applicable form the desired
23018         corrections.  See --help for description and an example.
23019         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
23020         (usage): Describe it; alphabetize option descriptions.
23021         (main): Honor the new option, carefully.
23023 2011-11-01  Jim Meyering  <meyering@redhat.com>
23025         gitlog-to-changelog: avoid an infloop
23026         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
23027         that ends up being empty.
23029 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23031         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
23032         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
23033         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
23034         contains (possibly-quoted) backslashes.  This should avoid
23035         all-too-common shell bugs if COMPLICATED contains backslashes in
23036         the "wrong" places.  Reported by David Evans in
23037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
23038         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
23039         because we want ASCII ranges.  Is there some reason we don't use
23040         the C locale everywhere in this script?
23041         (func_module, top level): Avoid unwanted pathname expansion when
23042         $repo_url_prefix or $repo_url_suffix_repl contain shell
23043         metacharacters like '?' and '*'.
23045 2011-11-01  Bruno Haible  <bruno@clisp.org>
23047         fchownat: Improve description.
23048         * modules/fchownat (Description): Add link to function.
23050 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23052         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
23053         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
23054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
23055         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
23057 2011-11-01  Bruno Haible  <bruno@clisp.org>
23059         alignof: Avoid collision with stdalign module.
23060         * lib/alignof.h (alignof): Remove macro.
23061         * NEWS: Mention the change.
23062         Reported by Paul Eggert.
23064 2011-11-01  Bruno Haible  <bruno@clisp.org>
23066         New module 'fchownat', split off from module 'openat'.
23067         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
23068         defined.
23069         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
23070         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
23071         invoke gl_FUNC_FCHOWNAT.
23072         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
23073         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
23074         * modules/fchownat: New file, extracted from modules/openat.
23075         * modules/openat (Files): Remove lib/fchownat.c.
23076         (Depends-on): Remove lchown.
23077         (configure.ac): Remove AC_LIBOBJ of fchownat.
23078         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
23079         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
23080         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
23081         (Depends-on): Remove mgetgroups, usleep, stat-time.
23082         (configure.ac): Remove test for getegid.
23083         (Makefile.am): Remove rules for test-fchownat.
23084         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
23085         of module 'openat'.
23086         * NEWS: Mention the change.
23088 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
23090         stdalign: port better to MSVC and to Sun C 5.11
23091         This fixes some of the problems reported by Bruno Haible in
23092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
23093         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
23094         shortcomings of MSVC and of Sun C 5.11.
23095         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
23096         around __declspec arg.
23097         * modules/stdalign-tests (Files): Add tests/macros.h.
23098         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
23099         Include macros.h, for ASSERT.
23100         (DECLARE_ALIGNED): Remove.
23101         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
23102         to catch bug), and to 1 if not (simplifies the rest of the code).
23103         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
23104         (CHECK_AUTO): Remove.
23105         (CHECK_ALIGNED): Check only the alignment of the static vars,
23106         since auto var alignment isn't supported by Sun C 5.11.
23107         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
23108         ASSERT failures are easier to diagnose.
23110 2011-10-31  Bruno Haible  <bruno@clisp.org>
23112         doc about some IRIX 5.3 problems.
23113         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
23114         on IRIX 5.3.
23115         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
23116         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
23117         5.3.
23118         * doc/posix-functions/grantpt.texi: Likewise.
23119         * doc/posix-functions/unlockpt.texi: Likewise.
23120         * doc/posix-functions/lgamma.texi: Likewise.
23121         * doc/posix-functions/nextafter.texi: Likewise.
23122         * doc/posix-functions/remainder.texi: Likewise.
23123         * doc/posix-functions/select.texi: Mention misplaced declaration on
23124         IRIX 5.3.
23125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23127 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
23129         gitlog-to-changelog: fix git-log invocation.
23130         git-log mishandles date strings before 1970-01-01 UTC, and there is
23131         no use to specify --since=1970-01-01 by default anyway.
23132         * build-aux/gitlog-to-changelog: By default, when no --since option
23133         was given, do not specify explicit --since option to git-log.
23135 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
23137         gitlog-to-changelog: new option --append-dot.
23138         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
23139         first non-blank line of each commit message terminated with a dot.
23141 2011-10-30  Bruno Haible  <bruno@clisp.org>
23143         ffsl, ffsll: Avoid compilation error due to 'restrict'.
23144         * lib/ffsl.h: Include <config.h>.
23145         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
23147 2011-10-30  Jim Meyering  <meyering@redhat.com>
23149         GNUmakefile: reenable "make syntax-check" for most projects
23150         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
23151         build-aux variable", "syntax-check" would do nothing but succeed with
23152         the "No version control files detected..." diagnostic (unless you
23153         happened to override _build-aux via cfg.mk).
23154         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
23155         to precede inclusion of maint.mk.  Otherwise, these variables would
23156         be used undefined in any project that does not override the default.
23158 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
23160         gitlog-to-changelog: treat a message with only blank lines as empty.
23161         * build-aux/gitlog-to-changelog: Move the code that removes leading and
23162         trailing blank lines before the code that issues a warning about an
23163         empty commit message.
23165 2011-10-30  Jim Meyering  <meyering@redhat.com>
23167         test-parse-datetime.c: avoid new DST-related false positive test failure
23168         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
23169         based on the time/date we'll convert, not the current time.
23170         Otherwise, the moment we cross a DST boundary like today's in
23171         Europe, (CEST to CET), that offset ends up being one hour off.
23173 2011-10-27  Bruno Haible  <bruno@clisp.org>
23175         fstat: Tweak documentation.
23176         * modules/fstat (Description): More precise description.
23178 2011-10-27  Bruno Haible  <bruno@clisp.org>
23180         Update documentation regarding 'largefile' module.
23181         * doc/posix-functions/fstat.texi: Tweak wording.
23182         * doc/posix-functions/opendir.texi: Mention that the module fixes the
23183         problems with huge directories and/or small ino_t types.
23184         * doc/posix-functions/readdir.texi: Likewise.
23185         * doc/posix-functions/rewinddir.texi: Likewise.
23187 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
23189         maint.mk: don't maintain a second build-aux variable.
23190         * maint.mk (build_aux): Removed.  The maintainer-makefile module
23191         depends on GNUmakefile, which already maintains a cfg.mk
23192         overridable $(_build-aux) for projects with a non-standard
23193         build-aux directory location, although without the $(srcdir)
23194         prefix.  Use that variable consistently instead of introducing a
23195         second one.  Adjust all call sites.
23197 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
23199         Add stdalign module and use it in other modules.
23200         This is based on a previous proposal by Bruno Haible
23201         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
23203         stdalign: new module
23204         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
23205         * modules/stdalign: New files.
23206         * MODULES.html.sh (c1x_core_properties): Add stdalign.
23207         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
23209         stdalign-tests: new module
23210         * modules/stdalign-tests, tests/test-stdalign.c: New files.
23212         argp: use stdalign
23213         * lib/argp-parse.c: Include <stdalign.h>.
23214         (alignof): Remove.
23215         * modules/argp (Depends-on): Add stdalign.
23217         crypto libraries: use stdalign
23218         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
23219         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
23220         Do not include <stdlib.h> twice, in md4.c.
23221         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
23222         because we are accessing a pointer's bit-pattern, not a size.
23223         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
23224         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
23225         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
23226         * modules/crypto/sha512: Likewise.
23228         sys_socket: use stdalign, not alignof
23229         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
23230         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
23232 2011-10-27  Bruno Haible  <bruno@clisp.org>
23234         raise test: Avoid a test failure on Linux/MIPS.
23235         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
23236         because 99 is a valid signal on Linux/MIPS.
23238 2011-10-27  Bruno Haible  <bruno@clisp.org>
23240         nonblocking tests: Fix test failure on Linux/MIPS.
23241         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
23242         Set to 270000.
23244 2011-10-27  Bruno Haible  <bruno@clisp.org>
23246         utimensat: Work around problem on Linux/hppa.
23247         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
23248         values.
23249         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
23251 2011-10-25  Jim Meyering  <meyering@redhat.com>
23253         maint.mk: fix a bug in sc_prohibit_stddef_without_use
23254         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
23255         after symbols like NULL, size_t, etc.
23256         Reported by Alfred M. Szmidt.
23258         maint.mk: exempt ENODATA from a syntax-check rule
23259         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
23260         from the sc_prohibit_always-defined_macros syntax-check rule.
23261         Add a comment.  See this for more details:
23262         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
23264 2011-10-23  Jim Meyering  <meyering@redhat.com>
23266         fts: close parent dir FD before returning from post-traversal fts_read
23267         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
23268         unlink A, even though an FD open on A remained.  This is suboptimal
23269         (holding a file descriptor open longer than needed), but otherwise not
23270         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
23271         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
23272         that represents a real problem: it causes the removal of A to fail
23273         with e.g., "rm: cannot remove `A': Device or resource busy"
23275         fts visits each directory twice and keeps a cache (fts_fd_ring) of
23276         directory file descriptors.  After completing the final, FTS_DP,
23277         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
23278         cache, but then proceeded to add a new FD to it via the subsequent
23279         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
23280         final file descriptor would be closed only via fts_close's call to
23281         fd_ring_clear.  Now, it is usually closed earlier, via the final
23282         FTS_DP-returning fts_read call.
23283         * lib/fts.c (restore_initial_cwd): New function, converted from
23284         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
23285         Update callers.
23286         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
23287         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
23289 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
23290             Bruno Haible  <bruno@clisp.org>
23291             Jim Meyering  <jim@meyering.net>
23293         readme-release: improve safety of release prep instructions.
23294         * README-release: Don't git pull all branches when only master
23295         is needed for the release process.
23296         Run make maintainer-clean before changing trees and merging.
23297         Don't try to run ./configure right after git pull in case files
23298         that influence the bootstrap process have changed, move the
23299         ./configure step to after running ./bootstrap.
23300         Don't bootstrap "one last time"... it's the first time!
23302 2011-10-22  Bruno Haible  <bruno@clisp.org>
23304         errno, strerror-override: Support for MSVC 10.
23305         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
23306         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
23307         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
23308         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
23309         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
23310         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
23311         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
23312         Assign values compatible with MSVC 10.
23313         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
23314         New macros.
23315         (GNULIB_defined_EWINSOCK): New macro.
23316         * lib/strerror-override.c (strerror_override): Update accordingly.
23317         * lib/strerror-override.h: Likewise.
23318         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
23319         longer equal to the corresponding errno value.
23320         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
23322 2011-10-22  Bruno Haible  <bruno@clisp.org>
23324         perror: Recognize when test program crashes.
23325         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
23326         strerror, set gl_cv_func_perror_works to no.
23327         Reported by Daniel Richard G. <skunk@iskunk.org>.
23329         perror: Fix indentation.
23330         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
23332 2011-10-22  Bruno Haible  <bruno@clisp.org>
23334         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
23335         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
23336         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
23337         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
23338         functions, not as a macro.
23339         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
23340         macros.
23341         (isfinite, isinf, isnan, signbit): Check overloaded functions and
23342         absence of macro.
23343         Suggested by Eric Blake.
23344         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
23346 2011-10-21  Bruno Haible  <bruno@clisp.org>
23348         relocatable-prog-wrapper: Don't leave object files behind.
23349         * build-aux/install-reloc: Re-synchronize list of .o files to be
23350         removed with list of compilation units.
23352 2011-10-20  Bruno Haible  <bruno@clisp.org>
23354         openpty, posix_openpt: Remove code duplication.
23355         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
23356         * lib/openpty.c: Include <stdlib.h>.
23357         (openpty): Use posix_openpt on all platforms except IRIX.
23358         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
23360 2011-10-20  Bruno Haible  <bruno@clisp.org>
23362         unlockpt: Detect invalid argument.
23363         * lib/unlockpt.c: Include <fcntl.h>.
23364         (unlockpt): Check whether fd is valid, using fcntl().
23365         * modules/unlockpt (Depends-on): Add fcntl-h.
23367 2011-10-20  Bruno Haible  <bruno@clisp.org>
23369         openpty: Avoid compilation error on AIX 6.1.
23370         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
23372 2011-10-20  Bruno Haible  <bruno@clisp.org>
23374         posix_openpt: Support for OpenBSD.
23375         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
23376         (posix_openpt) [OpenBSD]: New code.
23377         * lib/grantpt.c: Include <fcntl.h>.
23378         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
23379         * modules/grantpt (Depends-on): Add fcntl-h.
23381 2011-10-20  Bruno Haible  <bruno@clisp.org>
23383         posix_openpt test: Coding style.
23384         * tests/test-posix_openpt.c: Use GNU coding style.
23386 2011-10-20  Bruno Haible  <bruno@clisp.org>
23388         grantpt: Support --avoid=pt_chown.
23389         * modules/grantpt (Files): Add lib/pty-private.h.
23391 2011-10-20  Bruno Haible  <bruno@clisp.org>
23393         posix_openpt: Fix autoconf macro.
23394         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
23395         unneeded check for _getpty.
23397 2011-10-20  Bruno Haible  <bruno@clisp.org>
23399         openpty: Update comments.
23400         * lib/openpty.c: Add comments about Minix.
23402 2011-10-19  Eric Blake  <eblake@redhat.com>
23404         openpty: relax license
23405         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
23407         pt_chown: use configmake to simplify build
23408         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
23410         ptsname and others: relax license
23411         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
23412         * modules/unlockpt (License): Likewise.
23413         * modules/pt_chown (License): Likewise.
23414         * modules/ptsname (License): Likewise.
23415         * modules/ttyname_r (License): Likewise.
23417 2011-10-19  Jim Meyering  <meyering@redhat.com>
23419         posix_openpt: remove spurious #endif
23420         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
23422 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
23424         maint.mk: Respect $(build_aux) in web-manual rule.
23425         * top/maint.mk (web-manual): Find gen-announce script in user's
23426         $(build_aux) directory instead of hard-coding 'build-aux'.
23428 2011-10-19  Bruno Haible  <bruno@clisp.org>
23430         posix_openpt: Fix compilation error.
23431         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
23432         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
23433         Mention the openpty module as an alternative.
23435 2011-10-19  Bruno Haible  <bruno@clisp.org>
23437         Support for old NeXTstep 3.3 frexp().
23438         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
23439         execution time of the test to 5 seconds.
23440         Reported by Daniel Richard G. <skunk@iskunk.org>.
23442 2011-10-19  Bruno Haible  <bruno@clisp.org>
23444         Support for old NeXTstep 3.3 sed.
23445         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
23446         part, use /.../, not \|...|. Escape periods in the header file name.
23447         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
23448         Reported by Daniel Richard G. <skunk@iskunk.org>.
23450 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
23452         Support for old NeXTstep 3.3 gcc.
23453         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
23454         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
23455         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
23456         * lib/spawn.in.h (_Restrict_arr_): Likewise.
23457         * lib/regex.h (_Restrict_arr_): Likewise.
23458         * lib/regex_internal.h (re_token_t): Likewise.
23459         * lib/regexec.c (check_node_accept_bytes): Likewise.
23460         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
23462 2011-10-18  Eric Blake  <eblake@redhat.com>
23464         posix_openpt: new module
23465         * modules/posix_openpt: New module.
23466         * m4/posix_openpt.m4: New file.
23467         * lib/posix_openpt.c: Likewise.
23468         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
23469         (gl_STDLIB_H_DEFAULTS): Set defaults.
23470         * modules/stdlib (Makefile.am): Substitute macros.
23471         * lib/stdlib.in.h (posix_openpt): Declare.
23472         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
23473         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
23474         * modules/posix_openpt-tests: New test module.
23475         * tests/test-posix_openpt.c: New test.
23477 2011-10-15  Bruno Haible  <bruno@clisp.org>
23479         xstrtoll: Fix compilation failure.
23480         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
23481         from lib/strtol.c.
23482         * doc/posix-headers/limits.texi: Mention missing numerical limits on
23483         some platforms.
23484         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23486 2011-10-15  Bruno Haible  <bruno@clisp.org>
23488         vasnprintf: Optimize bit search operation.
23489         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
23490         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
23491         gl_DOUBLE_EXPONENT_LOCATION.
23492         * modules/vasnprintf (Files): Add m4/exponentd.m4.
23493         * modules/unistdio/u8-vasnprintf (Files): Likewise.
23494         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
23495         * modules/unistdio/u16-vasnprintf (Files): Likewise.
23496         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
23497         * modules/unistdio/u32-vasnprintf (Files): Likewise.
23498         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
23499         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
23500         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
23502 2011-10-15  Bruno Haible  <bruno@clisp.org>
23504         vasnprintf: Fix comments.
23505         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
23507 2011-10-14  Bruno Haible  <bruno@clisp.org>
23509         Tests for module 'integer_length_ll'.
23510         * modules/integer_length_ll-tests: New file.
23511         * tests/test-integer_length_ll.c: New file.
23513         New module 'integer_length_ll'.
23514         * lib/integer_length_ll.c: New file.
23515         * modules/integer_length_ll: New file.
23517 2011-10-14  Bruno Haible  <bruno@clisp.org>
23519         Tests for module 'integer_length_l'.
23520         * modules/integer_length_l-tests: New file.
23521         * tests/test-integer_length_l.c: New file.
23523         New module 'integer_length_l'.
23524         * lib/integer_length_l.c: New file.
23525         * modules/integer_length_l: New file.
23527 2011-10-14  Bruno Haible  <bruno@clisp.org>
23529         Tests for module 'integer_length'.
23530         * modules/integer_length-tests: New file.
23531         * tests/test-integer_length.c: New file.
23533         New module 'integer_length'.
23534         * lib/integer_length.h: New file.
23535         * lib/integer_length.c: New file.
23536         * modules/integer_length: New file.
23538 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
23540         popen: Fix dependency conditions.
23541         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
23543 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
23545         perror: Fix autoconf test.
23546         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
23547         <stdlib.h> and <string.h>.
23549 2011-10-14  Bruno Haible  <bruno@clisp.org>
23551         ffsl: Optimize on 64-bit platforms.
23552         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
23553         unrolling.
23555 2011-10-13  Bruno Haible  <bruno@clisp.org>
23557         ffsl: Optimize on 32-bit platforms.
23558         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
23559         use ffs() without a loop.
23561         ffsl, ffsll: Optimize for GCC.
23562         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
23563         * lib/ffsl.c (GCC_BUILTIN): New macro.
23564         * lib/ffsll.c (GCC_BUILTIN): Likewise.
23566 2011-10-13  Bruno Haible  <bruno@clisp.org>
23568         ffs, bcopy, memset: Support symbol renaming via config.h.
23569         * lib/ffs.c: Include <config.h>.
23570         * lib/bcopy.c: Likewise.
23571         * lib/memset.c: Likewise.
23573 2011-10-10  Bruno Haible  <bruno@clisp.org>
23575         atanl: Simplify for platforms where 'long double' == 'double'.
23576         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23577         alternative implementation.
23578         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23579         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23580         * modules/atanl (Depends-on): Add atan. Update conditions.
23582 2011-10-10  Bruno Haible  <bruno@clisp.org>
23584         acosl: Simplify for platforms where 'long double' == 'double'.
23585         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23586         alternative implementation.
23587         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23588         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23589         * modules/acosl (Depends-on): Add acos. Update conditions.
23591 2011-10-10  Bruno Haible  <bruno@clisp.org>
23593         asinl: Simplify for platforms where 'long double' == 'double'.
23594         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23595         alternative implementation.
23596         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23597         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23598         * modules/asinl (Depends-on): Add asin. Update conditions.
23600 2011-10-10  Bruno Haible  <bruno@clisp.org>
23602         tanl: Simplify for platforms where 'long double' == 'double'.
23603         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23604         implementation.
23605         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23606         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23607         * modules/tanl (Depends-on): Add tan. Update conditions.
23608         (configure.ac): Don't compile trigl.c if
23609         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23611 2011-10-10  Bruno Haible  <bruno@clisp.org>
23613         cosl: Simplify for platforms where 'long double' == 'double'.
23614         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23615         implementation.
23616         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23617         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23618         * modules/cosl (Depends-on): Add cos. Update conditions.
23619         (configure.ac): Don't compile sincosl.c and trigl.c if
23620         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23622 2011-10-10  Bruno Haible  <bruno@clisp.org>
23624         sinl: Simplify for platforms where 'long double' == 'double'.
23625         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23626         implementation.
23627         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23628         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23629         * modules/sinl (Depends-on): Add sin. Update conditions.
23630         (configure.ac): Don't compile sincosl.c and trigl.c if
23631         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23633 2011-10-10  Bruno Haible  <bruno@clisp.org>
23635         logl: Simplify for platforms where 'long double' == 'double'.
23636         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23637         implementation.
23638         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23639         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23640         * modules/logl (Depends-on): Add log. Update conditions.
23642 2011-10-10  Bruno Haible  <bruno@clisp.org>
23644         expl: Simplify for platforms where 'long double' == 'double'.
23645         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
23646         implementation.
23647         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23648         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23649         * modules/expl (Depends-on): Add exp. Update conditions.
23651 2011-10-10  Bruno Haible  <bruno@clisp.org>
23653         sqrtl: Simplify for platforms where 'long double' == 'double'.
23654         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23655         alternative implementation.
23656         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23657         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23658         * modules/sqrtl (Depends-on): Update conditions.
23660 2011-10-10  Bruno Haible  <bruno@clisp.org>
23662         ldexpl: Simplify for platforms where 'long double' == 'double'.
23663         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23664         alternative implementation.
23665         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23666         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23667         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
23669 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
23671         ffsll: set correct witness
23672         * modules/ffsll (configure.ac): Fix typo.
23674 2011-10-10  Bruno Haible  <bruno@clisp.org>
23676         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
23677         * lib/printf-frexpl.c: Include <config.h>.
23678         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23679         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
23680         second time.
23681         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
23682         gl_LONG_DOUBLE_VS_DOUBLE.
23683         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
23684         conditions.
23686 2011-10-10  Bruno Haible  <bruno@clisp.org>
23688         frexpl: Simplify for platforms where 'long double' == 'double'.
23689         * lib/frexpl.c: Include <config.h>.
23690         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23691         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23692         time.
23693         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23694         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23695         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
23696         * modules/frexpl (Depends-on): Add frexp. Update conditions.
23697         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
23698         conditions.
23700 2011-10-10  Jim Meyering  <meyering@redhat.com>
23702         test-renameat: don't leave behind a temporary file
23703         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
23704           ERROR: files left in build directory after distclean:
23705           ./gltests/test-renameat.too
23706           make[1]: *** [distcleancheck] Error 1
23707         Reported by Tom G. Christensen.
23709 2011-10-09  Bruno Haible  <bruno@clisp.org>
23711         rint: Determine RINT_LIBM correctly on AIX 7.
23712         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
23713         directly, not only through a function pointer. Also accept an optional
23714         4th argument with extra code.
23715         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
23716         rintf() call by gcc when optimizing.
23718         mathfunc.m4: Refactor.
23719         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
23720         m4 variable.
23722 2011-10-09  Bruno Haible  <bruno@clisp.org>
23724         rintl: Simplify for platforms where 'long double' == 'double'.
23725         * lib/rintl.c: Include <config.h>.
23726         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23727         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23728         time.
23729         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23730         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23731         * modules/rintl (Depends-on): Add rint. Update conditions.
23733 2011-10-09  Bruno Haible  <bruno@clisp.org>
23735         roundl: Simplify for platforms where 'long double' == 'double'.
23736         * lib/roundl.c: Include <config.h>.
23737         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23738         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23739         time.
23740         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23741         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23742         * modules/roundl (Depends-on): Add round. Update conditions.
23744 2011-10-09  Bruno Haible  <bruno@clisp.org>
23746         truncl: Simplify for platforms where 'long double' == 'double'.
23747         * lib/truncl.c: Include <config.h>.
23748         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23749         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23750         time.
23751         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23752         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23753         * modules/truncl (Depends-on): Add trunc. Update conditions.
23755 2011-10-09  Bruno Haible  <bruno@clisp.org>
23757         ceill: Simplify for platforms where 'long double' == 'double'.
23758         * lib/ceill.c: Include <config.h>.
23759         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23760         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23761         time.
23762         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23763         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23764         * modules/ceill (Depends-on): Add ceil. Update conditions.
23766 2011-10-09  Bruno Haible  <bruno@clisp.org>
23768         floorl: Simplify for platforms where 'long double' == 'double'.
23769         * lib/floorl.c: Include <config.h>.
23770         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23771         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
23772         time.
23773         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23774         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23775         * modules/floorl (Depends-on): Add floor. Update conditions.
23777 2011-10-09  Bruno Haible  <bruno@clisp.org>
23779         rint: Fix ordering constraints.
23780         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
23781         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
23782         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
23784 2011-10-09  Bruno Haible  <bruno@clisp.org>
23786         copysignl: Simplify for platforms where 'long double' == 'double'.
23787         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
23788         alternative.
23789         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23790         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
23791         * modules/copysignl (Depends-on): Add copysign. Update conditions.
23793 2011-10-09  Bruno Haible  <bruno@clisp.org>
23795         Tests for module 'rintl'.
23796         * modules/rintl-tests: New file.
23797         * tests/test-rintl.c: New file.
23799         New module 'rintl'.
23800         * lib/math.in.h (rintl): New declaration.
23801         * lib/rintl.c: New file.
23802         * m4/rintl.m4: New file.
23803         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
23804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
23805         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
23806         * modules/rintl: New file.
23807         * tests/test-math-c++.cc: Check the declaration of rintl.
23808         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
23809         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
23810         * doc/posix-functions/rintl.texi: Mention the new module.
23812 2011-10-09  Bruno Haible  <bruno@clisp.org>
23814         Tests for module 'rintf'.
23815         * modules/rintf-tests: New file.
23816         * tests/test-rintf.c: New file.
23818         New module 'rintf'.
23819         * lib/math.in.h (rintf): New declaration.
23820         * lib/rintf.c: New file.
23821         * m4/rintf.m4: New file.
23822         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
23823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
23824         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
23825         * modules/rintf: New file.
23826         * tests/test-math-c++.cc: Check the declaration of rintf.
23827         * doc/posix-functions/rintf.texi: Mention the new module.
23829 2011-10-09  Bruno Haible  <bruno@clisp.org>
23831         rint: Support for MSVC.
23832         * lib/math.in.h (rint): New declaration.
23833         * lib/rint.c: New file.
23834         * m4/rint.m4: New file.
23835         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
23836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
23837         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
23838         * modules/rint (Description): Fix.
23839         (Files): Add lib/rint.c, m4/rint.m4.
23840         (Depends-on): Add math.
23841         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
23842         gl_MATH_MODULE_INDICATOR.
23843         * tests/test-math-c++.cc: Check the declaration of rint.
23844         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
23845         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
23846         * doc/posix-functions/rint.texi: Mention the replacement provided by
23847         the module.
23849         rint tests: More tests.
23850         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
23851         minus-zero.h, infinity.h, nan.h.
23852         (main): Skip the test if the current rounding mode is not standard. Add
23853         tests for negative numbers, minus zero, infinity, NaN.
23854         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
23855         tests/nan.h.
23856         (Depends-on): Add isnand-nolibm.
23858 2011-10-09  Bruno Haible  <bruno@clisp.org>
23860         Tests for module 'copysignl'.
23861         * modules/copysignl-tests: New file.
23862         * tests/test-copysignl.c: New file.
23864         New module 'copysignl'.
23865         * lib/math.in.h (copysignl): New declaration.
23866         * lib/copysignl.c: New file.
23867         * m4/copysignl.m4: New file.
23868         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
23869         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
23870         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
23871         HAVE_COPYSIGNL.
23872         * modules/copysignl: New file.
23873         * tests/test-math-c++.cc: Check the declaration of copysignl.
23874         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
23875         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
23876         * doc/posix-functions/copysignl.texi: Mention the new module.
23878 2011-10-09  Bruno Haible  <bruno@clisp.org>
23880         Tests for module 'copysignf'.
23881         * modules/copysignf-tests: New file.
23882         * tests/test-copysignf.c: New file.
23884         New module 'copysignf'.
23885         * lib/math.in.h (copysignf): New declaration.
23886         * lib/copysignf.c: New file.
23887         * m4/copysignf.m4: New file.
23888         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
23889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
23890         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
23891         HAVE_COPYSIGNF.
23892         * modules/copysignf: New file.
23893         * tests/test-math-c++.cc: Check the declaration of copysignf.
23894         * doc/posix-functions/copysignf.texi: Mention the new module.
23896 2011-10-09  Bruno Haible  <bruno@clisp.org>
23898         Ensure that HAVE_* variables are set to 1 before they are set to 0.
23899         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
23900         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
23901         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
23902         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
23903         gl_SIGNAL_H_DEFAULTS.
23905 2011-10-09  Bruno Haible  <bruno@clisp.org>
23907         poll: Make macro safer.
23908         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
23909         ac_cv_header_poll_h is not set.
23911 2011-10-09  Bruno Haible  <bruno@clisp.org>
23913         copysign: Provide replacement.
23914         * lib/math.in.h (copysign): New declaration.
23915         * lib/copysign.c: New file.
23916         * m4/copysign.m4: New file.
23917         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
23918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
23919         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
23920         HAVE_COPYSIGN.
23921         * modules/copysign (Description): Clarify.
23922         (Files): Add lib/copysign.c, m4/copysign.m4.
23923         (Depends-on): Add math, signbit.
23924         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
23925         gl_MATH_MODULE_INDICATOR.
23926         * tests/test-math-c++.cc: Check the declaration of copysign.
23927         * doc/posix-functions/copysign.texi: Mention the effects of the module
23928         on Minix and MSVC.
23930 2011-10-09  Bruno Haible  <bruno@clisp.org>
23932         isinf: Ensure macro on AIX 5.1.
23933         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
23934         macro.
23935         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
23937 2011-10-09  Bruno Haible  <bruno@clisp.org>
23939         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
23940         * modules/snprintf-posix-tests (configure.ac): Require
23941         gl_LONG_DOUBLE_VS_DOUBLE.
23942         * modules/sprintf-posix-tests (configure.ac): Likewise.
23943         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
23944         * modules/vasprintf-posix-tests (configure.ac): Likewise.
23945         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
23946         * modules/vsprintf-posix-tests (configure.ac): Likewise.
23947         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
23948         tests on platforms where 'long double' is the same as 'double'.
23949         * tests/test-sprintf-posix.h (test_function): Likewise.
23950         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23951         * tests/test-vasprintf-posix.c (test_function): Likewise.
23953         *printf: Fix for platforms where 'long double' == 'double'.
23954         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
23955         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
23956         * modules/dprintf-posix (Files): Add m4/math_h.m4.
23957         * modules/fprintf-posix (Files): Likewise.
23958         * modules/obstack-printf-posix (Files): Likewise.
23959         * modules/snprintf-posix (Files): Likewise.
23960         * modules/sprintf-posix (Files): Likewise.
23961         * modules/vasnprintf (Files): Likewise.
23962         * modules/vasnprintf-posix (Files): Likewise.
23963         * modules/vasprintf-posix (Files): Likewise.
23964         * modules/vdprintf-posix (Files): Likewise.
23965         * modules/vfprintf-posix (Files): Likewise.
23966         * modules/vsnprintf-posix (Files): Likewise.
23967         * modules/vsprintf-posix (Files): Likewise.
23968         * modules/unistdio/u8-vasnprintf (Files): Likewise.
23969         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
23970         * modules/unistdio/u16-vasnprintf (Files): Likewise.
23971         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
23972         * modules/unistdio/u32-vasnprintf (Files): Likewise.
23973         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
23974         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
23976         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
23977         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
23978         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
23979         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
23980         'long double'.
23981         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
23983         isinf: Fix for platforms where 'long double' == 'double'.
23984         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
23985         Don't blindly assume 80-bit 'long double'.
23987         isfinite: Fix for platforms where 'long double' == 'double'.
23988         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
23989         Don't blindly assume 80-bit 'long double'.
23991         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
23992         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
23993         * modules/isfinite-tests (configure.ac): Require
23994         gl_LONG_DOUBLE_VS_DOUBLE.
23995         * modules/isinf-tests (configure.ac): Likewise.
23996         * modules/isnan-tests (configure.ac): Likewise.
23997         * modules/isnanl-tests (configure.ac): Likewise.
23998         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
23999         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
24000         tests on platforms where 'long double' is the same as 'double'.
24001         * tests/test-isinf.c (test_isinfl): Likewise.
24002         * tests/test-isnan.c (test_long_double): Likewise.
24003         * tests/test-isnanl.h (main): Likewise.
24005 2011-10-08  Bruno Haible  <bruno@clisp.org>
24007         Tests for module 'tanhf'.
24008         * modules/tanhf-tests: New file.
24009         * tests/test-tanhf.c: New file.
24011         New module 'tanhf'.
24012         * lib/math.in.h (tanhf): New declaration.
24013         * lib/tanhf.c: New file.
24014         * m4/tanhf.m4: New file.
24015         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
24016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
24017         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
24018         * modules/tanhf: New file.
24019         * tests/test-math-c++.cc: Check the declaration of tanhf.
24020         * doc/posix-functions/tanhf.texi: Mention the new module.
24022         tanh: Use a .m4 file.
24023         * m4/tanh.m4: New file.
24024         * modules/tanh (Files): Add it.
24025         (configure.ac): Just invoke gl_FUNC_TANH.
24027 2011-10-08  Bruno Haible  <bruno@clisp.org>
24029         Tests for module 'coshf'.
24030         * modules/coshf-tests: New file.
24031         * tests/test-coshf.c: New file.
24033         New module 'coshf'.
24034         * lib/math.in.h (coshf): New declaration.
24035         * lib/coshf.c: New file.
24036         * m4/coshf.m4: New file.
24037         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
24038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
24039         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
24040         * modules/coshf: New file.
24041         * tests/test-math-c++.cc: Check the declaration of coshf.
24042         * doc/posix-functions/coshf.texi: Mention the new module.
24044         cosh: Use a .m4 file.
24045         * m4/cosh.m4: New file.
24046         * modules/cosh (Files): Add it.
24047         (configure.ac): Just invoke gl_FUNC_COSH.
24049 2011-10-08  Bruno Haible  <bruno@clisp.org>
24051         Tests for module 'sinhf'.
24052         * modules/sinhf-tests: New file.
24053         * tests/test-sinhf.c: New file.
24055         New module 'sinhf'.
24056         * lib/math.in.h (sinhf): New declaration.
24057         * lib/sinhf.c: New file.
24058         * m4/sinhf.m4: New file.
24059         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
24060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
24061         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
24062         * modules/sinhf: New file.
24063         * tests/test-math-c++.cc: Check the declaration of sinhf.
24064         * doc/posix-functions/sinhf.texi: Mention the new module.
24066         sinh: Use a .m4 file.
24067         * m4/sinh.m4: New file.
24068         * modules/sinh (Files): Add it.
24069         (configure.ac): Just invoke gl_FUNC_SINH.
24071 2011-10-08  Bruno Haible  <bruno@clisp.org>
24073         Tests for module 'atan2f'.
24074         * modules/atan2f-tests: New file.
24075         * tests/test-atan2f.c: New file.
24077         New module 'atan2f'.
24078         * lib/math.in.h (atan2f): New declaration.
24079         * lib/atan2f.c: New file.
24080         * m4/atan2f.m4: New file.
24081         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
24082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
24083         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
24084         * modules/atan2f: New file.
24085         * tests/test-math-c++.cc: Check the declaration of atan2f.
24086         * doc/posix-functions/atan2f.texi: Mention the new module.
24088         atan2: Use a .m4 file.
24089         * m4/atan2.m4: New file.
24090         * modules/atan2 (Files): Add it.
24091         (configure.ac): Just invoke gl_FUNC_ATAN2.
24093 2011-10-08  Bruno Haible  <bruno@clisp.org>
24095         Tests for module 'atanf'.
24096         * modules/atanf-tests: New file.
24097         * tests/test-atanf.c: New file.
24099         New module 'atanf'.
24100         * lib/math.in.h (atanf): New declaration.
24101         * lib/atanf.c: New file.
24102         * m4/atanf.m4: New file.
24103         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
24104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
24105         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
24106         * modules/atanf: New file.
24107         * tests/test-math-c++.cc: Check the declaration of atanf.
24108         * doc/posix-functions/atanf.texi: Mention the new module.
24110         atan: Use a .m4 file.
24111         * m4/atan.m4: New file.
24112         * modules/atan (Files): Add it.
24113         (configure.ac): Just invoke gl_FUNC_ATAN.
24115 2011-10-08  Bruno Haible  <bruno@clisp.org>
24117         Tests for module 'acosf'.
24118         * modules/acosf-tests: New file.
24119         * tests/test-acosf.c: New file.
24121         New module 'acosf'.
24122         * lib/math.in.h (acosf): New declaration.
24123         * lib/acosf.c: New file.
24124         * m4/acosf.m4: New file.
24125         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
24126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
24127         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
24128         * modules/acosf: New file.
24129         * tests/test-math-c++.cc: Check the declaration of acosf.
24130         * doc/posix-functions/acosf.texi: Mention the new module.
24132         acos: Use a .m4 file.
24133         * m4/acos.m4: New file.
24134         * modules/acos (Files): Add it.
24135         (configure.ac): Just invoke gl_FUNC_ACOS.
24137 2011-10-08  Bruno Haible  <bruno@clisp.org>
24139         Tests for module 'asinf'.
24140         * modules/asinf-tests: New file.
24141         * tests/test-asinf.c: New file.
24143         New module 'asinf'.
24144         * lib/math.in.h (asinf): New declaration.
24145         * lib/asinf.c: New file.
24146         * m4/asinf.m4: New file.
24147         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
24148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
24149         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
24150         * modules/asinf: New file.
24151         * tests/test-math-c++.cc: Check the declaration of asinf.
24152         * doc/posix-functions/asinf.texi: Mention the new module.
24154         asin: Use a .m4 file.
24155         * m4/asin.m4: New file.
24156         * modules/asin (Files): Add it.
24157         (configure.ac): Just invoke gl_FUNC_ASIN.
24159 2011-10-08  Bruno Haible  <bruno@clisp.org>
24161         Tests for module 'tanf'.
24162         * modules/tanf-tests: New file.
24163         * tests/test-tanf.c: New file.
24165         New module 'tanf'.
24166         * lib/math.in.h (tanf): New declaration.
24167         * lib/tanf.c: New file.
24168         * m4/tanf.m4: New file.
24169         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
24170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
24171         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
24172         * modules/tanf: New file.
24173         * tests/test-math-c++.cc: Check the declaration of tanf.
24174         * doc/posix-functions/tanf.texi: Mention the new module.
24176         tan: Use a .m4 file.
24177         * m4/tan.m4: New file.
24178         * modules/tan (Files): Add it.
24179         (configure.ac): Just invoke gl_FUNC_TAN.
24181 2011-10-08  Bruno Haible  <bruno@clisp.org>
24183         Tests for module 'cosf'.
24184         * modules/cosf-tests: New file.
24185         * tests/test-cosf.c: New file.
24187         New module 'cosf'.
24188         * lib/math.in.h (cosf): New declaration.
24189         * lib/cosf.c: New file.
24190         * m4/cosf.m4: New file.
24191         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
24192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
24193         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
24194         * modules/cosf: New file.
24195         * tests/test-math-c++.cc: Check the declaration of cosf.
24196         * doc/posix-functions/cosf.texi: Mention the new module.
24198         cos: Use a .m4 file.
24199         * m4/cos.m4: New file.
24200         * modules/cos (Files): Add it.
24201         (configure.ac): Just invoke gl_FUNC_COS.
24203 2011-10-08  Bruno Haible  <bruno@clisp.org>
24205         Tests for module 'sinf'.
24206         * modules/sinf-tests: New file.
24207         * tests/test-sinf.c: New file.
24209         New module 'sinf'.
24210         * lib/math.in.h (sinf): New declaration.
24211         * lib/sinf.c: New file.
24212         * m4/sinf.m4: New file.
24213         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
24214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
24215         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
24216         * modules/sinf: New file.
24217         * tests/test-math-c++.cc: Check the declaration of sinf.
24218         * doc/posix-functions/sinf.texi: Mention the new module.
24220         sin: Use a .m4 file.
24221         * m4/sin.m4: New file.
24222         * modules/sin (Files): Add it.
24223         (configure.ac): Just invoke gl_FUNC_SIN.
24225 2011-10-08  Bruno Haible  <bruno@clisp.org>
24227         Tests for module 'powf'.
24228         * modules/powf-tests: New file.
24229         * tests/test-powf.c: New file.
24231         New module 'powf'.
24232         * lib/math.in.h (powf): New declaration.
24233         * lib/powf.c: New file.
24234         * m4/powf.m4: New file.
24235         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
24236         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
24237         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
24238         * modules/powf: New file.
24239         * tests/test-math-c++.cc: Check the declaration of powf.
24240         * doc/posix-functions/powf.texi: Mention the new module.
24242         pow: Use a .m4 file.
24243         * m4/pow.m4: New file.
24244         * modules/pow (Files): Add it.
24245         (configure.ac): Just invoke gl_FUNC_POW.
24247 2011-10-08  Bruno Haible  <bruno@clisp.org>
24249         Tests for module 'log10f'.
24250         * modules/log10f-tests: New file.
24251         * tests/test-log10f.c: New file.
24253         New module 'log10f'.
24254         * lib/math.in.h (log10f): New declaration.
24255         * lib/log10f.c: New file.
24256         * m4/log10f.m4: New file.
24257         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
24258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
24259         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
24260         * modules/log10f: New file.
24261         * tests/test-math-c++.cc: Check the declaration of log10f.
24262         * doc/posix-functions/log10f.texi: Mention the new module.
24264         log10: Use a .m4 file.
24265         * m4/log10.m4: New file.
24266         * modules/log10 (Files): Add it.
24267         (configure.ac): Just invoke gl_FUNC_LOG10.
24269 2011-10-08  Bruno Haible  <bruno@clisp.org>
24271         Tests for module 'logf'.
24272         * modules/logf-tests: New file.
24273         * tests/test-logf.c: New file.
24275         New module 'logf'.
24276         * lib/math.in.h (logf): New declaration.
24277         * lib/logf.c: New file.
24278         * m4/logf.m4: New file.
24279         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
24280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
24281         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
24282         * modules/logf: New file.
24283         * tests/test-math-c++.cc: Check the declaration of logf.
24284         * doc/posix-functions/logf.texi: Mention the new module.
24286         log: Use a .m4 file.
24287         * m4/log.m4: New file.
24288         * modules/log (Files): Add it.
24289         (configure.ac): Just invoke gl_FUNC_LOG.
24291 2011-10-08  Bruno Haible  <bruno@clisp.org>
24293         Tests for module 'expf'.
24294         * modules/expf-tests: New file.
24295         * tests/test-expf.c: New file.
24297         New module 'expf'.
24298         * lib/math.in.h (expf): New declaration.
24299         * lib/expf.c: New file.
24300         * m4/expf.m4: New file.
24301         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
24302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
24303         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
24304         * modules/expf: New file.
24305         * tests/test-math-c++.cc: Check the declaration of expf.
24306         * doc/posix-functions/expf.texi: Mention the new module.
24308         exp: Use a .m4 file.
24309         * m4/exp.m4: New file.
24310         * modules/exp (Files): Add it.
24311         (configure.ac): Just invoke gl_FUNC_EXP.
24313 2011-10-08  Bruno Haible  <bruno@clisp.org>
24315         Tests for module 'sqrtf'.
24316         * modules/sqrtf-tests: New file.
24317         * tests/test-sqrtf.c: New file.
24319         New module 'sqrtf'.
24320         * lib/math.in.h (sqrtf): New declaration.
24321         * lib/sqrtf.c: New file.
24322         * m4/sqrtf.m4: New file.
24323         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
24324         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
24325         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
24326         * modules/sqrtf: New file.
24327         * tests/test-math-c++.cc: Check the declaration of sqrtf.
24328         * doc/posix-functions/sqrtf.texi: Mention the new module.
24330 2011-10-08  Bruno Haible  <bruno@clisp.org>
24332         Tests: Avoid link failures w.r.t. libintl.
24333         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
24334         $(LIBINTL).
24335         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
24336         $(LIBINTL).
24337         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
24338         against $(LIBINTL).
24339         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
24340         $(LIBINTL).
24341         * modules/openat-tests (Makefile.am): Link test-fchmodat against
24342         $(LIBINTL).
24343         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
24345 2011-10-08  Bruno Haible  <bruno@clisp.org>
24347         pow tests: Defeat compiler optimizations.
24348         * tests/test-pow.c (main): Assign arguments to x and y before use.
24350 2011-10-08  Bruno Haible  <bruno@clisp.org>
24352         gnulib-tool: Improve last commit.
24353         * gnulib-tool (func_modules_transitive_closure): Simplify code.
24354         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
24355         ignore dependencies that are not among the modules list.
24357 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
24359         gnulib-tool: don't follow dependencies to avoided modules
24360         This fixes a bug that is related to the previous one.
24361         * gnulib-tool (func_modules_transitive_closure)
24362         (func_emit_autoconf_snippets):
24363         Check whether a dependency is acceptable before using it.
24364         (--extract-dependencies): Report an error if --avoid is also used,
24365         since this combination of options is not yet supported.
24367         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
24368         Problem reported by Peter Dyballa in
24369         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
24370         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
24371         when echoing "$condition".
24373 2011-10-07  Bruno Haible  <bruno@clisp.org>
24375         Fix documentation about math functions on MacOS X.
24376         * doc/posix-functions/exp2.texi: Don't say the function is missing on
24377         MacOS X 10.5.
24378         * doc/posix-functions/fdim.texi: Likewise.
24379         * doc/posix-functions/feclearexcept.texi: Likewise.
24380         * doc/posix-functions/fegetenv.texi: Likewise.
24381         * doc/posix-functions/fegetround.texi: Likewise.
24382         * doc/posix-functions/feholdexcept.texi: Likewise.
24383         * doc/posix-functions/feraiseexcept.texi: Likewise.
24384         * doc/posix-functions/fesetenv.texi: Likewise.
24385         * doc/posix-functions/fesetround.texi: Likewise.
24386         * doc/posix-functions/fetestexcept.texi: Likewise.
24387         * doc/posix-functions/feupdateenv.texi: Likewise.
24388         * doc/posix-functions/fmax.texi: Likewise.
24389         * doc/posix-functions/fmin.texi: Likewise.
24390         * doc/posix-functions/log2.texi: Likewise.
24391         * doc/posix-functions/modff.texi: Likewise.
24392         * doc/posix-functions/nan.texi: Likewise.
24393         * doc/posix-functions/nanf.texi: Likewise.
24394         * doc/posix-functions/nextafterf.texi: Likewise.
24395         * doc/posix-functions/remquo.texi: Likewise.
24397 2011-10-07  Bruno Haible  <bruno@clisp.org>
24399         modff: Drop assumption about library that defines modff.
24400         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
24401         AC_CHECK_FUNCS.
24402         * modules/modff (Files): Add m4/mathfunc.m4.
24404 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
24406         raise tests: Avoid a GCC warning.
24407         * tests/test-raise.c (handler): Use _Noreturn.
24409 2011-10-07  Bruno Haible  <bruno@clisp.org>
24411         Tests for module 'ldexpf'.
24412         * modules/ldexpf-tests: New file.
24413         * tests/test-ldexpf.c: New file.
24415         New module 'ldexpf'.
24416         * lib/math.in.h (ldexpf): New declaration.
24417         * lib/ldexpf.c: New file.
24418         * m4/ldexpf.m4: New file.
24419         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
24420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
24421         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
24422         * modules/ldexpf: New file.
24423         * tests/test-math-c++.cc: Check the declaration of ldexpf.
24424         * doc/posix-functions/ldexpf.texi: Mention the new module.
24426 2011-10-06  Bruno Haible  <bruno@clisp.org>
24428         frexpf: Work around problems on IRIX and mingw.
24429         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
24430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
24431         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
24432         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
24433         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
24434         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
24435         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
24437 2011-10-06  Bruno Haible  <bruno@clisp.org>
24439         fabsf: Drop assumption about library that defines fabsf.
24440         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
24441         AC_CHECK_FUNCS.
24442         * modules/fabsf (Files): Add m4/mathfunc.m4.
24444 2011-10-06  Bruno Haible  <bruno@clisp.org>
24446         frexpf: Drop assumption about library that defines frexpf.
24447         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
24448         'int *', 'float *', 'long double *', 'float', 'long double'.
24449         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
24450         AC_CHECK_FUNCS.
24451         * modules/frexpf (Files): Add m4/mathfunc.m4.
24453         Tests for module 'frexpf'.
24454         * modules/frexpf-tests: New file.
24455         * tests/test-frexpf.c: New file.
24457         New module 'frexpf'.
24458         * lib/math.in.h (frexpf): New declaration.
24459         * lib/frexpf.c: New file.
24460         * m4/frexpf.m4: New file.
24461         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
24462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
24463         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
24464         * modules/frexpf: New file.
24465         * tests/test-math-c++.cc: Check the declaration of frexpf.
24466         * doc/posix-functions/frexpf.texi: Mention the new module.
24468 2011-10-06  Bruno Haible  <bruno@clisp.org>
24470         math: Sort function declarations of math.in.h.
24471         * lib/math.in.h (frexp, logb): Move declarations.
24473 2011-10-05  Bruno Haible  <bruno@clisp.org>
24475         Tests for module 'modff'.
24476         * modules/modff-tests: New file.
24477         * tests/test-modff.c: New file.
24479         New module 'modff'.
24480         * lib/math.in.h (modff): New declaration.
24481         * lib/modff.c: New file.
24482         * m4/modff.m4: New file.
24483         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
24484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
24485         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
24486         * modules/modff: New file.
24487         * tests/test-math-c++.cc: Check the declaration of modff.
24488         * doc/posix-functions/modff.texi: Mention the new module.
24490         modf tests: Make test sharper.
24491         * tests/test-modf.c (main): Strengthen upper bound.
24493         modf: Use a .m4 file.
24494         * m4/modf.m4: New file.
24495         * modules/modf (Files): Add it.
24496         (configure.ac): Just invoke gl_FUNC_MODF.
24498 2011-10-05  Bruno Haible  <bruno@clisp.org>
24500         Tests for module 'fmodf'.
24501         * modules/fmodf-tests: New file.
24502         * tests/test-fmodf.c: New file.
24504         New module 'fmodf'.
24505         * lib/math.in.h (fmodf): New declaration.
24506         * lib/fmodf.c: New file.
24507         * m4/fmodf.m4: New file.
24508         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
24509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
24510         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
24511         * modules/fmodf: New file.
24512         * tests/test-math-c++.cc: Check the declaration of fmodf.
24513         * doc/posix-functions/fmodf.texi: Mention the new module.
24515         fmod: Use a .m4 file.
24516         * m4/fmod.m4: New file.
24517         * modules/fmod (Files): Add it.
24518         (configure.ac): Just invoke gl_FUNC_FMOD.
24520 2011-10-05  Bruno Haible  <bruno@clisp.org>
24522         Tests for module 'fabsf'.
24523         * modules/fabsf-tests: New file.
24524         * tests/test-fabsf.c: New file.
24526         New module 'fabsf'.
24527         * lib/math.in.h (fabsf): New declaration.
24528         * lib/fabsf.c: New file.
24529         * m4/fabsf.m4: New file.
24530         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
24531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
24532         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
24533         * modules/fabsf: New file.
24534         * tests/test-math-c++.cc: Check the declaration of fabsf.
24535         * doc/posix-functions/fabsf.texi: Mention the new module.
24537         fabs: Use a .m4 file.
24538         * m4/fabs.m4: New file.
24539         * modules/fabs (Files): Add it.
24540         (configure.ac): Just invoke gl_FUNC_FABS.
24542 2011-10-05  Jim Meyering  <meyering@redhat.com>
24544         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
24545         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
24546         ls -lL regression introduced in coreutils-8.12, it does so at the
24547         cost of an additional stat call in the common case.  Besides, now
24548         that the kernel change that prompted commit 95f7c57f has been reverted
24549         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
24550         we have no use for commit 95f7c57f, "file-has-acl: use
24551         acl_extended_file_nofollow if available".
24553 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
24555         file-has-acl: revert unintended change in behavior of ls -L
24556         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
24557         derived from...
24558         (file_has_acl): ...code here.  Call it.
24559         This problem was introduced with 2011-07-22 commit 95f7c57f,
24560         "file-has-acl: use acl_extended_file_nofollow if available".
24561         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
24563 2011-10-03  Bruno Haible  <bruno@clisp.org>
24565         poll: Avoid link errors on MSVC.
24566         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
24567         * modules/poll (Depends-on): Add sockets.
24568         (Link): New section.
24569         * NEWS: Mention the change.
24570         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
24571         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
24572         $(LIB_POLL) instead of $(LIBSOCKET).
24574 2011-10-03  Bruno Haible  <bruno@clisp.org>
24576         sys_select tests: Fix link error on MSVC 9.
24577         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
24578         with $(LIB_SELECT) instead of $(LIBSOCKET).
24580 2011-10-03  Bruno Haible  <bruno@clisp.org>
24582         sys_select: Fix compilation error on mingw.
24583         * lib/sys_select.in.h: On native Windows, include <io.h>.
24585 2011-10-03  Bruno Haible  <bruno@clisp.org>
24587         wmemset: Support for MSVC.
24588         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
24589         whether wmemset() exists.
24591 2011-10-03  Bruno Haible  <bruno@clisp.org>
24593         wmemmove: Support for MSVC.
24594         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
24595         whether wmemmove() exists.
24597 2011-10-03  Bruno Haible  <bruno@clisp.org>
24599         wmemcpy: Support for MSVC.
24600         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
24601         whether wmemcpy() exists.
24603 2011-10-03  Bruno Haible  <bruno@clisp.org>
24605         wmemcmp: Support for MSVC.
24606         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
24607         whether wmemcmp() exists.
24609 2011-10-03  Bruno Haible  <bruno@clisp.org>
24611         wmemchr: Support for MSVC.
24612         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
24613         whether wmemchr() exists.
24615 2011-10-03  Bruno Haible  <bruno@clisp.org>
24617         glthread/*, strsignal: Support for MSVC.
24618         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
24619         including <winsock.h> on MSVC 9.
24620         * lib/glthread/lock.h: Likewise.
24621         * lib/glthread/thread.h: Likewise.
24622         * lib/glthread/tls.h: Likewise.
24623         * lib/glthread/yield.h: Likewise.
24624         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
24625         if HAVE_UNISTD_H is false.
24626         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
24628 2011-10-03  Bruno Haible  <bruno@clisp.org>
24630         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
24631         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
24632         Set to 100000.
24634 2011-10-03  Bruno Haible  <bruno@clisp.org>
24636         acl: Fix specification.
24637         * lib/file-has-acl.c (file_has_acl): Fix specification.
24639 2011-10-03  Bruno Haible  <bruno@clisp.org>
24641         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
24642         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
24643         (compute_curr_prefix, shared_library_fullname,
24644         find_shared_library_fullname, get_shared_library_fullname, relocate):
24645         Use it together with PIC && INSTALLDIR.
24646         Reported by <jojelino@gmail.com>
24647         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
24649 2011-10-01  Jim Meyering  <meyering@redhat.com>
24651         maint.mk: adjust a release-related rule not to require use of gzip
24652         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
24653         Instead, check each file in $(DIST_ARCHIVES).  This is better for
24654         projects that build only .tar.xz files.  Also fix an erroneous test.
24656         test-linkat: don't leave behind a temporary file
24657         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
24658         Otherwise, coreutils' "make distcheck" would fail with this:
24659           Only in /c/cu/tests/torture/coreutils/test/\
24660             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
24661           make[2]: *** [my-distcheck] Error 1
24663         float, math: add omitted file
24664         * lib/itold.c: Add file, required for yesterday's float change.
24666 2011-10-01  Bruno Haible  <bruno@clisp.org>
24668         isinf: Fix for OpenBSD/x86.
24669         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
24670         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
24671         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
24673 2011-10-01  Bruno Haible  <bruno@clisp.org>
24675         isfinite: Fix syntax error in configure test.
24676         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
24678         isfinite: Fix typo.
24679         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
24680         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
24682 2011-10-01  Bruno Haible  <bruno@clisp.org>
24684         nonblocking tests: Fix test failure on Linux/IA-64.
24685         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
24686         Set to 270000.
24688 2011-10-01  Bruno Haible  <bruno@clisp.org>
24690         mkfifoat tests: Fix a test failure on mingw.
24691         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
24692         with error ENOSYS.
24694 2011-09-30  Bruno Haible  <bruno@clisp.org>
24696         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
24697         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
24698         'long double'. Set REPLACE_ITOLD.
24699         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
24700         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
24701         * lib/itold.c: New file.
24702         * modules/float (Files): Add lib/itold.c.
24703         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
24704         (Makefile.am): Substitute REPLACE_ITOLD.
24705         * modules/math (Depends-on): Add float.
24706         (Makefile.am): Substitute REPLACE_ITOLD.
24707         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
24708         * doc/posix-headers/math.texi: Likewise.
24709         * doc/posix-functions/logl.texi: Likewise.
24711 2011-09-30  Bruno Haible  <bruno@clisp.org>
24713         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
24714         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
24715         Set to 140000.
24717 2011-09-30  Bruno Haible  <bruno@clisp.org>
24719         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
24720         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
24721         invocation, say "right after AC_PROG_CC_STDC", not "right after
24722         AC_PROG_CC".
24723         Reported by Gary V. Vaughan <gary@gnu.org>.
24725 2011-09-30  Bruno Haible  <bruno@clisp.org>
24727         Centralize C99 requirement.
24728         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
24729         * modules/stdarg (configure.ac-early): Invoke it instead of
24730         AC_PROG_CC_STDC.
24731         Reported by Gary V. Vaughan and Paul Eggert.
24733 2011-09-29  Bruno Haible  <bruno@clisp.org>
24735         float: Fix LDBL_MAX value on Linux/PowerPC.
24736         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
24737         on Linux/PowerPC.
24738         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
24739         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
24740         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
24741         platform.
24742         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
24744 2011-09-29  Bruno Haible  <bruno@clisp.org>
24746         doc: Improve doc about gl_EARLY.
24747         * doc/gnulib-tool.texi (Initial import): Mention where to place an
24748         AC_PROG_CC_STDC invocation.
24749         Reported by Gary V. Vaughan <gary@gnu.org>.
24751 2011-09-28  Bruno Haible  <bruno@clisp.org>
24753         fgetc, fputc, fread, fwrite tests: Fix link error.
24754         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
24755         on non-MSVC platforms.
24756         * tests/test-fputc.c (main): Likewise.
24757         * tests/test-fread.c (main): Likewise.
24758         * tests/test-fwrite.c (main): Likewise.
24759         Reported by Jim Meyering.
24761 2011-09-27  Bruno Haible  <bruno@clisp.org>
24763         fputc, fwrite tests: Avoid test failure on MSVC.
24764         * tests/test-fgetc.c: Include msvc-inval.h.
24765         (main): Invoke gl_msvc_inval_ensure_handler.
24766         * tests/test-fputc.c: Include msvc-inval.h.
24767         (main): Invoke gl_msvc_inval_ensure_handler.
24768         * tests/test-fread.c: Include msvc-inval.h.
24769         (main): Invoke gl_msvc_inval_ensure_handler.
24770         * tests/test-fwrite.c: Include msvc-inval.h.
24771         (main): Invoke gl_msvc_inval_ensure_handler.
24772         * modules/fgetc-tests (Depends-on): Add msvc-inval.
24773         * modules/fputc-tests (Depends-on): Likewise.
24774         * modules/fread-tests (Depends-on): Likewise.
24775         * modules/fwrite-tests (Depends-on): Likewise.
24777 2011-09-27  Bruno Haible  <bruno@clisp.org>
24779         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
24780         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
24781         (raise): Remove older, duplicated declaration.
24782         (_gl_raise_SIGPIPE): New declaration.
24783         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
24784         (rpl_raise): Remove function.
24785         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
24786         a gnulib-defined SIGPIPE here.
24787         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
24788         'sigprocmask' has detected missing signal-blocking and the module
24789         'sigpipe' is enabled.
24790         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24792 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
24794         base64-tests: avoid memory leak
24795         * tests/test-base64.c (main): Plug memory leak.
24797         base32: new module
24798         * modules/base32: New module.
24799         * lib/base32.c: New file.
24800         * lib/base32.h: Likewise.
24801         * m4/base32.m4: Likewise.
24802         * modules/base32-tests: New test.
24803         * tests/test-base32.c: Likewise.
24804         * MODULES.html.sh (Misc): Mention it.
24806 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
24808         gnulib: use more-standard license notice wording
24809         * gnulib-tool (func_emit_copyright_notice): When emitting a
24810         license notice into a file, use the standard wording as suggested
24811         by the current information for GNU maintainers, except say "file"
24812         rather than "program".  The new wording gives a license version
24813         number, which addresses an issue raised by Glenn Morris in
24814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
24815         * m4/onceonly.m4: Use that same wording here, too.
24817         dup2: minor simplification
24818         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
24819         as lib/dup2.c no longer uses 'inline'.
24821 2011-09-25  Bruno Haible  <bruno@clisp.org>
24823         strings: Fix compilation error on MSVC.
24824         * lib/strings.in.h: Include <stddef.h> for size_t.
24826 2011-09-25  Bruno Haible  <bruno@clisp.org>
24828         fflush et al.: Document limitation on MSVC.
24829         * doc/posix-functions/fflush.texi: Document possible crash in handling
24830         mode other than DEFAULT_HANDLING.
24831         * doc/posix-functions/fgetc.texi: Likewise.
24832         * doc/posix-functions/fputc.texi: Likewise.
24833         * doc/posix-functions/fread.texi: Likewise.
24834         * doc/posix-functions/fwrite.texi: Likewise.
24836 2011-09-25  Bruno Haible  <bruno@clisp.org>
24838         msvc-inval: Allow three invalid parameter handling modes.
24839         * lib/msvc-inval.h: Don't include <stdlib.h> here.
24840         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
24841         macros.
24842         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
24843         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
24844         SANE_LIBRARY_HANDLING as a no-op.
24845         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
24846         <stdlib.h>.
24847         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
24849 2011-09-25  Bruno Haible  <bruno@clisp.org>
24851         msvc-inval: Make handler multithread-safe.
24852         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
24853         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
24854         declarations.
24855         (gl_msvc_inval_current): New declaration.
24856         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
24857         Operate on the structure returned by gl_msvc_inval_current().
24858         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
24859         Remove varaiables.
24860         (tls_index, tls_initialized): New variables.
24861         (not_per_thread): New variable.
24862         (gl_msvc_inval_current): New function.
24863         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
24864         returned by gl_msvc_inval_current().
24866 2011-09-25  Bruno Haible  <bruno@clisp.org>
24868         msvc-inval: Install handler globally.
24869         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
24870         !_MSC_VER.
24871         (gl_msvc_invalid_parameter_handler): Remove declaration.
24872         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
24873         declarations.
24874         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
24875         Install the handler globally, don't uninstall it.
24876         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
24877         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
24878         currently valid, call RaiseException instead.
24879         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
24880         for !_MSC_VER.
24882 2011-09-25  Bruno Haible  <bruno@clisp.org>
24884         strerror_r-posix: Fix for MSVC 9.
24885         * lib/strerror_r.c (local_snprintf): New function.
24886         (snprintf): Define to local_snprintf, not to _snprintf.
24888 2011-09-25  Bruno Haible  <bruno@clisp.org>
24890         ftruncate: Support for MSVC 9.
24891         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
24892         (chsize_nothrow): New function.
24893         (chsize): Redefine as a macro.
24894         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
24895         * modules/ftruncate (Depends-on): Add msvc-inval.
24897 2011-09-25  Bruno Haible  <bruno@clisp.org>
24899         New module 'fstat'.
24900         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
24901         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
24902         * lib/fchdir.c (rpl_fstat): Remove function.
24903         * m4/fstat.m4: New file.
24904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
24905         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
24906         declared.
24907         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
24908         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
24909         * modules/fstat: New file.
24910         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
24911         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
24912         is set.
24913         * doc/posix-functions/fstat.texi: Mention the new module and the
24914         problem on MSVC.
24915         * NEWS: Mention the change.
24916         * modules/acl (Depends-on): Add fstat.
24917         * modules/chdir-safer (Depends-on): Likewise.
24918         * modules/chown (Depends-on): Likewise.
24919         * modules/copy-file (Depends-on): Likewise.
24920         * modules/fchdir (Depends-on): Likewise.
24921         * modules/fdopendir (Depends-on): Likewise.
24922         * modules/fopen (Depends-on): Likewise.
24923         * modules/fts (Depends-on): Likewise.
24924         * modules/getcwd (Depends-on): Likewise.
24925         * modules/isapipe (Depends-on): Likewise.
24926         * modules/linkat (Depends-on): Likewise.
24927         * modules/lseek (Depends-on): Likewise.
24928         * modules/mkdir-p (Depends-on): Likewise.
24929         * modules/open (Depends-on): Likewise.
24930         * modules/openat (Depends-on): Likewise.
24931         * modules/read-file (Depends-on): Likewise.
24932         * modules/renameat (Depends-on): Likewise.
24933         * modules/utimens (Depends-on): Likewise.
24935 2011-09-25  Bruno Haible  <bruno@clisp.org>
24937         linkat: Fix compilation on MSVC 9.
24938         * lib/linkat.c: Don't include <stdint.h>.
24940 2011-09-25  Bruno Haible  <bruno@clisp.org>
24942         fclose: Support for MSVC 9.
24943         * lib/fclose.c: Include msvc-inval.h.
24944         (fclose_nothrow): New function.
24945         (rpl_fclose): Use it.
24946         * modules/fclose (Depends-on): Add msvc-inval.
24947         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
24949 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
24951         dup2: minor simplifications
24952         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
24953         that it's a performance win.
24954         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
24955         ! defined __CYGWIN__)" to "ifdef F_GETFL".
24957 2011-09-24  Jim Meyering  <meyering@redhat.com>
24959         test-futimens: avoid a warning from gcc -Wshadow
24960         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
24961         to avoid a shadowing warning.
24963 2011-09-24  Bruno Haible  <bruno@clisp.org>
24965         fdopen: Support for MSVC 9.
24966         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
24967         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
24968         * lib/fdopen.c: Include msvc-inval.h.
24969         (fdopen_nothrow): New function.
24970         (rpl_fdopen): Use it.
24971         * modules/fdopen (Depends-on): Add msvc-inval.
24972         * modules/fclose-tests (Depends-on): Add fdopen.
24973         * modules/fflush-tests (Depends-on): Likewise.
24974         * modules/fgetc-tests (Depends-on): Likewise.
24975         * modules/fputc-tests (Depends-on): Likewise.
24976         * modules/fread-tests (Depends-on): Likewise.
24977         * modules/freopen-tests (Depends-on): Likewise.
24978         * modules/fseeko-tests (Depends-on): Likewise.
24979         * modules/ftello-tests (Depends-on): Likewise.
24980         * modules/fwrite-tests  (Depends-on): Likewise.
24981         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
24983 2011-09-24  Bruno Haible  <bruno@clisp.org>
24985         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
24986         * modules/fgetc-tests (Depends-on): Add unistd.
24987         * modules/fputc-tests (Depends-on): Likewise.
24988         * modules/fread-tests (Depends-on): Likewise.
24989         * modules/fwrite-tests (Depends-on): Likewise.
24991 2011-09-24  Bruno Haible  <bruno@clisp.org>
24993         dup: Simplify autoconf test.
24994         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
24995         on gl_MSVC_INVAL's result.
24997 2011-09-24  Bruno Haible  <bruno@clisp.org>
24999         Tests for function fwrite().
25000         * modules/fwrite-tests: New file.
25001         * tests/test-fwrite.c: New file.
25002         * modules/stdio-tests (Depends-on): Add fwrite-tests.
25004         Tests for function fread().
25005         * modules/fread-tests: New file.
25006         * tests/test-fread.c: New file.
25007         * modules/stdio-tests (Depends-on): Add fread-tests.
25009         Activate fputc tests.
25010         * modules/stdio-tests (Depends-on): Add fputc-tests.
25012         Enhance fgetc, fputc tests.
25013         * tests/test-fgetc.c (main): Also test the stream's error indicator.
25014         * tests/test-fputc.c (main): Likewise.
25016 2011-09-24  Bruno Haible  <bruno@clisp.org>
25018         write: Support for MSVC 9.
25019         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
25020         is not 1.
25021         * lib/write.c (write_nothrow): New function.
25022         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
25023         not 1. Use write_nothrow.
25024         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
25025         invalid parameter handler.
25026         (gl_PREREQ_WRITE): New macro.
25027         * modules/write (Depends-on): Add msvc-inval.
25028         (configure.ac): Invoke gl_PREREQ_WRITE.
25029         * doc/posix-functions/write.texi: Mention the problem on MSVC.
25031 2011-09-24  Bruno Haible  <bruno@clisp.org>
25033         read: Fix last commit.
25034         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
25036 2011-09-24  Bruno Haible  <bruno@clisp.org>
25038         dup2: Fix last commit.
25039         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
25040         (rpl_dup2): Disable fcntl workaround on native Windows.
25042         sigprocmask: Make code safer.
25043         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
25044         section that changes macro definitions for this compilation unit.
25046 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25048         dup2: clarify by coalescing Windows-specific material
25049         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
25050         "msvc-nothrow.h"' to the Windows-specific section, so that the
25051         Emacs source need not contain these include files.
25052         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
25053         Windows-specific fixes into this function rather than just the
25054         nothrow fix, as this shortens and clarifies the code.  Always
25055         define as a function, as that's a bit cleaner than having it be
25056         sometimes a function and sometimes a macro.
25057         (rpl_dup2): Move the Windows-specific stuff out of here and into
25058         ms_windows_dup2.  Don't protect the Haiku-related fix with
25059         "#if !defined __linux__", as the same code also works around
25060         a Linux kernel bug, and it doesn't add any system calls on any
25061         platform.  Add comment about FreeBSD 6.1.
25063         sigprocmask: move #include directive
25064         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
25065         Windows-specific section, so that the Emacs source need not
25066         contain msvc-inval.h.
25068 2011-09-23  Bruno Haible  <bruno@clisp.org>
25070         read: Support for MSVC 9.
25071         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
25072         is not 1.
25073         * lib/read.c (read_nothrow): New function.
25074         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
25075         read_nothrow.
25076         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
25077         invalid parameter handler.
25078         (gl_PREREQ_READ): New macro.
25079         * modules/read (Depends-on): Add msvc-inval.
25080         (configure.ac): Invoke gl_PREREQ_READ.
25081         * doc/posix-functions/read.texi: Mention the problem on MSVC.
25083 2011-09-23  Bruno Haible  <bruno@clisp.org>
25085         close: Support for MSVC 9.
25086         * lib/close.c: Include <errno.h>, msvc-inval.h.
25087         (close_nothrow): New function.
25088         (rpl_close): Use it.
25089         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
25090         invalid parameter handler.
25091         * modules/close (Depends-on): Add msvc-inval.
25092         * modules/dup2-tests (Depends-on): Add close.
25093         * modules/dup3-tests (Depends-on): Likewise.
25094         * modules/fcntl-tests (Depends-on): Likewise.
25095         * modules/spawn-pipe-tests (Depends-on): Likewise.
25096         * modules/unistd-safer-tests (Depends-on): Likewise.
25097         * doc/posix-functions/close.texi: Mention the problem on MSVC.
25099 2011-09-23  Bruno Haible  <bruno@clisp.org>
25101         New module 'dup'.
25102         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
25103         Allow replacement.
25104         * lib/dup.c: New file.
25105         * lib/fchdir.c (rpl_dup): Remove function.
25106         * m4/dup.m4: New file.
25107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
25108         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
25109         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
25110         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
25111         * modules/dup: New file.
25112         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
25113         'dup' module is in use.
25114         * modules/fdopendir (Depends-on): Add dup.
25115         * modules/fdutimensat-tests (Depends-on): Likewise.
25116         * modules/fts (Depends-on): Likewise.
25117         * modules/futimens-tests (Depends-on): Likewise.
25118         * modules/posix_spawnp-tests (Depends-on): Likewise.
25119         * modules/unistd-safer-tests (Depends-on): Likewise.
25120         * modules/utimens-tests (Depends-on): Likewise.
25121         * doc/posix-functions/dup.texi: Mention the new module and the problem
25122         on MSVC.
25124 2011-09-23  Bruno Haible  <bruno@clisp.org>
25126         getdtablesize: Support for MSVC 9.
25127         * lib/getdtablesize.c: Include msvc-inval.h.
25128         (_setmaxstdio_nothrow): New function.
25129         (_setmaxstdio): Redefine it.
25130         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
25131         * modules/getdtablesize (Depends-on): Add msvc-inval.
25132         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
25134 2011-09-23  Bruno Haible  <bruno@clisp.org>
25136         signal-h: Rename from signal.
25137         * modules/signal-h: Renamed from modules/signal.
25138         * modules/pthread_sigmask (Depends-on): Update.
25139         * modules/raise (Depends-on): Likewise.
25140         * modules/sigaction (Depends-on): Likewise.
25141         * modules/sigpipe (Depends-on): Likewise.
25142         * modules/sigprocmask (Depends-on): Likewise.
25143         * modules/sys_select (Depends-on): Likewise.
25144         * modules/signal-h-tests: Renamed from modules/signal-tests.
25145         (Files, Depends-on, Makefile.am): Update.
25146         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
25147         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
25148         (Files, Makefile.am): Update.
25149         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
25150         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
25151         * modules/signal: New placeholder file.
25152         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
25153         * doc/posix-headers/signal.texi: Update.
25154         * NEWS: Mention the change.
25156 2011-09-23  Bruno Haible  <bruno@clisp.org>
25158         sigprocmask: Avoid crashes through signal() on MSVC 9.
25159         * lib/sigprocmask.c: Include msvc-inval.h.
25160         (signal_nothrow): New function.
25161         (signal): Redefine it.
25162         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
25163         * modules/sigprocmask (Depends-on): Add msvc-inval.
25164         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
25166 2011-09-23  Bruno Haible  <bruno@clisp.org>
25168         Tests for module 'raise'.
25169         * modules/raise-tests: New file.
25170         * tests/test-raise.c: New file.
25172         raise: Support for MSVC.
25173         * lib/signal.in.h (raise): New declaration.
25174         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
25175         for native Windows platforms.
25176         * m4/raise.m4: New file.
25177         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
25178         HAVE_RAISE, REPLACE_RAISE.
25179         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
25180         REPLACE_RAISE.
25181         * modules/raise (Status, Notice): Remove fields.
25182         (Files): Add m4/raise.m4.
25183         (Depends-on): Add signal, msvc-inval.
25184         (configure.ac): Use the common idioms.
25185         (Maintainer): Add me.
25186         * tests/test-signal-c++.cc: Check the signature of raise.
25187         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
25189 2011-09-23  Bruno Haible  <bruno@clisp.org>
25191         pipe2: Fix compilation on pre-C99 compilers.
25192         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
25194 2011-09-23  Bruno Haible  <bruno@clisp.org>
25196         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
25197         * lib/msvc-nothrow.h: New file.
25198         * lib/msvc-nothrow.c: New file.
25199         * m4/msvc-nothrow.m4: New file.
25200         * modules/msvc-nothrow: New file.
25201         * lib/dup2.c: Include msvc-nothrow.h.
25202         (rpl_dup2): No need to protect _get_osfhandle call here.
25203         * lib/accept4.c: Include msvc-nothrow.h.
25204         * lib/error.c: Likewise.
25205         * lib/fcntl.c: Likewise.
25206         * lib/lseek.c: Likewise.
25207         * lib/nonblocking.c: Likewise.
25208         * lib/poll.c: Likewise.
25209         * lib/read.c: Likewise.
25210         * lib/select.c: Likewise.
25211         * lib/sockets.h: Likewise.
25212         * lib/sockets.c: Likewise.
25213         * lib/stdio-read.c: Likewise.
25214         * lib/stdio-write.c: Likewise.
25215         * lib/write.c: Likewise.
25216         * lib/w32sock.h: Likewise.
25217         * lib/w32spawn.h: Likewise.
25218         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
25219         * lib/fsync.c: Likewise.
25220         * lib/isapipe.c: Likewise.
25221         * modules/dup2 (Depends-on): Add msvc-nothrow.
25222         * modules/accept4 (Depends-on): Likewise.
25223         * modules/error (Depends-on): Likewise.
25224         * modules/fcntl (Depends-on): Likewise.
25225         * modules/lseek (Depends-on): Likewise.
25226         * modules/nonblocking (Depends-on): Likewise.
25227         * modules/poll (Depends-on): Likewise.
25228         * modules/read (Depends-on): Likewise.
25229         * modules/select (Depends-on): Likewise.
25230         * modules/sockets (Depends-on): Likewise.
25231         * modules/sigpipe (Depends-on): Likewise.
25232         * modules/write (Depends-on): Likewise.
25233         * modules/accept (Depends-on): Likewise.
25234         * modules/bind (Depends-on): Likewise.
25235         * modules/connect (Depends-on): Likewise.
25236         * modules/gethostname (Depends-on): Likewise.
25237         * modules/getpeername (Depends-on): Likewise.
25238         * modules/getsockname (Depends-on): Likewise.
25239         * modules/getsockopt (Depends-on): Likewise.
25240         * modules/ioctl (Depends-on): Likewise.
25241         * modules/listen (Depends-on): Likewise.
25242         * modules/recv (Depends-on): Likewise.
25243         * modules/recvfrom (Depends-on): Likewise.
25244         * modules/send (Depends-on): Likewise.
25245         * modules/sendto (Depends-on): Likewise.
25246         * modules/setsockopt (Depends-on): Likewise.
25247         * modules/shutdown (Depends-on): Likewise.
25248         * modules/socket (Depends-on): Likewise.
25249         * modules/execute (Depends-on): Likewise.
25250         * modules/spawn-pipe (Depends-on): Likewise.
25251         * modules/flock (Depends-on): Likewise.
25252         * modules/fsync (Depends-on): Likewise.
25253         * modules/isapipe (Depends-on): Likewise.
25254         * tests/test-cloexec.c: Include msvc-nothrow.h.
25255         * tests/test-dup-safer.c: Likewise.
25256         * tests/test-dup2.c: Likewise.
25257         * tests/test-dup3.c: Likewise.
25258         * tests/test-fcntl.c: Likewise.
25259         * tests/test-pipe.c: Likewise.
25260         * tests/test-pipe2.c: Likewise.
25261         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
25262         * modules/unistd-safer-tests (Depends-on): Likewise.
25263         * modules/dup2-tests (Depends-on): Likewise.
25264         * modules/dup3-tests (Depends-on): Likewise.
25265         * modules/fcntl-tests (Depends-on): Likewise.
25266         * modules/pipe-posix-tests (Depends-on): Likewise.
25267         * modules/pipe2-tests (Depends-on): Likewise.
25269 2011-09-23  Bruno Haible  <bruno@clisp.org>
25271         dup2: Make code more maintainable.
25272         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
25273         (rpl_dup2): Use it.
25274         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
25275         * modules/dup2 (configure.ac): Invoke it.
25276         Reported by Paul Eggert.
25278 2011-09-23  Bruno Haible  <bruno@clisp.org>
25280         msvc-inval: Fix compilation error.
25281         * lib/msvc-inval.h: Include <excpt.h>.
25283 2011-09-23  Bruno Haible  <bruno@clisp.org>
25285         mkdir: Tweak for MSVC 9.
25286         * lib/sys_stat.in.h: Update comments.
25287         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
25289         Tests for module 'chdir'.
25290         * modules/chdir-tests: New file.
25291         * tests/test-chdir.c: New file.
25293         New module 'chdir'.
25294         * modules/chdir: New file.
25295         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
25296         (chdir): New declaration.
25297         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
25298         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
25299         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
25300         * tests/test-unistd-c++.cc: Check signature of chdir.
25301         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
25302         * modules/chdir-long (Depends-on): Add chdir.
25303         * modules/fchdir (Depends-on): Likewise.
25304         * modules/rename (Depends-on): Likewise.
25305         * modules/savewd (Depends-on): Likewise.
25307         rmdir: Support for mingw, MSVC 9.
25308         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
25309         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
25311         getcwd: Tweak for MSVC 9.
25312         * lib/unistd.in.h: Update comments.
25313         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
25315 2011-09-22  Bruno Haible  <bruno@clisp.org>
25317         strerror_r-posix: Avoid a link error on MSVC.
25318         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
25319         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
25321 2011-09-22  Bruno Haible  <bruno@clisp.org>
25323         select: Avoid link errors on MSVC.
25324         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
25325         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
25326         * modules/pselect (Link): Likewise.
25327         * NEWS: Mention the change.
25328         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
25329         test-select-stdin against $(LIB_SELECT).
25330         * modules/pselect-tests (Makefile.am): Link test-pselect against
25331         $(LIB_SELECT).
25333 2011-09-22  Bruno Haible  <bruno@clisp.org>
25335         select: Avoid compilation error on MSVC.
25336         * lib/select.c: Don't include <stdbool.h>.
25338 2011-09-21  Bruno Haible  <bruno@clisp.org>
25340         Consolidate all uses of PATH_MAX in *.m4 files.
25341         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
25342         macros.
25343         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
25344         and gl_PATHMAX_SNIPPET.
25345         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
25346         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25347         * modules/chdir-long (Files): Add m4/pathmax.m4.
25348         * modules/getcwd (Files): Likewise.
25350 2011-09-21  Bruno Haible  <bruno@clisp.org>
25352         ftruncate: Un-deprecate, concentrate on Win32 support.
25353         * modules/ftruncate (Status, Notice): Remove sections.
25354         (Depends-on): Add largefile.
25355         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
25356         non-mingw platforms.
25357         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
25358         include <io.h>.
25359         * modules/perror-tests (Depends-on): Add ftruncate.
25360         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
25361         'ftruncate' module.
25363 2011-09-21  Bruno Haible  <bruno@clisp.org>
25365         Add dependencies to new dirent related modules.
25366         * modules/opendir (Depends-on): Add closedir.
25367         * modules/getcwd (Depends-on): Add opendir, closedir.
25368         * modules/dirent-safer-tests (Depends-on): Likewise.
25369         * modules/fdopendir-tests (Depends-on): Likewise.
25370         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
25371         * modules/renameat-tests (Depends-on): Likewise.
25373 2011-09-21  Bruno Haible  <bruno@clisp.org>
25375         opendir: Avoid compilation error on mingw.
25376         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
25377         * modules/opendir (Depends-on): Add unistd.
25379 2011-09-21  Bruno Haible  <bruno@clisp.org>
25381         ftruncate tests: Avoid a test failure on mingw.
25382         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
25384 2011-09-21  Bruno Haible  <bruno@clisp.org>
25386         select tests: Avoid test failures on OSF/1 5.1 and mingw.
25387         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
25388         native Windows.
25390 2011-09-21  Bruno Haible  <bruno@clisp.org>
25392         New module 'fdopen'.
25393         * lib/stdio.in.h (fdopen): New declaration.
25394         * lib/fdopen.c: New file.
25395         * m4/fdopen.m4: New file.
25396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
25397         REPLACE_FDOPEN.
25398         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
25399         REPLACE_FDOPEN.
25400         * modules/fdopen: New file.
25401         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
25402         * tests/test-stdio-c++.cc: Check signature of fdopen.
25403         * doc/posix-functions/fdopen.texi: Mention the new module.
25405 2011-09-21  Bruno Haible  <bruno@clisp.org>
25407         unlockpt tests: Avoid test failure on NetBSD 5.1.
25408         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
25409         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
25411 2011-09-21  Bruno Haible  <bruno@clisp.org>
25413         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
25414         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
25415         * tests/test-getlogin_r.c (main): Likewise.
25417 2011-09-20  Bruno Haible  <bruno@clisp.org>
25419         time tests: Don't require pid_t.
25420         * doc/posix-headers/time.texi: Revert last change.
25421         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
25422         * tests/test-time.c: Comment out the check for pid_t.
25424 2011-09-20  Bruno Haible  <bruno@clisp.org>
25426         fsync tests: Avoid a test failure on mingw.
25427         * tests/test-fsync.c (main): Allow a failure with EIO.
25429 2011-09-20  Bruno Haible  <bruno@clisp.org>
25431         euidaccess: Update comments.
25432         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
25434 2011-09-20  Bruno Haible  <bruno@clisp.org>
25436         Ensure EBADF returns for socket functions on mingw.
25437         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
25438         descriptor is invalid.
25439         * lib/bind.c (rpl_bind): Likewise.
25440         * lib/connect.c (rpl_connect): Likewise.
25441         * lib/getpeername.c (rpl_getpeername): Likewise.
25442         * lib/getsockname.c (rpl_getsockname): Likewise.
25443         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25444         * lib/listen.c (rpl_listen): Likewise.
25445         * lib/recv.c (rpl_recv): Likewise.
25446         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25447         * lib/send.c (rpl_send): Likewise.
25448         * lib/sendto.c (rpl_sendto): Likewise.
25449         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25450         * lib/shutdown.c (rpl_shutdown): Likewise.
25452 2011-09-20  Bruno Haible  <bruno@clisp.org>
25454         select tests: EBADF tests.
25455         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
25456         test_bad_fd): New functions.
25457         (test_function): Invoke also test_bad_fd.
25459 2011-09-20  Bruno Haible  <bruno@clisp.org>
25461         Tests for module 'posix_spawn_file_actions_addopen.
25462         * modules/posix_spawn_file_actions_addopen-tests: New file.
25463         * tests/test-posix_spawn_file_actions_addopen.c: New file.
25465         Tests for module 'posix_spawn_file_actions_adddup2'.
25466         * modules/posix_spawn_file_actions_adddup2-tests: New file.
25467         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
25469         Tests for module 'posix_spawn_file_actions_addclose'.
25470         * modules/posix_spawn_file_actions_addclose-tests: New file.
25471         * tests/test-posix_spawn_file_actions_addclose.c: New file.
25473 2011-09-20  Bruno Haible  <bruno@clisp.org>
25475         Tests for module 'unlockpt'.
25476         * modules/unlockpt-tests: New file.
25477         * tests/test-unlockpt.c: New file.
25478         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
25480         Tests for module 'grantpt'.
25481         * modules/grantpt-tests: New file.
25482         * tests/test-grantpt.c: New file.
25483         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
25485 2011-09-20  Bruno Haible  <bruno@clisp.org>
25487         freopen tests: EBADF tests.
25488         * tests/test-freopen.c: Include errno.h, unistd.h.
25489         (main): Add tests for EBADF, commented out for the moment.
25491         fclose tests: EBADF tests.
25492         * tests/test-fclose.c (main): Add tests for EBADF.
25494         fflush tests: EBADF tests.
25495         * tests/test-fflush.c: Include errno.h, macros.h.
25496         (main): Add tests for EBADF.
25498         ftello tests: EBADF tests.
25499         * tests/test-ftello4.sh: New file.
25500         * tests/test-ftello4.c: New file.
25501         * modules/ftello-tests (Files): Add them.
25502         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
25504         fseeko tests: EBADF tests.
25505         * tests/test-fseeko4.sh: New file.
25506         * tests/test-fseeko4.c: New file.
25507         * modules/fseeko-tests (Files): Add them.
25508         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
25510         Tests for function fputc().
25511         * modules/fputc-tests: New file.
25512         * tests/test-fputc.c: New file.
25513         * modules/stdio-tests (Depends-on): Add fputc-tests.
25515         Tests for function fgetc().
25516         * modules/fgetc-tests: New file.
25517         * tests/test-fgetc.c: New file.
25518         * modules/stdio-tests (Depends-on): Add fgetc-tests.
25520         Tests for function fdopen().
25521         * modules/fdopen-tests: New file.
25522         * tests/test-fdopen.c: New file.
25523         * modules/stdio-tests (Depends-on): Add fdopen-tests.
25525         Tests for module 'vdprintf'.
25526         * modules/vdprintf-tests: New file.
25527         * tests/test-vdprintf.c: New file.
25529         Tests for module 'dprintf'.
25530         * modules/dprintf-tests: New file.
25531         * tests/test-dprintf.c: New file.
25533 2011-09-20  Bruno Haible  <bruno@clisp.org>
25535         Tests for module 'ioctl'.
25536         * modules/ioctl-tests: New file.
25537         * tests/test-ioctl.c: New file.
25539 2011-09-20  Bruno Haible  <bruno@clisp.org>
25541         fcntl tests: EBADF tests.
25542         * tests/test-fcntl.c (main): Add more tests for EBADF.
25544 2011-09-20  Bruno Haible  <bruno@clisp.org>
25546         utimensat tests: EBADF tests.
25547         * tests/test-utimensat.c (main): Add tests for EBADF.
25549         renameat tests: EBADF tests.
25550         * tests/test-renameat.c (main): Add tests for EBADF.
25552         mkfifoat tests: EBADF tests.
25553         * tests/test-mkfifoat.c (main): Add tests for EBADF.
25555         readlinkat tests: EBADF tests.
25556         * tests/test-readlinkat.c (main): Add tests for EBADF.
25558         symlinkat tests: EBADF tests.
25559         * tests/test-symlinkat.c (main): Add tests for EBADF.
25561         linkat tests: EBADF tests.
25562         * tests/test-linkat.c (main): Add tests for EBADF.
25564         Tests for module 'faccessat'.
25565         * modules/faccessat-tests: New file.
25566         * tests/test-faccessat.c: New file.
25568         fdopendir tests: EBADF tests.
25569         * tests/test-fdopendir.c (main): Add more tests for EBADF.
25571         openat tests: EBADF tests.
25572         * tests/test-fchownat.c (main): Add tests for EBADF.
25573         * tests/test-fstatat.c (main): Likewise.
25574         * tests/test-mkdirat.c (main): Likewise.
25575         * tests/test-openat.c (main): Likewise.
25576         * tests/test-unlinkat.c (main): Likewise.
25577         * tests/test-fchmodat.c: New file.
25578         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
25579         (Makefile.am): Also run 'test-fchmodat'.
25581 2011-09-20  Bruno Haible  <bruno@clisp.org>
25583         utimens, futimens, fdutimensat tests: EBADF tests.
25584         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
25586         Tests for function fstat().
25587         * modules/fstat-tests: New file.
25588         * tests/test-fstat.c: New file.
25589         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
25591 2011-09-20  Bruno Haible  <bruno@clisp.org>
25593         test-ttyname_r tests: EBADF tests.
25594         * tests/test-ttyname_r.c (main): Add tests for EBADF.
25596         Tests for module 'isatty'.
25597         * modules/isatty-tests: New file.
25598         * tests/test-isatty.c: New file.
25600         Tests for module 'write'.
25601         * modules/write-tests: New file.
25602         * tests/test-write.c: New file.
25604         Tests for module 'read'.
25605         * modules/read-tests: New file.
25606         * tests/test-read.c: New file.
25608         pwrite tests: EBADF tests.
25609         * tests/test-pwrite.c (main): Add tests for EBADF.
25611         pread tests: EBADF tests.
25612         * tests/test-pread.c (main): Add tests for EBADF.
25614         lseek tests: EBADF tests.
25615         * tests/test-lseek.c (main): Add more tests for EBADF.
25617         Tests for module 'ftruncate'.
25618         * modules/ftruncate-tests: New file.
25619         * tests/test-ftruncate.sh: New file.
25620         * tests/test-ftruncate.c: New file.
25622         fsync tests: EBADF tests.
25623         * tests/test-fsync.c (main): Add more tests for EBADF.
25625         fdatasync tests: EBADF tests.
25626         * tests/test-fdatasync.c (main): Add more tests for EBADF.
25628         Tests for module 'fchown'.
25629         * modules/fchown-tests: New file.
25630         * tests/test-fchown.c: New file.
25632         Tests for module 'fchmod'.
25633         * modules/fchmod-tests: New file.
25634         * tests/test-fchmod.c: New file.
25636         fchdir tests: EBADF tests.
25637         * tests/test-fchdir.c (main): Add more tests for EBADF.
25639         dup2 tests: EBADF tests.
25640         * tests/test-dup2.c (main): Add more tests for EBADF.
25642         Tests for module 'dup'.
25643         * modules/dup-tests: New file.
25644         * tests/test-dup.c: New file.
25646         Tests for module 'close'.
25647         * modules/close-tests: New file.
25648         * tests/test-close.c: New file.
25650 2011-09-20  Bruno Haible  <bruno@clisp.org>
25652         Tests for module 'shutdown'.
25653         * modules/shutdown-tests: New file.
25654         * tests/test-shutdown.c: New file.
25656         Tests for module 'setsockopt'.
25657         * modules/setsockopt-tests: New file.
25658         * tests/test-setsockopt.c: New file.
25660         Tests for module 'sendto'.
25661         * modules/sendto-tests: New file.
25662         * tests/test-sendto.c: New file.
25664         Tests for module 'send'.
25665         * modules/send-tests: New file.
25666         * tests/test-send.c: New file.
25668         Tests for module 'recvfrom'.
25669         * modules/recvfrom-tests: New file.
25670         * tests/test-recvfrom.c: New file.
25672         Tests for module 'recv'.
25673         * modules/recv-tests: New file.
25674         * tests/test-recv.c: New file.
25676         Tests for module 'listen'.
25677         * modules/listen-tests: New file.
25678         * tests/test-listen.c: New file.
25680         Tests for module 'getsockopt'.
25681         * modules/getsockopt-tests: New file.
25682         * tests/test-getsockopt.c: New file.
25684         Tests for module 'getsockname'.
25685         * modules/getsockname-tests: New file.
25686         * tests/test-getsockname.c: New file.
25688         Tests for module 'getpeername'.
25689         * modules/getpeername-tests: New file.
25690         * tests/test-getpeername.c: New file.
25692         Tests for module 'connect'.
25693         * modules/connect-tests: New file.
25694         * tests/test-connect.c: New file.
25696         Tests for module 'bind'.
25697         * modules/bind-tests: New file.
25698         * tests/test-bind.c: New file.
25700         accept4 tests: Fix for native Windows.
25701         * tests/test-accept4.c: Include sockets.h.
25702         (main): Invoke gl_sockets_startup.
25703         * modules/accept4-tests (Depends-on): Add sockets.
25705         accept tests: Fix for native Windows.
25706         * tests/test-accept.c: Include sockets.h.
25707         (main): Invoke gl_sockets_startup.
25708         * modules/accept-tests (Depends-on): Add sockets.
25710 2011-09-19  Bruno Haible  <bruno@clisp.org>
25712         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
25713         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
25714         do...while(0).
25715         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
25716         Suggested by Paul Eggert.
25718 2011-09-19  Bruno Haible  <bruno@clisp.org>
25720         sched: Ensure pid_t is defined.
25721         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
25722         not define pid_t.
25723         * lib/sched.in.h: Include <sys/types.h>.
25724         * doc/posix-headers/sched.texi: Mention the pid_t problem.
25725         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25727 2011-09-19  Bruno Haible  <bruno@clisp.org>
25729         msvc-inval: Ensure the entire expansion is a single statement.
25730         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
25731         of braces.
25733 2011-09-19  Jim Meyering  <meyering@redhat.com>
25735         tests: use printf, not echo in init.sh's warn_ function
25736         * tests/init.sh (warn_): Use printf, not echo.  The latter would
25737         misbehave when given strings containing a backslash or starting
25738         with e.g., -n.  James Youngman suggested setting IFS.
25740 2011-09-19  Eric Blake  <eblake@redhat.com>
25742         futimens: enhance test
25743         * tests/test-futimens.h (test_futimens): Also check for EBADF on
25744         closed non-negative fd.
25746         date: accept 'hence' as opposite of 'ago'
25747         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
25748         * tests/test-parse-datetime.c (main): Enhance test.
25749         Suggested by Jesse Wilson.
25751 2011-09-19  Jim Meyering  <meyering@redhat.com>
25753         getcwd: don't fail in a deep directory on a system without openat
25754         Before this change, getcwd would fail when called from a directory
25755         of depth PATH_MAX / 3 or greater.  That was due to the fact that
25756         the non-openat implementation used "..", "../..", "../../..", etc.
25757         to access ancestor directories.  With too many, that string would
25758         be longer than PATH_MAX.
25759         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
25760         using gnulib's openat replacement.
25761         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
25762         we're using the replacement function.
25764 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
25766         maint.mk: avoid warnings from perl about missing files
25767         * top/maint.mk (def_sym_regex): Ignore files listed in
25768         $(gl_other_headers_) that do not exist, say because a project
25769         does not use a corresponding module.
25771 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
25773         stat: use pathmax.h only if needed
25774         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
25775         This is better for Emacs, which does not have a mingw port and
25776         therefore can avoid the pathmax module.
25778         utimens: remove dependency on dup2
25779         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
25780         to work around the Linux kernel bug.
25781         * modules/utimens (Depends-on): Remove dup2.
25783 2011-09-18  Bruno Haible  <bruno@clisp.org>
25785         inet_ntop, inet_pton: Look for it also in libresolv.
25786         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
25787         libnsl, search for it in libresolv.
25788         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
25789         Needed on Solaris 7.
25791 2011-09-18  Bruno Haible  <bruno@clisp.org>
25793         accept, accept4 tests: Avoid link error on Solaris.
25794         * modules/accept-tests (Makefile.am): Link test-accept against
25795         $(LIBSOCKET).
25796         * modules/accept4-tests (Makefile.am): Link test-accept4 against
25797         $(LIBSOCKET).
25799         accept4: Avoid link error on Solaris.
25800         * modules/accept4 (Link): New section.
25802         socket functions: Avoid link errors on Solaris.
25803         * modules/accept (Depends-on): Add socketlib.
25804         (Link): New section.
25805         * modules/bind (Depends-on): Add socketlib.
25806         (Link): New section.
25807         * modules/connect (Depends-on): Add socketlib.
25808         (Link): New section.
25809         * modules/getpeername (Depends-on): Add socketlib.
25810         (Link): New section.
25811         * modules/getsockname (Depends-on): Add socketlib.
25812         (Link): New section.
25813         * modules/getsockopt (Depends-on): Add socketlib.
25814         (Link): New section.
25815         * modules/listen (Depends-on): Add socketlib.
25816         (Link): New section.
25817         * modules/recv (Depends-on): Add socketlib.
25818         (Link): New section.
25819         * modules/recvfrom (Depends-on): Add socketlib.
25820         (Link): New section.
25821         * modules/send (Depends-on): Add socketlib.
25822         (Link): New section.
25823         * modules/sendto (Depends-on): Add socketlib.
25824         (Link): New section.
25825         * modules/setsockopt (Depends-on): Add socketlib.
25826         (Link): New section.
25827         * modules/shutdown (Depends-on): Add socketlib.
25828         (Link): New section.
25829         * modules/socket (Depends-on): Add socketlib.
25830         (Link): New section.
25832 2011-09-18  Bruno Haible  <bruno@clisp.org>
25834         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
25835         * tests/test-ptsname.c (main): Terminate the test if it takes longer
25836         than 5 seconds.
25837         * modules/ptsname-tests (configure.ac): Test for alarm.
25839 2011-09-18  Bruno Haible  <bruno@clisp.org>
25841         posix_spawn_file_actions_add*: Fix module dependencies.
25842         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
25843         posix_spawn_file_actions_init.
25844         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
25845         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
25847 2011-09-18  Bruno Haible  <bruno@clisp.org>
25849         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
25850         * tests/test-rename.h (test_rename): Allow error code EEXIST.
25851         * tests/test-renameat.c (main): Likewise.
25853 2011-09-18  Bruno Haible  <bruno@clisp.org>
25855         Tests for module 'accept4'.
25856         * modules/accept4-tests: New file.
25857         * tests/test-accept4.c: New file.
25859 2011-09-18  Bruno Haible  <bruno@clisp.org>
25861         Tests for module 'accept'.
25862         * modules/accept-tests: New file.
25863         * tests/test-accept.c: New file.
25865 2011-09-18  Bruno Haible  <bruno@clisp.org>
25867         dup2: Support for MSVC.
25868         * lib/dup2.c: Include msvc-inval.h.
25869         (rpl_dup2): Handle invalid parameter notifications during dup2 and
25870         _get_osfhandle calls.
25871         * modules/dup2 (Depends-on): Add msvc-inval.
25872         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
25874         New module 'msvc-inval'.
25875         * lib/msvc-inval.h: New file.
25876         * lib/msvc-inval.c: New file.
25877         * m4/msvc-inval.m4: New file.
25878         * modules/msvc-inval: New file.
25880 2011-09-17  Bruno Haible  <bruno@clisp.org>
25882         Tests for module 'pclose'.
25883         * modules/pclose-tests: New file.
25885         New module 'pclose'.
25886         * lib/stdio.in.h (pclose): New declaration.
25887         * lib/pclose.c: New file.
25888         * m4/pclose.m4: New file.
25889         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
25890         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
25891         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
25892         * modules/pclose: New file.
25893         * modules/popen-tests (Depends-on): Add pclose.
25894         * modules/popen-safer-tests (Depends-on): Likewise.
25895         * doc/posix-functions/pclose.texi: Mention the new module.
25897 2011-09-17  Bruno Haible  <bruno@clisp.org>
25899         popen: Support for MSVC.
25900         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
25901         * lib/popen.c (popen): Provide alternate definition for native Windows.
25902         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
25903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
25904         * modules/popen (Depends-on, configure.ac): Update condition.
25905         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
25906         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
25907         fixed.
25909 2011-09-17  Bruno Haible  <bruno@clisp.org>
25911         isnanl, isnand, isnanf: Work around MSVC bug.
25912         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
25914 2011-09-17  Bruno Haible  <bruno@clisp.org>
25916         sys_socket tests: Fix recent mistake.
25917         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
25919 2011-09-17  Bruno Haible  <bruno@clisp.org>
25921         putenv: Support for MSVC.
25922         * modules/putenv (Depends-on): Add environ.
25923         * lib/putenv.c (environ): Disable declaration.
25924         * lib/unistd.in.h: Update comment.
25926 2011-09-17  Bruno Haible  <bruno@clisp.org>
25928         math: Avoid macro redefinition warnings on MSVC.
25929         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
25930         Undefine before redefining.
25932 2011-09-17  Bruno Haible  <bruno@clisp.org>
25934         doc: Mention functions which are declared as macros.
25935         * doc/posix-functions/*[fl].texi: Mention that some functions are
25936         defined as macros with arguments only.
25938 2011-09-17  Bruno Haible  <bruno@clisp.org>
25940         Add dependencies to new dirent related modules.
25941         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
25942         * modules/fts (Depends-on): Likewise.
25943         * modules/glob (Depends-on): Likewise.
25944         * modules/savedir (Depends-on): Likewise.
25945         * modules/scandir (Depends-on): Likewise.
25946         * modules/dirent-safer (Depends-on): Add opendir, closedir.
25947         * modules/fdopendir (Depends-on): Add opendir.
25949 2011-09-17  Bruno Haible  <bruno@clisp.org>
25951         inet_pton: Support for MSVC on Windows Vista or newer.
25952         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
25953         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
25954         HAVE_DECL_INET_PTON is defined.
25955         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
25956         On platforms with <winsock2.h>, test whether inet_pton is declared in
25957         <ws2tcpip.h>. If so, arrange to replace it.
25958         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
25959         REPLACE_INET_PTON.
25960         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
25961         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
25962         (Depends-on, configure.ac): Update condition.
25963         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
25965 2011-09-17  Bruno Haible  <bruno@clisp.org>
25967         inet_ntop: Support for MSVC on Windows Vista or newer.
25968         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
25969         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
25970         HAVE_DECL_INET_NTOP is defined.
25971         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
25972         On platforms with <winsock2.h>, test whether inet_ntop is declared in
25973         <ws2tcpip.h>. If so, arrange to replace it.
25974         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
25975         REPLACE_INET_NTOP.
25976         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
25977         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
25978         (Depends-on, configure.ac): Update condition.
25979         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
25981 2011-09-16  Eric Blake  <eblake@redhat.com>
25983         test-fsync: yet another enhancement
25984         * tests/test-fsync.c (main): Also test behavior on read-only text
25985         file.
25987 2011-09-16  Bruno Haible  <bruno@clisp.org>
25989         Enhance fsync, fdatasync tests.
25990         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
25991         * tests/test-fdatasync.c (main): Likewise.
25993 2011-09-16  Bruno Haible  <bruno@clisp.org>
25995         Support for MSVC compiler: Ensure mode_t gets defined.
25996         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
25997         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25998         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25999         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
26000         * tests/test-fcntl-h.c: Check that mode_t is defined.
26001         * tests/test-sys_stat.c: Likewise.
26002         * tests/test-sys_types.c: Likewise.
26003         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
26004         * doc/posix-headers/sys_stat.texi: Likewise.
26005         * doc/posix-headers/sys_types.texi: Likewise.
26007 2011-09-16  Bruno Haible  <bruno@clisp.org>
26009         sys_stat: Support for MSVC.
26010         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
26011         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
26012         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
26013         MSVC.
26015 2011-09-16  Bruno Haible  <bruno@clisp.org>
26017         Support for MSVC compiler: Ensure off_t gets defined.
26018         * lib/unistd.in.h: Include <sys/types.h>.
26019         * tests/test-fcntl-h.c: Check that off_t is defined.
26020         * tests/test-sys_stat.c: Likewise.
26021         * tests/test-sys_types.c: Likewise.
26023 2011-09-16  Eric Blake  <eblake@redhat.com>
26025         fdatasync: port to Solaris
26026         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
26027         * modules/fdatasync (Link): Document it.
26028         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
26030         fdatasync: port to MacOS X 10.7
26031         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
26032         declared.
26033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
26034         * modules/unistd (Makefile.am): Substitute it.
26035         * lib/unistd.in.h (fdatasync): Declare on MacOS.
26036         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
26038         fdatasync: minor improvements
26039         * modules/fdatasync (Depends-on): Add condition for fsync.
26040         * lib/fdatasync.c (fdatasync): Add comment.
26041         * tests/test-unistd-c++.cc: Test fdatasync.
26043         unistd: update refs to newer POSIX
26044         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
26045         Suggested by Bruno Haible.
26047         fdatasync: new module
26048         * modules/fsync (Description): Document difference to fdatasync.
26049         * modules/fdatasync: New module.
26050         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
26051         * lib/fdatasync.c (fdatasync): Likewise.
26052         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
26053         defaults.
26054         * modules/unistd (Makefile.am): Set witnesses.
26055         * lib/unistd.in.h (fdatasync): Declare.
26056         * MODULES.html.sh: Document it.
26057         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
26058         * modules/fdatasync-tests: New test.
26059         * tests/test-fdatasync.c: Likewise.
26061 2011-09-16  Eric Blake  <eblake@redhat.com>
26063         test-fsync: enhance tests
26064         * modules/fsync-tests (Depends-on): Add errno, for mingw.
26065         * tests/test-fsync.c (main): Enhance test.
26067 2011-09-15  Bruno Haible  <bruno@clisp.org>
26069         Support for MSVC compiler: Ensure ssize_t gets defined.
26070         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
26071         * doc/posix-headers/stdio.texi: Likewise.
26072         * modules/stdio (Depends-on): Add ssize_t.
26073         * modules/sys_socket (Depends-on): Likewise.
26074         * modules/sys_types (Depends-on): Likewise.
26075         * modules/sys_uio (Depends-on): Likewise.
26076         * modules/unistd (Depends-on): Likewise.
26077         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
26078         * tests/test-sys_types.c: Check that ssize_t is defined.
26080 2011-09-14  Bruno Haible  <bruno@clisp.org>
26082         Avoid using #, the m4 comment starter character, near brackets.
26083         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
26084         delimiter character in sed expressions.
26085         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
26086         Suggested by Eric Blake.
26088         Properly quote AC_CHECK_DECLS' 4th argument.
26089         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
26090         argument.
26091         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26092         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26093         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26094         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26095         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26096         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
26097         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
26098         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
26099         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
26100         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26101         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
26102         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
26103         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26104         * m4/isinf.m4 (gl_ISINF): Likewise.
26105         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26106         * m4/readutmp.m4 (gl_READUTMP): Likewise.
26107         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26108         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26109         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26110         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
26111         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26112         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26113         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
26114         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26115         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26116         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
26118         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26120         Reported by Eric Blake.
26122         Properly quote AC_CHECK_DECL's 4th argument.
26123         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
26124         argument.
26125         * m4/argp.m4 (gl_ARGP): Likewise.
26126         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26127         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26128         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26129         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26130         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
26131         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
26132         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
26133         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26134         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26135         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26136         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26137         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26138         Reported by Eric Blake.
26140 2011-09-14  Eric Blake  <eblake@redhat.com>
26142         opendir: avoid compile warning
26143         * lib/opendir.c (includes): Always include errno.h.
26144         Reported by Tatsuro MATSUOKA.
26146 2011-09-14  Jim Meyering  <meyering@redhat.com>
26148         maint.mk: sc_tight_scope: propagate failure from sub-make
26149         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
26150         Reported by Martin von Gagern.
26152 2011-09-13  Bruno Haible  <bruno@clisp.org>
26154         tempname: Support for MSVC.
26155         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
26156         MSVC.
26157         * modules/tempname (Depends-on): Add fcntl-h.
26159 2011-09-13  Bruno Haible  <bruno@clisp.org>
26161         sys_time: Support for MSVC.
26162         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
26163         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
26164         include <winsock2.h>.
26165         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
26166         function declarations that collide with POSIX.
26167         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
26168         (Makefile.am): Substitute HAVE_WINSOCK2_H.
26170 2011-09-13  Bruno Haible  <bruno@clisp.org>
26172         stat: Support for MSVC.
26173         * lib/stat.c: Include pathmax.h.
26174         * modules/stat (Depends-on): Add pathmax.
26176         pathmax: Support for native Windows.
26177         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
26179 2011-09-12  Bruno Haible  <bruno@clisp.org>
26181         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
26182         * lib/dirent.in.h (struct dirent): New type.
26183         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
26184         DT_WHT): New macros.
26185         (DIR): New type.
26186         (opendir, closedir): Declare only if the module 'opendir' is enabled.
26187         (readdir, rewinddir): New declarations.
26188         * lib/dirent-private.h: New file.
26189         * lib/opendir.c: New file.
26190         * lib/readdir.c: New file.
26191         * lib/rewinddir.c: New file.
26192         * lib/closedir.c: New file.
26193         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
26194         * m4/opendir.m4: New file.
26195         * m4/readdir.m4: New file.
26196         * m4/rewinddir.m4: New file.
26197         * m4/closedir.m4: New file.
26198         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
26199         REPLACE_CLOSEDIR here.
26200         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
26201         readdir, rewinddir are declared.
26202         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
26203         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
26204         HAVE_REWINDDIR, HAVE_CLOSEDIR.
26205         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
26206         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
26207         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
26208         * modules/opendir: New file.
26209         * modules/readdir: New file.
26210         * modules/rewinddir: New file.
26211         * modules/closedir: New file.
26212         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
26213         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
26214         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
26215         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
26216         * NEWS: Mention the 'fchdir' change.
26218 2011-09-11  Bruno Haible  <bruno@clisp.org>
26220         asm-underscore.m4: Support for MSVC.
26221         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
26222         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
26224 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
26226         Doc about crypt functions.
26227         * doc/posix-functions/crypt.texi: Expand range of glibc versions
26228         needing for _GNU_SOURCE to get crypt.
26229         * doc/posix-functions/encrypt.texi: Likewise.
26230         * doc/posix-functions/setkey.texi: Likewise.
26232 2011-09-11  Bruno Haible  <bruno@clisp.org>
26234         doc: Update regarding MSVC 9.
26235         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
26236         tested".
26237         * doc/posix-functions/*.texi: Update with info about MSVC 9.
26238         * doc/posix-headers/*.texi: Likewise.
26239         * doc/pastposix-functions/*.texi: Likewise.
26240         * doc/glibc-functions/*.texi: Likewise.
26241         * doc/glibc-headers/*.texi: Likewise.
26243 2011-09-11  Bruno Haible  <bruno@clisp.org>
26245         unistd et al.: Don't assume <unistd.h> exists.
26246         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
26247         does not exist.
26248         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
26249         exist. But include <stdlib.h>.
26250         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
26251         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
26252         symlink() does not exist.
26253         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
26254         include <io.h> instead.
26255         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
26256         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
26257         include <direct.h> instead.
26258         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
26259         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26260         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
26261         <io.h> instead.
26262         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
26263         correctly if the system does not have hard links.
26264         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
26265         <direct.h> instead.
26266         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
26267         it when looking for function declarations.
26268         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
26269         <direct.h> and <io.h> instead.
26270         * doc/posix-headers/unistd.texi: More details about MSVC problem.
26272 2011-09-11  Bruno Haible  <bruno@clisp.org>
26274         strcase: Support for MSVC.
26275         * modules/strcase (Status, Notice): Remove obsoletion mark.
26276         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
26277         * doc/posix-functions/strncasecmp.texi: Likewise.
26279         strings: Don't assume <strings.h> exists.
26280         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
26281         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
26282         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
26283         * doc/posix-headers/strings.texi: Mention the MSVC problem.
26285 2011-09-11  Bruno Haible  <bruno@clisp.org>
26287         dirent: Don't assume <dirent.h> exists.
26288         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
26289         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
26290         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
26291         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
26293 2011-09-11  Bruno Haible  <bruno@clisp.org>
26295         Fix wint_t on MSVC.
26296         * lib/wchar.in.h (wint_t): On MSVC, override it.
26297         * lib/wctype.in.h (wint_t): Likewise.
26298         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
26299         MSVC.
26300         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
26301         * doc/posix-headers/wctype.texi: Likewise.
26303 2011-09-11  Bruno Haible  <bruno@clisp.org>
26305         sys_types: Fix typo.
26306         * lib/sys_types.in.h: Fix typo in comment.
26307         Reported by Paul Eggert.
26309         Support for MSVC compiler: Ensure size_t gets defined.
26310         * modules/strings (Depends-on): Add 'sys_types'.
26311         * modules/sys_uio (Depends-on): Likewise.
26312         * lib/sys_uio.in.h: Update comment.
26314         C++ tests for module 'sys_types'.
26315         * modules/sys_types-c++-tests: New file.
26316         * tests/test-sys_types-c++.cc: New file.
26318         Tests for module 'sys_types'.
26319         * modules/sys_types-tests: New file.
26320         * tests/test-sys_types.c: New file.
26322         New module 'sys_types'.
26323         * lib/sys_types.in.h: New file.
26324         * m4/sys_types_h.m4: New file.
26325         * modules/sys_types: New file.
26326         * doc/posix-headers/sys_types.texi: Mention the new module and the
26327         size_t problem on MSVC 9.
26329 2011-09-11  Bruno Haible  <bruno@clisp.org>
26331         Support for MSVC compiler: Avoid division by a literal 0.
26332         * lib/math.in.h (NAN): Define through a function call also on MSVC.
26333         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
26334         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
26335         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
26336         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
26337         * tests/infinity.h: New file.
26338         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
26339         on MSVC.
26340         * tests/test-ceilf1.c: Include infinity.h.
26341         (main): Use Infinityf.
26342         * tests/test-ceil1.c: Include infinity.h.
26343         (main): Use Infinityd.
26344         * tests/test-ceill.c: Include infinity.h.
26345         (main): Use Infinityl.
26346         * tests/test-dprintf-posix.c: Include infinity.h.
26347         (test_function): Use Infinityd.
26348         * tests/test-floorf1.c: Include infinity.h.
26349         (main): Use Infinityf.
26350         * tests/test-floor1.c: Include infinity.h.
26351         (main): Use Infinityd.
26352         * tests/test-floorl.c: Include infinity.h.
26353         (main): Use Infinityl.
26354         * tests/test-fprintf-posix.c: Include infinity.h.
26355         (test_function): Use Infinityd.
26356         * tests/test-frexp.c: Include infinity.h.
26357         (main): Use Infinityd.
26358         * tests/test-frexpl.c: Include infinity.h.
26359         (main): Use Infinityl.
26360         * tests/test-isfinite.c: Include infinity.h.
26361         (test_isfinitef): Use Infinityf.
26362         (test_isfinited): Use Infinityd.
26363         (test_isfinitel): Use Infinityl.
26364         * tests/test-isinf.c: Include infinity.h.
26365         (test_isinff): Use Infinityf.
26366         (test_isinfd): Use Infinityd.
26367         (test_isinfl): Use Infinityl.
26368         * tests/test-isnan.c: Include infinity.h.
26369         (test_float): Use Infinityf.
26370         (test_double): Use Infinityd.
26371         (test_long_double): Use Infinityl.
26372         * tests/test-isnanf.h: Include infinity.h.
26373         (main): Use Infinityf.
26374         * tests/test-isnand.h: Include infinity.h.
26375         (main): Use Infinityd.
26376         * tests/test-isnanl.h: Include infinity.h.
26377         (main): Use Infinityl.
26378         * tests/test-ldexpl.c: Include infinity.h.
26379         (main): Use Infinityl.
26380         * tests/test-printf-posix.h: Include infinity.h.
26381         (test_function): Use Infinityd.
26382         * tests/test-roundf1.c: Include infinity.h.
26383         (main): Use Infinityf.
26384         * tests/test-round1.c: Include infinity.h.
26385         (main): Use Infinityd.
26386         * tests/test-roundl.c: Include infinity.h.
26387         (main): Use Infinityl.
26388         * tests/test-signbit.c: Include infinity.h.
26389         (test_signbitf): Use Infinityf.
26390         (test_signbitd): Use Infinityd.
26391         (test_signbitl): Use Infinityl.
26392         * tests/test-snprintf-posix.h: Include infinity.h.
26393         (test_function): Use Infinityd, Infinityl.
26394         * tests/test-sprintf-posix.h: Include infinity.h.
26395         (test_function): Use Infinityd, Infinityl.
26396         * tests/test-truncf1.c: Include infinity.h.
26397         (main): Use Infinityf.
26398         * tests/test-trunc1.c: Include infinity.h.
26399         (main): Use Infinityd.
26400         * tests/test-truncl.c: Include infinity.h.
26401         (main): Use Infinityl.
26402         * tests/test-vasnprintf-posix.c: Include infinity.h.
26403         (test_function): Use Infinityd, Infinityl.
26404         * tests/test-vasprintf-posix.c: Include infinity.h.
26405         (test_function): Use Infinityd, Infinityl.
26406         * modules/ceilf-tests (Files): Add tests/infinity.h.
26407         * modules/ceil-tests (Files): Likewise.
26408         * modules/ceill-tests (Files): Likewise.
26409         * modules/dprintf-posix-tests (Files): Likewise.
26410         * modules/floorf-tests (Files): Likewise.
26411         * modules/floor-tests (Files): Likewise.
26412         * modules/floorl-tests (Files): Likewise.
26413         * modules/fprintf-posix-tests (Files): Likewise.
26414         * modules/frexp-tests (Files): Likewise.
26415         * modules/frexp-nolibm-tests (Files): Likewise.
26416         * modules/frexpl-tests (Files): Likewise.
26417         * modules/frexpl-nolibm-tests (Files): Likewise.
26418         * modules/isfinite-tests (Files): Likewise.
26419         * modules/isinf-tests (Files): Likewise.
26420         * modules/isnan-tests (Files): Likewise.
26421         * modules/isnanf-tests (Files): Likewise.
26422         * modules/isnanf-nolibm-tests (Files): Likewise.
26423         * modules/isnand-tests (Files): Likewise.
26424         * modules/isnand-nolibm-tests (Files): Likewise.
26425         * modules/isnanl-tests (Files): Likewise.
26426         * modules/isnanl-nolibm-tests (Files): Likewise.
26427         * modules/ldexpl-tests (Files): Likewise.
26428         * modules/printf-posix-tests (Files): Likewise.
26429         * modules/roundf-tests (Files): Likewise.
26430         * modules/round-tests (Files): Likewise.
26431         * modules/roundl-tests (Files): Likewise.
26432         * modules/signbit-tests (Files): Likewise.
26433         * modules/snprintf-posix-tests (Files): Likewise.
26434         * modules/sprintf-posix-tests (Files): Likewise.
26435         * modules/truncf-tests (Files): Likewise.
26436         * modules/trunc-tests (Files): Likewise.
26437         * modules/truncl-tests (Files): Likewise.
26438         * modules/vasnprintf-posix-tests (Files): Likewise.
26439         * modules/vasprintf-posix-tests (Files): Likewise.
26440         * modules/vdprintf-posix-tests (Files): Likewise.
26441         * modules/vfprintf-posix-tests (Files): Likewise.
26442         * modules/vprintf-posix-tests (Files): Likewise.
26443         * modules/vsnprintf-posix-tests (Files): Likewise.
26444         * modules/vsprintf-posix-tests (Files): Likewise.
26445         * modules/xprintf-posix-tests (Files): Likewise.
26447 2011-09-11  Bruno Haible  <bruno@clisp.org>
26449         Ensure pid_t gets defined.
26450         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
26451         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26452         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26453         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26454         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26455         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26456         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
26457         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26458         * tests/test-fcntl-h.c: Check that pid_t is defined.
26459         * tests/test-sched.c: Likewise.
26460         * tests/test-termios.c: Likewise.
26461         * tests/test-time.c: Likewise.
26462         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
26463         * doc/posix-headers/signal.texi: Likewise.
26464         * doc/posix-headers/sys_types.texi: Likewise.
26465         * doc/posix-headers/time.texi: Likewise.
26467 2011-09-11  Bruno Haible  <bruno@clisp.org>
26469         acl: Fix compilation on Solaris 10 (older version).
26470         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
26471         of ACE_EVERYONE.
26472         * lib/set-mode-acl.c (qset_acl): Likewise.
26473         Reported by Christian Jullien <eligis@orange.fr>.
26475 2011-09-10  Bruno Haible  <bruno@clisp.org>
26477         iconv, unsetenv: Add support for MSVC compiler.
26478         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
26479         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
26481 2011-09-10  Bruno Haible  <bruno@clisp.org>
26483         *printf: Add support for MSVC compiler.
26484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
26485         handles the exception caused by the %n directive. When cross-compiling,
26486         guess no on native Windows.
26487         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26488         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
26489         emulate it through vsnprintf.
26490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
26491         * doc/posix-functions/dprintf.texi: Update documentation regarding
26492         MSVC 9.
26493         * doc/posix-functions/fprintf.texi: Likewise.
26494         * doc/posix-functions/printf.texi: Likewise.
26495         * doc/posix-functions/snprintf.texi: Likewise.
26496         * doc/posix-functions/sprintf.texi: Likewise.
26497         * doc/posix-functions/swprintf.texi: Likewise.
26498         * doc/posix-functions/vdprintf.texi: Likewise.
26499         * doc/posix-functions/vfprintf.texi: Likewise.
26500         * doc/posix-functions/vprintf.texi: Likewise.
26501         * doc/posix-functions/vsnprintf.texi: Likewise.
26502         * doc/posix-functions/vsprintf.texi: Likewise.
26503         * doc/glibc-functions/asprintf.texi: Likewise.
26504         * doc/glibc-functions/obstack_printf.texi: Likewise.
26505         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26506         * doc/glibc-functions/vasprintf.texi: Likewise.
26508 2011-09-10  Bruno Haible  <bruno@clisp.org>
26510         nocrash: Add support for native Windows.
26511         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
26513 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
26514             Bruno Haible  <bruno@clisp.org>
26516         absolute-header, include-next: Add support for MSVC compiler.
26517         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
26518         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
26519         directory separator in #line directives.
26520         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
26521         recognize also backslash as directory separator in #line directives.
26523 2011-09-08  Jim Meyering  <meyering@redhat.com>
26525         maint.mk: mark the post-release commit log with "maint: " prefix
26526         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
26527         one-line commit-log summary.
26529 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
26530             Bruno Haible  <bruno@clisp.org>
26532         Doc about crypt functions.
26533         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
26534         systems.
26535         * doc/posix-functions/encrypt.texi: Likewise.
26536         * doc/posix-functions/setkey.texi: Likewise.
26538 2011-09-08  Simon Josefsson  <simon@josefsson.org>
26540         * lib/gc.h: Fix copyright header.
26542 2011-09-07  Bruno Haible  <bruno@clisp.org>
26544         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
26545         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
26546         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
26548 2011-09-07  Bruno Haible  <bruno@clisp.org>
26550         openat: Work around compilation error with OSF/1 5.1 DTK cc.
26551         * lib/fopen.c: Use different syntax for include of <stdio.h>.
26552         * lib/freopen.c: Likewise.
26553         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
26554         * lib/lstat.c: Likewise.
26555         * lib/stat.c: Likewise.
26556         * lib/open.c: Use different syntax for include of <fcntl.h>.
26557         * lib/openat.c: Include fcntl.h again, explicitly.
26559 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
26561         parse-datetime: document the newly accepted format
26562         * doc/parse-datetime.texi (Combined date and time of day items):
26563         New section.
26565 2011-09-06  Bruno Haible  <bruno@clisp.org>
26567         acl: Fix a test failure on newer Solaris 10 with ZFS.
26568         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
26569         ENOSYS as no ACL.
26570         Reported by Jim Meyering.
26572 2011-09-06  Bruno Haible  <bruno@clisp.org>
26574         acl: Update for AIX >= 5.3 with NFS.
26575         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
26576         ENOSYS as no ACL.
26578         acl: Fix a test failure on AIX >= 5.3 with NFS.
26579         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
26580         as no ACL.
26582 2011-09-06  Bruno Haible  <bruno@clisp.org>
26584         acl: Fix a test failure on IRIX 6.5 with NFS.
26585         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
26586         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
26587         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
26588         * lib/copy-acl.c (qcopy_acl): Likewise.
26590 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
26592         openat: port to AIX 7.1 with large files
26593         AIX 7.1 does a "#define openat open64at" if large files are in use,
26594         so we can't simply #undef openat.  Use the orig_openat trick (similar
26595         to orig_open in lib/open.c) to work around the problem.  Problem
26596         reported by Kevin Brott for GNU tar, in the thread containing
26597         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
26598         * lib/openat.c (__need_system_fcntl_h): Define first.
26599         Include <fcntl.h> and <sys/types.h> before undefining.
26600         (orig_openat) [HAVE_OPENAT]: New inline function.
26601         (openat) [HAVE_OPENAT]: Do not undef.
26602         (rpl_openat): Use orig_openat, not openat.
26604 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26605             Bruno Haible  <bruno@clisp.org>
26607         acl: Avoid errors on NonStop Kernel.
26608         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
26609         ENOTSUP errors.
26611 2011-09-05  Bruno Haible  <bruno@clisp.org>
26613         acl: Clean up Solaris code.
26614         * lib/acl-internal.h: Remove no-op #if.
26615         * lib/file-has-acl.c: Likewise.
26616         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
26617         * lib/copy-acl.c (qcopy_acl): Likewise.
26619 2011-09-05  Bruno Haible  <bruno@clisp.org>
26621         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
26622         binaries built on the original Solaris 10.
26623         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
26624         trivial.
26626 2011-09-05  Bruno Haible  <bruno@clisp.org>
26628         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
26629         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
26630         10.
26631         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
26632         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
26633         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
26634         instead of acl_get, facl_get, acl_set, facl_set.
26636 2011-09-05  Bruno Haible  <bruno@clisp.org>
26638         copy-file: Try unit tests on more file systems.
26639         * tests/test-copy-file-1.sh: New file.
26640         * tests/test-copy-file-2.sh: New file.
26641         * modules/copy-file-tests (Files): Add them.
26642         (Makefile.am): Add them to TESTS.
26644         acl: Try unit tests on more file systems.
26645         * tests/test-file-has-acl-1.sh: New file.
26646         * tests/test-file-has-acl-2.sh: New file.
26647         * tests/test-set-mode-acl-1.sh: New file.
26648         * tests/test-set-mode-acl-2.sh: New file.
26649         * tests/test-copy-acl-1.sh: New file.
26650         * tests/test-copy-acl-2.sh: New file.
26651         * modules/acl-tests (Files): Add them.
26652         (Makefile.am): Add them to TESTS.
26654 2011-09-04  Bruno Haible  <bruno@clisp.org>
26656         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
26657         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
26658         10.
26659         (OLD_ALLOW, OLD_DENY): New macros.
26660         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
26661         ACE_ACCESS_ALLOWED_ACE_TYPE.
26662         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
26663         ACE_ACCESS_DENIED_ACE_TYPE.
26664         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
26665         (NEW_ACE_EXECUTE): Fix value.
26666         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
26667         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
26668         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
26669         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
26670         NEW_ACE_SYNCHRONIZE): New macros.
26671         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
26672         instead of acl_fromtext, acl_set, facl_set.
26673         Fixes a coreutils/tests/cp/perm failure.
26675 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
26677         openat: test for fstatat (..., 0) bug
26678         Further testing with tar suggests that fstatat (..., 0)
26679         does not work in general, on AIX 7.1; see
26680         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
26681         So, give up entirely on AIX 7.1's fstatat, and fall back on our
26682         replacement fstatat (which is what older AIX releases were using
26683         anyway).
26684         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
26685         use is now changed to orig_fstatat.  This was probably the right
26686         thing to do anyway.
26687         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
26688         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
26689         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
26690         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
26691         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
26692         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
26693         if the bug is found.
26695         openat: test for fstatat (AT_FDCWD, ..., 0) bug
26696         This tests for another fstatat bug on AIX 7.1:
26697         fstatat (AT_FDCWD, ..., 0) does not work.  See
26698         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
26699         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
26700         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
26701         (rpl_fstatat): Adjust so that it works around either (or both)
26702         bugs if present.
26703         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
26705 2011-09-03  Karl Berry  <karl@gnu.org>
26707         * doc/regex.texi (Character Class Operators): Avoid literal ":"
26708         in index entries.
26710 2011-09-02  Bruno Haible  <bruno@clisp.org>
26712         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
26713         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
26714         values of AR, ARFLAGS, RANLIB.
26715         Reported by John W. Eaton <jwe@gnu.org> for Octave.
26717 2011-09-02  Bruno Haible  <bruno@clisp.org>
26719         Find 'ar' program that fits with --host argument.
26720         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
26722 2011-09-02  Bruno Haible  <bruno@clisp.org>
26724         tests: init.sh: Support any non-GNU diff.
26725         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
26726         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
26727         Solaris 8.
26729 2011-09-02  Bruno Haible  <bruno@clisp.org>
26731         tests: init.sh: work also with any non-GNU diff that supports -u
26732         * tests/init.sh: Relax check for diff -u support.
26733         Rather than checking for GNU diff via --version, simply check
26734         for support for -u itself.  Useful at least on OpenBSD 4.9,
26735         AIX 7.1, IRIX 6.5, and Solaris 10.
26737 2011-09-01  Bruno Haible  <bruno@clisp.org>
26739         strtoimax, strtoumax: Document problem on HP-UX 11.
26740         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
26741         * doc/posix-functions/strtoumax.texi: Likewise.
26743 2011-09-01  Bruno Haible  <bruno@clisp.org>
26745         strtoumax: Avoid link error on OSF/1 with DTK cc.
26746         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
26747         defined as a function.
26748         * modules/strtoumax (Depends-on, configure.ac): Test only whether
26749         strtoumax is defined, not whether it is declared.
26751 2011-09-01  Bruno Haible  <bruno@clisp.org>
26753         strtoimax: Avoid link error on OSF/1 with DTK cc.
26754         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
26755         defined as a function.
26756         * modules/strtoimax (Depends-on, configure.ac): Test only whether
26757         strtoimax is defined, not whether it is declared.
26759 2011-09-01  Bruno Haible  <bruno@clisp.org>
26761         imaxdiv: Avoid link error on OSF/1 with DTK cc.
26762         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
26763         as a function.
26764         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
26765         whether it is declared.
26767 2011-09-01  Bruno Haible  <bruno@clisp.org>
26769         imaxabs: Avoid link error on OSF/1 with DTK cc.
26770         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
26771         as a function.
26772         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
26773         whether it is declared.
26775 2011-09-01  Bruno Haible  <bruno@clisp.org>
26777         Tests for module 'strtoumax'.
26778         * modules/strtoumax-tests: New file.
26779         * tests/test-strtoumax.c: New file.
26781         Tests for module 'strtoimax'.
26782         * modules/strtoimax-tests: New file.
26783         * tests/test-strtoimax.c: New file.
26785         Tests for module 'imaxdiv'.
26786         * modules/imaxdiv-tests: New file.
26787         * tests/test-imaxdiv.c: New file.
26789         Tests for module 'imaxabs'.
26790         * modules/imaxabs-tests: New file.
26791         * tests/test-imaxabs.c: New file.
26793 2011-09-01  Bruno Haible  <bruno@clisp.org>
26795         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
26796         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
26797         pthread_create.
26799 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26801         openat: work around AIX 7.1 fstatat issue
26802         This should fix the problem that was not properly fixed
26803         in the previous change, dated 2011-08-30.
26804         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
26805         __need_system_stat_h defined.
26806         (orig_fstatat) [HAVE_FSTATAT]: New function.
26807         (rpl_fstatat): Go back to the old way of doing things,
26808         except call orig_fstatat instead of fstatat.
26809         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
26810         Remove unnecessary check whether fstatat fills in st_size etc.
26812 2011-09-01  Bruno Haible  <bruno@clisp.org>
26814         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
26815         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
26816         just include the system's header.
26818 2011-08-31  Jim Meyering  <meyering@redhat.com>
26820         tests: avoid spurious assertion failure in test-float.c on ppc64
26821         * tests/test-float.c (test_long_double): Comment out an assertion,
26822         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
26823         with gcc-4.4.4.
26825         maint: indent with spaces, not TABs
26826         I need to get in the habit of running gnulib's "make check".
26827         Both of these would have been caught.
26828         * m4/largefile.m4: Indent with spaces, not TABs.
26829         * lib/parse-datetime.y (iso_8601_time): Likewise.
26830         Spotted by Pádraig Brady.
26832         test-parse-datetime.c: accommodate a relatively strict gcc warning
26833         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
26834         to avoid a warning from gcc's -Werror=missing-declarations.
26835         Insert a few spaces-before-funcall-parenthesis.
26837 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
26839         parse-datetime: accept ISO 8601 date and time rep with "T" separator
26840         The parser now accepts ISO 8601 date-time strings with "T" as the
26841         separator.  It has long parsed dates like "2004-02-29 16:21:42"
26842         with a space between the date and time strings.  Now it also parses
26843         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
26844         variants like "2004-02-29T16:21:42.333-07:00"
26845         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
26846         of day representation using the 'T' separator character.
26847         * doc/parse-datetime.texi (General date syntax): replace use of
26848         deprecated --iso-8601 option with --rfc-3339 in example of date
26849         command output formats that can be parsed.
26850         * tests/test-parse-datetime.c (tm_diff): New function, taken from
26851         lib/parse-datetime.y.
26852         (gmt_offset): New function.
26853         (main): Add additional test cases to validate ISO8601 extended
26854         date and time of day parsing.
26856 2011-08-31  Bruno Haible  <bruno@clisp.org>
26858         freopen: Documentation.
26859         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
26860         name.
26861         Reported by Claudio Bley <claudio.bley@gmail.com>.
26863 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
26865         freopen: Don't crash if the filename argument is NULL.
26866         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
26867         NULL.
26869 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26871         openat: work around AIX 7.1 fstatat bug
26872         Problem reported by Kevin Brott for GNU tar, in the thread containing
26873         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
26874         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
26875         FSTATAT_ST_SIZE_ETC_BROKEN.
26876         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
26877         rpl_fstatat.
26878         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
26879         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
26880         AC_CHECK_FUNCS_ONCE for fstatat.
26881         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
26882         fchmodat, mkdirat, openat and unlinkat.
26884 2011-08-30  Bruno Haible  <bruno@clisp.org>
26886         Avoid endless recursions if config.h includes some header files.
26887         * lib/fopen.c (__need_FILE): Define already before including config.h.
26888         * lib/freopen.c (__need_FILE): Likewise.
26889         * lib/open.c (__need_system_fcntl_h): Likewise.
26890         * lib/stat.c (__need_system_sys_stat_h): Likewise.
26891         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
26892         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26894 2011-08-25  Karl Berry  <karl@gnu.org>
26896         * config/srclist.txt (ylwrap): new try.
26897         * build-aux/ylwrap: new file.
26899 2011-08-23  Bruno Haible  <bruno@clisp.org>
26901         tmpdir: Use a good default directory on native Windows.
26902         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
26903         (P_tmpdir): Default to _P_tmpdir on native Windows.
26904         (path_search): On native Windows, try the value returned by GetTempPath
26905         before trying P_tmpdir.
26906         * modules/tmpdir (Depends-on): Add pathmax.
26907         Suggested by John Darrington <john@darrington.wattle.id.au>.
26909 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
26911         doc: fix typo in README-release
26912         * top/README-release: Capitalize first word of a sentence.
26914 2011-08-19  Jim Meyering  <meyering@redhat.com>
26916         fts: do not exhaust memory when processing million-entry directories
26917         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
26918         directory would require about 256*N bytes of memory.  Thus, it was
26919         easy to construct a directory too large to be processed by any of
26920         those tools.  With this change, fts' maximum memory utilization is
26921         now limited to around 30MB.
26922         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
26923         (fts_read): When we've processed the final entry (i.e., when
26924         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
26925         using the parent entry to read any remaining entries.  Dispatch
26926         depending on what fts_build returns:
26927         - NULL+stop, aka failure: stop
26928         - NULL otherwise: move up in the dir hierarchy
26929         - non-NULL: handle this new entry
26930         (fts_build): Declare and use new local, continue_readdir.
26931         Prepare to be called from fts_read, when the entries
26932         from a partially-read directory have just been exhausted.
26933         In that case, we'll skip the opendir and instead use the parent's
26934         fts_dirp and derive dir_fd from that.
26935         Finally, in the readdir loop, if we read max_entries entries,
26936         exit the loop ensuring *not* to call closedir.  This is required
26937         so that fts_dirp can be reused on a subsequent call.
26938         Prompted by Ben England's report of memory exhaustion in find
26939         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
26941         maint: fts: move decl of `dp' down into while loop; split a long line
26942         * lib/fts.c (fts_build): No semantic change.
26944         fts: add/use new struct member, fts_dirp
26945         We are about to use this to manage any directory with
26946         too many entries to read all of them into memory at once.
26947         To do that, we'll need to save the DIR* pointer in each
26948         affected FTSENT struct.
26949         * lib/fts_.h: Include <dirent.h>.
26950         (struct FTSENT) [fts_dirp]: New member.
26951         * lib/fts.c (closedir_and_clear): Define.
26952         Use it in place of closedir so that we are sure to
26953         clear the new fts_dirp member when done with it.
26954         (fts_alloc): Initialize the new member.
26955         (fts_lfree): Free, if needed.
26957         maint: fts: give __opendir2 a new parameter and rename
26958         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
26959         than surreptitiously using sole caller's "dir_fd".
26960         (fts_opendir): Rename from __opendir2.
26962         maint: fts.c: remove __opendir2's now-unused parameter, oflag
26963         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
26965         maint: fts.c: correct off-by-one indentation
26966         * lib/fts.c (fts_build): Correct indentation, change style
26967         of a couple of block comments, and bracing style.
26969         maint: fts.c: move __opendir2 #define "up" out of function body
26970         * lib/fts.c (__opendir2): Move "up".  No semantic change.
26972         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
26973         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
26974         out for a long time and besides was useful only on BSD systems.
26976 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
26978         regex: port to Stratus OpenVOS
26979         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
26980         define to empty, rather than attempting nonportable optimizations.
26981         Problem reported by Paul Green in:
26982         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
26983         and fix suggested by Eric Blake in:
26984         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
26986 2011-08-17  Eric Blake  <eblake@redhat.com>
26988         getcwd: fix test failures on mingw
26989         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
26990         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
26991         test if long directory cannot be created, and allow mingw errno.
26993         getcwd-lgpl: fix m4 to match relaxed test for BSD
26994         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
26995         (gl_FUNC_GETCWD_SIGNATURE): New macro.
26996         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
26997         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
26998         signature problem.
27000         getcwd: fix compilation on mingw64
27001         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
27002         getcwd.
27003         Reported by Marc-André Lureau.
27005         pipe2: silence compiler warning
27006         * lib/pipe2.c (pipe2): Hide label if it is not used.
27008 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
27010         relocatable-prog: fix link error
27011         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
27012         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
27013         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
27014         into modules/relocatable-lib without noticing that
27015         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
27016         also needs to build relocatable.c.
27018 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27020         getaddrinfo: fix sh typo in gai_strerrorA decl checking
27021         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
27022         shell code: it contained a 'break' that was not in a loop.
27023         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
27024         via a shell-language loop; this may have been true in old Autoconf
27025         versions, but it's not true in Autoconf 2.68.  I found this bug
27026         when testing coreutils git on Solaris 8, whose shell complains
27027         about the syntax error.
27029 2011-08-12  Simon Josefsson  <simon@josefsson.org>
27031         * lib/base64.c: Fix comment to reference RFC 4648.
27032         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
27033         <gvtulder@gmail.com>.
27035 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27037         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
27039         po/Makefile.in.in: fix make -q problem
27040         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
27041         rule, since there's no file named 'check-macro-version' and its
27042         use as a file breaks make -q.
27043         (all): Don't depend on check-macro-version.
27044         (CHECK_MACRO_VERSION): New macro.
27045         (stamp-po): Use it.
27047         configmake: fix make -q problem
27048         * modules/configmake (configmake.h): Update configmake.h's time stamp
27049         even if the file does not change.  Otherwise, 'make -q' fails.
27050         Problem reported by Simon Josefsson in
27051         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
27053 2011-08-11  Jim Meyering  <meyering@redhat.com>
27055         git-version-gen: correct the advice in a comment
27056         * build-aux/git-version-gen: Correct comment.
27057         Don't recommend to list .tarball-version in .gitignore.
27059 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27061         base64: fix off-by-one buffer size bug
27062         Problem and (trivial) fix reported by Gijs van Tulder in
27063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
27064         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
27065         * tests/test-base64.c (main): Catch the bug.
27067 2011-08-10  Eric Blake  <eblake@redhat.com>
27069         closein: correct comments
27070         * lib/closein.c (close_stdin): Improve comments.
27072 2011-08-09  Bruno Haible  <bruno@clisp.org>
27074         More tests for 'fseeko'.
27075         * tests/test-fseeko3.c: New file, from Eric Blake.
27076         * tests/test-fseeko3.sh: New file.
27077         * modules/fseeko-tests (Files): Add them.
27078         (TESTS): Add test-fseeko3.sh.
27079         (check_PROGRAMS): Add test-fseeko3.
27081 2011-08-09  Eric Blake  <eblake@redhat.com>
27083         fseeko: remove unneeded hack
27084         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
27086         fseeko: fix bug on glibc
27087         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
27088         Reported by John W. Eaton.
27090 2011-08-08  Bruno Haible  <bruno@clisp.org>
27092         unictype/base: Fix interoperability with preinstalled libunistring.
27093         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
27094         Reported by Simon Josefsson.
27096 2011-08-08  Bruno Haible  <bruno@clisp.org>
27098         iswblank: Detect declaration correctly.
27099         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
27100         AC_CHECK_DECLS invocation.
27102 2011-08-08  Bruno Haible  <bruno@clisp.org>
27104         tcgetsid: Detect declaration correctly.
27105         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
27106         AC_CHECK_DECLS invocation.
27107         Reported by Simon Josefsson.
27109 2011-08-08  Eric Blake  <eblake@redhat.com>
27111         largefile: fix typo that regressed large file support
27112         * modules/largefile (configure.ac-early): Fix section name.
27114 2011-08-06  Karl Berry  <karl@gnu.org>
27116         * MODULES.html.sh (func_all_files): _Noreturn is no longer
27117         a separate module.
27119 2011-08-05  Simon Josefsson  <simon@josefsson.org>
27121         openat: Fix warnings and commens when building unlinkat.c on Hurd.
27122         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
27123         get prototype for free.
27125 2011-08-04  Bruno Haible  <bruno@clisp.org>
27127         Tests for module 'pathmax'.
27128         * modules/pathmax-tests: New file.
27129         * tests/test-pathmax.c: New file.
27131         canonicalize-lgpl: Support larger filenames on the Hurd.
27132         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
27133         Reported by Paul Eggert.
27135         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
27136         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
27137         * lib/chdir-long.h: Include pathmax.h.
27138         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
27139         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
27140         (PATH_MAX): Remove code that is done by pathmax.h.
27141         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
27142         * lib/tmpfile.c: Add a comment.
27143         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
27144         * modules/chdir-long (Depends-on): Add pathmax.
27145         * modules/getcwd (Depends-on): Add pathmax.
27146         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
27147         is not defined.
27148         * doc/posix-headers/limits.texi: Mention the pathmax module.
27149         * NEWS: Mention the change.
27151 2011-08-02  Bruno Haible  <bruno@clisp.org>
27153         pthread_sigmask: Actually use results of gl_THREADLIB.
27154         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
27155         gl_THREADLIB, not gl_[]THREADLIB.
27156         Reported by Eric Blake.
27158 2011-08-02  Jim Meyering  <meyering@redhat.com>
27160         maint.mk: relax the default _gl_TS_function_match regexp
27161         * top/maint.mk (_gl_TS_function_match): Don't require at least one
27162         space between function name and "(" in an "extern" declaration.
27163         That would fail to match a decl with no space there: extern void foo();
27165 2011-07-31  Iain Nicol  <iain@thenicols.net>
27167         git-version-gen: document that EXTRA_DIST must include .version
27168         * build-aux/git-version-gen: In the how-to-use comment, document
27169         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
27170         will fail when run from an unpacked distribution tarball.
27172 2011-08-01  Bruno Haible  <bruno@clisp.org>
27174         wctype-h: Fix last change.
27175         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
27176         REPLACE_TOWLOWER to 0.
27177         Reported by Sam Steingold <sds@gnu.org>.
27179 2011-07-31  Bruno Haible  <bruno@clisp.org>
27181         frexpl: Update autoconf test.
27182         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
27183         according to changes of 2011-06-20.
27185 2011-07-31  Bruno Haible  <bruno@clisp.org>
27187         sys_utsname: Add support for Minix.
27188         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
27189         <sys/utsname.h>.
27190         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27191         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
27193 2011-07-31  Bruno Haible  <bruno@clisp.org>
27195         strings: Add support for Minix.
27196         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
27197         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27198         * doc/posix-headers/strings.texi: Document the Minix problem.
27200 2011-07-31  Bruno Haible  <bruno@clisp.org>
27202         wctype-h: Add support for Minix.
27203         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
27204         REPLACE_TOWLOWER.
27205         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
27206         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
27207         REPLACE_ISWCNTRL.
27209 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
27211         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
27212         This is a performance improvement for 64-bit hosts: it causes the
27213         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
27215 2011-07-31  Bruno Haible  <bruno@clisp.org>
27217         stdioext: Add support for Minix.
27218         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
27219         * lib/fpurge.c (fpurge): Likewise.
27220         * lib/freadahead.c (freadahead): Likewise.
27221         * lib/freadable.c (freadable): Likewise.
27222         * lib/freading.c (freading): Likewise.
27223         * lib/freadptr.c (freadptr): Likewise.
27224         * lib/freadseek.c (freadptrinc): Likewise.
27225         * lib/fseeko.c (rpl_fseeko): Likewise.
27226         * lib/fseterr.c (fseterr): Likewise.
27227         * lib/fwritable.c (fwritable): Likewise.
27228         * lib/fwriting.c (fwriting): Likewise.
27229         * lib/fflush.c (clear_ungetc_buffer): Update comment.
27230         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
27232 2011-07-31  Bruno Haible  <bruno@clisp.org>
27234         errno: Port to Minix.
27235         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
27236         ECONNABORTED are defined.
27237         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
27238         GNULIB_defined_ECONNABORTED): New macros.
27239         * lib/strerror-override.h (strerror_override): Test also
27240         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
27241         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
27242         ECONNABORTED.
27243         * doc/posix-headers/errno.texi: Mention the Minix problem.
27245 2011-07-31  Bruno Haible  <bruno@clisp.org>
27247         Work around declaration collisions on Minix.
27248         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
27249         defined, set REPLACE_MBSINIT.
27250         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
27251         defined, set REPLACE_MBRTOWC.
27252         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
27253         set REPLACE_MBRLEN.
27254         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
27255         defined, set REPLACE_MBSRTOWCS.
27256         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
27257         defined, set REPLACE_WCRTOMB.
27258         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
27259         defined, set REPLACE_WCSRTOMBS.
27261 2011-07-31  Bruno Haible  <bruno@clisp.org>
27263         Add support for Minix with ACK compiler.
27264         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
27265         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
27266         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
27268 2011-07-31  Bruno Haible  <bruno@clisp.org>
27270         Documentation about Minix.
27271         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
27272         * doc/glibc-headers/*.texi: Likewise.
27273         * doc/posix-functions/*.texi: Likewise.
27274         * doc/glibc-functions/*.texi: Likewise.
27276 2011-07-31  Bruno Haible  <bruno@clisp.org>
27278         snippet/warn-on-use: Fix indentation.
27279         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
27281 2011-07-25  Jim Meyering  <meyering@redhat.com>
27283         tests: test-update-copyright.sh: remove unnecessary "rm" commands
27284         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
27285         commands.
27287 2011-07-27  Jim Meyering  <meyering@redhat.com>
27289         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
27290         * top/maint.mk (gl_extract_significant_defines_): Now that
27291         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
27292         gnulib/lib/signal.in.h, and now that we recommend to
27293         define-if-undefined those two symbols in application code,
27294         we must filter them out of the "significant" list.
27295         This avoids a "make syntax-check" failure in coreutils.
27297 2011-07-26  Eric Blake  <eblake@redhat.com>
27299         warnings: add comments about previous patch
27300         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
27301         * m4/include_next.m4: Likewise.
27302         * m4/warn-on-use.m4: Likewise.
27303         * m4/warnings.m4: Likewise, and simplify use.
27304         Suggested by Stefano Lattarini.
27306         include-next, warnings: support older autoconf
27307         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
27308         AS_VAR_PUSHDEF in a way that works with older autoconf.
27309         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
27310         Reported by Daniel P. Berrange.
27312 2011-07-25  Bruno Haible  <bruno@clisp.org>
27314         fseek, ftell: Fix doc.
27315         * doc/posix-functions/fseek.texi: Reword statement about
27316         AC_SYS_LARGEFILE.
27317         * doc/posix-functions/ftell.texi: Likewise.
27319 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27320             Bruno Haible  <bruno@clisp.org>
27322         Add dependencies to the 'largefile' module.
27323         * modules/fopen (Depends-on): Add 'largefile'.
27324         * modules/freopen (Depends-on): Likewise.
27325         * modules/fseeko (Depends-on): Likewise.
27326         * modules/ftello (Depends-on): Likewise.
27327         * modules/glob (Depends-on): Likewise.
27328         * modules/lseek (Depends-on): Likewise.
27329         * modules/lstat (Depends-on): Likewise.
27330         * modules/mkostemp (Depends-on): Likewise.
27331         * modules/mkostemps (Depends-on): Likewise.
27332         * modules/mkstemp (Depends-on): Likewise.
27333         * modules/mkstemps (Depends-on): Likewise.
27334         * modules/open (Depends-on): Likewise.
27335         * modules/openat (Depends-on): Likewise.
27336         * modules/pread (Depends-on): Likewise.
27337         * modules/pwrite (Depends-on): Likewise.
27338         * modules/scandir (Depends-on): Likewise.
27339         * modules/stat (Depends-on): Likewise.
27340         * modules/tmpfile (Depends-on): Likewise.
27341         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
27342         since the containing module now depends on the largefile module.
27343         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
27344         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
27345         off_t is fixed by gnulib.
27346         * doc/posix-functions/freopen.texi: Likewise.
27347         * doc/posix-functions/fseeko.texi: Likewise.
27348         * doc/posix-functions/fstatat.texi: Likewise.
27349         * doc/posix-functions/ftello.texi: Likewise.
27350         * doc/posix-functions/glob.texi: Likewise.
27351         * doc/posix-functions/lseek.texi: Likewise.
27352         * doc/posix-functions/lstat.texi: Likewise.
27353         * doc/posix-functions/mkstemp.texi: Likewise.
27354         * doc/posix-functions/open.texi: Likewise.
27355         * doc/posix-functions/openat.texi: Likewise.
27356         * doc/posix-functions/pread.texi: Likewise.
27357         * doc/posix-functions/pwrite.texi: Likewise.
27358         * doc/posix-functions/scandir.texi: Likewise.
27359         * doc/posix-functions/stat.texi: Likewise.
27360         * doc/posix-functions/tmpfile.texi: Likewise.
27361         * doc/glibc-functions/mkostemp.texi: Likewise.
27362         * doc/glibc-functions/mkostemps.texi: Likewise.
27363         * doc/glibc-functions/mkstemps.texi: Likewise.
27365 2011-07-25  Bruno Haible  <bruno@clisp.org>
27367         fcntl: Move AC_LIBOBJ invocation to module description.
27368         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
27369         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
27371         fcntl: Remove call-in from fchdir.m4.
27372         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
27373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
27375         dup3: Remove potential call-in from fchdir.m4.
27376         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
27377         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
27379         dup2: Move AC_LIBOBJ invocation to module description.
27380         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
27381         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
27382         Don't invoke AC_LIBOBJ.
27383         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
27385         dup2: Remove call-in from fchdir.m4.
27386         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
27387         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
27389         fclose: Move AC_LIBOBJ invocation to module description.
27390         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
27391         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
27392         to 1.
27393         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
27395         fclose: Remove call-in from close.m4.
27396         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
27397         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
27399         close: Move AC_LIBOBJ invocation to module description.
27400         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
27401         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
27402         1.
27403         * modules/close (configure.ac): Invoke AC_LIBOBJ.
27405         close: Remove call-in from fchdir.m4.
27406         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
27407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
27409         open: Move AC_LIBOBJ invocation to module description.
27410         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
27411         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
27412         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
27414         open: Remove call-in from fchdir.m4.
27415         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
27416         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
27418         fchdir: Start to remove gl_REPLACE_* idiom.
27419         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
27420         (gl_FUNC_FCHDIR): Invoke it.
27422 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27424         * lib/ftell.c (ftell): Comment out cast.
27426         close: use gl_REPLACE_FCLOSE only if defined
27427         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
27428         is defined.  The close module doesn't depend on the fclose module
27429         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
27430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
27431         I reproduced the problem with "./gnulib-tool --test close sys_socket".
27433 2011-07-24  Jim Meyering  <meyering@redhat.com>
27435         test-select.h: avoid warning when using gcc's -Wmissing-declarations
27436         * tests/test-select.h (test_function): Declare as "static".
27438 2011-07-24  Bruno Haible  <bruno@clisp.org>
27440         doc: Mention the effects of AC_SYS_LARGEFILE.
27441         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
27442         on this function.
27443         * doc/posix-functions/aio_error.texi: Likewise.
27444         * doc/posix-functions/aio_fsync.texi: Likewise.
27445         * doc/posix-functions/aio_read.texi: Likewise.
27446         * doc/posix-functions/aio_return.texi: Likewise.
27447         * doc/posix-functions/aio_suspend.texi: Likewise.
27448         * doc/posix-functions/aio_write.texi: Likewise.
27449         * doc/posix-functions/fgetpos.texi: Likewise.
27450         * doc/posix-functions/fopen.texi: Likewise.
27451         * doc/posix-functions/freopen.texi: Likewise.
27452         * doc/posix-functions/fsetpos.texi: Likewise.
27453         * doc/posix-functions/fstatvfs.texi: Likewise.
27454         * doc/posix-functions/ftruncate.texi: Likewise.
27455         * doc/posix-functions/ftw.texi: Likewise.
27456         * doc/posix-functions/getrlimit.texi: Likewise.
27457         * doc/posix-functions/glob.texi: Likewise.
27458         * doc/posix-functions/lio_listio.texi: Likewise.
27459         * doc/posix-functions/lockf.texi: Likewise.
27460         * doc/posix-functions/mkstemp.texi: Likewise.
27461         * doc/posix-functions/mmap.texi: Likewise.
27462         * doc/posix-functions/nftw.texi: Likewise.
27463         * doc/posix-functions/openat.texi: Likewise.
27464         * doc/posix-functions/opendir.texi: Likewise.
27465         * doc/posix-functions/posix_fadvise.texi: Likewise.
27466         * doc/posix-functions/posix_fallocate.texi: Likewise.
27467         * doc/posix-functions/pread.texi: Likewise.
27468         * doc/posix-functions/pwrite.texi: Likewise.
27469         * doc/posix-functions/readdir.texi: Likewise.
27470         * doc/posix-functions/readdir_r.texi: Likewise.
27471         * doc/posix-functions/rewinddir.texi: Likewise.
27472         * doc/posix-functions/scandir.texi: Likewise.
27473         * doc/posix-functions/seekdir.texi: Likewise.
27474         * doc/posix-functions/setrlimit.texi: Likewise.
27475         * doc/posix-functions/statvfs.texi: Likewise.
27476         * doc/posix-functions/telldir.texi: Likewise.
27477         * doc/posix-functions/tmpfile.texi: Likewise.
27478         * doc/posix-functions/truncate.texi: Likewise.
27479         * doc/glibc-functions/fallocate.texi: Likewise.
27480         * doc/glibc-functions/fstatfs.texi: Likewise.
27481         * doc/glibc-functions/fts_children.texi: Likewise.
27482         * doc/glibc-functions/fts_read.texi: Likewise.
27483         * doc/glibc-functions/getdirentries.texi: Likewise.
27484         * doc/glibc-functions/mkostemp.texi: Likewise.
27485         * doc/glibc-functions/mkostemps.texi: Likewise.
27486         * doc/glibc-functions/mkstemps.texi: Likewise.
27487         * doc/glibc-functions/preadv.texi: Likewise.
27488         * doc/glibc-functions/pwritev.texi: Likewise.
27489         * doc/glibc-functions/sendfile.texi: Likewise.
27490         * doc/glibc-functions/statfs.texi: Likewise.
27492 2011-07-24  Bruno Haible  <bruno@clisp.org>
27494         doc: Fix typo.
27495         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
27497 2011-07-24  Bruno Haible  <bruno@clisp.org>
27499         doc: Mention fsusage.
27500         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
27502 2011-07-24  Bruno Haible  <bruno@clisp.org>
27504         doc: Mention new glibc headers and functions.
27505         * doc/glibc-headers/gshadow.texi: New file.
27506         * doc/glibc-functions/endsgent.texi: New file.
27507         * doc/glibc-functions/fgetsgent.texi: New file.
27508         * doc/glibc-functions/fgetsgent_r.texi: New file.
27509         * doc/glibc-functions/getsgent.texi: New file.
27510         * doc/glibc-functions/getsgent_r.texi: New file.
27511         * doc/glibc-functions/getsgnam.texi: New file.
27512         * doc/glibc-functions/getsgnam_r.texi: New file.
27513         * doc/glibc-functions/putsgent.texi: New file.
27514         * doc/glibc-functions/setsgent.texi: New file.
27515         * doc/glibc-functions/sgetsgent.texi: New file.
27516         * doc/glibc-functions/sgetsgent_r.texi: New file.
27517         * doc/glibc-functions/malloc_info.texi: New file.
27518         * doc/glibc-functions/preadv.texi: New file.
27519         * doc/glibc-functions/pwritev.texi: New file.
27520         * doc/glibc-functions/register_printf_modifier.texi: New file.
27521         * doc/glibc-functions/register_printf_specifier.texi: New file.
27522         * doc/glibc-functions/register_printf_type.texi: New file.
27523         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
27524         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
27525         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
27526         * doc/glibc-functions/pthread_getname_np.texi: New file.
27527         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
27528         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
27529         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
27530         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
27531         * doc/glibc-functions/pthread_setname_np.texi: New file.
27532         * doc/glibc-functions/pthread_sigqueue.texi: New file.
27533         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
27534         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
27535         * doc/glibc-functions/qsort_r.texi: New file.
27536         * doc/glibc-functions/quick_exit.texi: New file.
27537         * doc/glibc-functions/syncfs.texi: New file.
27538         * doc/gnulib.texi: Include them.
27539         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
27540         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
27541         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
27542         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
27543         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
27544         * doc/glibc-functions/execvpe.texi: Likewise.
27546 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
27548         ftell: don't include <unistd.h>
27549         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
27550         guaranteed to define off_t, and the ftell module depends on the
27551         stdio module.
27553         ftell: do not assume wraparound signed arithmetic
27554         * lib/ftell.c: Include <limits.h>.
27555         (ftell): Don't assume wraparound signed arithmetic.
27557 2011-07-24  Bruno Haible  <bruno@clisp.org>
27559         close: No longer depend on module 'fclose'.
27560         * modules/close (Depends-on): Remove fclose.
27561         * NEWS: Mention the change.
27562         Suggested by Sam Steingold <sds@gnu.org>.
27564 2011-07-24  Bruno Haible  <bruno@clisp.org>
27566         fsusage: Enable large volume support on AIX >= 5.2.
27567         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
27568         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
27569         instead of STAT_STATVFS.
27570         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
27572         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
27573         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
27574         f_blocks field only on MacOS X.
27576         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
27577         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
27578         * modules/fsusage (Depends-on): Add largefile.
27580 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
27582         * README: Modernize discussion of signed integers.
27583         Assuming overflow wraparound is no longer safe.
27584         Mention ones' complement and signed magnitude.
27586 2011-07-22  Bruno Haible  <bruno@clisp.org>
27588         select tests, pselect tests: Refactor.
27589         * tests/test-select.h: New file, extracted from tests/test-select.c.
27590         (select_fn): New type.
27591         (test, do_select, do_select_nowait, do_select_wait, test_tty,
27592         test_connect_first, test_accept_first, test_pair, test_socket_pair,
27593         test_pipe): Add my_select argument.
27594         (test_function): Renamed from main. Add my_select argument.
27595         * tests/test-select.c: Move most code to tests/test-select.h. Include
27596         test-select.h.
27597         * modules/select-tests (Files): Add tests/test-select.h.
27598         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
27599         (my_select, main): New functions.
27600         * modules/pselect-tests (Files): Add tests/test-select.h,
27601         tests/macros.h, tests/signature.h.
27602         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
27603         (configure.ac): Check for <sys/wait.h>.
27605 2011-07-22  Bruno Haible  <bruno@clisp.org>
27607         sys_select tests: Check the signature of FD_*.
27608         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
27609         signature tests from here...
27610         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
27611         here.
27612         * modules/sys_select-tests (Files): Add tests/signature.h.
27614 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
27616         largefile: new module, replacing large-inode
27617         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
27618         * MODULES.html.sh: Add largefile, remove large-inode.
27619         * modules/largefile, m4/largefile.m4: New files.
27620         * modules/large-inode, m4/large-inode.m4: Remove.
27622         fsusage: port to MacOS X 10.7 with 4 TiB file systems
27623         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
27624         implementations that use only 32 bits to count blocks.
27625         On typical hosts with 1024-byte blocks, this fails with file
27626         systems as small as 4 TiB.  Problem reported by Herb Wartens
27627         <http://debbugs.gnu.org/9140> and this should also fix a similar
27628         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
27630         large-inode: New module
27631         * MODULES.html.sh: Add it.
27632         * modules/large-inode, m4/large-inode.m4: New files.
27634         extensions: Enable extensions on MacOS X 10.5 and later.
27635         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
27637 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
27639         file-has-acl: use acl_extended_file_nofollow if available
27640         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
27641         (acl_extended_file): New macro.
27642         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
27643         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
27645 2011-07-21  Bruno Haible  <bruno@clisp.org>
27647         Declare system functions in a way that works with C++.
27648         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
27649         declare fdopendir as extern "C".
27650         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
27651         declare frexpl as extern "C".
27652         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
27653         declare gai_strerror as extern "C".
27654         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
27655         programs, declare gai_strerror as extern "C".
27656         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
27657         declare getlogin_r as extern "C".
27658         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
27659         as extern "C".
27660         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
27661         declare ldexpl as extern "C".
27662         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
27663         as extern "C".
27664         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
27665         program, declare getmntinfo as extern "C".
27666         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
27667         stpncpy as extern "C".
27668         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
27669         program, declare __xpg_strerror_r as extern "C".
27670         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
27671         strndup as extern "C".
27672         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
27673         declare memset and bzero as extern "C".
27674         Reported by Sam Steingold <sds@gnu.org>.
27676 2011-07-12  Jim Meyering  <meyering@redhat.com>
27678         maint.mk: prohibit inclusion of "verify.h" without use
27679         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
27681 2011-07-19  Pádraig Brady  <P@draigBrady.com>
27683         timer-time: A new module to check for timer_settime()
27684         * m4/timer_time.m4: Check for the posix function.
27685         * modules/timer-time: Add the new module.
27686         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
27687         Mention it.
27689 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
27690             Bruno Haible  <bruno@clisp.org>
27692         pthread_sigmask: assume POSIX threads if --avoid=threadlib
27693         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
27694         not defined, assume POSIX threads and look for pthread_sigmask in
27695         $LIBS, without changing $CPPFLAGS.
27697 2011-07-19  Bruno Haible  <bruno@clisp.org>
27699         strstr: Update cross-compilation guess.
27700         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
27701         CPUs, guess no, in view of glibc
27702         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
27703         Suggested by Eric Blake. Reported by Reuben Thomas.
27705 2011-07-19  Pádraig Brady  <P@draigBrady.com>
27707         getopt-gnu: suppress core dumps from detection code
27708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
27709         to suppress core dumps that may well occur on glibc systems.
27710         * modules/getopt-gnu: Depend on nocrash.
27712 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
27714         pthread_sigmask: ensure usleep is declared
27715         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
27716         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
27718 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27720         doc: Document NonStop portability issues.
27721         * doc/posix-functions/sigaction.texi (sigaction):
27722         * doc/posix-headers/signal.texi (signal.h):
27723         Document NonStop.  See Joachim Schmitz in
27724         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
27726 2011-07-15  Bruno Haible  <bruno@clisp.org>
27728         ffsl, ffsll: Avoid unportable behaviour.
27729         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
27731 2011-07-15  Bruno Haible  <bruno@clisp.org>
27733         ffs: More tests.
27734         * tests/test-ffs.c (NBITS): New macro.
27735         (main): Add more tests.
27736         * tests/test-ffsl.c (NBITS): New macro.
27737         (main): Add more tests.
27738         * tests/test-ffsll.c (NBITS): New macro.
27739         (main): Add more tests.
27741 2011-07-15  Eric Blake  <eblake@redhat.com>
27743         ffsl, ffsll: new modules
27744         * modules/ffsl: New file.
27745         * modules/ffsll: Likewise.
27746         * m4/ffsl.m4: Likewise.
27747         * m4/ffsll.m4: Likewise.
27748         * lib/ffsl.c: Likewise.
27749         * lib/ffsl.h: Likewise.
27750         * lib/ffsll.c: Likewise.
27751         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
27752         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
27753         * modules/string (Makefile.am): Substitute witnesses.
27754         * lib/strings.in.h (ffsl, ffsll): Declare.
27755         * modules/ffsl-tests: New test file.
27756         * modules/ffsll-tests: Likewise.
27757         * tests/test-ffsl.c: Likewise.
27758         * tests/test-ffsll.c: Likewise.
27759         * MODULES.html.sh (Integer arithmetic functions): Mention it.
27760         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
27761         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
27763         ffs: fix m4 prerequisite
27764         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
27766         ffs: avoid undefined behavior
27767         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
27768         * tests/test-ffs.c (naive, main): Avoid signed shifts.
27769         Reported by Bruno Haible.
27771 2011-07-12  Bruno Haible  <bruno@clisp.org>
27773         pthread_sigmask: Rely on module 'threadlib'.
27774         * modules/pthread_sigmask (Depends-on): Add threadlib.
27775         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
27776         is defined.
27778 2011-07-12  Bruno Haible  <bruno@clisp.org>
27780         regex: Depend on module 'strcase'.
27781         * modules/regex (Depends-on): Add strcase, for strcasecmp().
27783 2011-07-12  Jim Meyering  <meyering@redhat.com>
27785         warn-on-use: fix typo in file name
27786         * modules/snippet/warn-on-use (Files): Correct file name:
27787         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
27789 2011-07-12  Bruno Haible  <bruno@clisp.org>
27791         strings: Document module.
27792         * doc/posix-headers/strings.texi: Mention module 'strings'.
27794 2011-07-12  Bruno Haible  <bruno@clisp.org>
27796         Rename module '_Noreturn' to 'snippet/_Noreturn'.
27797         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
27798         (Files, Makefile.am): Update.
27799         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
27800         * modules/stdlib (Depends-on): Update.
27802 2011-07-12  Bruno Haible  <bruno@clisp.org>
27804         * NEWS: Mention the changes.
27806         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
27807         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
27808         (Files, Makefile.am): Update.
27809         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
27810         * modules/arpa_inet (Depends-on): Update.
27811         * modules/ctype (Depends-on): Update.
27812         * modules/dirent (Depends-on): Update.
27813         * modules/fcntl-h (Depends-on): Update.
27814         * modules/glob (Depends-on): Update.
27815         * modules/iconv-h (Depends-on): Update.
27816         * modules/inttypes-incomplete (Depends-on): Update.
27817         * modules/langinfo (Depends-on): Update.
27818         * modules/locale (Depends-on): Update.
27819         * modules/math (Depends-on): Update.
27820         * modules/netdb (Depends-on): Update.
27821         * modules/poll-h (Depends-on): Update.
27822         * modules/pty (Depends-on): Update.
27823         * modules/search (Depends-on): Update.
27824         * modules/signal (Depends-on): Update.
27825         * modules/spawn (Depends-on): Update.
27826         * modules/stdio (Depends-on): Update.
27827         * modules/stdlib (Depends-on): Update.
27828         * modules/string (Depends-on): Update.
27829         * modules/strings (Depends-on): Update.
27830         * modules/sys_file (Depends-on): Update.
27831         * modules/sys_ioctl (Depends-on): Update.
27832         * modules/sys_select (Depends-on): Update.
27833         * modules/sys_socket (Depends-on): Update.
27834         * modules/sys_stat (Depends-on): Update.
27835         * modules/sys_time (Depends-on): Update.
27836         * modules/sys_times (Depends-on): Update.
27837         * modules/sys_utsname (Depends-on): Update.
27838         * modules/sys_wait (Depends-on): Update.
27839         * modules/termios (Depends-on): Update.
27840         * modules/time (Depends-on): Update.
27841         * modules/unistd (Depends-on): Update.
27842         * modules/wchar (Depends-on): Update.
27843         * modules/wctype-h (Depends-on): Update.
27844         * MODULES.html.sh (Support for building libraries and executables):
27845         Update.
27847         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
27848         * modules/snippet/unused-parameter: Renamed from
27849         modules/unused-parameter.
27850         (Files, Makefile.am): Update.
27851         * build-aux/snippet/unused-parameter.h: Renamed from
27852         build-aux/unused-parameter.h.
27853         * modules/selinux-h (Depends-on): Update.
27854         * modules/unistr/base (Depends-on): Update.
27855         * MODULES.html.sh (Core language properties): Update.
27857         Rename module 'link-warning' to 'snippet/link-warning'.
27858         * modules/snippet/link-warning: Renamed from modules/link-warning.
27859         (Files, Makefile.am): Update.
27860         * build-aux/snippet/link-warning.h: Renamed from
27861         build-aux/link-warning.h.
27862         * MODULES.html.sh (Support for building libraries and executables):
27863         Update.
27865         Rename module 'c++defs' to 'snippet/c++defs'.
27866         * modules/snippet/c++defs: Renamed from modules/c++defs.
27867         (Files, Makefile.am): Update.
27868         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
27869         * modules/arpa_inet (Depends-on): Update.
27870         * modules/ctype (Depends-on): Update.
27871         * modules/dirent (Depends-on): Update.
27872         * modules/fcntl-h (Depends-on): Update.
27873         * modules/glob (Depends-on): Update.
27874         * modules/iconv-h (Depends-on): Update.
27875         * modules/langinfo (Depends-on): Update.
27876         * modules/locale (Depends-on): Update.
27877         * modules/math (Depends-on): Update.
27878         * modules/netdb (Depends-on): Update.
27879         * modules/poll-h (Depends-on): Update.
27880         * modules/pty (Depends-on): Update.
27881         * modules/search (Depends-on): Update.
27882         * modules/signal (Depends-on): Update.
27883         * modules/spawn (Depends-on): Update.
27884         * modules/stdio (Depends-on): Update.
27885         * modules/stdlib (Depends-on): Update.
27886         * modules/string (Depends-on): Update.
27887         * modules/strings (Depends-on): Update.
27888         * modules/sys_ioctl (Depends-on): Update.
27889         * modules/sys_select (Depends-on): Update.
27890         * modules/sys_socket (Depends-on): Update.
27891         * modules/sys_stat (Depends-on): Update.
27892         * modules/sys_time (Depends-on): Update.
27893         * modules/sys_wait (Depends-on): Update.
27894         * modules/termios (Depends-on): Update.
27895         * modules/time (Depends-on): Update.
27896         * modules/unistd (Depends-on): Update.
27897         * modules/wchar (Depends-on): Update.
27898         * modules/wctype-h (Depends-on): Update.
27900         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
27901         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
27902         (Files, Makefile.am): Update.
27903         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
27904         * modules/argv-iter (Depends-on): Update.
27905         * modules/arpa_inet (Depends-on): Update.
27906         * modules/dirent (Depends-on): Update.
27907         * modules/fcntl-h (Depends-on): Update.
27908         * modules/fnmatch (Depends-on): Update.
27909         * modules/getopt-posix (Depends-on): Update.
27910         * modules/glob (Depends-on): Update.
27911         * modules/iconv-h (Depends-on): Update.
27912         * modules/inttypes-incomplete (Depends-on): Update.
27913         * modules/locale (Depends-on): Update.
27914         * modules/math (Depends-on): Update.
27915         * modules/netdb (Depends-on): Update.
27916         * modules/search (Depends-on): Update.
27917         * modules/signal (Depends-on): Update.
27918         * modules/spawn (Depends-on): Update.
27919         * modules/stdio (Depends-on): Update.
27920         * modules/stdlib (Depends-on): Update.
27921         * modules/string (Depends-on): Update.
27922         * modules/strings (Depends-on): Update.
27923         * modules/sys_socket (Depends-on): Update.
27924         * modules/sys_stat (Depends-on): Update.
27925         * modules/sys_time (Depends-on): Update.
27926         * modules/sys_times (Depends-on): Update.
27927         * modules/sys_utsname (Depends-on): Update.
27928         * modules/time (Depends-on): Update.
27929         * modules/unistd (Depends-on): Update.
27930         * modules/wchar (Depends-on): Update.
27931         * MODULES.html.sh (Support for building libraries and executables):
27932         Update.
27934 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
27936         Improvements on _Noreturn and related modules.
27938         modules/_Exit-tests: test _Noreturn too
27939         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
27940         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
27941         (main): Use them.
27943         stdnoreturn, stdnoreturn-tests: remove modules
27944         They're not needed here and a bit premature for use elsewhere.  See
27945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
27946         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
27947         * tests/test-stdnoreturn.c: Remove files.
27948         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
27949         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
27950         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
27951         and using noreturn.
27952         * modules/openat, modules/sigpipe-die, modules/xalloc:
27953         * modules/xmemdup0, modules/xstrtol:
27954         Remove dependency on stdnoreturn.
27956         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
27957         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
27958         Reparenthesize to avoid GCC warning.
27959         Support Microsoft's syntax.
27960         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
27962         _Noreturn-tests: remove module
27963         * modules/_Noreturn-tests: Remove.
27964         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
27965         * tests/test-_Noreturn.c: Remove.
27966         * tests/test-stdnoreturn.c: Merge from the old
27967         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
27969 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
27971         _Noreturn, stdnoreturn, and related modules.
27973         * top/maint.mk: Adjust to new noreturn support.
27974         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
27975         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
27977         xalloc: use stdnoreturn.h
27978         * lib/xalloc.h: Include <stdnoreturn.h>.
27979         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
27980         * modules/xalloc (Depends-on): Add stdnoreturn.
27982         xstrtol: use stdnoreturn.h
27983         * lib/xstrtol.h: Include <stdnoreturn.h>.
27984         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
27985         * modules/xstrtol (Depends-on): Add stdnoreturn.
27987         xmemdup0: use stdnoreturn.h
27988         * lib/xmemdup0.h: Include <stdnoreturn.h>.
27989         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
27990         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
27992         sigpipe-die: use stdnoreturn.h
27993         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
27994         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
27995         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
27997         openat: use stdnoreturn.h
27998         * lib/openat.h: Include <stdnoreturn.h>.
27999         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
28000         * modules/openat (Depends-on): Add stdnoreturn.
28002         * lib/openat-die.c (openat_save_fail): Modernize comment.
28004         * lib/xalloc-die.c (xalloc_die): Modernize comment.
28006         * lib/glthread/thread.h: Modernize comment.
28008         obstack: use _Noreturn
28009         * lib/obstack.c (__attribute__): Remove macro.
28010         (print_and_abort): Use _Noreturn.
28012         c-stack: use _Noreturn
28013         * lib/c-stack.c (die, overflow_handler, segv_handler):
28014         Use _Noreturn rather than __attribute__((noreturn)).
28016         argmatch-tests, exclude_tests: use _Noreturn
28017         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
28018         Remove.
28019         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
28021         stdlib: use _Noreturn
28022         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
28023         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
28024         * modules/stdlib (Depends-on): Add _Noreturn.
28025         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
28027         stdnoreturn-tests: new module
28028         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
28030         stdnoreturn: new module
28031         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
28032         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
28034         _Noreturn-tests: new module
28035         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
28037         _Noreturn: new module
28038         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
28039         New section, mentioning it.
28040         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
28042         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
28044 2011-07-11  Eric Blake  <eblake@redhat.com>
28046         ffs: new module
28047         * modules/ffs: New file.
28048         * m4/ffs.m4: Likewise.
28049         * lib/ffs.c: Likewise.
28050         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
28051         * modules/strings (Makefile.am): Substitute witness.
28052         (Depends-on): Add c++defs.
28053         * lib/strings.in.h (ffs): Declare.
28054         * modules/ffs-tests: New test file.
28055         * tests/test-ffs.c: Test new module.
28056         * MODULES.html.sh (Integer arithmetic functions): Mention it.
28057         * doc/posix-functions/ffs.texi (ffs): Likewise.
28059         regex: avoid compiler warning
28060         * lib/regex.c (includes): Include <strings.h>, for use of
28061         strcasecmp in regcomp.c.
28062         Reported by Joachim Schmitz.
28064 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28066         stdint: respect system's intmax_t if INTMAX_MAX
28067         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
28068         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
28069         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
28070         long but int64_t is long long, and where we will clash with the
28071         system intmax_t if we override it.  See
28072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
28073         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
28074         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
28075         similarly for UINTMAX_C.
28077 2011-07-08  Bruno Haible  <bruno@clisp.org>
28079         pthread_sigmask tests: Avoid a compiler warning.
28080         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
28081         non-zero.
28083         sigprocmask tests: A better way to avoid a compiler warning.
28084         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
28085         (main): Complain if system() returns non-zero.
28086         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
28088 2011-07-08  Bruno Haible  <bruno@clisp.org>
28090         pthread_sigmask: Work around IRIX bug.
28091         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
28092         bug.
28093         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
28094         there may be unblocked pending signals.
28095         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
28097 2011-07-08  Bruno Haible  <bruno@clisp.org>
28099         pthread_sigmask: Work around Cygwin bug.
28100         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
28101         bug.
28102         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
28103         the system's pthread_sigmask function.
28104         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
28106 2011-07-08  Bruno Haible  <bruno@clisp.org>
28108         pthread_sigmask: Work around bug in single-threaded implementation.
28109         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
28110         FreeBSD, HP-UX, Solaris bug.
28111         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
28112         * lib/pthread_sigmask.c: Include <stddef.h>.
28113         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
28114         the system's pthread_sigmask function.
28115         * modules/pthread_sigmask (configure.ac): Invoke
28116         gl_PREREQ_PTHREAD_SIGMASK.
28117         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
28118         HP-UX, Solaris.
28120 2011-07-08  Eric Blake  <eblake@redhat.com>
28122         test-sigprocmask: avoid compiler warning
28123         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
28124         * tests/test-sigprocmask.c (main): Use it to silence warning.
28125         Reported by Jim Meyering.
28127         test-snprintf: avoid compiler warning
28128         * tests/test-snprintf.c (main): Avoid shadowed declaration.
28129         * tests/test-vsnprintf.c (main): Likewise.
28130         Reported by Jim Meyering.
28132 2011-07-08  Bruno Haible  <bruno@clisp.org>
28134         Tests for module 'pthread_sigmask'.
28135         * modules/pthread_sigmask-tests: New file.
28136         * tests/test-pthread_sigmask1.c: New file, based on
28137         tests/test-sigprocmask.c.
28138         * tests/test-pthread_sigmask2.c: New file.
28140 2011-07-08  Jim Meyering  <meyering@redhat.com>
28142         test-getopt.h: avoid warning about an unused variable
28143         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
28145 2011-07-07  Jim Meyering  <meyering@redhat.com>
28147         maint: reduce list of files exempt from sc_prohibit_leading_TABs
28148         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
28149         now that it no longer contains leading TABs.
28150         Remove unused "url=FIXME" statement.
28152 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28154         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
28155         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28156         When gl_THREADLIB is not in use, assume that the POSIX sematics
28157         are desired.  This is better for Emacs, which uses POSIX semantics
28158         on GNUish and/or POSIXish platforms, and does not use threads at
28159         all otherwise.
28161         pthread_sigmask: fix typo when testing for libraries
28162         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28163         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
28165 2011-07-08  Eric Blake  <eblake@redhat.com>
28167         fts: introduce FTS_NOATIME
28168         * lib/fts_.h (FTS_NOATIME): New bit flag.
28169         (FTS_OPTIONMASK): Adjust.
28170         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
28171         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
28173 2011-07-08  Bruno Haible  <bruno@clisp.org>
28175         Tests for module 'thread'.
28176         * modules/thread-tests: New file.
28177         * tests/test-thread_self.c: New file.
28178         * tests/test-thread_create.cc: New file.
28180 2011-07-08  Bruno Haible  <bruno@clisp.org>
28182         thread: Avoid gcc warnings when using gl_thread_self().
28183         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
28184         'void *'.
28185         (gl_thread_self_pointer): Update.
28187 2011-07-07  Bruno Haible  <bruno@clisp.org>
28189         signal-c++-tests: Check declaration of pthread_sigmask.
28190         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
28191         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
28192         $(LIB_PTHREAD_SIGMASK).
28194 2011-07-07  Bruno Haible  <bruno@clisp.org>
28196         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
28197         * lib/signal.in.h (pthread_sigmask): Override if
28198         REPLACE_PTHREAD_SIGMASK is 1.
28199         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28200         REPLACE_PTHREAD_SIGMASK.
28201         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
28202         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
28203         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
28204         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
28205         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
28207 2011-07-07  Bruno Haible  <bruno@clisp.org>
28209         pthread_sigmask: Ensure declaration in <signal.h>.
28210         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
28211         include <pthread.h>.
28212         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
28213         problem.
28215 2011-07-07  Bruno Haible  <bruno@clisp.org>
28217         pthread_sigmask: Document the module.
28218         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
28220 2011-07-07  Bruno Haible  <bruno@clisp.org>
28222         pthread_sigmask: Follow gnulib conventions.
28223         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
28224         gl_PTHREAD_SIGMASK.
28225         * modules/pthread_sigmask (configure.ac): Update.
28227 2011-07-07  Bruno Haible  <bruno@clisp.org>
28229         pthread_sigmask: Make declaration C++ safe.
28230         * lib/signal.in.h: In two special conditions, just do an #include_next.
28231         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
28232         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
28233         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28234         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
28235         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
28236         not REPLACE_PTHREAD_MASK.
28237         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
28238         not REPLACE_PTHREAD_MASK.
28239         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
28241 2011-07-07  Bruno Haible  <bruno@clisp.org>
28243         pthread_sigmask: Fix return value.
28244         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
28245         * lib/pthread_sigmask.c: New file.
28246         * modules/pthread_sigmask (Files): Add it.
28247         (configure.ac): Invoke AC_LIBOBJ.
28249 2011-07-07  Eric Blake  <eblake@redhat.com>
28251         getopt: more portable argv creation
28252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
28253         const, use char arrays rather than strings.
28254         Suggested by Paul Eggert.
28256 2011-07-07  Bruno Haible  <bruno@clisp.org>
28258         Tests for module 'sigprocmask'.
28259         * modules/sigprocmask-tests: New file.
28260         * tests/test-sigprocmask.c: New file.
28262 2011-07-07  Bruno Haible  <bruno@clisp.org>
28264         float tests: Tweak.
28265         * tests/test-float.c (main): Tweak skip message.
28267 2011-07-07  Eric Blake  <eblake@redhat.com>
28269         getopt: avoid compiler warning during configure
28270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
28271         assigning string literals to non-const pointer.
28273         getopt-gnu: avoid crash in glibc getopt
28274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
28275         * tests/test-getopt.h (test_getopt): Enhance test.
28276         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28277         * doc/posix-functions/getopt.texi (getopt): Document it.
28278         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28279         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28280         Likewise.
28282 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
28284         getopt: handle W; without long options in getopt [BZ #12922]
28285         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
28286         but no long options are defined, just return 'W'.
28288 2011-07-07  Bruno Haible  <bruno@clisp.org>
28290         Avoid literal tabs.
28291         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
28292         variable containing a tab instead of a literal tab.
28293         Reported by Jim Meyering.
28295 2011-07-07  Bruno Haible  <bruno@clisp.org>
28297         Comments.
28298         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
28300 2011-07-06  Bruno Haible  <bruno@clisp.org>
28302         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
28303         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
28304         <winsock2.h>.
28305         (rpl_fd_isset, FD_ISSET): New definitions, copied from
28306         lib/sys_socket.in.h.
28307         (close, gethostname): Hide declarations from <winsock2.h>.
28308         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28309         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
28310         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
28311         (select): Don't override if gnulib's <sys/select.h> was already
28312         included.
28313         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
28314         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
28315         setsockopt, shutdown, select): Tweak indentation.
28317 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
28319         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
28320         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
28321         in an application that does not use the sys_select module.
28323 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
28325         poll: do not return 0 on timeout=-1
28326         * lib/poll.c: Loop with yield if no events occurred.
28328 2011-07-06  Eric Blake  <eblake@redhat.com>
28330         pthread_sigmask: always replace when not using pthread
28331         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
28332         replacement when using some threading other than pthread.  Fix
28333         logic bug.
28335 2011-07-06  Bruno Haible  <bruno@clisp.org>
28337         Comments.
28338         * m4/printf.m4: Update comments about mingw.
28340 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
28342         sys_select: define sigset_t more portably
28343         * lib/sys_select.in.h: Always include <sys/types.h>, since
28344         we now need sigset_t and mingw defines it there.
28345         Include <signal.h> before split inclusion guard, to avoid
28346         mishaps on Solaris, whose <signal.h> eventually includes us.
28347         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
28348         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
28349         which come from ...
28350         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
28351         gl_CHECK_TYPE_SIGSET_T.
28352         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
28353         does the real work.
28354         * modules/sys_select (Depends-on): Add 'signal'.
28356         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
28357         Suggested by Bruno Haible.
28359         pselect: Use pthread_sigmask, not sigprocmask.
28360         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
28361         multithreaded apps better than sigprocmask does.
28362         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
28363         sigprocmask directly.
28365 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28367         * lib/pselect.c (pselect): Use plain name, without "rpl_".
28368         Don't #undef,  since we don't need any underlying pselect.
28369         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
28370         (Depends-on): Add select.
28371         (Link): Add $(LIBSOCKET).
28372         These changes suggested by Bruno Haible.
28374         pselect: document better
28375         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
28376         * doc/posix-functions/pselect.texi (pselect): Document new module.
28378         pthread_sigmask: new module
28379         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
28380         * doc/posix-functions/pthread_sigmask.texi: Document new module.
28381         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
28382         This is done only as a macro; I don't know how well that'll
28383         work for C++.  Move <sys/types.h> include before the include_next,
28384         to avoid mishap on Solaris.
28385         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
28386         * modules/signal (Makefile.am): Substitute the check's results.
28387         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
28389         test-pselect: new module
28390         * modules/pselect-tests, tests/test-pselect.c: New files.
28391         * tests/test-select.c, tests/test-sys_select-c++.cc:
28392         If TEST_PSELECT is defined, test pselect instead of testing select.
28394         * tests/test-sys_select.c (sigset_t): Test for it, too.
28395         Suggested by Bruno Haible.
28397 2011-07-05  Eric Blake  <eblake@redhat.com>
28399         snprintf: guarantee %1$d, for libintl
28400         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
28401         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
28402         * doc/posix-functions/snprintf.texi (snprintf): Update.
28403         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28404         * tests/test-snprintf.c (main): Enhance test.
28405         * tests/test-vsnprintf.c (main): Likewise.
28407 2011-07-05  Jim Meyering  <meyering@redhat.com>
28409         maint: exempt stdio-read.c and stdio-write.c from the cppi check
28410         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
28411         per Bruno's request, to accommodate this idiom (no space after "#")
28412         even when the function is inside an #if block:
28413         char *
28414         gets (char *s)
28415         #undef gets
28416         {
28417           ...
28418         }
28420 2011-07-04  Jim Meyering  <meyering@redhat.com>
28422         maint: indent with spaces, not TABs, and add a rule to check this
28423         * tests/test-userspec.c: Indent with spaces, not TABs.
28424         * tests/test-argp.c: Likewise.
28425         * tests/test-c-stack2.sh: Likewise.
28426         * tests/test-parse-duration.sh: Likewise
28427         * m4/strtod.m4: Likewise.
28428         * m4/alloca.m4: Likewise.
28429         * m4/pselect.m4: Likewise.
28430         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
28432 2011-07-03  Jim Meyering  <meyering@redhat.com>
28434         maint.mk: correct omissions in prohibit_argmatch_without_use check
28435         This rule would mistakenly report that argmatch.h is included without
28436         use even when both the argmatch and invalid_arg macro were used.
28437         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
28438         of argmatch and invalid_arg.
28440 2011-07-03  Bruno Haible  <bruno@clisp.org>
28442         Comments about EINTR.
28443         * lib/safe-read.h: Explain the purpose of this module.
28444         * lib/safe-write.h: Likewise.
28445         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
28446         module.
28447         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
28448         module.
28449         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28451 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
28453         xnanosleep: Rewrite to use new dtotimespec module.
28454         It has the conversion code that used to be in xnanosleep.
28455         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
28456         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
28457         (TIME_T_MAX): Remove.
28458         (xnanosleep): Rewrite in terms of dtotimespec.
28459         * modules/xnanosleep (Depends-on): Add dtotimespec.
28460         Remove intprops, stdbool.
28462         timespec-add, timespec-sub: new modules
28463         * lib/timespec.h (timespec_add, timespec_sub): New decls.
28464         * lib/timespec-add.c, lib/timespec-sub.c:
28465         * modules/timespec-add, modules/timespec-sub: New files.
28467         dtotimespec: new module
28468         * lib/timespec.h (dtotimespec): New decl.
28469         * lib/dtotimespec.c, modules/dtotimespec: New files.
28471         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
28473         pselect: new module
28474         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
28475         (pselect): New decls.
28476         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
28477         since the standard pselect decl uses 'restrict'.
28478         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
28479         HAVE_PSELECT, REPLACE_PSELECT.
28480         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
28481         HAVE_PSELECT, REPLACE_PSELECT.
28482         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
28484         sys_select: don't depend on sys_socket
28485         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
28486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
28487         This fix works on GNU and GNU-like platforms, but has not been tested
28488         on native Windows.
28489         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
28490         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
28491         gl_HEADER_SYS_SOCKET.
28492         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
28493         gl_PREREQ_SYS_H_WINSOCK2.
28495 2011-06-29  Eric Blake  <eblake@redhat.com>
28497         pipe2: fix C89 compile problem
28498         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
28499         Reported by Bruno Haible.
28501         pipe, pipe2: don't corrupt fd on error
28502         * lib/pipe.c (pipe): Leave fd unchanged on error.
28503         * lib/pipe2.c (pipe2): Likewise.
28504         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
28505         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28507 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
28509         mmap-anon: do not use regular expressions inadvertently
28510         * m4/mmap-anon.m4: Remove trailing period from strings sought
28511         in the output.
28513 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
28515         nanosleep: fix integer overflow problem
28516         * lib/nanosleep.c (my_usleep): Don't assume signed integer
28517         arithmetic wraps around on overflow.
28519         nanosleep: simplify carrying
28520         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
28521         first call to the underyling nanosleep, not for the last one.
28522         This doesn't fix any bugs, but it simplifies the computation of
28523         the remaining delay.  Found while auditing integer overflow issues.
28525         dup2: remove test for existence of fcntl
28526         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
28527         "#if HAVE_FCNTL", in the configure-time test program.
28528         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
28529         and therefore speeds up "configure" a bit.  Found while
28530         adding the dup2 module to Emacs.
28532 2011-06-24  Eric Blake  <eblake@redhat.com>
28534         maint.mk: enhance useless header checks
28535         * top/maint.mk (_sc_header_without_use): Check both include
28536         styles.
28537         (sc_prohibit_assert_without_use)
28538         (sc_prohibit_close_stream_without_use)
28539         (sc_prohibit_getopt_without_use)
28540         (sc_prohibit_quotearg_without_use)
28541         (sc_prohibit_quote_without_use)
28542         (sc_prohibit_long_options_without_use)
28543         (sc_prohibit_inttostr_without_use)
28544         (sc_prohibit_ignore_value_without_use)
28545         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
28546         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
28547         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
28548         (sc_prohibit_hash_pjw_without_use)
28549         (sc_prohibit_safe_read_without_use)
28550         (sc_prohibit_argmatch_without_use)
28551         (sc_prohibit_canonicalize_without_use)
28552         (sc_prohibit_root_dev_ino_without_use)
28553         (sc_prohibit_openat_without_use)
28554         (sc_prohibit_c_ctype_without_use)
28555         (sc_prohibit_signal_without_use)
28556         (sc_prohibit_stdio--_without_use)
28557         (sc_prohibit_stdio-safer_without_use)
28558         (sc_prohibit_strings_without_use)
28559         (sc_prohibit_intprops_without_use)
28560         (sc_prohibit_stddef_without_use)
28561         (sc_prohibit_xfreopen_without_use): Update clients.
28563 2011-06-24  Jim Meyering  <meyering@redhat.com>
28565         syntax-check: keep one maint.mk rule in sync with its header
28566         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
28567         of the bug Eric has just fixed, with today's commit 25e4c2ec.
28568         I prefer to avoid temporary files here, so use <(...), but that
28569         is not supported by /bin/sh, so...
28570         (SHELL): Define to /bin/bash.
28572 2011-06-24  Eric Blake  <eblake@redhat.com>
28574         maint.mk: update sc_prohibit_intprops_without_use
28575         * top/maint.mk (_intprops_names): Match recent changes.
28577 2011-06-24  Bruno Haible  <bruno@clisp.org>
28579         strerror-override: No-op tweak.
28580         * lib/strerror-override.h (strerror_override): Reorder conditions,
28581         for consistency with lib/strerror-override.c.
28583 2011-06-23  Eric Blake  <eblake@redhat.com>
28585         maint.mk: test further PATH_MAX issues
28586         * top/maint.mk (sc_prohibit_path_max_array): Rename...
28587         (sc_prohibit_path_max_allocation): ...and also test alloca.
28588         Suggested by Jim Meyering.
28590 2011-06-22  Eric Blake  <eblake@redhat.com>
28592         maint.mk: add syntax-check to avoid char[PATH_MAX]
28593         * top/maint.mk (sc_prohibit_path_max_array): New rule.
28595         stat: be robust to PATH_MAX definition
28596         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
28597         * modules/stat (Depends-on): Add verify.
28599         link: work around IRIX bug
28600         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
28601         * lib/link.c (rpl_link): Work around it.
28602         * tests/test-link.h (test_link): Enhance test.
28603         * doc/posix-functions/link.texi (link): Document the bug.
28605         getopt: silence clang warning
28606         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
28607         dereference.
28608         Reported by Gustavo Martin Domato.
28610 2011-06-22  Jim Meyering  <meyering@redhat.com>
28612         bootstrap: do not insert a blank line into each .gitignore file
28613         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
28615 2011-06-21  Eric Blake  <eblake@redhat.com>
28617         perror: test for output mismatch
28618         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
28619         perror on IRIX.
28621         strerror_r: fix OpenBSD behavior on out-of-range
28622         * lib/strerror_r.c (strerror_r): Always use maximal string.
28623         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
28625         strerror_r: fix OpenBSD behavior on 0
28626         * lib/strerror-override.c (strerror_override): Also override 0
28627         when needed.
28628         * lib/strerror-override.h (strerror_override): Likewise.
28629         * lib/strerror.c (strerror): Simplify, now that 0 override is done
28630         earlier.
28631         * lib/strerror_r.c (strerror_r): Likewise.
28632         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
28633         behavior...
28634         (gl_FUNC_STRERROR_0): ...into new macro.
28635         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
28636         is overridden.
28637         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
28638         * modules/strerror-override (Files): Add strerror.m4.
28639         (configure.ac): Also provide override for 0 when needed.
28640         * doc/posix-functions/strerror.texi (strerror): Document this.
28641         * doc/posix-functions/perror.texi (perror): Likewise.
28643         perror: adjust array size
28644         * modules/perror (Depends-on): Add strerror-override.
28645         * lib/perror.c (perror): Use it to avoid magic number.
28647         strerror-override: reduce size
28648         * lib/strerror-override.c (strerror_override): Use fewer lines.
28650 2011-06-20  Bruno Haible  <bruno@clisp.org>
28652         pathmax: Ensure correct value for PATH_MAX on HP-UX.
28653         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
28655 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
28657         alloca: port to compilers that can optimize like GCC 4.6.0
28658         * lib/alloca.c (find_stack_direction): New signature, taken from
28659         Autoconf git.  This works with GCC 4.6.0.  This code should never
28660         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
28661         be used with other compilers that optimize as well as GCC 4.6.0 does.
28662         (alloca): Adjust to new signature.
28663         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
28664         New macro, which patches Autoconf in a similar way.
28666         c-stack: stop worrying about stack direction
28667         * lib/c-stack.c (find_stack_direction): Remove.
28668         (segv_handler): Don't worry about stack direction growth, as it's
28669         too much of a pain to configure this correctly, given how compilers
28670         are optimizing-away our stack-growth detection code.  Instead, assume
28671         that any access to just before or just after the stack is OK.
28672         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
28673         Don't require AC_FUNC_ALLOCA; no longer needed.
28675 2011-06-20  Eric Blake  <eblake@redhat.com>
28677         test-stat: don't allocate PATH_MAX bytes
28678         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
28679         PATH_MAX-sized buffer.
28680         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
28681         * modules/stat-tests (Depends-on): Likewise.
28682         * tests/test-fstatat.c (includes): Drop pathmax.h.
28683         * tests/test-stat.c (includes): Likewise.
28684         Reported by Bruno Haible.
28686 2011-06-20  Bruno Haible  <bruno@clisp.org>
28688         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
28689         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
28690         * lib/float.c: New file.
28691         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
28692         REPLACE_FLOAT_LDBL.
28693         * modules/float (Files): Add lib/float.c.
28694         (configure.ac): Invoke AC_LIBOBJ.
28695         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
28697 2011-06-20  Bruno Haible  <bruno@clisp.org>
28699         Tests for module 'float'.
28700         * modules/float-tests: New file.
28701         * tests/test-float.c: New file.
28703 2011-06-19  Bruno Haible  <bruno@clisp.org>
28705         isinf: Coding style.
28706         * lib/isinf.c: Use GNU coding style.
28708 2011-06-19  Bruno Haible  <bruno@clisp.org>
28710         linkat test: Avoid test failure on AIX 7.1.
28711         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
28712         * tests/test-link.h (test_link): Likewise.
28714 2011-06-19  Bruno Haible  <bruno@clisp.org>
28716         pread test: Avoid test failure on OpenBSD 4.9.
28717         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
28719 2011-06-19  Bruno Haible  <bruno@clisp.org>
28721         sprintf-posix: Fix test failure on AIX 7.1.
28722         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
28723         * doc/posix-functions/dprintf.texi: Mention limited precision problem
28724         on AIX.
28725         * doc/posix-functions/fprintf.texi: Likewise.
28726         * doc/posix-functions/printf.texi: Likewise.
28727         * doc/posix-functions/snprintf.texi: Likewise.
28728         * doc/posix-functions/sprintf.texi: Likewise.
28729         * doc/posix-functions/vdprintf.texi: Likewise.
28730         * doc/posix-functions/vfprintf.texi: Likewise.
28731         * doc/posix-functions/vprintf.texi: Likewise.
28732         * doc/posix-functions/vsnprintf.texi: Likewise.
28733         * doc/posix-functions/vsprintf.texi: Likewise.
28735 2011-06-19  Bruno Haible  <bruno@clisp.org>
28737         roundl-ieee: Fix test failure on AIX 7.1.
28738         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
28739         * doc/posix-functions/roundl.texi: Mention problem with negative
28740         arguments.
28742 2011-06-19  Bruno Haible  <bruno@clisp.org>
28744         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
28745         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
28746         * doc/posix-functions/round.texi: Mention problem with negative
28747         arguments.
28748         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
28750 2011-06-19  Bruno Haible  <bruno@clisp.org>
28752         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
28753         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
28754         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
28755         * doc/posix-functions/roundf.texi: Mention problem with negative
28756         arguments.
28757         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
28759 2011-06-19  Bruno Haible  <bruno@clisp.org>
28761         ceilf-ieee: Work around bug on MacOS X 10.5.
28762         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
28764         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
28765         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
28766         IEEE compliant, avoid compiler optimizations.
28767         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
28768         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28769         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
28770         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28771         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28772         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28773         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28774         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28775         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28776         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
28778 2011-06-19  Bruno Haible  <bruno@clisp.org>
28780         ceilf-ieee: Work around bug on AIX 7.1.
28781         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
28782         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
28784 2011-06-19  Bruno Haible  <bruno@clisp.org>
28786         ceil-ieee: Work around bug on AIX 7.1.
28787         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
28788         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
28790 2011-06-18  Bruno Haible  <bruno@clisp.org>
28792         fsync test: Avoid test failure on MacOS X and AIX.
28793         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
28794         EINVAL.
28796 2011-06-18  Bruno Haible  <bruno@clisp.org>
28798         openat, fdopendir tests: Fix link errors.
28799         * modules/openat-tests (Depends-on): Add progname.
28800         * modules/fdopendir-tests (Depends-on): Likewise.
28801         * tests/test-fchownat.c: Include progname.h.
28802         (main): Call set_program_name.
28803         * tests/test-fstatat.c: Include progname.h.
28804         (main): Call set_program_name.
28805         * tests/test-mkdirat.c: Include progname.h.
28806         (main): Call set_program_name.
28807         * tests/test-openat.c: Include progname.h.
28808         (main): Call set_program_name.
28809         * tests/test-unlinkat.c: Include progname.h.
28810         (main): Call set_program_name.
28811         * tests/test-fdopendir.c: Include progname.h.
28812         (main): Call set_program_name.
28814 2011-06-18  Bruno Haible  <bruno@clisp.org>
28816         Doc update.
28817         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
28818         HP-UX.
28819         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
28821 2011-06-18  Bruno Haible  <bruno@clisp.org>
28823         getcwd tests: Avoid compilation error on HP-UX 11.31.
28824         * modules/getcwd-tests (Depends-on): Add pathmax.
28825         * tests/test-getcwd.c: Include pathmax.h.
28827 2011-06-18  Bruno Haible  <bruno@clisp.org>
28829         isfinite, isinf: Fix link error on AIX 6 and 7.
28830         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
28831         needed, also test the macro with a 'float' argument.
28832         * m4/isinf.m4 (gl_ISINF): Likewise.
28834 2011-06-18  Bruno Haible  <bruno@clisp.org>
28836         getloadavg: Don't clobber LIBS. Regression from previous commit.
28837         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
28838         AC_CHECK_LIB from here...
28839         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
28840         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
28841         gl_func_getloadavg_done.
28842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28844 2011-06-18  Bruno Haible  <bruno@clisp.org>
28846         clean-temp: Improve documentation.
28847         * lib/clean-temp.h: Explain better how to use this module.
28848         Reported by John Darrington <john@darrington.wattle.id.au>.
28850 2011-06-17  Bruno Haible  <bruno@clisp.org>
28852         pread, pwrite: Avoid cc warning on AIX.
28853         * lib/unistd.in.h (pread): Undefine before defining as a macro.
28854         (pwrite): Likewise.
28856 2011-06-17  Bruno Haible  <bruno@clisp.org>
28858         spawn-pipe tests: Fix link error.
28859         * tests/test-spawn-pipe-child.c: Undefine fprintf.
28860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28862 2011-06-17  Bruno Haible  <bruno@clisp.org>
28864         Tests: Remove unnecessary dependency.
28865         * modules/canonicalize-tests (Depends-on): Remove progname.
28866         * modules/chown-tests (Depends-on): Likewise.
28867         * modules/dirname-tests (Depends-on): Likewise.
28868         * modules/fdopendir-tests (Depends-on): Likewise.
28869         * modules/fdutimensat-tests (Depends-on): Likewise.
28870         * modules/hash-tests (Depends-on): Likewise.
28871         * modules/lchown-tests (Depends-on): Likewise.
28872         * modules/linkat-tests (Depends-on): Likewise.
28873         * modules/renameat-tests (Depends-on): Likewise.
28874         * modules/spawn-pipe-tests (Depends-on): Likewise.
28875         * modules/utimensat-tests (Depends-on): Likewise.
28877 2011-06-17  Bruno Haible  <bruno@clisp.org>
28879         spawn-pipe tests: Fix link error.
28880         * tests/test-spawn-pipe-child.c: Undefine fflush.
28882 2011-06-17  Bruno Haible  <bruno@clisp.org>
28884         Fix tests link errors.
28885         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
28886         * modules/chown-tests (Makefile.am): Don't link test-chown with
28887         LIBINTL.
28888         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
28889         LIBINTL.
28890         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
28891         LIBINTL.
28892         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
28893         LIBINTL.
28895 2011-06-16  Bruno Haible  <bruno@clisp.org>
28897         crypto/gc-sha1: Fix recent regression.
28898         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
28899         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
28901         crypto/gc-md5: Fix recent regression.
28902         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
28904         crypto/gc-md4: Fix recent regression.
28905         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
28906         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
28908         crypto/gc-arctwo: Fix recent regression.
28909         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
28910         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
28912         crypto/gc-rijndael: Fix recent regression.
28913         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
28914         (configure.ac): Invoke AC_LIBOBJ here.
28915         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
28916         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28918         crypto/gc-hmac-sha1: Fix recent regression.
28919         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
28920         (configure.ac): Invoke AC_LIBOBJ here.
28921         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
28922         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28924         crypto/gc-hmac-md5: Fix recent regression.
28925         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
28926         (configure.ac): Invoke AC_LIBOBJ here.
28927         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
28928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28930         crypto/gc-des: Fix recent regression.
28931         * modules/crypto/gc-des (Files): Remove m4/des.m4.
28932         (configure.ac): Invoke AC_LIBOBJ here.
28933         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
28934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28936         crypto/gc-arcfour: Fix recent regression.
28937         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
28938         (configure.ac): Invoke AC_LIBOBJ here.
28939         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
28940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28942 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
28944         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
28945         After the 2011-05-21 change, this macro requires
28946         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
28947         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28949 2011-06-16  Bruno Haible  <bruno@clisp.org>
28951         fprintftime: Move AC_LIBOBJ invocations to module description.
28952         * m4/fprintftime.m4: Remove file.
28953         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
28954         (configure.ac): Remove gl_FPRINTFTIME call.
28955         (Makefile.am): Augment lib_SOURCES.
28956         Reported by Jim Meyering.
28958 2011-06-16  Bruno Haible  <bruno@clisp.org>
28960         tmpfile-safer: Finish 2011-05-23 commit.
28961         * m4/stdio-safer.m4: Really remove file.
28962         Reported by Jim Meyering.
28964 2011-06-16  Bruno Haible  <bruno@clisp.org>
28966         syntax-check: Fix typo.
28967         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
28968         printf-posix.m4.
28969         Reported by Jim Meyering.
28971 2011-06-13  Jim Meyering  <meyering@redhat.com>
28973         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
28974         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
28976 2011-05-23  Bruno Haible  <bruno@clisp.org>
28978         yesno: Move AC_LIBOBJ invocations to module description.
28979         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
28980         * modules/yesno (Makefile.am): Augment lib_SOURCES.
28982 2011-05-23  Bruno Haible  <bruno@clisp.org>
28984         xstrtol: Move AC_LIBOBJ invocations to module description.
28985         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
28986         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
28988 2011-05-23  Bruno Haible  <bruno@clisp.org>
28990         xstrtold: Move AC_LIBOBJ invocations to module description.
28991         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
28992         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
28994 2011-05-23  Bruno Haible  <bruno@clisp.org>
28996         xstrtod: Move AC_LIBOBJ invocations to module description.
28997         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
28998         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
29000 2011-05-23  Bruno Haible  <bruno@clisp.org>
29002         xnanosleep: Move AC_LIBOBJ invocations to module description.
29003         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
29004         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
29006 2011-05-23  Bruno Haible  <bruno@clisp.org>
29008         xgetcwd: Move AC_LIBOBJ invocations to module description.
29009         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
29010         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
29012 2011-05-23  Bruno Haible  <bruno@clisp.org>
29014         xalloc: Move AC_LIBOBJ invocations to module description.
29015         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
29016         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
29018 2011-05-23  Bruno Haible  <bruno@clisp.org>
29020         write-any-file: Move AC_LIBOBJ invocations to module description.
29021         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
29022         invocation.
29023         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
29025 2011-05-23  Bruno Haible  <bruno@clisp.org>
29027         utimens: Move AC_LIBOBJ invocations to module description.
29028         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
29029         * modules/utimens (Makefile.am): Augment lib_SOURCES.
29031 2011-05-23  Bruno Haible  <bruno@clisp.org>
29033         utimecmp: Move AC_LIBOBJ invocations to module description.
29034         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
29035         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
29037 2011-05-23  Bruno Haible  <bruno@clisp.org>
29039         userspec: Move AC_LIBOBJ invocations to module description.
29040         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
29041         * modules/userspec (Makefile.am): Augment lib_SOURCES.
29043 2011-05-23  Bruno Haible  <bruno@clisp.org>
29045         unlinkdir: Move AC_LIBOBJ invocations to module description.
29046         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
29047         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
29049 2011-05-23  Bruno Haible  <bruno@clisp.org>
29051         unistd-safer: Move AC_LIBOBJ invocations to module description.
29052         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
29053         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
29055 2011-05-23  Bruno Haible  <bruno@clisp.org>
29057         tempname: Move AC_LIBOBJ invocations to module description.
29058         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
29059         * modules/tempname (Makefile.am): Augment lib_SOURCES.
29061 2011-05-23  Bruno Haible  <bruno@clisp.org>
29063         strftime: Move AC_LIBOBJ invocations to module description.
29064         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
29065         * modules/strftime (Makefile.am): Augment lib_SOURCES.
29067 2011-05-23  Bruno Haible  <bruno@clisp.org>
29069         stdlib-safer: Move AC_LIBOBJ invocations to module description.
29070         * m4/stdlib-safer.m4: Remove file.
29071         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
29072         (configure.ac): Remove gl_STDLIB_SAFER call.
29073         (Makefile.am): Augment lib_SOURCES.
29075 2011-05-23  Bruno Haible  <bruno@clisp.org>
29077         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
29078         * m4/stdio-safer.m4: Remove file.
29079         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
29080         (configure.ac): Remove gl_TMPFILE_SAFER call.
29081         (Makefile.am): Augment lib_SOURCES.
29083 2011-05-23  Bruno Haible  <bruno@clisp.org>
29085         popen-safer: Move AC_LIBOBJ invocations to module description.
29086         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
29087         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
29088         (configure.ac): Remove gl_POPEN_SAFER call.
29089         (Makefile.am): Augment lib_SOURCES.
29091 2011-05-23  Bruno Haible  <bruno@clisp.org>
29093         freopen-safer: Move AC_LIBOBJ invocations to module description.
29094         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
29095         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
29096         (configure.ac): Remove gl_FREOPEN_SAFER call.
29097         (Makefile.am): Augment lib_SOURCES.
29099 2011-05-23  Bruno Haible  <bruno@clisp.org>
29101         fopen-safer: Move AC_LIBOBJ invocations to module description.
29102         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
29103         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
29104         (configure.ac): Remove gl_FOPEN_SAFER call.
29105         (Makefile.am): Augment lib_SOURCES.
29107 2011-05-23  Bruno Haible  <bruno@clisp.org>
29109         crypto/sha512: Move AC_LIBOBJ invocations to module description.
29110         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
29111         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
29113 2011-05-23  Bruno Haible  <bruno@clisp.org>
29115         crypto/sha256: Move AC_LIBOBJ invocations to module description.
29116         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
29117         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
29119 2011-05-23  Bruno Haible  <bruno@clisp.org>
29121         crypto/sha1: Move AC_LIBOBJ invocations to module description.
29122         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
29123         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
29125 2011-05-23  Bruno Haible  <bruno@clisp.org>
29127         settime: Move AC_LIBOBJ invocations to module description.
29128         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
29129         * modules/settime (Makefile.am): Augment lib_SOURCES.
29131 2011-05-23  Bruno Haible  <bruno@clisp.org>
29133         savedir: Move AC_LIBOBJ invocations to module description.
29134         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
29135         * modules/savedir (Makefile.am): Augment lib_SOURCES.
29137 2011-05-23  Bruno Haible  <bruno@clisp.org>
29139         save-cwd: Move AC_LIBOBJ invocations to module description.
29140         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
29141         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
29143 2011-05-23  Bruno Haible  <bruno@clisp.org>
29145         same: Move AC_LIBOBJ invocations to module description.
29146         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
29147         * modules/same (Makefile.am): Augment lib_SOURCES.
29149 2011-05-23  Bruno Haible  <bruno@clisp.org>
29151         safe-write: Move AC_LIBOBJ invocations to module description.
29152         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
29153         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
29154         instead of gl_SAFE_WRITE.
29155         (Makefile.am): Augment lib_SOURCES.
29157 2011-05-23  Bruno Haible  <bruno@clisp.org>
29159         safe-read: Move AC_LIBOBJ invocations to module description.
29160         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
29161         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
29162         of gl_SAFE_READ.
29163         (Makefile.am): Augment lib_SOURCES.
29165 2011-05-23  Bruno Haible  <bruno@clisp.org>
29167         safe-alloc: Move AC_LIBOBJ invocations to module description.
29168         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
29169         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
29171 2011-05-23  Bruno Haible  <bruno@clisp.org>
29173         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
29174         * m4/rijndael.m4: Remove file.
29175         * modules/crypto/rijndael (Files): Remove it.
29176         (configure.ac): Remove gl_RIJNDAEL call.
29177         (Makefile.am): Augment lib_SOURCES.
29179 2011-05-23  Bruno Haible  <bruno@clisp.org>
29181         readtokens: Move AC_LIBOBJ invocations to module description.
29182         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
29183         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
29185 2011-05-23  Bruno Haible  <bruno@clisp.org>
29187         read-file: Move AC_LIBOBJ invocations to module description.
29188         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
29189         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
29190         of gl_FUNC_READ_FILE.
29191         (Makefile.am): Augment lib_SOURCES.
29193 2011-05-23  Bruno Haible  <bruno@clisp.org>
29195         quotearg: Move AC_LIBOBJ invocations to module description.
29196         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
29197         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
29199 2011-05-23  Bruno Haible  <bruno@clisp.org>
29201         quote: Move AC_LIBOBJ invocations to module description.
29202         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
29203         * modules/quote (Makefile.am): Augment lib_SOURCES.
29205 2011-05-23  Bruno Haible  <bruno@clisp.org>
29207         posixver: Move AC_LIBOBJ invocations to module description.
29208         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
29209         * modules/posixver (Makefile.am): Augment lib_SOURCES.
29211 2011-05-23  Bruno Haible  <bruno@clisp.org>
29213         posixtm: Move AC_LIBOBJ invocations to module description.
29214         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
29215         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
29217 2011-05-23  Bruno Haible  <bruno@clisp.org>
29219         physmem: Move AC_LIBOBJ invocations to module description.
29220         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
29221         * modules/physmem (Makefile.am): Augment lib_SOURCES.
29223 2011-05-23  Bruno Haible  <bruno@clisp.org>
29225         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
29226         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
29227         invocation.
29228         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
29230 2011-05-23  Bruno Haible  <bruno@clisp.org>
29232         mpsort: Move AC_LIBOBJ invocations to module description.
29233         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
29234         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
29236 2011-05-23  Bruno Haible  <bruno@clisp.org>
29238         modechange: Move AC_LIBOBJ invocations to module description.
29239         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
29240         * modules/modechange (Makefile.am): Augment lib_SOURCES.
29242 2011-05-23  Bruno Haible  <bruno@clisp.org>
29244         mkdir-p: Move AC_LIBOBJ invocations to module description.
29245         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
29246         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
29248 2011-05-23  Bruno Haible  <bruno@clisp.org>
29250         mkancesdirs: Move AC_LIBOBJ invocations to module description.
29251         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
29252         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
29254 2011-05-23  Bruno Haible  <bruno@clisp.org>
29256         mgetgroups: Move AC_LIBOBJ invocations to module description.
29257         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
29258         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
29260 2011-05-23  Bruno Haible  <bruno@clisp.org>
29262         memxor: Move AC_LIBOBJ invocations to module description.
29263         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
29264         * modules/memxor (Makefile.am): Augment lib_SOURCES.
29266 2011-05-23  Bruno Haible  <bruno@clisp.org>
29268         memcoll: Move AC_LIBOBJ invocations to module description.
29269         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
29270         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
29272 2011-05-23  Bruno Haible  <bruno@clisp.org>
29274         memcasecmp: Move AC_LIBOBJ invocations to module description.
29275         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
29276         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
29278 2011-05-23  Bruno Haible  <bruno@clisp.org>
29280         crypto/md5: Move AC_LIBOBJ invocations to module description.
29281         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
29282         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
29284 2011-05-23  Bruno Haible  <bruno@clisp.org>
29286         crypto/md4: Move AC_LIBOBJ invocations to module description.
29287         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
29288         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
29290 2011-05-23  Bruno Haible  <bruno@clisp.org>
29292         crypto/md2: Move AC_LIBOBJ invocations to module description.
29293         * m4/md2.m4: Remove file.
29294         * modules/crypto/md2 (Files): Remove it.
29295         (configure.ac): Remove gl_MD2 call.
29296         (Makefile.am): Augment lib_SOURCES.
29298 2011-05-23  Bruno Haible  <bruno@clisp.org>
29300         long-options: Move AC_LIBOBJ invocations to module description.
29301         * m4/long-options.m4: Remove file.
29302         * modules/long-options (Files): Remove it.
29303         (configure.ac): Remove gl_LONG_OPTIONS call.
29304         (Makefile.am): Augment lib_SOURCES.
29306 2011-05-23  Bruno Haible  <bruno@clisp.org>
29308         i-ring: Move AC_LIBOBJ invocations to module description.
29309         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
29310         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
29312 2011-05-23  Bruno Haible  <bruno@clisp.org>
29314         idcache: Move AC_LIBOBJ invocations to module description.
29315         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
29316         * modules/idcache (Makefile.am): Augment lib_SOURCES.
29318 2011-05-23  Bruno Haible  <bruno@clisp.org>
29320         human: Move AC_LIBOBJ invocations to module description.
29321         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
29322         * modules/human (Makefile.am): Augment lib_SOURCES.
29324 2011-05-23  Bruno Haible  <bruno@clisp.org>
29326         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
29327         * m4/hmac-sha1.m4: Remove file.
29328         * modules/crypto/hmac-sha1 (Files): Remove it.
29329         (configure.ac): Remove gl_HMAC_SHA1 call.
29330         (Makefile.am): Augment lib_SOURCES.
29332 2011-05-23  Bruno Haible  <bruno@clisp.org>
29334         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
29335         * m4/hmac-md5.m4: Remove file.
29336         * modules/crypto/hmac-md5 (Files): Remove it.
29337         (configure.ac): Remove gl_HMAC_MD5 call.
29338         (Makefile.am): Augment lib_SOURCES.
29340 2011-05-23  Bruno Haible  <bruno@clisp.org>
29342         hash: Move AC_LIBOBJ invocations to module description.
29343         * m4/hash.m4: Remove file.
29344         * modules/hash (Files): Remove it.
29345         (configure.ac): Remove gl_HASH call.
29346         (Makefile.am): Augment lib_SOURCES.
29348 2011-05-23  Bruno Haible  <bruno@clisp.org>
29350         hard-locale: Move AC_LIBOBJ invocations to module description.
29351         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
29352         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
29354 2011-05-23  Bruno Haible  <bruno@clisp.org>
29356         getugroups: Move AC_LIBOBJ invocations to module description.
29357         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
29358         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
29360 2011-05-23  Bruno Haible  <bruno@clisp.org>
29362         gettime: Move AC_LIBOBJ invocations to module description.
29363         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
29364         * modules/gettime (Makefile.am): Augment lib_SOURCES.
29366 2011-05-23  Bruno Haible  <bruno@clisp.org>
29368         getndelim2: Move AC_LIBOBJ invocations to module description.
29369         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
29370         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
29372 2011-05-23  Bruno Haible  <bruno@clisp.org>
29374         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
29375         * m4/gc-pbkdf2-sha1.m4: Remove file.
29376         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
29377         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
29378         (Makefile.am): Augment lib_SOURCES.
29380 2011-05-23  Bruno Haible  <bruno@clisp.org>
29382         fts: Move AC_LIBOBJ invocations to module description.
29383         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
29384         * modules/fts (configure.ac): ... to here.
29386 2011-05-23  Bruno Haible  <bruno@clisp.org>
29388         file-type: Move AC_LIBOBJ invocations to module description.
29389         * m4/file-type.m4: Remove file.
29390         * modules/file-type (Files): Remove it.
29391         (configure.ac): Remove gl_FILE_TYPE call.
29392         (Makefile.am): Augment lib_SOURCES.
29394 2011-05-23  Bruno Haible  <bruno@clisp.org>
29396         filenamecat*: Respect rules for use of AC_LIBOBJ.
29397         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
29398         Remove AC_LIBOBJ invocation.
29399         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
29400         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
29402 2011-05-23  Bruno Haible  <bruno@clisp.org>
29404         filemode: Move AC_LIBOBJ invocations to module description.
29405         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
29406         * modules/filemode (Makefile.am): Augment lib_SOURCES.
29408 2011-05-23  Bruno Haible  <bruno@clisp.org>
29410         openat-safer: Move AC_LIBOBJ invocations to module description.
29411         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
29412         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
29414 2011-05-23  Bruno Haible  <bruno@clisp.org>
29416         fcntl-safer: Move AC_LIBOBJ invocations to module description.
29417         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
29418         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
29420 2011-05-23  Bruno Haible  <bruno@clisp.org>
29422         exclude: Move AC_LIBOBJ invocations to module description.
29423         * m4/exclude.m4: Remove file.
29424         * modules/exclude (Files): Remove it.
29425         (configure.ac): Remove gl_EXCLUDE call.
29426         (Makefile.am): Augment lib_SOURCES.
29428 2011-05-23  Bruno Haible  <bruno@clisp.org>
29430         dirname*: Respect rules for use of AC_LIBOBJ.
29431         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
29432         invocations.
29433         * modules/dirname (Makefile.am): Augment lib_SOURCES.
29434         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
29436 2011-05-23  Bruno Haible  <bruno@clisp.org>
29438         dirent-safer: Move AC_LIBOBJ invocations to module description.
29439         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
29440         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
29442 2011-05-23  Bruno Haible  <bruno@clisp.org>
29444         crypto/des: Move AC_LIBOBJ invocations to module description.
29445         * m4/des.m4: Remove file.
29446         * modules/crypto/des (Files): Remove it.
29447         (configure.ac): Remove gl_DES call.
29448         (Makefile.am): Augment lib_SOURCES.
29450 2011-05-23  Bruno Haible  <bruno@clisp.org>
29452         cycle-check: Move AC_LIBOBJ invocations to module description.
29453         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
29454         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
29456 2011-05-23  Bruno Haible  <bruno@clisp.org>
29458         c-strtold: Move AC_LIBOBJ invocations to module description.
29459         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
29460         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
29462 2011-05-23  Bruno Haible  <bruno@clisp.org>
29464         c-strtod: Move AC_LIBOBJ invocations to module description.
29465         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
29466         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
29468 2011-05-23  Bruno Haible  <bruno@clisp.org>
29470         crc: Move AC_LIBOBJ invocations to module description.
29471         * m4/crc.m4: Remove file.
29472         * modules/crc (Files): Remove it.
29473         (configure.ac): Remove gl_CRC call.
29474         (Makefile.am): Augment lib_SOURCES.
29476 2011-05-23  Bruno Haible  <bruno@clisp.org>
29478         close-stream: Move AC_LIBOBJ invocations to module description.
29479         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
29480         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
29482 2011-05-23  Bruno Haible  <bruno@clisp.org>
29484         closeout: Move AC_LIBOBJ invocations to module description.
29485         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
29486         * modules/closeout (Makefile.am): Augment lib_SOURCES.
29488 2011-05-23  Bruno Haible  <bruno@clisp.org>
29490         closein: Move AC_LIBOBJ invocations to module description.
29491         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
29492         * modules/closein (Makefile.am): Augment lib_SOURCES.
29494 2011-05-23  Bruno Haible  <bruno@clisp.org>
29496         cloexec: Move AC_LIBOBJ invocations to module description.
29497         * m4/cloexec.m4: Remove file.
29498         * modules/cloexec (Files): Remove it.
29499         (configure.ac): Remove gl_CLOEXEC call.
29500         (Makefile.am): Augment lib_SOURCES.
29502 2011-05-23  Bruno Haible  <bruno@clisp.org>
29504         check-version: Move AC_LIBOBJ invocations to module description.
29505         * m4/check-version.m4: Remove file.
29506         * modules/check-version (Files): Remove it.
29507         (configure.ac): Remove gl_CHECK_VERSION call.
29508         (Makefile.am): Augment lib_SOURCES.
29510 2011-05-23  Bruno Haible  <bruno@clisp.org>
29512         chdir-safer: Move AC_LIBOBJ invocations to module description.
29513         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
29514         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
29516 2011-05-23  Bruno Haible  <bruno@clisp.org>
29518         canonicalize: Move AC_LIBOBJ invocations to module description.
29519         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
29520         AC_LIBOBJ invocation.
29521         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
29523 2011-05-23  Bruno Haible  <bruno@clisp.org>
29525         canon-host: Move AC_LIBOBJ invocations to module description.
29526         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
29527         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
29528         instead of gl_CANON_HOST.
29529         (Makefile.am): Augment lib_SOURCES.
29531 2011-05-23  Bruno Haible  <bruno@clisp.org>
29533         backupfile: Move AC_LIBOBJ invocations to module description.
29534         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
29535         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
29537 2011-05-23  Bruno Haible  <bruno@clisp.org>
29539         argmatch: Move AC_LIBOBJ invocations to module description.
29540         * m4/argmatch.m4: Remove file.
29541         * modules/argmatch (Files): Remove it.
29542         (configure.ac): Remove gl_ARGMATCH call.
29543         (Makefile.am): Augment lib_SOURCES.
29545 2011-05-23  Bruno Haible  <bruno@clisp.org>
29547         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
29548         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
29549         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
29551 2011-05-23  Bruno Haible  <bruno@clisp.org>
29553         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
29554         * m4/arcfour.m4: Remove file.
29555         * modules/crypto/arcfour (Files): Remove it.
29556         (configure.ac): Remove gl_ARCFOUR call.
29557         (Makefile.am): Augment lib_SOURCES.
29559 2011-05-22  Bruno Haible  <bruno@clisp.org>
29561         write: Move AC_LIBOBJ invocations to module description.
29562         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
29563         * modules/write (configure.ac): ... to here.
29565 2011-05-22  Bruno Haible  <bruno@clisp.org>
29567         wmemset: Move AC_LIBOBJ invocations to module description.
29568         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
29569         here...
29570         * modules/wmemset (configure.ac): ... to here.
29572 2011-05-22  Bruno Haible  <bruno@clisp.org>
29574         wmemmove: Move AC_LIBOBJ invocations to module description.
29575         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
29576         here...
29577         * modules/wmemmove (configure.ac): ... to here.
29579 2011-05-22  Bruno Haible  <bruno@clisp.org>
29581         wmemcpy: Move AC_LIBOBJ invocations to module description.
29582         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
29583         here...
29584         * modules/wmemcpy (configure.ac): ... to here.
29586 2011-05-22  Bruno Haible  <bruno@clisp.org>
29588         wmemcmp: Move AC_LIBOBJ invocations to module description.
29589         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
29590         here...
29591         * modules/wmemcmp (configure.ac): ... to here.
29593 2011-05-22  Bruno Haible  <bruno@clisp.org>
29595         wmemchr: Move AC_LIBOBJ invocations to module description.
29596         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
29597         here...
29598         * modules/wmemchr (configure.ac): ... to here.
29600 2011-05-22  Bruno Haible  <bruno@clisp.org>
29602         wcswidth: Move AC_LIBOBJ invocations to module description.
29603         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
29604         here...
29605         * modules/wcswidth (configure.ac): ... to here.
29607 2011-05-22  Bruno Haible  <bruno@clisp.org>
29609         wcwidth: Respect rules for use of AC_LIBOBJ.
29610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
29611         invocation from here...
29612         * modules/wcwidth (configure.ac): ... to here.
29613         (Depends-on): Update conditions.
29615 2011-05-22  Bruno Haible  <bruno@clisp.org>
29617         wctype: Move AC_LIBOBJ invocations to module description.
29618         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
29619         invocation from here...
29620         * modules/wctype (configure.ac): ... to here.
29621         (Depends-on): Update conditions.
29623 2011-05-22  Bruno Haible  <bruno@clisp.org>
29625         wctrans: Move AC_LIBOBJ invocations to module description.
29626         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
29627         invocation from here...
29628         * modules/wctrans (configure.ac): ... to here.
29630 2011-05-22  Bruno Haible  <bruno@clisp.org>
29632         wctomb: Move AC_LIBOBJ invocations to module description.
29633         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
29634         invocations from here...
29635         * modules/wctomb (configure.ac): ... to here.
29637 2011-05-22  Bruno Haible  <bruno@clisp.org>
29639         wctob: Move AC_LIBOBJ invocations to module description.
29640         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
29641         gl_PREREQ_WCTOB invocations from here...
29642         * modules/wctob (configure.ac): ... to here.
29643         (Depends-on): Update conditions.
29645 2011-05-22  Bruno Haible  <bruno@clisp.org>
29647         wcsxfrm: Move AC_LIBOBJ invocations to module description.
29648         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
29649         here...
29650         * modules/wcsxfrm (configure.ac): ... to here.
29652 2011-05-22  Bruno Haible  <bruno@clisp.org>
29654         wcstok: Move AC_LIBOBJ invocations to module description.
29655         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
29656         * modules/wcstok (configure.ac): ... to here.
29658 2011-05-22  Bruno Haible  <bruno@clisp.org>
29660         wcsstr: Move AC_LIBOBJ invocations to module description.
29661         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
29662         * modules/wcsstr (configure.ac): ... to here.
29664 2011-05-22  Bruno Haible  <bruno@clisp.org>
29666         wcsspn: Move AC_LIBOBJ invocations to module description.
29667         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
29668         * modules/wcsspn (configure.ac): ... to here.
29670 2011-05-22  Bruno Haible  <bruno@clisp.org>
29672         wcsrtombs: Move AC_LIBOBJ invocations to module description.
29673         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
29674         gl_PREREQ_WCSRTOMBS invocations from here...
29675         * modules/wcsrtombs (configure.ac): ... to here.
29677 2011-05-22  Bruno Haible  <bruno@clisp.org>
29679         wcsrchr: Move AC_LIBOBJ invocations to module description.
29680         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
29681         here...
29682         * modules/wcsrchr (configure.ac): ... to here.
29684 2011-05-22  Bruno Haible  <bruno@clisp.org>
29686         wcspbrk: Move AC_LIBOBJ invocations to module description.
29687         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
29688         here...
29689         * modules/wcspbrk (configure.ac): ... to here.
29691 2011-05-22  Bruno Haible  <bruno@clisp.org>
29693         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
29694         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
29695         gl_PREREQ_WCSNRTOMBS invocations from here...
29696         * modules/wcsnrtombs (configure.ac): ... to here.
29698 2011-05-22  Bruno Haible  <bruno@clisp.org>
29700         wcsnlen: Move AC_LIBOBJ invocations to module description.
29701         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
29702         here...
29703         * modules/wcsnlen (configure.ac): ... to here.
29705 2011-05-22  Bruno Haible  <bruno@clisp.org>
29707         wcsncpy: Move AC_LIBOBJ invocations to module description.
29708         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
29709         here...
29710         * modules/wcsncpy (configure.ac): ... to here.
29712 2011-05-22  Bruno Haible  <bruno@clisp.org>
29714         wcsncmp: Move AC_LIBOBJ invocations to module description.
29715         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
29716         here...
29717         * modules/wcsncmp (configure.ac): ... to here.
29719 2011-05-22  Bruno Haible  <bruno@clisp.org>
29721         wcsncat: Move AC_LIBOBJ invocations to module description.
29722         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
29723         here...
29724         * modules/wcsncat (configure.ac): ... to here.
29726 2011-05-22  Bruno Haible  <bruno@clisp.org>
29728         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
29729         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
29730         from here...
29731         * modules/wcsncasecmp (configure.ac): ... to here.
29733 2011-05-22  Bruno Haible  <bruno@clisp.org>
29735         wcslen: Move AC_LIBOBJ invocations to module description.
29736         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
29737         * modules/wcslen (configure.ac): ... to here.
29739 2011-05-22  Bruno Haible  <bruno@clisp.org>
29741         wcsdup: Move AC_LIBOBJ invocations to module description.
29742         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
29743         * modules/wcsdup (configure.ac): ... to here.
29745 2011-05-22  Bruno Haible  <bruno@clisp.org>
29747         wcscspn: Move AC_LIBOBJ invocations to module description.
29748         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
29749         here...
29750         * modules/wcscspn (configure.ac): ... to here.
29752 2011-05-22  Bruno Haible  <bruno@clisp.org>
29754         wcscpy: Move AC_LIBOBJ invocations to module description.
29755         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
29756         * modules/wcscpy (configure.ac): ... to here.
29758 2011-05-22  Bruno Haible  <bruno@clisp.org>
29760         wcscoll: Move AC_LIBOBJ invocations to module description.
29761         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
29762         here...
29763         * modules/wcscoll (configure.ac): ... to here.
29765 2011-05-22  Bruno Haible  <bruno@clisp.org>
29767         wcscmp: Move AC_LIBOBJ invocations to module description.
29768         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
29769         * modules/wcscmp (configure.ac): ... to here.
29771 2011-05-22  Bruno Haible  <bruno@clisp.org>
29773         wcschr: Move AC_LIBOBJ invocations to module description.
29774         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
29775         * modules/wcschr (configure.ac): ... to here.
29777 2011-05-22  Bruno Haible  <bruno@clisp.org>
29779         wcscat: Move AC_LIBOBJ invocations to module description.
29780         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
29781         * modules/wcscat (configure.ac): ... to here.
29783 2011-05-22  Bruno Haible  <bruno@clisp.org>
29785         wcscasecmp: Move AC_LIBOBJ invocations to module description.
29786         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
29787         here...
29788         * modules/wcscasecmp (configure.ac): ... to here.
29790 2011-05-22  Bruno Haible  <bruno@clisp.org>
29792         wcrtomb: Move AC_LIBOBJ invocations to module description.
29793         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
29794         invocations from here...
29795         * modules/wcrtomb (configure.ac): ... to here.
29797 2011-05-22  Bruno Haible  <bruno@clisp.org>
29799         wcpncpy: Move AC_LIBOBJ invocations to module description.
29800         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
29801         here...
29802         * modules/wcpncpy (configure.ac): ... to here.
29804 2011-05-22  Bruno Haible  <bruno@clisp.org>
29806         wcpcpy: Move AC_LIBOBJ invocations to module description.
29807         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
29808         * modules/wcpcpy (configure.ac): ... to here.
29810 2011-05-22  Bruno Haible  <bruno@clisp.org>
29812         waitpid: Move AC_LIBOBJ invocations to module description.
29813         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
29814         invocation from here...
29815         * modules/waitpid (configure.ac): ... to here.
29817 2011-05-22  Bruno Haible  <bruno@clisp.org>
29819         utimensat: Move AC_LIBOBJ invocations to module description.
29820         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
29821         here...
29822         * modules/utimensat (configure.ac): ... to here.
29824 2011-05-22  Bruno Haible  <bruno@clisp.org>
29826         usleep: Move AC_LIBOBJ invocations to module description.
29827         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
29828         here...
29829         * modules/usleep (configure.ac): ... to here.
29831 2011-05-22  Bruno Haible  <bruno@clisp.org>
29833         unlockpt: Move AC_LIBOBJ invocations to module description.
29834         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
29835         gl_PREREQ_UNLOCKPT invocations from here...
29836         * modules/unlockpt (configure.ac): ... to here.
29838 2011-05-22  Bruno Haible  <bruno@clisp.org>
29840         unlink: Respect rules for use of AC_LIBOBJ.
29841         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
29842         * modules/unlink (configure.ac): ... to here.
29844 2011-05-22  Bruno Haible  <bruno@clisp.org>
29846         uname: Move AC_LIBOBJ invocations to module description.
29847         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
29848         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
29849         here...
29850         * modules/uname (configure.ac): ... to here.
29852 2011-05-22  Bruno Haible  <bruno@clisp.org>
29854         ttyname_r: Move AC_LIBOBJ invocations to module description.
29855         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
29856         gl_PREREQ_TTYNAME_R invocations from here...
29857         * modules/ttyname_r (configure.ac): ... to here.
29859 2011-05-22  Bruno Haible  <bruno@clisp.org>
29861         tsearch: Move AC_LIBOBJ invocations to module description.
29862         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
29863         invocations from here...
29864         * modules/tsearch (configure.ac): ... to here.
29866 2011-05-22  Bruno Haible  <bruno@clisp.org>
29868         towctrans: Move AC_LIBOBJ invocations to module description.
29869         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
29870         AC_LIBOBJ invocation from here...
29871         * modules/towctrans (configure.ac): ... to here.
29873 2011-05-22  Bruno Haible  <bruno@clisp.org>
29875         tmpfile: Move AC_LIBOBJ invocations to module description.
29876         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
29877         invocations from here...
29878         * modules/tmpfile (configure.ac): ... to here.
29880 2011-05-22  Bruno Haible  <bruno@clisp.org>
29882         times: Move AC_LIBOBJ invocations to module description.
29883         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
29884         * modules/times (configure.ac): ... to here.
29886 2011-05-22  Bruno Haible  <bruno@clisp.org>
29888         time_r: Move AC_LIBOBJ invocations to module description.
29889         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
29890         invocations from here...
29891         * modules/time_r (configure.ac): ... to here.
29893 2011-05-22  Bruno Haible  <bruno@clisp.org>
29895         timegm: Move AC_LIBOBJ invocations to module description.
29896         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
29897         invocations from here...
29898         * modules/timegm (configure.ac): ... to here.
29900 2011-05-22  Bruno Haible  <bruno@clisp.org>
29902         tcgetsid: Move AC_LIBOBJ invocations to module description.
29903         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
29904         and gl_PREREQ_TCGETSID invocations from here...
29905         * modules/tcgetsid (configure.ac): ... to here.
29906         (Depends-on): Update conditions.
29908 2011-05-22  Bruno Haible  <bruno@clisp.org>
29910         symlinkat: Move AC_LIBOBJ invocations to module description.
29911         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
29912         here...
29913         * modules/symlinkat (configure.ac): ... to here.
29915 2011-05-22  Bruno Haible  <bruno@clisp.org>
29917         symlink: Move AC_LIBOBJ invocations to module description.
29918         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
29919         here...
29920         * modules/symlink (configure.ac): ... to here.
29922 2011-05-22  Bruno Haible  <bruno@clisp.org>
29924         strverscmp: Move AC_LIBOBJ invocations to module description.
29925         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
29926         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
29927         from here...
29928         * modules/strverscmp (configure.ac): ... to here.
29930 2011-05-22  Bruno Haible  <bruno@clisp.org>
29932         strtok_r: Move AC_LIBOBJ invocations to module description.
29933         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
29934         and gl_PREREQ_STRTOK_R invocations from here...
29935         * modules/strtok_r (configure.ac): ... to here.
29936         (Depends-on): Update conditions.
29938 2011-05-22  Bruno Haible  <bruno@clisp.org>
29940         strtoumax: Move AC_LIBOBJ invocations to module description.
29941         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
29942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
29943         from here...
29944         * modules/strtoumax (configure.ac): ... to here.
29946 2011-05-22  Bruno Haible  <bruno@clisp.org>
29948         strtoimax: Move AC_LIBOBJ invocations to module description.
29949         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
29950         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
29951         from here...
29952         * modules/strtoimax (configure.ac): ... to here.
29954 2011-05-22  Bruno Haible  <bruno@clisp.org>
29956         strtoull: Move AC_LIBOBJ invocations to module description.
29957         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
29958         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
29959         from here...
29960         * modules/strtoull (configure.ac): ... to here.
29962 2011-05-22  Bruno Haible  <bruno@clisp.org>
29964         strtoll: Move AC_LIBOBJ invocations to module description.
29965         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
29966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
29967         here...
29968         * modules/strtoll (configure.ac): ... to here.
29970 2011-05-22  Bruno Haible  <bruno@clisp.org>
29972         strtoul: Move AC_LIBOBJ invocations to module description.
29973         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
29974         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
29975         * modules/strtoul (configure.ac): ... to here.
29977 2011-05-22  Bruno Haible  <bruno@clisp.org>
29979         strtol: Move AC_LIBOBJ invocations to module description.
29980         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
29981         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
29982         * modules/strtol (configure.ac): ... to here.
29984 2011-05-22  Bruno Haible  <bruno@clisp.org>
29986         strtod: Move AC_LIBOBJ invocations to module description.
29987         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
29988         invocations from here...
29989         * modules/strtod (configure.ac): ... to here.
29991 2011-05-22  Bruno Haible  <bruno@clisp.org>
29993         strstr*: Move AC_LIBOBJ invocations to module description.
29994         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
29995         invocations from here...
29996         * modules/strstr-simple (configure.ac): ... to here.
29997         * modules/strstr (configure.ac): ... and here.
29999 2011-05-22  Bruno Haible  <bruno@clisp.org>
30001         strsignal: Move AC_LIBOBJ invocations to module description.
30002         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
30003         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
30004         * modules/strsignal (configure.ac): ... to here.
30005         (Depends-on): Update conditions.
30007 2011-05-22  Bruno Haible  <bruno@clisp.org>
30009         strsep: Move AC_LIBOBJ invocations to module description.
30010         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
30011         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
30012         here...
30013         * modules/strsep (configure.ac): ... to here.
30015 2011-05-22  Bruno Haible  <bruno@clisp.org>
30017         strptime: Move AC_LIBOBJ invocations to module description.
30018         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
30019         gl_PREREQ_STRPTIME invocations from here...
30020         * modules/strptime (configure.ac): ... to here.
30022 2011-05-22  Bruno Haible  <bruno@clisp.org>
30024         strpbrk: Move AC_LIBOBJ invocations to module description.
30025         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
30026         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
30027         here...
30028         * modules/strpbrk (configure.ac): ... to here.
30030 2011-05-22  Bruno Haible  <bruno@clisp.org>
30032         strnlen: Move AC_LIBOBJ invocations to module description.
30033         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
30034         invocations from here...
30035         * modules/strnlen (configure.ac): ... to here.
30037 2011-05-22  Bruno Haible  <bruno@clisp.org>
30039         strndup: Move AC_LIBOBJ invocations to module description.
30040         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
30041         invocations from here...
30042         * modules/strndup (configure.ac): ... to here.
30043         (Depends-on): Update conditions.
30045 2011-05-22  Bruno Haible  <bruno@clisp.org>
30047         strncat: Move AC_LIBOBJ invocations to module description.
30048         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
30049         invocations from here...
30050         * modules/strncat (configure.ac): ... to here.
30052 2011-05-22  Bruno Haible  <bruno@clisp.org>
30054         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
30055         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
30056         invocations from here...
30057         * modules/strdup (configure.ac): ... to here.
30058         * modules/strdup-posix (configure.ac): ... and here.
30060 2011-05-22  Bruno Haible  <bruno@clisp.org>
30062         strcspn: Move AC_LIBOBJ invocations to module description.
30063         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
30064         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
30065         here...
30066         * modules/strcspn (configure.ac): ... to here.
30068 2011-05-22  Bruno Haible  <bruno@clisp.org>
30070         strchrnul: Move AC_LIBOBJ invocations to module description.
30071         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
30072         gl_PREREQ_STRCHRNUL invocations from here...
30073         * modules/strchrnul (configure.ac): ... to here.
30075 2011-05-22  Bruno Haible  <bruno@clisp.org>
30077         strcasestr*: Move AC_LIBOBJ invocations to module description.
30078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
30079         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
30080         * modules/strcasestr-simple (configure.ac): ... to here.
30081         * modules/strcasestr (configure.ac): ... and here.
30083 2011-05-22  Bruno Haible  <bruno@clisp.org>
30085         strcase: Move AC_LIBOBJ invocations to module description.
30086         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
30087         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
30088         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
30089         gl_PREREQ_STRNCASECMP invocations from here...
30090         * modules/strcase (configure.ac): ... to here.
30092 2011-05-22  Bruno Haible  <bruno@clisp.org>
30094         stpncpy: Move AC_LIBOBJ invocations to module description.
30095         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
30096         here...
30097         * modules/stpncpy (configure.ac): ... to here.
30099 2011-05-22  Bruno Haible  <bruno@clisp.org>
30101         stpcpy: Move AC_LIBOBJ invocations to module description.
30102         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
30103         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
30104         here...
30105         * modules/stpcpy (configure.ac): ... to here.
30107 2011-05-21  Bruno Haible  <bruno@clisp.org>
30109         stat: Move AC_LIBOBJ invocations to module description.
30110         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
30111         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
30112         here...
30113         * modules/stat (configure.ac): ... to here.
30115 2011-05-21  Bruno Haible  <bruno@clisp.org>
30117         sleep: Move AC_LIBOBJ invocations to module description.
30118         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
30119         * modules/sleep (configure.ac): ... to here.
30121 2011-05-21  Bruno Haible  <bruno@clisp.org>
30123         signbit: Move AC_LIBOBJ invocations to module description.
30124         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
30125         * modules/signbit (configure.ac): ... to here.
30127 2011-05-21  Bruno Haible  <bruno@clisp.org>
30129         sigprocmask: Move AC_LIBOBJ invocations to module description.
30130         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
30131         gl_PREREQ_SIGPROMASK invocations from here...
30132         * modules/sigprocmask (configure.ac): ... to here.
30134 2011-05-21  Bruno Haible  <bruno@clisp.org>
30136         sigaction: Move AC_LIBOBJ invocations to module description.
30137         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
30138         gl_PREREQ_SIGACTION invocations from here...
30139         * modules/sigaction (configure.ac): ... to here.
30141 2011-05-21  Bruno Haible  <bruno@clisp.org>
30143         sig2str: Move AC_LIBOBJ invocations to module description.
30144         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
30145         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
30146         here...
30147         * modules/sig2str (configure.ac): ... to here.
30149 2011-05-21  Bruno Haible  <bruno@clisp.org>
30151         setlocale: Move AC_LIBOBJ invocations to module description.
30152         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
30153         gl_PREREQ_SETLOCALE invocations from here...
30154         * modules/setlocale (configure.ac): ... to here.
30156 2011-05-21  Bruno Haible  <bruno@clisp.org>
30158         unsetenv: Move AC_LIBOBJ invocations to module description.
30159         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
30160         and gl_PREREQ_UNSETENV invocations from here...
30161         * modules/unsetenv (configure.ac): ... to here.
30162         (Depends-on): Update.
30164 2011-05-21  Bruno Haible  <bruno@clisp.org>
30166         setenv: Move AC_LIBOBJ invocations to module description.
30167         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
30168         here...
30169         * modules/setenv (configure.ac): ... to here.
30171 2011-05-21  Bruno Haible  <bruno@clisp.org>
30173         selinux-h: Move AC_LIBOBJ invocations to module description.
30174         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
30175         AC_LIBOBJ invocation from here...
30176         * modules/selinux-h (configure.ac): ... to here.
30178 2011-05-21  Bruno Haible  <bruno@clisp.org>
30180         select: Respect rules for use of AC_LIBOBJ.
30181         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
30182         here...
30183         * modules/select (configure.ac): ... to here.
30185 2011-05-21  Bruno Haible  <bruno@clisp.org>
30187         scandir: Move AC_LIBOBJ invocations to module description.
30188         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
30189         invocations from here...
30190         * modules/scandir (configure.ac): ... to here.
30192 2011-05-21  Bruno Haible  <bruno@clisp.org>
30194         rpmatch: Move AC_LIBOBJ invocations to module description.
30195         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
30196         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
30197         here...
30198         * modules/rpmatch (configure.ac): ... to here.
30200 2011-05-21  Bruno Haible  <bruno@clisp.org>
30202         rmdir: Respect rules for use of AC_LIBOBJ.
30203         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
30204         * modules/rmdir (configure.ac): ... to here.
30206 2011-05-21  Bruno Haible  <bruno@clisp.org>
30208         renameat: Move AC_LIBOBJ invocations to module description.
30209         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
30210         here...
30211         * modules/renameat (configure.ac): ... to here.
30213 2011-05-21  Bruno Haible  <bruno@clisp.org>
30215         rename: Respect rules for use of AC_LIBOBJ.
30216         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
30217         here...
30218         * modules/rename (configure.ac): ... to here.
30220 2011-05-21  Bruno Haible  <bruno@clisp.org>
30222         remove: Move AC_LIBOBJ invocations to module description.
30223         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
30224         here...
30225         * modules/remove (configure.ac): ... to here.
30227 2011-05-21  Bruno Haible  <bruno@clisp.org>
30229         relocatable-lib: Move AC_LIBOBJ invocations to module description.
30230         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
30231         macro.
30232         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
30233         * modules/relocatable-lib (configure.ac): ... to here.
30234         * modules/relocatable-prog-wrapper (configure.ac): Invoke
30235         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
30237 2011-05-21  Bruno Haible  <bruno@clisp.org>
30239         relocatable-prog: Move AC_LIBOBJ invocations to module description.
30240         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
30241         here...
30242         * modules/relocatable-prog (configure.ac): ... to here.
30244 2011-05-21  Bruno Haible  <bruno@clisp.org>
30246         regex: Move AC_LIBOBJ invocations to module description.
30247         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
30248         invocations from here...
30249         * modules/regex (configure.ac): ... to here.
30251 2011-05-21  Bruno Haible  <bruno@clisp.org>
30253         realloc-*: Move AC_LIBOBJ invocations to module description.
30254         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
30255         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
30256         AC_LIBOBJ invocations from here...
30257         * modules/realloc-gnu (configure.ac): ... to here.
30258         * modules/realloc-posix (configure.ac): ... and here.
30260 2011-05-21  Bruno Haible  <bruno@clisp.org>
30262         readutmp: Move AC_LIBOBJ invocations to module description.
30263         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
30264         * modules/readutmp (configure.ac): ... to here.
30266 2011-05-21  Bruno Haible  <bruno@clisp.org>
30268         readlinkat: Move AC_LIBOBJ invocations to module description.
30269         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
30270         here...
30271         * modules/readlinkat (configure.ac): ... to here.
30273 2011-05-21  Bruno Haible  <bruno@clisp.org>
30275         readlink: Move AC_LIBOBJ invocations to module description.
30276         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
30277         gl_PREREQ_READLINK invocations from here...
30278         * modules/readlink (configure.ac): ... to here.
30280 2011-05-21  Bruno Haible  <bruno@clisp.org>
30282         readline: Move AC_LIBOBJ invocations to module description.
30283         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
30284         gl_PREREQ_READLINE invocations from here...
30285         * modules/readline (configure.ac): ... to here.
30287 2011-05-21  Bruno Haible  <bruno@clisp.org>
30289         read: Move AC_LIBOBJ invocations to module description.
30290         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
30291         * modules/read (configure.ac): ... to here.
30293 2011-05-21  Bruno Haible  <bruno@clisp.org>
30295         rawmemchr: Move AC_LIBOBJ invocations to module description.
30296         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
30297         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
30298         from here...
30299         * modules/rawmemchr (configure.ac): ... to here.
30301 2011-05-21  Bruno Haible  <bruno@clisp.org>
30303         random_r: Move AC_LIBOBJ invocations to module description.
30304         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
30305         gl_PREREQ_RANDOM_R invocations from here...
30306         * modules/random_r (configure.ac): ... to here.
30308 2011-05-21  Bruno Haible  <bruno@clisp.org>
30310         pwrite: Move AC_LIBOBJ invocations to module description.
30311         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
30312         * modules/pwrite (configure.ac): ... to here.
30314 2011-05-21  Bruno Haible  <bruno@clisp.org>
30316         putenv: Move AC_LIBOBJ invocations to module description.
30317         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
30318         * modules/putenv (configure.ac): ... to here.
30320 2011-05-21  Bruno Haible  <bruno@clisp.org>
30322         login_tty: Move AC_LIBOBJ invocations to module description.
30323         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
30324         * modules/login_tty (configure.ac): ... to here.
30326 2011-05-21  Bruno Haible  <bruno@clisp.org>
30328         openpty: Move AC_LIBOBJ invocations to module description.
30329         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
30330         * modules/openpty (configure.ac): ... to here.
30332 2011-05-21  Bruno Haible  <bruno@clisp.org>
30334         forkpty: Move AC_LIBOBJ invocations to module description.
30335         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
30336         * modules/forkpty (configure.ac): ... to here.
30338 2011-05-21  Bruno Haible  <bruno@clisp.org>
30340         ptsname: Move AC_LIBOBJ invocations to module description.
30341         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
30342         invocations from here...
30343         * modules/ptsname (configure.ac): ... to here.
30345 2011-05-21  Bruno Haible  <bruno@clisp.org>
30347         pread: Move AC_LIBOBJ invocations to module description.
30348         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
30349         * modules/pread (configure.ac): ... to here.
30351 2011-05-21  Bruno Haible  <bruno@clisp.org>
30353         posix_spawn*: Move AC_LIBOBJ invocations to module description.
30354         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
30355         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
30356         * modules/posix_spawn (configure.ac): ... to here.
30357         * modules/posix_spawnp (configure.ac): ... and here.
30359 2011-05-21  Bruno Haible  <bruno@clisp.org>
30361         popen: Move AC_LIBOBJ invocations to module description.
30362         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
30363         invocations from here...
30364         * modules/popen (configure.ac): ... to here.
30366 2011-05-21  Bruno Haible  <bruno@clisp.org>
30368         poll: Move AC_LIBOBJ invocations to module description.
30369         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
30370         invocations from here...
30371         * modules/poll (configure.ac): ... to here.
30373 2011-05-21  Bruno Haible  <bruno@clisp.org>
30375         pipe-posix: Move AC_LIBOBJ invocations to module description.
30376         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
30377         * modules/pipe-posix (configure.ac): ... to here.
30379 2011-05-21  Bruno Haible  <bruno@clisp.org>
30381         openat: Respect rules for use of AC_LIBOBJ.
30382         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
30383         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
30384         * modules/openat (configure.ac): ... to here.
30386 2011-05-21  Bruno Haible  <bruno@clisp.org>
30388         obstack-printf*: Move AC_LIBOBJ invocations to module description.
30389         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
30390         invocation from here...
30391         * modules/obstack-printf (configure.ac): ... to here.
30392         * modules/obstack-printf-posix (configure.ac): ... and here.
30394 2011-05-21  Bruno Haible  <bruno@clisp.org>
30396         nl_langinfo: Move AC_LIBOBJ invocations to module description.
30397         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
30398         from here...
30399         * modules/nl_langinfo (configure.ac): ... to here.
30401 2011-05-21  Bruno Haible  <bruno@clisp.org>
30403         nanosleep: Move AC_LIBOBJ invocations to module description.
30404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
30405         gl_PREREQ_NANOSLEEP invocations from here...
30406         * modules/nanosleep (configure.ac): ... to here.
30408 2011-05-21  Bruno Haible  <bruno@clisp.org>
30410         mountlist: Move AC_LIBOBJ invocations to module description.
30411         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
30412         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
30413         * modules/mountlist (configure.ac): ... to here.
30415 2011-05-21  Bruno Haible  <bruno@clisp.org>
30417         mktime: Respect rules for use of AC_LIBOBJ.
30418         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
30419         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
30420         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
30421         (gl_FUNC_MKTIME_INTERNAL): ... and here...
30422         * modules/mktime (configure.ac): ... to here.
30423         * modules/mktime-internal (configure.ac): ... and here.
30424         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
30426 2011-05-21  Bruno Haible  <bruno@clisp.org>
30428         mkstemps: Move AC_LIBOBJ invocations to module description.
30429         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
30430         here...
30431         * modules/mkstemps (configure.ac): ... to here.
30433 2011-05-21  Bruno Haible  <bruno@clisp.org>
30435         mkstemp: Move AC_LIBOBJ invocations to module description.
30436         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
30437         gl_PREREQ_MKSTEMP invocations from here...
30438         * modules/mkstemp (configure.ac): ... to here.
30440 2011-05-21  Bruno Haible  <bruno@clisp.org>
30442         mkostemps: Move AC_LIBOBJ invocations to module description.
30443         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
30444         here...
30445         * modules/mkostemps (configure.ac): ... to here.
30447 2011-05-21  Bruno Haible  <bruno@clisp.org>
30449         mkostemp: Move AC_LIBOBJ invocations to module description.
30450         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
30451         gl_PREREQ_MKOSTEMP invocations from here...
30452         * modules/mkostemp (configure.ac): ... to here.
30454 2011-05-21  Bruno Haible  <bruno@clisp.org>
30456         mknod: Move AC_LIBOBJ invocations to module description.
30457         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
30458         * modules/mknod (configure.ac): ... to here.
30460 2011-05-21  Bruno Haible  <bruno@clisp.org>
30462         mkfifoat: Move AC_LIBOBJ invocations to module description.
30463         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
30464         here...
30465         * modules/mkfifoat (configure.ac): ... to here.
30467 2011-05-21  Bruno Haible  <bruno@clisp.org>
30469         mkfifo: Respect rules for use of AC_LIBOBJ.
30470         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
30471         here...
30472         * modules/mkfifo (configure.ac): ... to here.
30474 2011-05-21  Bruno Haible  <bruno@clisp.org>
30476         mkdtemp: Move AC_LIBOBJ invocations to module description.
30477         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
30478         invocations from here...
30479         * modules/mkdtemp (configure.ac): ... to here.
30481 2011-05-21  Bruno Haible  <bruno@clisp.org>
30483         mkdir: Move AC_LIBOBJ invocations to module description.
30484         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
30485         * modules/mkdir (configure.ac): ... to here.
30487 2011-05-21  Bruno Haible  <bruno@clisp.org>
30489         memset: Move AC_LIBOBJ invocations to module description.
30490         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
30491         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
30492         here...
30493         * modules/memset (configure.ac): ... to here.
30495 2011-05-21  Bruno Haible  <bruno@clisp.org>
30497         memrchr: Move AC_LIBOBJ invocations to module description.
30498         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
30499         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
30500         here...
30501         * modules/memrchr (configure.ac): ... to here.
30503 2011-05-21  Bruno Haible  <bruno@clisp.org>
30505         mempcpy: Move AC_LIBOBJ invocations to module description.
30506         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
30507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
30508         here...
30509         * modules/mempcpy (configure.ac): ... to here.
30511 2011-05-21  Bruno Haible  <bruno@clisp.org>
30513         memmove: Move AC_LIBOBJ invocations to module description.
30514         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
30515         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
30516         here...
30517         * modules/memmove (configure.ac): ... to here.
30519 2011-05-21  Bruno Haible  <bruno@clisp.org>
30521         memmem*: Move AC_LIBOBJ invocations to module description.
30522         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
30523         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
30524         here...
30525         (gl_FUNC_MEMMEM): ... and here...
30526         * modules/memmem-simple (configure.ac): ... to here.
30527         * modules/memmem (configure.ac): ... and here.
30529 2011-05-21  Bruno Haible  <bruno@clisp.org>
30531         memcpy: Move AC_LIBOBJ invocations to module description.
30532         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
30533         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
30534         here...
30535         * modules/memcpy (configure.ac): ... to here.
30537 2011-05-21  Bruno Haible  <bruno@clisp.org>
30539         memcmp: Simplify autoconf macro.
30540         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
30541         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
30542         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
30544 2011-05-21  Bruno Haible  <bruno@clisp.org>
30546         memcmp: Move AC_LIBOBJ invocations to module description.
30547         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
30548         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
30549         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
30550         * modules/memcmp (configure.ac): ... to here.
30551         (Depends-on): Update conditions.
30553 2011-05-21  Bruno Haible  <bruno@clisp.org>
30555         memchr: Respect rules for use of AC_LIBOBJ.
30556         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
30557         invocations from here...
30558         * modules/memchr (configure.ac): ... to here.
30560 2011-05-21  Bruno Haible  <bruno@clisp.org>
30562         mbtowc: Move AC_LIBOBJ invocations to module description.
30563         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
30564         invocations from here...
30565         * modules/mbtowc (configure.ac): ... to here.
30567 2011-05-21  Bruno Haible  <bruno@clisp.org>
30569         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
30570         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
30571         gl_PREREQ_MBSRTOWCS invocations from here...
30572         * modules/mbsrtowcs (configure.ac): ... to here.
30574 2011-05-21  Bruno Haible  <bruno@clisp.org>
30576         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
30577         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
30578         gl_PREREQ_MBSNRTOWCS invocations from here...
30579         * modules/mbsnrtowcs (configure.ac): ... to here.
30581 2011-05-21  Bruno Haible  <bruno@clisp.org>
30583         mbsinit: Move AC_LIBOBJ invocations to module description.
30584         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
30585         invocations from here...
30586         * modules/mbsinit (configure.ac): ... to here.
30588 2011-05-21  Bruno Haible  <bruno@clisp.org>
30590         mbrlen: Move AC_LIBOBJ invocations to module description.
30591         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
30592         invocations from here...
30593         * modules/mbrlen (configure.ac): ... to here.
30595 2011-05-21  Bruno Haible  <bruno@clisp.org>
30597         mbrtowc: Respect rules for use of AC_LIBOBJ.
30598         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
30599         invocations from here...
30600         * modules/mbrtowc (configure.ac): ... to here.
30602 2011-05-21  Bruno Haible  <bruno@clisp.org>
30604         malloc-*: Move AC_LIBOBJ invocations to module description.
30605         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
30606         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
30607         AC_LIBOBJ invocations from here...
30608         * modules/malloc-gnu (configure.ac): ... to here.
30609         * modules/malloc-posix (configure.ac): ... and here.
30611 2011-05-21  Bruno Haible  <bruno@clisp.org>
30613         lstat, openat: Respect rules for use of AC_LIBOBJ.
30614         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
30615         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
30616         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
30617         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
30618         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
30619         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
30620         here.
30621         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
30623 2011-05-21  Bruno Haible  <bruno@clisp.org>
30625         lseek: Move AC_LIBOBJ invocations to module description.
30626         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
30627         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
30628         * modules/lseek (configure.ac): ... to here.
30630 2011-05-21  Bruno Haible  <bruno@clisp.org>
30632         linkat: Move AC_LIBOBJ invocations to module description.
30633         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
30634         here...
30635         * modules/linkat (configure.ac): ... to here.
30637 2011-05-21  Bruno Haible  <bruno@clisp.org>
30639         link: Respect rules for use of AC_LIBOBJ.
30640         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
30641         * modules/link (configure.ac): ... to here.
30643 2011-05-21  Bruno Haible  <bruno@clisp.org>
30645         lchown: Move AC_LIBOBJ invocations to module description.
30646         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
30647         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
30648         * modules/lchown (configure.ac): ... to here.
30650 2011-05-21  Bruno Haible  <bruno@clisp.org>
30652         iswctype: Move AC_LIBOBJ invocations to module description.
30653         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
30654         here...
30655         * modules/iswctype (configure.ac): ... to here.
30657 2011-05-21  Bruno Haible  <bruno@clisp.org>
30659         iswblank: Move AC_LIBOBJ invocations to module description.
30660         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
30661         here...
30662         * modules/iswblank (configure.ac): ... to here.
30664 2011-05-21  Bruno Haible  <bruno@clisp.org>
30666         atanl: Move AC_LIBOBJ invocations to module description.
30667         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
30668         * modules/atanl (configure.ac): ... to here.
30670 2011-05-21  Bruno Haible  <bruno@clisp.org>
30672         acosl: Move AC_LIBOBJ invocations to module description.
30673         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
30674         * modules/acosl (configure.ac): ... to here.
30676 2011-05-21  Bruno Haible  <bruno@clisp.org>
30678         asinl: Respect rules for use of AC_LIBOBJ.
30679         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
30680         * modules/asinl (configure.ac): ... to here.
30682 2011-05-21  Bruno Haible  <bruno@clisp.org>
30684         tanl: Move AC_LIBOBJ invocations to module description.
30685         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
30686         * modules/tanl (configure.ac): ... to here.
30688 2011-05-21  Bruno Haible  <bruno@clisp.org>
30690         cosl: Move AC_LIBOBJ invocations to module description.
30691         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
30692         * modules/cosl (configure.ac): ... to here.
30694 2011-05-21  Bruno Haible  <bruno@clisp.org>
30696         sinl: Move AC_LIBOBJ invocations to module description.
30697         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
30698         * modules/sinl (configure.ac): ... to here.
30700 2011-05-21  Bruno Haible  <bruno@clisp.org>
30702         logl: Move AC_LIBOBJ invocations to module description.
30703         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
30704         * modules/logl (configure.ac): ... to here.
30706 2011-05-21  Bruno Haible  <bruno@clisp.org>
30708         expl: Move AC_LIBOBJ invocations to module description.
30709         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
30710         * modules/expl (configure.ac): ... to here.
30712 2011-05-21  Bruno Haible  <bruno@clisp.org>
30714         roundl: Move AC_LIBOBJ invocations to module description.
30715         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
30716         * modules/roundl (configure.ac): ... to here.
30718 2011-05-21  Bruno Haible  <bruno@clisp.org>
30720         round: Move AC_LIBOBJ invocations to module description.
30721         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
30722         * modules/round (configure.ac): ... to here.
30724 2011-05-21  Bruno Haible  <bruno@clisp.org>
30726         roundf: Move AC_LIBOBJ invocations to module description.
30727         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
30728         * modules/roundf (configure.ac): ... to here.
30730 2011-05-21  Bruno Haible  <bruno@clisp.org>
30732         truncl: Move AC_LIBOBJ invocations to module description.
30733         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
30734         * modules/truncl (configure.ac): ... to here.
30736 2011-05-21  Bruno Haible  <bruno@clisp.org>
30738         trunc: Move AC_LIBOBJ invocations to module description.
30739         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
30740         * modules/trunc (configure.ac): ... to here.
30742 2011-05-21  Bruno Haible  <bruno@clisp.org>
30744         truncf: Move AC_LIBOBJ invocations to module description.
30745         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
30746         * modules/truncf (configure.ac): ... to here.
30748 2011-05-21  Bruno Haible  <bruno@clisp.org>
30750         ceill: Move AC_LIBOBJ invocations to module description.
30751         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
30752         * modules/ceill (configure.ac): ... to here.
30754 2011-05-21  Bruno Haible  <bruno@clisp.org>
30756         ceil: Move AC_LIBOBJ invocations to module description.
30757         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
30758         * modules/ceil (configure.ac): ... to here.
30760 2011-05-21  Bruno Haible  <bruno@clisp.org>
30762         ceilf: Move AC_LIBOBJ invocations to module description.
30763         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
30764         * modules/ceilf (configure.ac): ... to here.
30766 2011-05-21  Bruno Haible  <bruno@clisp.org>
30768         floorl: Respect rules for use of AC_LIBOBJ.
30769         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
30770         * modules/floorl (configure.ac): ... to here.
30772 2011-05-21  Bruno Haible  <bruno@clisp.org>
30774         floor: Respect rules for use of AC_LIBOBJ.
30775         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
30776         * modules/floor (configure.ac): ... to here.
30778 2011-05-21  Bruno Haible  <bruno@clisp.org>
30780         floorf: Move AC_LIBOBJ invocations to module description.
30781         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
30782         * modules/floorf (configure.ac): ... to here.
30784 2011-05-20  Bruno Haible  <bruno@clisp.org>
30786         sqrtl: Respect rules for use of AC_LIBOBJ.
30787         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
30788         * modules/sqrtl (configure.ac): ... to here.
30790 2011-05-20  Bruno Haible  <bruno@clisp.org>
30792         ldexpl: Respect rules for use of AC_LIBOBJ.
30793         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
30794         * modules/ldexpl (configure.ac): ... to here.
30796 2011-05-20  Bruno Haible  <bruno@clisp.org>
30798         frexpl*: Respect rules for use of AC_LIBOBJ.
30799         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
30800         invocation from here...
30801         * modules/frexpl (configure.ac): ... to here.
30802         * modules/frexpl-nolibm (configure.ac): ... and here.
30804 2011-05-20  Bruno Haible  <bruno@clisp.org>
30806         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
30807         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
30808         invocation from here...
30809         * modules/frexp (configure.ac): ... to here.
30810         * modules/frexp-nolibm (configure.ac): ... and here.
30812 2011-05-20  Bruno Haible  <bruno@clisp.org>
30814         isnan: Respect rules for use of AC_LIBOBJ.
30815         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
30816         invocations here.
30817         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
30818         REPLACE_ISNAN.
30819         * modules/isnand (configure.ac): Likewise.
30820         * modules/isnanl (configure.ac): Likewise.
30822 2011-05-20  Bruno Haible  <bruno@clisp.org>
30824         isnanl*: Respect rules for use of AC_LIBOBJ.
30825         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
30826         invocation from here...
30827         * modules/isnanl (configure.ac): ... to here.
30828         * modules/isnanl-nolibm (configure.ac): ... and here.
30830 2011-05-20  Bruno Haible  <bruno@clisp.org>
30832         isnand*: Move AC_LIBOBJ invocations to module description.
30833         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
30834         invocation from here...
30835         * modules/isnand (configure.ac): ... to here.
30836         * modules/isnand-nolibm (configure.ac): ... and here.
30838 2011-05-20  Bruno Haible  <bruno@clisp.org>
30840         isnanf*: Move AC_LIBOBJ invocations to module description.
30841         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
30842         invocation from here...
30843         * modules/isnanf (configure.ac): ... to here.
30844         * modules/isnanf-nolibm (configure.ac): ... and here.
30846 2011-05-20  Bruno Haible  <bruno@clisp.org>
30848         isnan*: Separate the AC_LIBOBJ invocations.
30849         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
30850         AC_LIBOBJ invocation.
30851         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
30852         here.
30853         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
30854         AC_LIBOBJ invocation.
30855         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
30856         here.
30857         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
30858         AC_LIBOBJ invocation.
30859         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
30860         here.
30861         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
30863 2011-05-08  Bruno Haible  <bruno@clisp.org>
30865         isinf: Move AC_LIBOBJ invocations to module description.
30866         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
30867         * modules/isinf (configure.ac): ... to here.
30869 2011-05-08  Bruno Haible  <bruno@clisp.org>
30871         isfinite: Move AC_LIBOBJ invocations to module description.
30872         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
30873         * modules/isfinite (configure.ac): ... to here.
30875 2011-05-08  Bruno Haible  <bruno@clisp.org>
30877         isblank: Move AC_LIBOBJ invocations to module description.
30878         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
30879         here...
30880         * modules/isblank (configure.ac): ... to here.
30882 2011-05-08  Bruno Haible  <bruno@clisp.org>
30884         isapipe: Move AC_LIBOBJ invocations to module description.
30885         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
30886         gl_PREREQ_ISAPIPE invocations from here...
30887         * modules/isapipe (configure.ac): ... to here.
30888         (Depends-on): Update condition.
30890 2011-05-08  Bruno Haible  <bruno@clisp.org>
30892         ioctl: Move AC_LIBOBJ invocations to module description.
30893         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
30894         invocations from here...
30895         * modules/ioctl (configure.ac): ... to here.
30896         (Depends-on): Update condition.
30898 2011-05-08  Bruno Haible  <bruno@clisp.org>
30900         imaxdiv: Move AC_LIBOBJ invocations to module description.
30901         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
30902         invocations from here...
30903         * modules/imaxdiv (configure.ac): ... to here.
30905 2011-05-08  Bruno Haible  <bruno@clisp.org>
30907         imaxabs: Move AC_LIBOBJ invocations to module description.
30908         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
30909         invocations from here...
30910         * modules/imaxabs (configure.ac): ... to here.
30912 2011-05-08  Bruno Haible  <bruno@clisp.org>
30914         getaddrinfo: Move AC_LIBOBJ invocations to module description.
30915         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
30916         AC_LIBOBJ invocations from here...
30917         * modules/getaddrinfo (configure.ac): ... to here.
30918         (Depends-on): Add conditions.
30920 2011-05-08  Bruno Haible  <bruno@clisp.org>
30922         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
30923         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
30924         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
30925         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
30926         (gl_PREREQ_INET_PTON): ... from here.
30927         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
30928         gl_PREREQ_INET_PTON here.
30929         (Depends-on): Update condition.
30931 2011-05-08  Bruno Haible  <bruno@clisp.org>
30933         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
30934         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
30935         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
30936         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
30937         (gl_PREREQ_INET_NTOP): ... from here.
30938         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
30939         gl_PREREQ_INET_NTOP here.
30940         (Depends-on): Update condition.
30942 2011-05-08  Bruno Haible  <bruno@clisp.org>
30944         iconv_open: Move AC_LIBOBJ invocations to module description.
30945         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
30946         AC_LIBOBJ invocations from here...
30947         * modules/iconv_open (configure.ac): ... to here.
30949 2011-05-08  Bruno Haible  <bruno@clisp.org>
30951         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
30952         If module 'iconv_open' is among the main modules and module
30953         'iconv_open-utf' is among the tests dependencies, then
30954         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
30955         return the special iconv_t values. Therefore iconv() and iconv_close()
30956         must support these special iconv_t values, already in lib, not only in
30957         tests.
30958         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
30959         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
30960         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
30961         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
30962         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
30963         (Depends-on): Add the dependencies of iconv_open-utf.
30964         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
30965         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
30966         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
30968 2011-05-08  Bruno Haible  <bruno@clisp.org>
30970         group-member: Move AC_LIBOBJ invocations to module description.
30971         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
30972         gl_PREREQ_GROUP_MEMBER invocations from here...
30973         * modules/group-member (configure.ac): ... to here.
30975 2011-05-08  Bruno Haible  <bruno@clisp.org>
30977         grantpt: Move AC_LIBOBJ invocations to module description.
30978         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
30979         invocations from here...
30980         * modules/grantpt (configure.ac): ... to here.
30982 2011-05-08  Bruno Haible  <bruno@clisp.org>
30984         glob: Move AC_LIBOBJ invocations to module description.
30985         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
30986         from here...
30987         * modules/glob (configure.ac): ... to here.
30989 2011-05-08  Bruno Haible  <bruno@clisp.org>
30991         getusershell: Move AC_LIBOBJ invocations to module description.
30992         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
30993         Move AC_LIBOBJ invocation from here...
30994         * modules/getusershell (configure.ac): ... to here.
30995         (Depends-on): Update condition.
30997 2011-05-08  Bruno Haible  <bruno@clisp.org>
30999         gettimeofday: Move AC_LIBOBJ invocations to module description.
31000         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
31001         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
31002         gl_PREREQ_GETTIMEOFDAY invocations from here...
31003         * modules/gettimeofday (configure.ac): ... to here.
31005 2011-05-08  Bruno Haible  <bruno@clisp.org>
31007         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
31008         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
31009         just gl_FUNC_TZSET.
31010         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
31011         (gl_FUNC_TZSET_CLOBBER): Remove actions.
31012         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
31013         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
31015 2011-05-08  Bruno Haible  <bruno@clisp.org>
31017         getsubopt: Move AC_LIBOBJ invocations to module description.
31018         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
31019         gl_PREREQ_GETSUBOPT invocations from here...
31020         * modules/getsubopt (configure.ac): ... to here.
31022 2011-05-08  Bruno Haible  <bruno@clisp.org>
31024         getpass-gnu: Move AC_LIBOBJ invocations to module description.
31025         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
31026         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
31027         * modules/getpass-gnu (configure.ac): ... to here.
31029 2011-05-08  Bruno Haible  <bruno@clisp.org>
31031         getpass: Move AC_LIBOBJ invocations to module description.
31032         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
31033         gl_PREREQ_GETPASS invocations from here...
31034         * modules/getpass (configure.ac): ... to here.
31036 2011-05-08  Bruno Haible  <bruno@clisp.org>
31038         getpagesize: Move AC_LIBOBJ invocations to module description.
31039         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
31040         from here...
31041         * modules/getpagesize (configure.ac): ... to here.
31043 2011-05-08  Bruno Haible  <bruno@clisp.org>
31045         getopt: Move AC_LIBOBJ invocations to module description.
31046         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
31047         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
31048         invocations from here...
31049         * modules/getopt-gnu (configure.ac): ... to here.
31050         * modules/getopt-posix (configure.ac): ... and here.
31051         (Depends-on): Update condition.
31053 2011-05-08  Bruno Haible  <bruno@clisp.org>
31055         getopt, argp: Respect rules for use of AC_LIBOBJ.
31056         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
31057         (gl_REPLACE_GETOPT_ALWAYS): New macro.
31058         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
31059         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
31061 2011-05-08  Bruno Haible  <bruno@clisp.org>
31063         getlogin_r: Move AC_LIBOBJ invocations to module description.
31064         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
31065         gl_PREREQ_GETLOGIN_R invocations from here...
31066         * modules/getlogin_r (configure.ac): ... to here.
31068 2011-05-08  Bruno Haible  <bruno@clisp.org>
31070         getlogin: Move AC_LIBOBJ invocations to module description.
31071         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
31072         here...
31073         * modules/getlogin (configure.ac): ... to here.
31075 2011-05-08  Bruno Haible  <bruno@clisp.org>
31077         getloadavg: Move AC_LIBOBJ invocations to module description.
31078         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
31079         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
31080         * modules/getloadavg (configure.ac): ... to here.
31082 2011-05-08  Bruno Haible  <bruno@clisp.org>
31084         gethrxtime: Move AC_LIBOBJ invocations to module description.
31085         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
31086         LIB_GETHRXTIME from here...
31087         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
31088         invocations from here...
31089         * modules/gethrxtime (configure.ac): ... to here.
31091 2011-05-08  Bruno Haible  <bruno@clisp.org>
31093         gethostname: Move AC_LIBOBJ invocations to module description.
31094         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
31095         gl_PREREQ_GETHOSTNAME invocations from here...
31096         * modules/gethostname (configure.ac): ... to here.
31098 2011-05-08  Bruno Haible  <bruno@clisp.org>
31100         getgroups: Move AC_LIBOBJ invocations to module description.
31101         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
31102         here...
31103         * modules/getgroups (configure.ac): ... to here.
31105 2011-05-08  Bruno Haible  <bruno@clisp.org>
31107         getdtablesize: Move AC_LIBOBJ invocations to module description.
31108         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
31109         invocation from here...
31110         * modules/getdtablesize (configure.ac): ... to here.
31112 2011-05-08  Bruno Haible  <bruno@clisp.org>
31114         getdomainname: Move AC_LIBOBJ invocations to module description.
31115         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
31116         gl_PREREQ_GETDOMAINNAME invocations from here...
31117         * modules/getdomainname (configure.ac): ... to here.
31119 2011-05-08  Bruno Haible  <bruno@clisp.org>
31121         getline: Move AC_LIBOBJ invocations to module description.
31122         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
31123         invocations from here...
31124         * modules/getline (configure.ac): ... to here.
31126 2011-05-08  Bruno Haible  <bruno@clisp.org>
31128         getline: Simplify.
31129         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
31130         It's already handled through the module dependency.
31132 2011-05-08  Bruno Haible  <bruno@clisp.org>
31134         getdelim: Move AC_LIBOBJ invocations to module description.
31135         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
31136         and gl_PREREQ_GETDELIM invocations from here...
31137         * modules/getdelim (configure.ac): ... to here.
31138         (Depends-on): Fix condition.
31140 2011-05-08  Bruno Haible  <bruno@clisp.org>
31142         getcwd: Move AC_LIBOBJ invocations to module description.
31143         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
31144         invocations from here...
31145         * modules/getcwd (configure.ac): ... to here.
31147 2011-05-08  Bruno Haible  <bruno@clisp.org>
31149         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
31150         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
31151         here...
31152         * modules/getcwd-lgpl (configure.ac): ... to here.
31154 2011-05-07  Bruno Haible  <bruno@clisp.org>
31156         crypto/gc: Move AC_LIBOBJ invocations to module description.
31157         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
31158         * modules/crypto/gc (configure.ac): ... to here.
31160 2011-05-07  Bruno Haible  <bruno@clisp.org>
31162         fwriting: Move AC_LIBOBJ invocations to module description.
31163         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
31164         here...
31165         * modules/fwriting (configure.ac): ... to here.
31167 2011-05-07  Bruno Haible  <bruno@clisp.org>
31169         fwritable: Move AC_LIBOBJ invocations to module description.
31170         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
31171         here...
31172         * modules/fwritable (configure.ac): ... to here.
31174 2011-05-07  Bruno Haible  <bruno@clisp.org>
31176         futimens: Move AC_LIBOBJ invocations to module description.
31177         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
31178         here...
31179         * modules/futimens (configure.ac): ... to here.
31181 2011-05-07  Bruno Haible  <bruno@clisp.org>
31183         ftruncate: Move AC_LIBOBJ invocations to module description.
31184         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
31185         gl_PREREQ_FTRUNCATE invocations from here...
31186         * modules/ftruncate (configure.ac): ... to here.
31188 2011-05-07  Bruno Haible  <bruno@clisp.org>
31190         fsync: Move AC_LIBOBJ invocations to module description.
31191         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
31192         invocations from here...
31193         * modules/fsync (configure.ac): ... to here.
31195 2011-05-07  Bruno Haible  <bruno@clisp.org>
31197         fsusage: Move AC_LIBOBJ invocations to module description.
31198         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
31199         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
31200         * modules/fsusage (configure.ac): ... to here.
31202 2011-05-07  Bruno Haible  <bruno@clisp.org>
31204         freopen: Move AC_LIBOBJ invocations to module description.
31205         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
31206         invocations from here...
31207         * modules/freopen (configure.ac): ... to here.
31209 2011-05-07  Bruno Haible  <bruno@clisp.org>
31211         free: Move AC_LIBOBJ invocations to module description.
31212         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
31213         invocations from here...
31214         * modules/free (configure.ac): ... to here.
31216 2011-05-07  Bruno Haible  <bruno@clisp.org>
31218         freadable: Move AC_LIBOBJ invocations to module description.
31219         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
31220         here...
31221         * modules/freadable (configure.ac): ... to here.
31223 2011-05-07  Bruno Haible  <bruno@clisp.org>
31225         fpurge: Move AC_LIBOBJ invocations to module description.
31226         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
31227         invocations from here...
31228         * modules/fpurge (configure.ac): ... to here.
31230 2011-05-07  Bruno Haible  <bruno@clisp.org>
31232         fpending: Move AC_LIBOBJ invocations to module description.
31233         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
31234         gl_FUNC_FPENDING.
31235         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
31236         invocations from here...
31237         * modules/fpending (configure.ac): ... to here.
31239 2011-05-07  Bruno Haible  <bruno@clisp.org>
31241         fopen: Move AC_LIBOBJ invocations to module description.
31242         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
31243         invocations from here...
31244         * modules/fopen (configure.ac): ... to here.
31246 2011-05-07  Bruno Haible  <bruno@clisp.org>
31248         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
31249         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
31250         gl_FUNC_FNMATCH_POSIX.
31251         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
31252         invocations from here...
31253         * modules/fnmatch (configure.ac): ... to here.
31254         * modules/fnmatch-gnu (configure.ac): ... and here.
31256 2011-05-07  Bruno Haible  <bruno@clisp.org>
31258         flock: Move AC_LIBOBJ invocations to module description.
31259         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
31260         invocations from here...
31261         * modules/flock (configure.ac): ... to here.
31263 2011-05-07  Bruno Haible  <bruno@clisp.org>
31265         fileblocks: Move AC_LIBOBJ invocations to module description.
31266         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
31267         gl_PREREQ_FILEBLOCKS invocations from here...
31268         * modules/fileblocks (configure.ac): ... to here.
31270 2011-05-06  Bruno Haible  <bruno@clisp.org>
31272         fflush: Move AC_LIBOBJ invocations to module description.
31273         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
31274         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
31275         invocations from here...
31276         * modules/fflush (configure.ac): ... to here.
31278 2011-05-06  Bruno Haible  <bruno@clisp.org>
31280         fdopendir: Move AC_LIBOBJ invocations to module description.
31281         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
31282         here...
31283         * modules/fdopendir (configure.ac): ... to here.
31284         (Depends-on): Improve conditions.
31286 2011-05-06  Bruno Haible  <bruno@clisp.org>
31288         _Exit: Move AC_LIBOBJ invocations to module description.
31289         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
31290         invocations from here...
31291         * modules/_Exit (configure.ac): ... to here.
31293 2011-05-21  Bruno Haible  <bruno@clisp.org>
31295         euidaccess: Respect rules for use of AC_LIBOBJ.
31296         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
31297         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
31298         from here...
31299         * modules/euidaccess (configure.ac): ... to here.
31301 2011-05-06  Bruno Haible  <bruno@clisp.org>
31303         error: Move AC_LIBOBJ invocations to module description.
31304         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
31305         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
31306         invocations from here...
31307         * modules/error (configure.ac): ... to here.
31309 2011-05-06  Bruno Haible  <bruno@clisp.org>
31311         duplocale: Move AC_LIBOBJ invocations to module description.
31312         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
31313         gl_PREREQ_DUPLOCALE invocations from here...
31314         * modules/duplocale (configure.ac): ... to here.
31316 2011-05-05  Bruno Haible  <bruno@clisp.org>
31318         dirfd: Move AC_LIBOBJ invocations to module description.
31319         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
31320         gl_FUNC_DIRFD.
31321         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
31322         here...
31323         * modules/dirfd (configure.ac): ... to here.
31324         (Depends-on): Fix condition.
31326 2011-05-05  Bruno Haible  <bruno@clisp.org>
31328         chown: Respect rules for use of AC_LIBOBJ.
31329         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
31330         * modules/chown (configure.ac): ... to here.
31332 2011-05-05  Bruno Haible  <bruno@clisp.org>
31334         chdir-long: Move AC_LIBOBJ invocations to module description.
31335         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
31336         gl_PREREQ_CHDIR_LONG invocations from here...
31337         * modules/chdir-long (configure.ac): ... to here.
31339 2011-05-05  Bruno Haible  <bruno@clisp.org>
31341         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
31342         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
31343         from here...
31344         * modules/canonicalize-lgpl (configure.ac): ... to here.
31346 2011-05-05  Bruno Haible  <bruno@clisp.org>
31348         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
31349         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
31350         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
31351         REPLACE_CALLOC.
31352         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
31353         * modules/calloc-gnu (configure.ac): Likewise.
31355 2011-05-05  Bruno Haible  <bruno@clisp.org>
31357         btowc: Move AC_LIBOBJ invocations to module description.
31358         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
31359         invocations from here...
31360         * modules/btowc (configure.ac): ... to here.
31362 2011-05-21  Bruno Haible  <bruno@clisp.org>
31364         atexit: Move AC_LIBOBJ invocations to module description.
31365         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
31366         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
31367         here...
31368         * modules/atexit (configure.ac): ... to here.
31370 2011-05-05  Bruno Haible  <bruno@clisp.org>
31372         atoll: Move AC_LIBOBJ invocations to module description.
31373         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
31374         invocations from here...
31375         * modules/atoll (configure.ac): ... to here.
31377 2011-05-05  Bruno Haible  <bruno@clisp.org>
31379         argz: Move AC_LIBOBJ invocations to module description.
31380         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
31381         * modules/argz (configure.ac): ... to here.
31383 2011-05-05  Bruno Haible  <bruno@clisp.org>
31385         alphasort: Move AC_LIBOBJ invocations to module description.
31386         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
31387         gl_PREREQ_ALPHASORT invocations from here...
31388         * modules/alphasort (configure.ac): ... to here.
31390 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31392         verify: new macro verify_expr; verify_true deprecated
31393         * NEWS: Mention this.
31394         * doc/verify.texi (Compile-time Assertions): Document this.
31395         * lib/verify.h (verify_true): Deprecate.
31396         (verify_expr): New macro.
31397         * tests/test-verify.c (function): Test verify_expr.
31399 2011-06-14  Jim Meyering  <meyering@redhat.com>
31401         init.sh: give more portable redirection-related advice in a comment
31402         * tests/init.sh (stderr_fileno_): Update the advice in comments.
31403         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
31404         for lots of discussion.  Stefano Lattarini suggested the solution
31405         of putting "9>&2" after the command.  Reported by Bruno Haible.
31407 2011-06-13  Bruno Haible  <bruno@clisp.org>
31409         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
31410         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
31411         'none'.
31413 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
31415         ftoastr: use strtof only if HAVE_STRTOF
31416         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
31417         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
31418         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
31419         * modules/ftoastr (configure.ac): Check for strtof.
31421 2011-06-13  Bruno Haible  <bruno@clisp.org>
31423         gnulib-tool: Addendum to 2011-06-08 commit.
31424         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
31425         and --witness-c-macro have been given, augment AM_CPPFLAGS.
31427 2011-06-13  Bruno Haible  <bruno@clisp.org>
31429         fseeko: Provide a non-inline replacement of fseek().
31430         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
31431         * modules/fseeko (Depends-on): Add fseek.
31432         * modules/fseek (License): Change to LGPLv2+.
31434 2011-06-13  Bruno Haible  <bruno@clisp.org>
31436         ftello: Provide a non-inline replacement of ftell().
31437         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
31438         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
31439         not have ftello() (such as on mingw).
31440         * modules/ftello (Depends-on): Add ftell.
31441         * modules/ftell (License): Change to LGPLv2+.
31443 2011-05-07  Bruno Haible  <bruno@clisp.org>
31445         ftell: Move AC_LIBOBJ invocations to module description.
31446         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
31447         * modules/ftell (configure.ac): ... to here.
31449 2011-05-07  Bruno Haible  <bruno@clisp.org>
31451         ftello: Respect rules for use of AC_LIBOBJ.
31452         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
31453         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
31454         here...
31455         * modules/ftello (configure.ac): ... to here.
31457 2011-05-07  Bruno Haible  <bruno@clisp.org>
31459         fseeko: Simplify.
31460         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
31461         (gl_FUNC_FSEEKO): Inline it here.
31463 2011-05-07  Bruno Haible  <bruno@clisp.org>
31465         fseek: Move AC_LIBOBJ invocations to module description.
31466         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
31467         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
31468         * modules/fseek (configure.ac): ... to here.
31470 2011-05-07  Bruno Haible  <bruno@clisp.org>
31472         fseek: Respect rules for use of AC_LIBOBJ.
31473         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
31474         here...
31475         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
31477 2011-05-07  Bruno Haible  <bruno@clisp.org>
31479         fseeko: Respect rules for use of AC_LIBOBJ.
31480         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
31481         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
31482         here...
31483         * modules/fseeko (configure.ac): ... to here.
31485 2011-06-13  Bruno Haible  <bruno@clisp.org>
31487         gnulib-tool: Allow comments in the 'Depends-on' section.
31488         * doc/gnulib.texi (Module description): Mention comment syntax in the
31489         Depends-on section.
31490         * gnulib-tool (func_get_dependencies): Filter out comment lines.
31492 2011-06-13  Bruno Haible  <bruno@clisp.org>
31494         file-set.h: guard __attibute__ use, now that it's not always defined
31495         * lib/file-set.h (record_file): Use __attribute__ only with compiler
31496         versions that support it.  This fixes a coreutils build failure with
31497         the vendor cc on HP-UX 11.31.
31499 2011-06-12  Bruno Haible  <bruno@clisp.org>
31501         acl: Add support for HP-UX >= 11.11 JFS ACLs.
31502         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
31503         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
31504         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
31505         (acl, aclsort): New declarations.
31506         (aclv_nontrivial): New declaration.
31507         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
31508         (file_has_acl): Read also the second kind of HP-UX ACLs.
31509         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
31510         kind of HP-UX ACLs if the first kind fails.
31511         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
31512         second kind of HP-UX ACLs.
31513         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
31514         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
31515         agree.
31516         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
31517         hpuxjfs.
31518         Handle hpuxjfs.
31519         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
31520         hpuxjfs.
31521         Handle hpuxjfs.
31522         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
31523         (func_test_same_acls): Use both lsacl and getacl.
31524         Handle hpuxjfs.
31525         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
31526         (func_test_same_acls): Use both lsacl and getacl.
31527         Handle hpuxjfs.
31529 2011-06-12  Bruno Haible  <bruno@clisp.org>
31531         acl: Complete the 2010-08-10 fix.
31532         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
31533         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
31534         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
31535         explicitly.
31536         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
31537         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
31539 2011-06-12  Bruno Haible  <bruno@clisp.org>
31541         spawn-pipe tests: Comments.
31542         * tests/test-spawn-pipe-child.c (main): Update comment.
31543         Reported by James Youngman <jay@gnu.org>.
31545 2011-06-11  James Youngman  <jay@gnu.org>
31547         New module 'stat-size'.
31548         * modules/stat-size: New module.  Provides macros for accessing
31549         file size information in instances of struct stat.  Depends on the
31550         fileblocks module because it calls st_blocks.
31551         * lib/stat-size.h: New file, adapted from coreutils' system.h.
31552         * doc/gnulib.texi: Include stat-size.texi.
31553         * doc/stat-size.texi: Documentation for this module.
31554         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
31555         * m4/fileblocks.m4: Mention that stat-size depends on the call to
31556         AC_STRUCT_ST_BLOCKS.
31558 2011-06-09  Bruno Haible  <bruno@clisp.org>
31560         thread: Support pthreads-win32.
31561         * lib/glthread/thread.h (gl_thread_self): Define differently on
31562         pthreads-win32.
31563         (gl_null_thread): New declaration.
31564         (gl_thread_self_pointer): New macro.
31565         * lib/glthread/thread.c (gl_null_thread): New constant.
31566         * tests/test-lock.c: Use gl_thread_self_pointer instead of
31567         gl_thread_self.
31568         * tests/test-tls.c: Likewise.
31569         Suggested by Paul Eggert. Reported by Eric Blake.
31571 2011-06-09  Bruno Haible  <bruno@clisp.org>
31573         thread: Fix confusion between NULL and 0.
31574         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
31575         Reported by Paul Eggert.
31577 2011-06-09  Bruno Haible  <bruno@clisp.org>
31579         spawn-pipe tests: Avoid test failure on HP-UX 11.
31580         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
31581         is closed.
31583 2011-06-09  Bruno Haible  <bruno@clisp.org>
31585         acl tests: Fix compilation error on HP-UX 11.
31586         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
31588 2011-06-09  Bruno Haible  <bruno@clisp.org>
31590         rmdir: Avoid test failure on HP-UX 10.20.
31591         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
31592         EEXIST.
31594 2011-06-08  Eric Blake  <eblake@redhat.com>
31596         perror: fix test on mingw
31597         * modules/perror-tests (Depends-on): Add dup2.
31599         strerror_r-posix: fix on MacOS
31600         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
31601         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
31602         logic bug.
31603         * lib/strerror_r.c (strerror_r): Fix the bug.
31604         * lib/strerror.c (strerror): Likewise.
31605         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
31606         problem.
31607         * doc/posix-functions/strerror.texi (strerror): Likewise.
31608         * doc/posix-functions/perror.texi (perror): Likewise.
31609         * tests/test-strerror.c (main): Enhance test.
31610         * tests/test-strerror_r.c (main): Likewise.
31612 2011-06-08  Bruno Haible  <bruno@clisp.org>
31614         gnulib-tool: Better isolation between different gnulib-tool invocations.
31615         * gnulib-tool: New option --witness-c-macro.
31616         (witness_c_macro): New variable.
31617         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
31618         AM_CPPFLAGS define it as a C macro.
31619         (func_emit_tests_Makefile_am): Likewise.
31620         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
31621         read it from there.
31622         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
31623         m4_define, not AC_DEFUN.
31624         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
31625         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
31626         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
31627         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
31628         s|...|...|, to substitute the values of the GNULIB_* module indicator
31629         variables.
31630         * modules/dirent (Makefile.am): Likewise.
31631         * modules/fcntl-h (Makefile.am): Likewise.
31632         * modules/iconv-h (Makefile.am): Likewise.
31633         * modules/langinfo (Makefile.am): Likewise.
31634         * modules/locale (Makefile.am): Likewise.
31635         * modules/math (Makefile.am): Likewise.
31636         * modules/netdb (Makefile.am): Likewise.
31637         * modules/poll-h (Makefile.am): Likewise.
31638         * modules/pty (Makefile.am): Likewise.
31639         * modules/search (Makefile.am): Likewise.
31640         * modules/signal (Makefile.am): Likewise.
31641         * modules/spawn (Makefile.am): Likewise.
31642         * modules/stdio (Makefile.am): Likewise.
31643         * modules/stdlib (Makefile.am): Likewise.
31644         * modules/string (Makefile.am): Likewise.
31645         * modules/sys_ioctl (Makefile.am): Likewise.
31646         * modules/sys_select (Makefile.am): Likewise.
31647         * modules/sys_socket (Makefile.am): Likewise.
31648         * modules/sys_stat (Makefile.am): Likewise.
31649         * modules/sys_times (Makefile.am): Likewise.
31650         * modules/sys_utsname (Makefile.am): Likewise.
31651         * modules/sys_wait (Makefile.am): Likewise.
31652         * modules/termios (Makefile.am): Likewise.
31653         * modules/time (Makefile.am): Likewise.
31654         * modules/unistd (Makefile.am): Likewise.
31655         * modules/wchar (Makefile.am): Likewise.
31657 2011-06-08  Eric Blake  <eblake@redhat.com>
31659         strerror: simplify replacement
31660         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
31661         * modules/strerror (configure.ac): No prereqs needed here...
31662         * modules/strerror-override (configure.ac): ...but this needs it.
31663         (Files): Add file for needed prereq macro.
31665 2011-06-08  Bruno Haible  <bruno@clisp.org>
31667         strerror_r-posix: Tweaks.
31668         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
31669         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
31670         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
31671         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
31672         (gl_FUNC_STRERROR_R): ... to here.
31673         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
31675 2011-06-07  Eric Blake  <eblake@redhat.com>
31677         perror: document fixed bugs
31678         * doc/posix-functions/perror.texi (perror): Document recent
31679         patches.
31681 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
31683         stat-time: get_stat_birthtime failure is better-defined
31684         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
31685         return a timestamp whose tv_sec and tv_nsec values are both -1.
31686         Previously, the spec said only that the tv_nsec value was negative.
31687         This upward-compatible change simplifies GNU tar a bit.
31689 2011-06-07  Eric Blake  <eblake@redhat.com>
31691         strerror_r-posix: work around cygwin 1.7.9
31692         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
31693         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
31694         bug without replacing strerror_r.
31695         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
31696         strerror_r is buggy, but without requiring strerror_r compilation.
31697         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
31699         test-perror: relax test to ignore cygwin bug
31700         * tests/test-perror2.c (main): Relax test on requiring detection
31701         of stream errors, and use unbuffered stream.
31702         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
31703         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
31704         * doc/posix-functions/fputc.texi (fputc): Likewise.
31705         * doc/posix-functions/fputs.texi (fputs): Likewise.
31706         * doc/posix-functions/fputws.texi (fputws): Likewise.
31707         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
31708         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
31709         * doc/posix-functions/getopt.texi (getopt): Likewise.
31710         * doc/posix-functions/perror.texi (perror): Likewise.
31711         * doc/posix-functions/printf.texi (printf): Likewise.
31712         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
31713         * doc/posix-functions/psignal.texi (psignal): Likewise.
31714         * doc/posix-functions/putc.texi (putc): Likewise.
31715         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
31716         Likewise.
31717         * doc/posix-functions/putchar.texi (putchar): Likewise.
31718         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
31719         Likewise.
31720         * doc/posix-functions/puts.texi (puts): Likewise.
31721         * doc/posix-functions/putwc.texi (putwc): Likewise.
31722         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31723         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31724         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31725         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
31726         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31727         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31728         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31729         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
31731 2011-05-22  Bruno Haible  <bruno@clisp.org>
31733         strerror: Move AC_LIBOBJ invocations to module description.
31734         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
31735         gl_PREREQ_STRERROR invocations from here...
31736         * modules/strerror (configure.ac): ... to here.
31738 2011-05-21  Bruno Haible  <bruno@clisp.org>
31740         perror: Use common idiom.
31741         * modules/perror (configure.ac): Reorder statements.
31743 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
31745         tests: fix usage message in 'mktempd_'
31746         * tests/init.sh (mktempd_): In the usage message, use literal
31747         'mktempd_', not '$ME' (which is even undefined), as the name of
31748         the subroutine.
31750 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
31752         tests init: new function 'fatal_', for hard errors
31753         Before this patch, the only way offered by tests/init.sh to
31754         properly signal a hard error was the `framework_failure_'
31755         function.  But the error message issued by that function,
31756         as its name would suggest, refers to a set-up failure in the
31757         testsuite, while hard errors can obviously also be due to
31758         other reasons.  The best way to fix this inconsistency is to
31759         introduce a new function with a more general error message.
31760         * tests/init.sh (fatal_): New function.
31762 2011-06-06  Eric Blake  <eblake@redhat.com>
31764         canonicalize-lgpl: use common idiom
31765         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
31766         over newer POSIX -Rf.
31767         Reported by Bruno Haible.
31769         canonicalize-lgpl: work around AIX realpath bug
31770         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
31771         * doc/posix-functions/realpath.texi (realpath): Document it.
31772         Reported by Bruno Haible.
31774         strerror: work around FreeBSD bug
31775         * lib/strerror.c (strerror): Special case 0.
31776         Reported by Bruno Haible.
31778         strerror-override: avoid bloating errno module
31779         * modules/errno (Files, configure.ac): Move replacement strings...
31780         * modules/strerror-override: ...to new module.
31781         * modules/strerror (Depends-on): Add strerror-override.
31782         * modules/strerror_r-posix (Depends-on): Likewise.
31783         * MODULES.html.sh: Document new module.
31784         Reported by Bruno Haible.
31786 2011-06-06  Bruno Haible  <bruno@clisp.org>
31788         spawn-pipe tests: Rename program.
31789         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
31790         * tests/test-spawn-pipe-child.c: Update comment.
31791         * tests/test-spawn-pipe.sh: Update.
31792         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
31794         spawn-pipe tests: Link the child program only against libc.
31795         * tests/test-spawn-pipe-child.c: New file, extracted from
31796         tests/test-spawn-pipe.c.
31797         (main): Expect only one argument.
31798         (is_open): New function, copied from tests/test-pipe.c.
31799         * tests/test-spawn-pipe.c: Don't include <errno.h>.
31800         (child_main): Remove function.
31801         (test_pipe): Pass only one argument to the child program.
31802         (main): Remove child process code. Expect the child program's name as
31803         first argument.
31804         * tests/test-spawn-pipe.sh: Pass the child program's name as first
31805         argument.
31806         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
31807         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
31808         test-spawn-pipe-child against no libraries.
31810 2011-06-06  Bruno Haible  <bruno@clisp.org>
31812         careadlinkat: Avoid mismatch between ssize_t and int.
31813         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
31814         * lib/careadlinkat.c (careadlinkatcwd): Define always.
31816 2011-06-06  Jim Meyering  <meyering@redhat.com>
31818         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
31819         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
31820         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
31822 2011-06-05  Bruno Haible  <bruno@clisp.org>
31824         ansi-c++-opt: Interoperability with libtool.
31825         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
31826         set the variable to "no", not to ":".
31827         * NEWS: Mention the change.
31829 2011-06-05  Bruno Haible  <bruno@clisp.org>
31831         acl: Fix test failure on AIX 7.
31832         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
31833         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
31835 2011-06-05  Bruno Haible  <bruno@clisp.org>
31837         pipe-filter-ii: Fix test failure on AIX and IRIX.
31838         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
31839         with EAGAIN, retry with a smaller buffer size.
31841 2011-06-05  Bruno Haible  <bruno@clisp.org>
31843         localename: Fix link dependencies.
31844         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
31845         * modules/localename-tests (Makefile.am): Link test-localename with
31846         $(LIBTHREAD).
31848 2011-06-05  Bruno Haible  <bruno@clisp.org>
31850         error: Avoid gcc warning.
31851         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
31853 2011-06-05  Bruno Haible  <bruno@clisp.org>
31855         unsetenv: Avoid gcc warning.
31856         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
31858 2011-06-05  Bruno Haible  <bruno@clisp.org>
31860         setenv: Avoid gcc warning.
31861         * lib/setenv.c (setenv): Provide declaration if system lacks it.
31863 2011-06-05  Bruno Haible  <bruno@clisp.org>
31865         sys_select: Ensure memset is declared also on AIX 7.
31866         * lib/sys_select.in.h: Include <string.h> also on AIX.
31867         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
31868         self-contained also on AIX 7.1.
31870 2011-06-04  Jim Meyering  <meyering@redhat.com>
31872         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
31873         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
31874         function name, "error".
31875         (_gl_translatable_diag_func_re): New configurable variable.
31877 2011-06-04  Bruno Haible  <bruno@clisp.org>
31879         getopt: Avoid gcc warning.
31880         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
31882 2011-06-04  Bruno Haible  <bruno@clisp.org>
31884         strerror_r: Fix comments.
31885         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
31886         commit.
31888 2011-06-04  Bruno Haible  <bruno@clisp.org>
31890         perror: Fix compilation error.
31891         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
31892         Undefine fprintf, not sprintf.
31893         * modules/perror (Depends-on): Remove intprops, verify.
31895 2011-06-04  Bruno Haible  <bruno@clisp.org>
31897         setlocale: Enable replacement on Cygwin 1.5.
31898         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
31899         Cygwin 1.5.x.
31900         * doc/posix-functions/setlocale.texi: Mention that the problem with the
31901         LC_CTYPE category also exists on Cygwin 1.5.x.
31903 2011-06-04  Bruno Haible  <bruno@clisp.org>
31905         strerror-override: Don't disable symbol renamings.
31906         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
31907         * lib/strerror-override.c: Include config.h.
31908         (strerror_override): Don't undefine.
31910 2011-06-03  Bruno Haible  <bruno@clisp.org>
31912         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
31913         * lib/localename.h: Update copyright header.
31914         * lib/localename.c: Likewise.
31915         * lib/relocatable.h: Likewise.
31916         * lib/relocatable.c: Likewise.
31918 2011-06-02  Bruno Haible  <bruno@clisp.org>
31920         doc: Fix a module name.
31921         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
31923 2011-06-02  Bruno Haible  <bruno@clisp.org>
31925         pipe2: Remove dependency on 'nonblocking' module.
31926         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
31927         O_NONBLOCK is defined by gnulib.
31928         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
31929         is zero.
31930         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
31931         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
31932         defined by gnulib.
31933         (get_nonblocking_flag): New function.
31934         (main): Test O_NONBLOCK flag only if it is nonzero.
31935         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
31937 2011-06-03  Jim Meyering  <meyering@redhat.com>
31939         maint: three new prohibit-header-without-use rules
31940         Prohibit use of cloexec.h, posixver.h, same.h without use.
31941         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
31942         (sc_prohibit_posixver_without_use): Likewise.
31943         (sc_prohibit_same_without_use): Likewise.
31945 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31947         allocator: 'die' routine is now given requested size
31948         * lib/allocator.h (struct allocator.die): New size arg.
31949         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
31950         If the actual problem is an ssize_t limitation, not a size_t or
31951         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
31953 2011-06-01  Eric Blake  <eblake@redhat.com>
31955         strerror: drop strerror_r dependency
31956         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
31957         * lib/strerror-override.c (strerror_override): ...to new file.
31958         * lib/strerror-override.h: Add prototype.
31959         * lib/strerror-impl.h: Delete.
31960         * lib/strerror.c (strerror): New implementation.
31961         * modules/errno (Files): Add new files.
31962         (configure.ac): Compile new file as appropriate.
31963         * modules/strerror (Files): Drop unused file.
31964         (Depends-on): Drop strerror_r-posix.
31965         * MODULES.html.sh: Document strerror_r-posix.
31966         Requested by Sam Steingold.
31968         perror: call strerror_r directly
31969         * modules/perror (Files): Drop strerror-impl.h.
31970         * lib/perror.c (perror): Use our own stack buffer, rather than
31971         calling a wrapper that uses static storage.
31972         * doc/posix-functions/perror.texi (perror): Document a limitation
31973         of our replacement.
31975         strerror_r: fix includes for FreeBSD
31976         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
31977         since we use abort on some platforms.
31978         Reported by Matthias Bolte.
31980 2011-05-31  Bruno Haible  <bruno@clisp.org>
31982         Fix link errors in tests: openat-die uses gettext-h.
31983         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
31984         against $(LIBINTL).
31985         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
31986         against $(LIBINTL).
31987         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
31988         $(LIBINTL).
31989         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
31990         against $(LIBINTL).
31991         * modules/linkat-tests (Makefile.am): Link test-linkat against
31992         $(LIBINTL).
31993         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
31994         $(LIBINTL).
31995         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
31996         against $(LIBINTL).
31997         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
31998         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
31999         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
32000         $(LIBINTL).
32001         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
32002         $(LIBINTL).
32003         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
32004         $(LIBINTL).
32005         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32007 2011-05-31  Bruno Haible  <bruno@clisp.org>
32009         Fix link errors in tests: wait-process uses gettext-h.
32010         * modules/nonblocking-pipe-tests (Makefile.am): Set
32011         test_nonblocking_pipe_main_LDADD.
32012         * modules/nonblocking-socket-tests (Makefile.am): Link
32013         test-nonblocking-socket-main against $(LIBINTL).
32014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32016 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32018         assert-h: work around 'verify' incompatibility
32019         * lib/verify.h: Use @...@ directives, not ifdef.
32020         * modules/assert-h (assert.h): Implement the directives.
32021         (assert.h): Substitute the symbol-prefix more consistently.
32023 2011-05-29  Jim Meyering  <meyering@redhat.com>
32025         trim: remove three superfluous assignments
32026         * lib/trim.c (trim2): Remove three superfluous assignments
32027         and correct brace positioning.
32029 2011-05-29  Bruno Haible  <bruno@clisp.org>
32031         wctype-h: Avoid namespace pollution on Solaris 2.6.
32032         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
32033         identifiers.
32034         * doc/posix-headers/wctype.texi: Mention the problem.
32035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32037 2011-05-28  Jim Meyering  <meyering@redhat.com>
32039         parse-datetime.y: accommodate -Wstrict-overflow
32040         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
32041         placate -Wstrict-overflow.
32043         trim: avoid a warning from -O2 -Wstrict-overflow
32044         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
32046 2011-05-29  Bruno Haible  <bruno@clisp.org>
32048         gnulib-tool: Fix bug in yesterday's commit.
32049         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
32050         twice.
32052 2011-05-29  Bruno Haible  <bruno@clisp.org>
32054         Allow multiple gnulib generated include files to be combined.
32055         * gnulib-tool (func_compute_include_guard_prefix): New function.
32056         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
32057         ${gl_include_guard_prefix} references.
32058         (func_import, func_create_testdir): Invoke
32059         func_compute_include_guard_prefix.
32060         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
32061         * lib/ctype.in.h: Likewise.
32062         * lib/dirent.in.h: Likewise.
32063         * lib/errno.in.h: Likewise.
32064         * lib/fcntl.in.h: Likewise.
32065         * lib/float.in.h: Likewise.
32066         * lib/getopt.in.h: Likewise.
32067         * lib/iconv.in.h: Likewise.
32068         * lib/langinfo.in.h: Likewise.
32069         * lib/locale.in.h: Likewise.
32070         * lib/math.in.h: Likewise.
32071         * lib/netdb.in.h: Likewise.
32072         * lib/netinet_in.in.h: Likewise.
32073         * lib/poll.in.h: Likewise.
32074         * lib/pthread.in.h: Likewise.
32075         * lib/pty.in.h: Likewise.
32076         * lib/sched.in.h: Likewise.
32077         * lib/se-selinux.in.h: Likewise.
32078         * lib/search.in.h: Likewise.
32079         * lib/signal.in.h: Likewise.
32080         * lib/spawn.in.h: Likewise.
32081         * lib/stdarg.in.h: Likewise.
32082         * lib/stddef.in.h: Likewise.
32083         * lib/stdint.in.h: Likewise.
32084         * lib/stdio.in.h: Likewise.
32085         * lib/stdlib.in.h: Likewise.
32086         * lib/string.in.h: Likewise.
32087         * lib/strings.in.h: Likewise.
32088         * lib/sys_file.in.h: Likewise.
32089         * lib/sys_ioctl.in.h: Likewise.
32090         * lib/sys_select.in.h: Likewise.
32091         * lib/sys_socket.in.h: Likewise.
32092         * lib/sys_stat.in.h: Likewise.
32093         * lib/sys_time.in.h: Likewise.
32094         * lib/sys_times.in.h: Likewise.
32095         * lib/sys_uio.in.h: Likewise.
32096         * lib/sys_utsname.in.h: Likewise.
32097         * lib/sys_wait.in.h: Likewise.
32098         * lib/sysexits.in.h: Likewise.
32099         * lib/termios.in.h: Likewise.
32100         * lib/time.in.h: Likewise.
32101         * lib/unistd.in.h: Likewise.
32102         * lib/wchar.in.h: Likewise.
32103         * lib/wctype.in.h: Likewise.
32104         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
32105         * modules/ctype (Makefile.am): Likewise.
32106         * modules/dirent (Makefile.am): Likewise.
32107         * modules/errno (Makefile.am): Likewise.
32108         * modules/fcntl-h (Makefile.am): Likewise.
32109         * modules/float (Makefile.am): Likewise.
32110         * modules/getopt-posix (Makefile.am): Likewise.
32111         * modules/iconv-h (Makefile.am): Likewise.
32112         * modules/langinfo (Makefile.am): Likewise.
32113         * modules/locale (Makefile.am): Likewise.
32114         * modules/math (Makefile.am): Likewise.
32115         * modules/netdb (Makefile.am): Likewise.
32116         * modules/netinet_in (Makefile.am): Likewise.
32117         * modules/poll-h (Makefile.am): Likewise.
32118         * modules/pthread (Makefile.am): Likewise.
32119         * modules/pty (Makefile.am): Likewise.
32120         * modules/sched (Makefile.am): Likewise.
32121         * modules/search (Makefile.am): Likewise.
32122         * modules/selinux-h (Makefile.am): Likewise.
32123         * modules/signal (Makefile.am): Likewise.
32124         * modules/spawn (Makefile.am): Likewise.
32125         * modules/stdarg (Makefile.am): Likewise.
32126         * modules/stddef (Makefile.am): Likewise.
32127         * modules/stdint (Makefile.am): Likewise.
32128         * modules/stdio (Makefile.am): Likewise.
32129         * modules/stdlib (Makefile.am): Likewise.
32130         * modules/string (Makefile.am): Likewise.
32131         * modules/strings (Makefile.am): Likewise.
32132         * modules/sys_file (Makefile.am): Likewise.
32133         * modules/sys_ioctl (Makefile.am): Likewise.
32134         * modules/sys_select (Makefile.am): Likewise.
32135         * modules/sys_socket (Makefile.am): Likewise.
32136         * modules/sys_stat (Makefile.am): Likewise.
32137         * modules/sys_time (Makefile.am): Likewise.
32138         * modules/sys_times (Makefile.am): Likewise.
32139         * modules/sys_uio (Makefile.am): Likewise.
32140         * modules/sys_utsname (Makefile.am): Likewise.
32141         * modules/sys_wait (Makefile.am): Likewise.
32142         * modules/sysexits (Makefile.am): Likewise.
32143         * modules/termios (Makefile.am): Likewise.
32144         * modules/time (Makefile.am): Likewise.
32145         * modules/unistd (Makefile.am): Likewise.
32146         * modules/wchar (Makefile.am): Likewise.
32147         * modules/wctype-h (Makefile.am): Likewise.
32148         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
32150 2011-05-29  Bruno Haible  <bruno@clisp.org>
32152         assert-h: Allow multiple gnulib generated replacements to coexist.
32153         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
32155 2011-05-29  Bruno Haible  <bruno@clisp.org>
32157         argp: Allow coexistence with strerror_r-posix module.
32158         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
32159         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
32160         by gnulib's <string.h> replacement), assume it has the POSIX signature,
32161         not the glibc signature.
32163 2011-05-28  Bruno Haible  <bruno@clisp.org>
32165         gnulib-tool: Alternative structure of testdirs, similar to --import.
32166         * gnulib-tool: New option --single-configure.
32167         (func_usage): Document it.
32168         (single_configure): New variable.
32169         (func_modules_transitive_closure_separately,
32170         func_modules_transitive_closure_separately,
32171         func_determine_use_libtests, func_modules_add_dummy_separately,
32172         func_modules_to_filelist_separately): New functions, extracted from
32173         func_import.
32174         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
32175         (func_import): Use the new functions.
32176         (func_create_testdir): Set final_modules. Handle $single_configure =
32177         true case.
32179 2011-05-28  Bruno Haible  <bruno@clisp.org>
32181         getloadavg: Remove an unreliable safety check.
32182         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
32183         getloadavg.c is in place.
32184         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
32185         Reported by Sam Steingold <sds@gnu.org>.
32187 2011-05-28  Bruno Haible  <bruno@clisp.org>
32189         doc: Cleanup yet another file produced by texinfo.tex.
32190         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
32192 2011-05-28  Bruno Haible  <bruno@clisp.org>
32194         Finish the conditional dependencies mechanism.
32195         * gnulib-tool: New option --no-conditional-dependencies.
32196         (func_usage): Document it. Don't mark --conditional-dependencies as
32197         experimental.
32198         (cond_dependencies): The possible values can now be true, false, empty.
32199         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
32200         (func_import): Store setting in gnulib-cache.m4 and read it from there.
32201         * doc/gnulib-tool.texi (Conditional dependencies): New section.
32203 2011-05-28  Bruno Haible  <bruno@clisp.org>
32205         doc: Use a recent texinfo.tex.
32206         * doc/Makefile (tex_opts): New variable.
32207         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
32209 2011-05-28  Jim Meyering  <meyering@redhat.com>
32211         intprops.h: adjust comment to match code change
32212         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
32213         only once, it *may* have side effects.  Also fix an unrelated typo.
32214         (_GL_INT_SIGNED): Likewise.
32216 2011-05-26  Simon Josefsson  <simon@josefsson.org>
32218         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
32220 2011-05-26  Bruno Haible  <bruno@clisp.org>
32222         mbsrchr: Avoid collision with system function on Interix.
32223         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
32224         Reported by Markus Duft <mduft@gentoo.org>.
32226 2011-05-15  James Youngman  <jay@gnu.org>
32228         getopt: for ambiguous options, enumerate the possibilities.
32229         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
32230         the ambiguous options when an ambiguous prefix is given. This was
32231         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
32232         glibc change was
32233         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
32235 2011-05-25  Eric Blake  <eblake@redhat.com>
32237         getcwd: work around mingw bug
32238         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
32239         * doc/posix-functions/getcwd.texi (getcwd): Document it.
32240         Reported by Matthias Bolte.
32242 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
32244         test-intprops: disable -Wtype-limits diagnostics
32245         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
32246         diagnostics.  Otherwise, the integer overflow macros generate many
32247         diagnostics.  Reported by Jim Meyering in
32248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
32250         intprops: shorten, to pacify gcc -Woverlength-strings
32251         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
32252         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
32253         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
32254         likely to run afoul of C compiler limits for string constant lengths.
32255         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
32257 2011-05-24  Eric Blake  <eblake@redhat.com>
32259         docs: document recently fixed glibc printf bug
32260         * doc/posix-functions/fprintf.texi (fprintf): Document it.
32261         * doc/posix-functions/printf.texi (printf): Likewise.
32262         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32263         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32265         closein-tests: convert to init.sh
32266         * modules/closein-tests (Files): Add init.sh
32267         * tests/test-closein.sh Use it.
32269         yesno-tests: convert to init.sh
32270         * modules/yesno-tests (Files): Add init.sh.
32271         * tests/test-yesno.sh: Use it.
32273         atexit-tests: ensure reliable exit status
32274         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
32275         Reported by Bruno Haible.
32277 2011-05-24  Bruno Haible  <bruno@clisp.org>
32279         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
32280         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
32281         gl_PREREQ_STRERROR_R invocations from here...
32282         * modules/strerror_r-posix (configure.ac): ... to here.
32284 2011-05-24  Eric Blake  <eblake@redhat.com>
32286         strerror_r: fix missing header
32287         * lib/strerror_r.c: Avoid compiler warning about snprintf.
32289         strerror_r: fix AIX test failures
32290         * lib/strerror_r.c (strerror_r): Convert silent truncation to
32291         ERANGE failure.
32293         strerror_r: fix Solaris test failures
32294         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
32295         failures.
32296         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
32298         strerror_r: enforce POSIX recommendations
32299         * lib/strerror_r.c (safe_copy): New helper method.
32300         (strerror_r): Guarantee a non-empty string.
32301         * tests/test-strerror_r.c (main): Enhance tests to incorporate
32302         recent POSIX rulings and to match our strerror guarantees.
32303         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
32305 2011-05-24  Jim Meyering  <meyering@redhat.com>
32307         test-perror2.c: avoid warning about unused variable
32308         * tests/test-perror2.c (main): Remove declaration of unused "fp".
32310 2011-05-24  Eric Blake  <eblake@redhat.com>
32312         perror: avoid spurious test failure on HP-UX
32313         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
32315         tests: fix logic bug in init.sh
32316         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
32317         shell.
32319 2011-05-24  Jim Meyering  <meyering@redhat.com>
32321         utimensat: do not reference an out-of-scope buffer
32322         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
32323         declared in an inner scope, yet "times" would be dereferenced outside
32324         the scope in which "ts" was valid.
32325         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
32326         of ts[2] "out/up", so that the use of aliased "times" (via
32327         "times = ts;") does not end up referencing an out-of-scope "ts"
32329         opendir-safer.c: don't clobber errno; don't close negative FD
32330         * lib/opendir-safer.c (opendir_safer):
32331         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
32332         file descriptor, and more importantly, don't clobber the
32333         offending errno value with EINVAL.  Before, upon failure
32334         of dup_safer, we would pass the negative file descriptor to
32335         fdopendir, which would clobber errno.
32337 2011-05-23  Bruno Haible  <bruno@clisp.org>
32339         idcache: Fix module description.
32340         * modules/idcache (Include): Set to "idcache.h".
32342 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
32344         gnulib-tool: fix portability problem with MacOS sed
32345         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
32346         before the "}".  Problem reported by Leo in
32347         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
32348         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
32349         sed_extract_condition1, sed_extract_condition2.
32351 2011-05-23  Bruno Haible  <bruno@clisp.org>
32353         hash: Simplify autoconf macro.
32354         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
32356 2011-05-23  Bruno Haible  <bruno@clisp.org>
32358         getugroups: Fix module description.
32359         * modules/getugroups (Include): Set to "getugroups.h".
32361 2011-05-23  Bruno Haible  <bruno@clisp.org>
32363         linkat: Simplify autoconf macro.
32364         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
32366 2011-05-23  Bruno Haible  <bruno@clisp.org>
32367             Eric Blake  <eblake@redhat.com>
32369         linkat, renameat: Update dependencies.
32370         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
32371         * modules/linkat (Depends-on): Likewise. Remove also readlink,
32372         symlinkat.
32374 2011-05-23  Jim Meyering  <meyering@redhat.com>
32376         maint.mk: more tight_scope improvements
32377         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
32378         (_gl_TS_headers): Define only in if-0'd block.
32379         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
32380         sometimes we must *not* use it.  Adjust uses accordingly.
32381         (sc_tight_scope): Use much simpler grep-based test to determine
32382         whether we skip this rule.
32384         maint.mk: generalize/improve the tight-scope rule
32385         * top/maint.mk: Emit a warning when the test is skipped.
32386         (_gl_TS_dir): Add $(srcdir)/ prefix.
32387         (_gl_TS_function_match): Simplify, rather than trying
32388         to enumerate common types.  Otherwise, it would fail to match an
32389         "extern unsigned char const *" declaration in idutils.
32390         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
32391         a way to support use of that type of macro.
32392         (_gl_TS_var_match): Simplify regexp.
32393         (_gl_TS_obj_files): New configurable variable.
32394         (_gl_TS_headers): Likewise.
32396 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32398         verify: fix bug when gnulib <assert.h> is also included
32399         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
32400         is defined, not if _GL_STATIC_ASSERT_H is not defined.
32401         Perhaps there's a better way, but this fixes the immediate problem.
32402         Problem reported by Bruno Haible in
32403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
32405 2011-05-22  Bruno Haible  <bruno@clisp.org>
32407         xgetcwd: Simplify autoconf macro.
32408         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
32410 2011-05-22  Bruno Haible  <bruno@clisp.org>
32412         New module 'mktime-internal'.
32413         * modules/mktime-internal: New file.
32414         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
32415         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
32416         mktime_internal as a C macro if libc has __mktime_internal.
32417         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
32418         conditions.
32419         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
32421 2011-05-22  Bruno Haible  <bruno@clisp.org>
32423         timegm: Correct mktime replacement statements.
32424         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
32425         defining mktime as a C macro. This completes a 2009-07-28 commit.
32427 2011-05-22  Bruno Haible  <bruno@clisp.org>
32429         timegm: Simplify autoconf macro.
32430         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
32432 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32434         clock-time: change to LGPLv2+.
32435         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
32436         BSD-like but we have no mark for that; this is good enough for now.
32438 2011-05-21  Bruno Haible  <bruno@clisp.org>
32440         strerror_r: Fix comments.
32441         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
32443 2011-05-21  Bruno Haible  <bruno@clisp.org>
32445         relocatable-prog-wrapper: Fix possible link error.
32446         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
32447         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
32448         (gl_FUNC_SETENV): ... to here.
32449         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
32450         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
32452 2011-05-21  Bruno Haible  <bruno@clisp.org>
32454         relocatable-prog-wrapper: Assume strerror() exists.
32455         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
32456         m4/strerror.m4.
32457         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
32458         * lib/relocwrapper.c: Remove mention of strerror module.
32459         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
32460         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
32461         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
32462         C macro.
32464 2011-05-21  Bruno Haible  <bruno@clisp.org>
32466         select: Simplify replacement idiom.
32467         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
32468         Win32 platforms.
32469         * lib/sys_select.in.h (select): Simplify accordingly.
32470         * modules/select (Depends-on): Likewise.
32472 2011-05-21  Bruno Haible  <bruno@clisp.org>
32474         mkdir-p: Simplify autoconf macro.
32475         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
32476         gl_FUNC_LCHOWN.
32478 2011-05-21  Eric Blake  <eblake@redhat.com>
32480         strerror_r: avoid clobbering strerror on cygwin
32481         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
32482         fall back instead to sys_errlist.
32483         * modules/strerror (configure.ac): Add witness.
32484         * tests/test-strerror_r.c (main): Enhance test.
32485         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
32486         * tests/test-perror2.c (main): Free memory before exit.
32488 2011-05-21  Bruno Haible  <bruno@clisp.org>
32490         mkdtemp: Use gnulib naming conventions.
32491         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
32492         * modules/mkdtemp (configure.ac): Update.
32494 2011-05-20  Eric Blake  <eblake@redhat.com>
32496         strerror_r: avoid corrupting errno on Solaris
32497         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
32498         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
32500         strerror_r: avoid compiler warning
32501         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
32503         strerror_r: simplify AIX code
32504         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
32506         test-perror: avoid spurious failure on FreeBSD
32507         * modules/perror-tests (Depends-on): Add strerror, now that
32508         strerror_r no longer pulls it in.
32510 2011-05-20  Bruno Haible  <bruno@clisp.org>
32512         strerror_r-posix: Remove unused dependencies.
32513         * modules/strerror_r-posix (Depends-on): Remove strerror.
32514         Reported by Eric Blake.
32516 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32518         intprops: remove assumption about A|B representation
32519         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
32520         is a valid integer if both A and B are.  Although this is true for
32521         all known practical hosts, the C standard doesn't guarantee it,
32522         and the code need not assume it.  Also, this change may work around
32523         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
32524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
32526 2011-05-20  Eric Blake  <eblake@redhat.com>
32528         perror: work around FreeBSD bug
32529         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
32530         is broken.  Move AC_LIBOBJ...
32531         * modules/perror (configure.ac): Here.
32532         * doc/posix-functions/perror.texi (perror): Document this.
32533         * tests/test-perror2.c (main): Enhance test.
32535         test-perror: check for strerror interactions
32536         * tests/macros.h (STREQ): Add macro.
32537         * modules/perror-tests (Files): Add second test.
32538         * tests/test-perror2.c (main): New file.
32539         * doc/posix-functions/perror.texi (perror): Document glibc bug.
32541         test-perror: rewrite to use init script
32542         * modules/perror-tests (Files): Add init.sh.
32543         * tests/test-perror.sh: Use temporary directory.
32545 2011-05-20  Jim Meyering  <meyering@redhat.com>
32547         maint: replace misused "a" with "an"
32548         * doc/intprops.texi: "a integer"
32549         * doc/regex.texi: "a explanation"
32550         * lib/alignof.h: "a object"
32551         * lib/argmatch.h: "a explanation"
32552         * lib/argp-help.c: "a option" and "a OPTION_DOC"
32553         * lib/stdint.in.h: "a integer"
32554         * lib/userspec.c: "a owner"
32555         * doc/gnulib.texi: Fix "a idea", and reword.
32557 2011-05-19  Jim Meyering  <meyering@redhat.com>
32559         maint: correct misuse of "a" and "an"
32560         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
32561         * lib/argp-help.c: "an docum...": s/an/a/
32562         * lib/argp-parse.c: "An vector": s/An/A/
32563         * lib/execute.c: "an native": s/an/a/
32564         * lib/spawn-pipe.c: Likewise.
32565         * lib/gc.h: "an Gc_rc": s/an/a/
32566         * lib/unigbrk.in.h: "an grapheme": s/an/a/
32567         * lib/fts.c: "an stat.st_dev": s/an/a/
32569 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32571         intprops-tests: work around HP-UX 11.23 cc bug with constants
32572         * tests/test-intprops.c (VERIFY): New macro.
32573         (main): Use it, instead of verify, to work around the compiler bug; see
32574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
32576         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
32577         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
32578         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
32579         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
32580         (_GL_REMAINDER_OVERFLOW): Use it.
32582         intprops-tests: revert unsigned part of previous change
32583         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
32584         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
32585         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
32586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
32588 2011-05-19  Bruno Haible  <bruno@clisp.org>
32590         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
32591         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
32592         strerror_r() returned without filling the buffer.
32593         Reported by Eric Blake.
32595 2011-05-19  Eric Blake  <eblake@redhat.com>
32597         strerror_r: guarantee unchanged errno
32598         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
32599         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
32600         failure.
32601         * tests/test-strerror_r.c (main): Enhance test.
32603 2011-05-19  Bruno Haible  <bruno@clisp.org>
32605         strerror_r: Reorder #if blocks.
32606         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
32607         for consistency with the previous commit.
32609 2011-05-19  Bruno Haible  <bruno@clisp.org>
32611         perror: Avoid clobbering the strerror buffer when possible.
32612         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
32613         * lib/strerror.c: Include it.
32614         * modules/strerror (Files): Add lib/strerror-impl.h.
32615         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
32616         (my_strerror): New function, defined through lib/strerror-impl.h.
32617         (perror): Use it instead of strerror.
32618         * modules/perror (Files): Add lib/strerror-impl.h.
32619         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
32621 2011-05-19  Eric Blake  <eblake@redhat.com>
32623         strerror_r: fix on newer cygwin
32624         * lib/strerror_r.c (strerror_r): Cygwin now has
32625         __xpg_strerror_r, use it.
32627 2011-05-19  Bruno Haible  <bruno@clisp.org>
32629         strerror_r: Avoid clobbering the strerror buffer when possible.
32630         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
32631         (sys_nerr, sys_errlist): New declarations.
32632         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
32633         HP-UX, native Win32, IRIX, and 32-bit Solaris.
32634         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
32636 2011-05-19  Bruno Haible  <bruno@clisp.org>
32638         strerror_r: Fix test failure on mingw.
32639         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
32640         EXTEND_STRERROR_R.
32641         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
32642         macros from errno.in.h instead.
32644 2011-05-19  Eric Blake  <eblake@redhat.com>
32646         strerror: relax test for Solaris
32647         * tests/test-strerror.c (main): Permit Solaris behavior.
32648         * tests/test-strerror_r.c (main): Likewise.
32650         strerror: enforce POSIX ruling on strerror(0)
32651         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
32652         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
32653         * lib/strerror_r.c (rpl_strerror_r): Work around it.
32654         * doc/posix-functions/strerror.texi (strerror): Document it.
32655         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
32656         * tests/test-strerror.c (main): Strengthen test.
32657         * tests/test-strerror_r.c (main): Likewise.
32659 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32661         intprop-tests: port to older and more-pedantic compilers
32662         * modules/intprops-tests (Files): Add tests/macros.h.
32663         * tests/test-intprops.c: Include macros.h.
32664         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
32665         it's no longer documented to expand to an integer constant expression.
32666         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
32667         argument is floating point, as it's no longer documented to expand
32668         to an integer constant expression in that case.
32669         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
32670         compiler bugs reported by Bruno Haible.  See
32671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
32672         (U0, U1): New constants, to work around the same bugs.  Also,
32673         in tests, use e.g., "(unsigned int) 39" rather than "39u".
32675         intprops: work around C compiler bugs
32676         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
32677         bug in Sun C 5.11 2010/08/13 and other compilers; see
32678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
32680         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
32681         * doc/intprops.texi (Integer Type Determination): Fix
32682         documentation for TYPE_IS_INTEGER: it returns an constant
32683         expression, not an integer constant expression.  Fix doc for
32684         TYPE_SIGNED: it returns an integer constant expression only if its
32685         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
32686         hardly worth documented that way....)
32688 2011-05-18  Bruno Haible  <bruno@clisp.org>
32690         strerror_r: Avoid clobbering the strerror buffer when possible.
32691         * lib/strerror_r.c (strerror_r): Merge the three implementations.
32692         Handle gnulib defined errno values here. When strerror() returns NULL
32693         or an empty string, return EINVAL.
32694         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
32695         gnulib defined errno values here.
32696         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
32698 2011-05-18  Eric Blake  <eblake@redhat.com>
32700         fnmatch: avoid compiler warning
32701         * lib/fnmatch_loop.c (FCT): Use correct type.
32702         Reported by Matthias Bolte.
32704 2011-05-13  Jim Meyering  <meyering@redhat.com>
32706         maint.mk: three new prohibit_<HDR>_without_use rules
32707         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
32708         (sc_prohibit_stdio-safer_without_use): Likewise.
32709         (sc_prohibit_xfreopen_without_use): Likewise.
32711 2011-05-17  Jim Meyering  <meyering@redhat.com>
32713         announce-gen: fail if the NEWS delta is empty
32714         If there's nothing noteworthy in NEWS, then either you forgot
32715         or you shouldn't be releasing.
32716         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
32718 2011-05-17  Pádraig Brady  <P@draigBrady.com>
32720         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
32721         reserved symbols starting with double underscore from the check.
32723 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32725         intprops: add doc
32726         * doc/intprops.texi: New file, documenting intprops.
32727         * doc/gnulib.texi (Particular Modules): Include it.
32729         verify: add doc to gnulib manual and fix example
32730         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
32731         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
32732         (Compile-time Assertions): Fix example so it can't overflow.
32734 2011-05-17  Jim Meyering  <meyering@redhat.com>
32736         warnings.m4: don't usurp save_CPPFLAGS variable name
32737         * m4/warnings.m4: Prefix local temporary variable name with gl_.
32739         doc: fix typo
32740         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
32742 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32743             Bruno Haible  <bruno@clisp.org>
32745         doc: Tweak recent change.
32746         * README (Portability guidelines): Tweak new text.
32747         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
32748         Interix 6.1.
32750 2011-05-16  Eric Blake  <eblake@redhat.com>
32752         inttypes: avoid autoconf warning
32753         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
32754         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32756 2011-05-16  Sam Steingold  <sds@gnu.org>
32757         and Eric Blake  <eblake@redhat.com>
32759         vc-list-files: accept multiple directory operands
32760         * build-aux/vc-list-files: Iterate over all remaining operands.
32762 2011-05-16  Bruno Haible  <bruno@clisp.org>
32764         Fix confusion regarding deprecated modules.
32765         * modules/calloc (Status, Notice): Mark module as deprecated, not
32766         obsolete.
32767         * modules/fnmatch-posix (Status, Notice): Likewise.
32768         * modules/getdate (Status, Notice): Likewise.
32769         * modules/getopt (Status, Notice): Likewise.
32770         * modules/malloc (Status, Notice): Likewise.
32771         * modules/pipe (Status, Notice): Likewise.
32772         * modules/realloc (Status, Notice): Likewise.
32773         * modules/rename-dest-slash (Status, Notice): Likewise.
32774         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
32775         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
32776         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
32777         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
32778         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
32780 2011-05-16  Bruno Haible  <bruno@clisp.org>
32782         doc: List the target platforms.
32783         * doc/gnulib-intro.texi (Target Platforms): New section.
32784         * doc/gnulib.texi (Introduction): Update menu.
32785         * README (Portability guidelines): Refer to the new section. Update
32786         statement about oldest supported environment. Remove rationale why
32787         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
32788         unportable C89 function.
32789         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
32790         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
32792 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32794         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
32796 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
32798         intprops-tests: new module
32799         * modules/intprops-tests, tests/test-intprops.c: New files.
32801         intprops: add safe, portable integer overflow checking
32802         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
32803         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
32804         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
32805         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
32806         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
32807         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
32808         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
32809         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
32810         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
32811         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
32812         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
32814 2011-05-12  James Youngman  <jay@gnu.org>
32816         Add a test for glibc's Bugzilla bug #12378.
32817         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
32818         doesn't allow the literal matching of a lone "[" (which is
32819         required by POSIX).
32820         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
32822 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
32824         Sync glibc change fixing Bugzilla bug #12378.
32825         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
32826         beginning and fall back to matching as normal character if the
32827         string ends before the matching ']' is found.  This is what POSIX
32828         requires.
32830 2011-05-13  Eric Blake  <eblake@redhat.com>
32832         getcwd-lgpl: relax test for FreeBSD
32833         * doc/posix-functions/getcwd.texi (getcwd): Document portability
32834         issue.
32835         * tests/test-getcwd-lgpl.c (main): Relax test.
32836         Reported by Matthias Bolte.
32838 2011-05-11  Eric Blake  <eblake@redhat.com>
32840         test-fflush: silence compiler warning
32841         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
32843 2011-05-11  Bruno Haible  <bruno@clisp.org>
32845         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
32846         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
32847         * modules/canonicalize (Depends-on): Add 'nocrash'.
32848         * modules/canonicalize-lgpl (Depends-on): Likewise.
32849         * doc/posix-functions/realpath.texi: Update platforms list.
32850         Reported by Ryan Schmidt <ryandesign@macports.org>.
32852 2011-05-11  Bruno Haible  <bruno@clisp.org>
32854         group-member: Declare function in <unistd.h>.
32855         * lib/unistd.in.h (group_member): New declaration.
32856         * lib/group-member.h: Remove file.
32857         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
32858         * tests/test-unistd-c++.cc: Check signature of group_member.
32859         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
32860         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
32861         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
32862         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
32863         HAVE_GROUP_MEMBER.
32864         * modules/group-member (Files): Remove lib/group-member.h.
32865         (Depends-on): Add unistd. Specify conditions.
32866         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32867         (Include): Change to <unistd.h>.
32868         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
32869         HAVE_GROUP_MEMBER.
32870         * NEWS: Mention the change.
32871         * lib/euidaccess.c: Don't include group-member.h.
32873 2011-05-11  Bruno Haible  <bruno@clisp.org>
32875         group-member: Document module.
32876         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
32877         module.
32879 2011-05-11  Bruno Haible  <bruno@clisp.org>
32881         fclose: Fix mistake earlier today.
32882         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
32884 2011-05-11  Eric Blake  <eblake@redhat.com>
32886         fclose: preserve fflush errors
32887         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
32888         Reported by Jim Meyering.
32890         bootstrap: support a prereq of 'rpcgen -' on RHEL5
32891         * build-aux/bootstrap (check_versions): When no specific version
32892         is required, merely check that the app produces an exit status
32893         that indicates its existence.
32895         maint.mk: drop redundant check
32896         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
32897         the same but better.
32899 2011-05-11  Bruno Haible  <bruno@clisp.org>
32901         fclose: Fix possible link error.
32902         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
32903         unregister_shadow_fd. Improve comments.
32904         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
32905         Eric Blake.
32907 2011-05-11  Jim Meyering  <meyering@redhat.com>
32909         maint.mk: improve "can not" detection and generalize rule name
32910         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
32911         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
32912         Use the same technique as in sc_prohibit_doubled_word, so that
32913         we recognize "can not" also when the words are separated by a newline.
32914         Suggested by Eric Blake.
32915         (perl_filename_lineno_text_): Define.  Factored out of...
32916         (prohibit_doubled_word_): ...here.  Use the new definition.
32917         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
32918         (prohibit_undesirable_word_seq_RE_): New overridable variable.
32919         (ignore_undesirable_word_sequence_RE_): New overridable variable.
32921 2011-05-10  Eric Blake  <eblake@redhat.com>
32923         fclose: avoid double close race when possible
32924         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
32925         all but WINDOWS_SOCKETS.
32927 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
32929         openat: correct new comment
32930         * lib/openat-proc.c (openat_proc_name): Correct the comment.
32932 2011-05-10  Jim Meyering  <meyering@redhat.com>
32934         openat: add comments
32935         * lib/openat-proc.c (openat_proc_name): Add comments,
32936         mostly from Eric Blake.
32938 2011-05-09  Eric Blake  <eblake@redhat.com>
32940         openat: reduce syscalls in first probe of /proc
32941         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
32942         be a directory.  Simplify the probe for .. bugs.
32943         * modules/openat (Depends-on): Drop same-inode.
32944         Reported by Bastien ROUCARIES.
32946 2011-05-09  Jim Meyering  <meyering@redhat.com>
32948         maint.mk: change semantics/name of tight_scope variables
32949         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
32950         Rename variables to align with semantics that make them more useful.
32952         maint.mk: tweak new rule's name not to impinge
32953         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
32954         (sc_tight_scope): Use new rule name rather than $@-0.
32956         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
32957         * top/maint.mk (sc_tight_scope): New rule.
32958         (sc_tight_scope-0): New rule, ifdef'd out.
32959         (_gl_TS_dir): Default.
32960         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
32961         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
32963 2011-05-09  Simon Josefsson  <simon@josefsson.org>
32965         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
32966         Haible <bruno@clisp.org>.
32968 2011-05-08  Bruno Haible  <bruno@clisp.org>
32970         Comments.
32971         * m4/isnanf.m4: Add comment.
32972         * m4/isnanl.m4: Likewise.
32974 2011-05-08  Bruno Haible  <bruno@clisp.org>
32976         glob: Remove obsolete macro.
32977         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
32979 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
32981         intprops: Sun C 5.11 supports __typeof__
32982         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
32983         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
32984         which is new.
32985         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
32987         intprops: switch to usual gnulib indenting and naming
32988         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
32989         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
32991         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
32993 2011-05-08  Jim Meyering  <meyering@redhat.com>
32995         maint.mk: suppress "Entering/Leaving directory" diag in announcement
32996         * top/maint.mk (release-prep): Use make's --no-print-directory
32997         option when generating the announcement.  This eliminates the
32998         pesky "make[2]: Entering/Leaving directory" diagnostics in the
32999         generated announcement template.
33001 2011-05-08  Bruno Haible  <bruno@clisp.org>
33003         tzset: Fix gettimeofday wrapper on Solaris 2.6.
33004         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
33005         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
33007 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
33009         ignore-value, verify: Omit include files from lib_SOURCES.
33010         * modules/ignore-value, modules/verify (Makefile.am):
33011         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
33012         that leads Automake to duplicate use of am__objects_... variables
33013         in Makefile.in.  See
33014         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
33016 2011-05-07  Bruno Haible  <bruno@clisp.org>
33018         fclose: Simplify autoconf macro.
33019         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
33020         defined.
33022 2011-05-07  Bruno Haible  <bruno@clisp.org>
33024         canonicalize-lgpl: Fix autoconf macro ordering bug.
33025         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
33026         gl_STDLIB_H_DEFAULTS.
33028 2011-05-06  Eric Blake  <eblake@redhat.com>
33030         maintainer-makefile: make sc_po_check easier to tune
33031         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
33032         to probe for strings, such as an alternate location for gnulib.
33034         fclose: guarantee behavior on seekable stdin
33035         * modules/fclose (Depends-on): Add fflush.
33036         * doc/posix-functions/fclose.texi (fclose): Document this.
33037         * tests/test-fclose.c (main): Make test for this unconditional.
33039 2011-05-06  Bruno Haible  <bruno@clisp.org>
33041         fflush, fpurge: Relicense under LGPLv2+.
33042         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
33043         * modules/fpurge (License): Likewise.
33044         With permission from Eric Blake and Jim Meyering.
33045         Suggested by Eric Blake.
33047 2011-05-06  Karl Berry  <karl@gnu.org>
33049         * MODULES.html.sh (func_all_modules): remove exit.
33051 2011-05-06  Jim Meyering  <meyering@redhat.com>
33053         maint.mk: use info-gnu@ as the default only for a stable release
33054         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
33055         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
33056         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
33057         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
33059 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33061         assert-h: new module, which supports C1X-style static_assert
33062         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
33063         * lib/verify.h: Revamp so that this can be copied into assert.h,
33064         while retaining the ability to use it standalone as before.
33065         Rename private identifiers so as not to encroach on the
33066         standard C namespace, since this is now used by assert.h.
33067         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
33068         the old verify_true.
33069         (_GL_VERIFY_TRUE): New macro, with much of the contents of
33070         the old verify_true.  Use _GL_VERIFY_TYPE.
33071         (_GL_VERIFY): New macro, with much of the contents of the old verify.
33072         (static_assert): New macro, if _GL_STATIC_ASSERT_H
33073         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
33074         defined when this file is copied into the replacement assert.h.
33075         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
33076         and _Static_assert is not built in.
33077         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
33078         defined, and use the new macros mentioned above.
33079         * doc/posix-headers/assert.texi: Document this.
33081 2011-05-05  Bruno Haible  <bruno@clisp.org>
33083         fclose, fflush: Respect rules for use of AC_LIBOBJ.
33084         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
33085         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
33086         gl_REPLACE_FCLOSE here.
33087         * modules/fflush (Depends-on): Remove fclose.
33088         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
33089         combination with module 'fclose'.
33091 2011-05-05  Bruno Haible  <bruno@clisp.org>
33093         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
33094         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
33095         gl_FUNC_FFLUSH.
33096         (gl_FUNC_FFLUSH): Use it.
33097         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
33098         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
33099         gl_REPLACE_FSEEKO here.
33101 2011-05-05  Bruno Haible  <bruno@clisp.org>
33103         tzset: Relicense under LGPL.
33104         * modules/tzset (License): Change to LGPL.
33105         No agreement needed; it's a no-op.
33107         strtoimax, strtoumax: Relicense under LGPL.
33108         * modules/strtoimax (License): Change to LGPL.
33109         * modules/strtoumax (License): Likewise.
33110         With permission from Jim Meyering, Paul Eggert:
33111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
33112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
33114         getgroups: Relicense under LGPL.
33115         * modules/getgroups (License): Change to LGPL.
33116         With permission from Jim Meyering, Paul Eggert, Eric Blake:
33117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
33118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
33119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
33121         nanosleep: Relicense under LGPL.
33122         * modules/nanosleep (License): Change to LGPL.
33123         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
33124         Haible:
33125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
33126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
33127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
33128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
33130         futimens: Relicense under LGPL.
33131         * modules/futimens (License): Change to LGPL.
33132         With permission from Eric Blake:
33133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
33135         fflush: Relicense under LGPL.
33136         * modules/fflush (License): Change to LGPL.
33137         With permission from Eric Blake, Bruno Haible, Jim Meyering:
33138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
33139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
33140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
33142         tmpfile: Relicense under LGPL.
33143         * modules/tmpfile (License): Change to LGPL.
33144         With permission from Ben Pfaff:
33145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
33147         isfinite: Relicense under LGPL.
33148         * modules/isfinite (License): Change to LGPL.
33149         With permission from Ben Pfaff, Bruno Haible:
33150         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
33151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
33153         acosl..tanl: Relicense under LGPL.
33154         * modules/acosl (License): Change to LGPL.
33155         * modules/asinl (License): Likewise.
33156         * modules/atanl (License): Likewise.
33157         * modules/cosl (License): Likewise.
33158         * modules/expl (License): Likewise.
33159         * modules/logl (License): Likewise.
33160         * modules/sinl (License): Likewise.
33161         * modules/sqrtl (License): Likewise.
33162         * modules/tanl (License): Likewise.
33163         Source code originally from glibc and Paolo Bonzini. Agreements:
33164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
33165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
33167 2011-05-05  Bruno Haible  <bruno@clisp.org>
33169         signal: Define sighandler_t.
33170         * lib/signal.in.h (sighandler_t): New type.
33171         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
33172         whether sighandler_t is defined.
33173         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
33174         * modules/signal (Depends-on): Add extensions.
33175         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
33176         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
33177         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
33179 2011-05-05  Eric Blake  <eblake@redhat.com>
33181         maint: remove useless REPLACE_*_H macros
33182         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
33183         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33184         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
33185         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
33186         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
33187         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
33188         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
33189         * m4/btowc.m4: Update callers.
33190         * m4/dirfd.m4: Likewise.
33191         * m4/duplocale.m4: Likewise.
33192         * m4/fchdir.m4: Likewise.
33193         * m4/fdopendir.m4: Likewise.
33194         * m4/inet_ntop.m4: Likewise.
33195         * m4/inet_pton.m4: Likewise.
33196         * m4/ioctl.m4: Likewise.
33197         * m4/mbrlen.m4: Likewise.
33198         * m4/mbrtowc.m4: Likewise.
33199         * m4/mbsinit.m4: Likewise.
33200         * m4/mbsnrtowcs.m4: Likewise.
33201         * m4/mbsrtowcs.m4: Likewise.
33202         * m4/poll.m4: Likewise.
33203         * m4/setlocale.m4: Likewise.
33204         * m4/wcrtomb.m4: Likewise.
33205         * m4/wcsnrtombs.m4: Likewise.
33206         * m4/wcsrtombs.m4: Likewise.
33207         * m4/wctob.m4: Likewise.
33208         * m4/wcwidth.m4: Likewise.
33209         * modules/posix_spawn: Likewise.
33210         * modules/posix_spawn_file_actions_addclose: Likewise.
33211         * modules/posix_spawn_file_actions_adddup2: Likewise.
33212         * modules/posix_spawn_file_actions_addopen: Likewise.
33213         * modules/posix_spawn_file_actions_destroy: Likewise.
33214         * modules/posix_spawn_file_actions_init: Likewise.
33215         * modules/posix_spawnattr_destroy: Likewise.
33216         * modules/posix_spawnattr_getflags: Likewise.
33217         * modules/posix_spawnattr_getpgroup: Likewise.
33218         * modules/posix_spawnattr_getschedparam: Likewise.
33219         * modules/posix_spawnattr_getschedpolicy: Likewise.
33220         * modules/posix_spawnattr_getsigdefault: Likewise.
33221         * modules/posix_spawnattr_getsigmask: Likewise.
33222         * modules/posix_spawnattr_init: Likewise.
33223         * modules/posix_spawnattr_setflags: Likewise.
33224         * modules/posix_spawnattr_setpgroup: Likewise.
33225         * modules/posix_spawnattr_setschedparam: Likewise.
33226         * modules/posix_spawnattr_setschedpolicy: Likewise.
33227         * modules/posix_spawnattr_setsigdefault: Likewise.
33228         * modules/posix_spawnattr_setsigmask: Likewise.
33229         * modules/posix_spawnp: Likewise.
33231 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
33233         Add option to do-release-commit-and-tag to specify branch.
33234         * build-aux/do-release-commit-and-tag: Add --branch.
33236 2011-05-03  Bruno Haible  <bruno@clisp.org>
33238         Avoid unnecessary compilation units, through conditional dependencies.
33239         * modules/accept (Depends-on): Add conditions to the dependencies.
33240         * modules/acosl (Depends-on): Likewise.
33241         * modules/argz (Depends-on): Likewise.
33242         * modules/asinl (Depends-on): Likewise.
33243         * modules/atanl (Depends-on): Likewise.
33244         * modules/atoll (Depends-on): Likewise.
33245         * modules/bind (Depends-on): Likewise.
33246         * modules/btowc (Depends-on): Likewise.
33247         * modules/canonicalize-lgpl (Depends-on): Likewise.
33248         * modules/ceil (Depends-on): Likewise.
33249         * modules/ceilf (Depends-on): Likewise.
33250         * modules/ceill (Depends-on): Likewise.
33251         * modules/chdir-long (Depends-on): Likewise.
33252         * modules/chown (Depends-on): Likewise.
33253         * modules/close (Depends-on): Likewise.
33254         * modules/connect (Depends-on): Likewise.
33255         * modules/cosl (Depends-on): Likewise.
33256         * modules/dirfd (Depends-on): Likewise.
33257         * modules/dprintf (Depends-on): Likewise.
33258         * modules/dprintf-posix (Depends-on): Likewise.
33259         * modules/error (Depends-on): Likewise.
33260         * modules/euidaccess (Depends-on): Likewise.
33261         * modules/expl (Depends-on): Likewise.
33262         * modules/faccessat (Depends-on): Likewise.
33263         * modules/fchdir (Depends-on): Likewise.
33264         * modules/fclose (Depends-on): Likewise.
33265         * modules/fcntl (Depends-on): Likewise.
33266         * modules/fdopendir (Depends-on): Likewise.
33267         * modules/fflush (Depends-on): Likewise.
33268         * modules/floor (Depends-on): Likewise.
33269         * modules/floorf (Depends-on): Likewise.
33270         * modules/floorl (Depends-on): Likewise.
33271         * modules/fnmatch (Depends-on): Likewise.
33272         * modules/fopen (Depends-on): Likewise.
33273         * modules/fprintf-posix (Depends-on): Likewise.
33274         * modules/frexp (Depends-on): Likewise.
33275         * modules/frexp-nolibm (Depends-on): Likewise.
33276         * modules/frexpl (Depends-on): Likewise.
33277         * modules/frexpl-nolibm (Depends-on): Likewise.
33278         * modules/fseek (Depends-on): Likewise.
33279         * modules/fsusage (Depends-on): Likewise.
33280         * modules/ftell (Depends-on): Likewise.
33281         * modules/ftello (Depends-on): Likewise.
33282         * modules/futimens (Depends-on): Likewise.
33283         * modules/getcwd (Depends-on): Likewise.
33284         * modules/getcwd-lgpl (Depends-on): Likewise.
33285         * modules/getdelim (Depends-on): Likewise.
33286         * modules/getdomainname (Depends-on): Likewise.
33287         * modules/getgroups (Depends-on): Likewise.
33288         * modules/gethostname (Depends-on): Likewise.
33289         * modules/getline (Depends-on): Likewise.
33290         * modules/getlogin_r (Depends-on): Likewise.
33291         * modules/getopt-posix (Depends-on): Likewise.
33292         * modules/getpeername (Depends-on): Likewise.
33293         * modules/getsockname (Depends-on): Likewise.
33294         * modules/getsockopt (Depends-on): Likewise.
33295         * modules/getsubopt (Depends-on): Likewise.
33296         * modules/getusershell (Depends-on): Likewise.
33297         * modules/glob (Depends-on): Likewise.
33298         * modules/grantpt (Depends-on): Likewise.
33299         * modules/iconv_open (Depends-on): Likewise.
33300         * modules/iconv_open-utf (Depends-on): Likewise.
33301         * modules/inet_ntop (Depends-on): Likewise.
33302         * modules/inet_pton (Depends-on): Likewise.
33303         * modules/ioctl (Depends-on): Likewise.
33304         * modules/isapipe (Depends-on): Likewise.
33305         * modules/isfinite (Depends-on): Likewise.
33306         * modules/isinf (Depends-on): Likewise.
33307         * modules/lchown (Depends-on): Likewise.
33308         * modules/ldexpl (Depends-on): Likewise.
33309         * modules/link (Depends-on): Likewise.
33310         * modules/linkat (Depends-on): Likewise.
33311         * modules/listen (Depends-on): Likewise.
33312         * modules/logl (Depends-on): Likewise.
33313         * modules/lstat (Depends-on): Likewise.
33314         * modules/mbrlen (Depends-on): Likewise.
33315         * modules/mbrtowc (Depends-on): Likewise.
33316         * modules/mbsinit (Depends-on): Likewise.
33317         * modules/mbsnrtowcs (Depends-on): Likewise.
33318         * modules/mbsrtowcs (Depends-on): Likewise.
33319         * modules/mbtowc (Depends-on): Likewise.
33320         * modules/memcmp (Depends-on): Likewise.
33321         * modules/mkdir (Depends-on): Likewise.
33322         * modules/mkdtemp (Depends-on): Likewise.
33323         * modules/mkfifo (Depends-on): Likewise.
33324         * modules/mkfifoat (Depends-on): Likewise.
33325         * modules/mknod (Depends-on): Likewise.
33326         * modules/mkostemp (Depends-on): Likewise.
33327         * modules/mkostemps (Depends-on): Likewise.
33328         * modules/mkstemp (Depends-on): Likewise.
33329         * modules/mkstemps (Depends-on): Likewise.
33330         * modules/mktime (Depends-on): Likewise.
33331         * modules/nanosleep (Depends-on): Likewise.
33332         * modules/open (Depends-on): Likewise.
33333         * modules/openat (Depends-on): Likewise.
33334         * modules/perror (Depends-on): Likewise.
33335         * modules/poll (Depends-on): Likewise.
33336         * modules/popen (Depends-on): Likewise.
33337         * modules/posix_spawn (Depends-on): Likewise.
33338         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
33339         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
33340         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
33341         * modules/posix_spawnp (Depends-on): Likewise.
33342         * modules/pread (Depends-on): Likewise.
33343         * modules/printf-posix (Depends-on): Likewise.
33344         * modules/ptsname (Depends-on): Likewise.
33345         * modules/putenv (Depends-on): Likewise.
33346         * modules/pwrite (Depends-on): Likewise.
33347         * modules/readline (Depends-on): Likewise.
33348         * modules/readlink (Depends-on): Likewise.
33349         * modules/readlinkat (Depends-on): Likewise.
33350         * modules/recv (Depends-on): Likewise.
33351         * modules/recvfrom (Depends-on): Likewise.
33352         * modules/regex (Depends-on): Likewise.
33353         * modules/remove (Depends-on): Likewise.
33354         * modules/rename (Depends-on): Likewise.
33355         * modules/renameat (Depends-on): Likewise.
33356         * modules/rmdir (Depends-on): Likewise.
33357         * modules/round (Depends-on): Likewise.
33358         * modules/roundf (Depends-on): Likewise.
33359         * modules/roundl (Depends-on): Likewise.
33360         * modules/rpmatch (Depends-on): Likewise.
33361         * modules/select (Depends-on): Likewise.
33362         * modules/send (Depends-on): Likewise.
33363         * modules/sendto (Depends-on): Likewise.
33364         * modules/setenv (Depends-on): Likewise.
33365         * modules/setlocale (Depends-on): Likewise.
33366         * modules/setsockopt (Depends-on): Likewise.
33367         * modules/shutdown (Depends-on): Likewise.
33368         * modules/sigaction (Depends-on): Likewise.
33369         * modules/signbit (Depends-on): Likewise.
33370         * modules/sigprocmask (Depends-on): Likewise.
33371         * modules/sinl (Depends-on): Likewise.
33372         * modules/sleep (Depends-on): Likewise.
33373         * modules/snprintf (Depends-on): Likewise.
33374         * modules/snprintf-posix (Depends-on): Likewise.
33375         * modules/socket (Depends-on): Likewise.
33376         * modules/sprintf-posix (Depends-on): Likewise.
33377         * modules/sqrtl (Depends-on): Likewise.
33378         * modules/stat (Depends-on): Likewise.
33379         * modules/strchrnul (Depends-on): Likewise.
33380         * modules/strdup-posix (Depends-on): Likewise.
33381         * modules/strerror (Depends-on): Likewise.
33382         * modules/strerror_r-posix (Depends-on): Likewise.
33383         * modules/strndup (Depends-on): Likewise.
33384         * modules/strnlen (Depends-on): Likewise.
33385         * modules/strptime (Depends-on): Likewise.
33386         * modules/strsep (Depends-on): Likewise.
33387         * modules/strsignal (Depends-on): Likewise.
33388         * modules/strstr-simple (Depends-on): Likewise.
33389         * modules/strtod (Depends-on): Likewise.
33390         * modules/strtoimax (Depends-on): Likewise.
33391         * modules/strtok_r (Depends-on): Likewise.
33392         * modules/strtoumax (Depends-on): Likewise.
33393         * modules/symlink (Depends-on): Likewise.
33394         * modules/symlinkat (Depends-on): Likewise.
33395         * modules/tanl (Depends-on): Likewise.
33396         * modules/tcgetsid (Depends-on): Likewise.
33397         * modules/tmpfile (Depends-on): Likewise.
33398         * modules/trunc (Depends-on): Likewise.
33399         * modules/truncf (Depends-on): Likewise.
33400         * modules/truncl (Depends-on): Likewise.
33401         * modules/uname (Depends-on): Likewise.
33402         * modules/unlink (Depends-on): Likewise.
33403         * modules/unlockpt (Depends-on): Likewise.
33404         * modules/unsetenv (Depends-on): Likewise.
33405         * modules/usleep (Depends-on): Likewise.
33406         * modules/utimensat (Depends-on): Likewise.
33407         * modules/vasprintf (Depends-on): Likewise.
33408         * modules/vdprintf (Depends-on): Likewise.
33409         * modules/vdprintf-posix (Depends-on): Likewise.
33410         * modules/vfprintf-posix (Depends-on): Likewise.
33411         * modules/vprintf-posix (Depends-on): Likewise.
33412         * modules/vsnprintf (Depends-on): Likewise.
33413         * modules/vsnprintf-posix (Depends-on): Likewise.
33414         * modules/vsprintf-posix (Depends-on): Likewise.
33415         * modules/wcrtomb (Depends-on): Likewise.
33416         * modules/wcscasecmp (Depends-on): Likewise.
33417         * modules/wcscspn (Depends-on): Likewise.
33418         * modules/wcsdup (Depends-on): Likewise.
33419         * modules/wcsncasecmp (Depends-on): Likewise.
33420         * modules/wcsnrtombs (Depends-on): Likewise.
33421         * modules/wcspbrk (Depends-on): Likewise.
33422         * modules/wcsrtombs (Depends-on): Likewise.
33423         * modules/wcsspn (Depends-on): Likewise.
33424         * modules/wcsstr (Depends-on): Likewise.
33425         * modules/wcstok (Depends-on): Likewise.
33426         * modules/wcswidth (Depends-on): Likewise.
33427         * modules/wctob (Depends-on): Likewise.
33428         * modules/wctomb (Depends-on): Likewise.
33429         * modules/wctype (Depends-on): Likewise.
33430         * modules/wcwidth (Depends-on): Likewise.
33431         * modules/write (Depends-on): Likewise.
33433 2011-05-03  Bruno Haible  <bruno@clisp.org>
33435         Support for conditional dependencies.
33436         * doc/gnulib.texi (Module description): Document the syntax of
33437         conditional dependencies.
33438         * gnulib-tool: New option --conditional-dependencies.
33439         (func_usage): Document it.
33440         (cond_dependencies): New variable.
33441         (func_get_automake_snippet_conditional,
33442         func_get_automake_snippet_unconditional): New functions, extracted from
33443         func_get_automake_snippet.
33444         (func_get_automake_snippet): Use them.
33445         (sed_first_32_chars): New variable.
33446         (func_module_shellfunc_name): New function.
33447         (func_module_shellvar_name): New function.
33448         (func_module_conditional_name): New function.
33449         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
33450         func_cond_module_condition): New functions.
33451         (func_modules_transitive_closure): Add support for conditional
33452         dependencies.
33453         (func_emit_lib_Makefile_am): For a conditional module, enclose the
33454         conditional automake snippet in an automake conditional.
33455         (func_emit_autoconf_snippets): Emit shell functions that contain the
33456         code for conditional modules.
33457         (func_import, func_create_testdir): Update specification.
33459 2011-05-03  Eric Blake  <eblake@redhat.com>
33461         test-getaddrinfo: report error information
33462         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
33464 2011-05-03  Jim Meyering  <meyering@redhat.com>
33466         bootstrap: avoid build failure when $GZIP is set
33467         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
33468         program name.  If defined at all, it is supposed to list gzip options.
33469         Reported by Alan Curry in http://debbugs.gnu.org/8609
33471 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
33473         readme-release: new module with release instructions
33474         * modules/readme-release: New module.
33475         * top/README-release: New file, from coreutils, grep, diffutils.
33476         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33478 2011-05-02  Eric Blake  <eblake@redhat.com>
33480         fflush: also replace fclose when fixing fflush
33481         * modules/fflush (Depends-on): Add fclose.
33482         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
33483         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
33484         memstreams with no backing fd.
33485         * doc/posix-functions/fclose.texi (fclose): Document the use of
33486         fflush module to fix the bug.
33487         * tests/test-fclose.c (main): Relax test when fclose is used in
33488         isolation.
33490         fclose: add some tests
33491         * modules/fclose-tests: New test module.
33492         * tests/test-fclose.c: New file.
33493         * doc/posix-functions/fclose.texi (fclose): Document the bug.
33495         fclose: reduced dependencies
33496         * modules/fclose (Depends-on): Switch from fflush/fseeko to
33497         simpler lseek.
33498         * lib/fclose.c (rpl_fclose): Likewise.
33499         Reported by Simon Josefsson.
33501         exit: drop remaining clients
33502         * modules/argmatch (Depends-on): Replace exit with stdlib.
33503         * modules/copy-file (Depends-on): Likewise.
33504         * modules/execute (Depends-on): Likewise.
33505         * modules/exitfail (Depends-on): Likewise.
33506         * modules/obstack (Depends-on): Likewise.
33507         * modules/pagealign_alloc (Depends-on): Likewise.
33508         * modules/pipe-filter-gi (Depends-on): Likewise.
33509         * modules/pipe-filter-ii (Depends-on): Likewise.
33510         * modules/savewd (Depends-on): Likewise.
33511         * modules/spawn-pipe (Depends-on): Likewise.
33512         * modules/wait-process (Depends-on): Likewise.
33513         * modules/xsetenv (Depends-on): Likewise.
33514         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
33515         * modules/git-merge-changelog (Depends-on): Likewise.
33516         * modules/long-options (Depends-on): Likewise.
33517         * modules/pt_chown (Depends-on): Likewise.
33518         * modules/sysexits (Depends-on): Likewise.
33520         freading: relax license from LGPLv3+ to LGPLv2+
33521         * modules/freading (License): Relax LGPL version.
33523 2011-05-02  Bruno Haible  <bruno@clisp.org>
33525         fchdir: Remove unused dependencies.
33526         * modules/fchdir (Depends-on): Remove include_next.
33528 2011-05-02  Bruno Haible  <bruno@clisp.org>
33530         gnulib-tool: Refactor.
33531         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
33532         from func_emit_autoconf_snippets.
33533         (func_emit_autoconf_snippets): Use it.
33535 2011-05-02  Simon Josefsson  <simon@josefsson.org>
33537         * NEWS: Document removal of 'exit'.
33538         * modules/exit: Remove file.
33540 2011-05-01  Bruno Haible  <bruno@clisp.org>
33542         Update DEPENDENCIES.
33543         * DEPENDENCIES (gettext): Recommend the newest release.
33544         Reported by Simon Josefsson.
33546 2011-05-01  Bruno Haible  <bruno@clisp.org>
33548         gnulib-tool: Reduce code duplication.
33549         * gnulib-tool (func_emit_autoconf_snippets): New function.
33550         (func_import, func_create_testdir): Use it.
33552 2011-04-30  Eric Blake  <eblake@redhat.com>
33554         fclose: don't fail on non-seekable input stream
33555         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
33556         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
33557         since fflush is allowed to fail in that case.
33559 2011-04-30  Bruno Haible  <bruno@clisp.org>
33561         dup3: cleanup
33562         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
33564 2011-04-30  Bruno Haible  <bruno@clisp.org>
33566         netdb: Make it work in C++ mode.
33567         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
33568         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
33569         module.
33570         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
33571         gl_MODULE_INDICATOR_FOR_TESTS.
33572         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
33573         * modules/netdb-c++-tests: New file.
33574         * tests/test-netdb-c++.cc: New file.
33576 2011-04-30  Bruno Haible  <bruno@clisp.org>
33578         New modules 'vfscanf', 'vscanf'.
33579         * modules/vfscanf: New file.
33580         * modules/vscanf: New file.
33581         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
33582         here.
33583         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
33584         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
33586 2011-04-30  Bruno Haible  <bruno@clisp.org>
33588         passfd: Add comments.
33589         * lib/passfd.c: Add comments about platforms.
33591 2011-04-30  Bruno Haible  <bruno@clisp.org>
33593         sys_uio: Make <sys/uio.h> self-contained.
33594         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
33595         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
33597 2011-04-30  Bruno Haible  <bruno@clisp.org>
33599         sys_socket: Ensure 'struct iovec' definition.
33600         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
33601         <sys/socket.h>.
33602         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
33604 2011-04-30  Bruno Haible  <bruno@clisp.org>
33606         sys_uio: Protect definition of 'struct iovec'.
33607         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
33608         it as a C struct.
33610 2011-04-30  Bruno Haible  <bruno@clisp.org>
33612         manywarnings: fix indentation
33613         * m4/manywarnings.m4: Indent by 2 spaces consistently.
33615 2011-04-30  Pádraig Brady  <P@draigBrady.com>
33617         manywarnings: add -Wno-missing-field-initializers if needed.
33618         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
33619         option if it's needed to allow initialization with { 0, }
33621 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
33623         announce-gen: cosmetic improvement
33624         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
33626 2011-04-29  Jim Meyering  <meyering@redhat.com>
33628         vc-list-files: indent with spaces, not TABs
33629         * build-aux/vc-list-files: Convert leading TABs to spaces,
33630         to match the style of most other files in gnulib.
33632         announce-gen: indent with spaces, not TABs
33633         * build-aux/announce-gen: Convert all TABs to spaces, to match
33634         the style of most other files in gnulib.
33636 2011-04-29  Eric Blake  <eblake@redhat.com>
33638         quotearg: avoid uninitialized variable use
33639         * lib/quotearg.c (quoting_options_from_style): Initialize
33640         remaining fields, and ensure that custom styles are only used via
33641         quoting_options rather than quoting_style.
33643 2011-04-29  Jim Meyering  <meyering@redhat.com>
33645         maint.mk: remove unused VC-tag variable
33646         * top/maint.mk (VC-tag): Remove unused variable.
33648 2011-04-29  Bruno Haible  <bruno@clisp.org>
33650         netdb: fix gai_strerror replacements
33651         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
33652         * modules/netdb: Substitute it.
33654 2011-04-29  Jim Meyering  <meyering@redhat.com>
33656         test-getcwd.c: avoid new set-but-not-used warning
33657         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
33658         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
33659         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
33660         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
33662         test-hash.c: avoid a new shadowing warning
33663         * tests/test-hash.c (main): Don't shadow "dup".
33665 2011-04-28  Eric Blake  <eblake@redhat.com>
33667         getaddrinfo: fix gai_strerror signature
33668         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
33669         and work around mingw with UNICODE defined.
33670         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
33671         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
33672         * modules/netdb (Makefile.am): Substitute it.
33673         * lib/netdb.in.h (gai_strerror): Declare replacement.
33674         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
33675         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
33676         the fix.
33678         getsockopt: avoid compiler warning
33679         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
33680         Reported by Matthias Bolte.
33682         tests: drop unused link dependency
33683         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
33684         * modules/dirent-safer-tests (Makefile.am): Likewise.
33685         * modules/fdopendir-tests (Makefile.am): Likewise.
33686         * modules/mkfifoat-tests (Makefile.am): Likewise.
33687         * modules/openat-safer-tests (Makefile.am): Likewise.
33688         * modules/openat-tests (Makefile.am): Likewise.
33689         * modules/readlinkat-tests (Makefile.am): Likewise.
33690         * modules/symlinkat-tests (Makefile.am): Likewise.
33691         * modules/linkat-tests (Makefile.am): Likewise.
33692         (Depends-on): Switch to filenamecat-lgpl.
33693         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
33694         LIBINTL.
33695         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
33696         * tests/test-linkat.c (main): Don't require xalloc.
33698         hash, mgetgroups: drop xalloc dependency
33699         * lib/hash.c (includes): Adjust includes.
33700         * lib/mgetgroups.c (includes): Likewise.
33701         (xgetgroups): Move...
33702         * lib/xgetgroups.c: ...to new file.
33703         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
33704         * modules/xgetgroups: New file, split from...
33705         * modules/mgetgroups: ...here.
33706         (Depends-on): Add xalloc-oversized.
33707         * modules/hash (Depends-on): Likewise.
33708         * modules/hash-tests (Depends-on): Drop xalloc.
33709         (test_hash_LDADD): Drop unused library.
33710         * tests/test-hash.c (main): Break xalloc dependency.
33711         (includes): Drop unused include.
33713         xalloc-oversized: new module
33714         * modules/xalloc-oversized: New module.
33715         * modules/xalloc (Depends-on): Add it.
33716         * lib/xalloc.h (xalloc_oversized): Move...
33717         * lib/xalloc-oversized.h: ...into new file.
33719         utimecmp: drop dependency on xmalloc
33720         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
33721         due to memory pressure.
33722         * modules/utimecmp (Depends-on): Drop xalloc.
33724 2011-04-27  Eric Blake  <eblake@redhat.com>
33726         getcwd: fix mingw bugs
33727         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
33728         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
33729         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
33731 2011-04-27  Bruno Haible  <bruno@clisp.org>
33733         mkstemps: Ensure declaration on MacOS X 10.5.
33734         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
33735         * doc/glibc-functions/mkstemps.texi: Document header file problem on
33736         MacOS X.
33738 2011-04-27  Bruno Haible  <bruno@clisp.org>
33740         mkstemp: More documentation.
33741         * doc/posix-functions/mkstemp.texi: Document header file problem on
33742         MacOS X.
33744 2011-04-27  Bruno Haible  <bruno@clisp.org>
33746         mkstemp: Tweak configure message when cross-compiling.
33747         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
33748         result as a guess.
33750 2011-04-27  Bruno Haible  <bruno@clisp.org>
33752         clean-temp: Clarify what it does.
33753         * lib/clean-temp.h: Add more comments.
33754         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
33755         module.
33756         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
33757         * doc/glibc-functions/mkstemps.texi: Likewise.
33758         * doc/glibc-functions/mkostemps.texi: Likewise.
33760 2011-04-27  Eric Blake  <eblake@redhat.com>
33762         fchdir: avoid extra chdir and fix test
33763         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
33764         getcwd-lgpl.
33765         * lib/fchdir.c (get_name): Any absolute name will do; it does not
33766         have to be canonical.
33767         (canonicalize_file_name): Drop unused macro.
33768         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
33770         filenamecat-lgpl: fix licence
33771         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
33772         when it was first created.
33774         linkat, renameat: add missing dependency
33775         * modules/linkat (Depends-on): Require getcwd-lgpl.
33776         * modules/renameat (Depends-on): Likewise.
33778         tests: reduce dependencies
33779         * tests/test-linkat.c (main): Use lighter-weight getcwd.
33780         * tests/test-renameat.c (main): Likewise.
33781         * modules/linkat-tests (Depends-on): Relax dependency.
33782         * modules/renameat-tests (Depends-on): Likewise.
33783         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
33784         dependency explicit.
33786         save-cwd: reduce default dependency
33787         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
33788         * lib/save-cwd.c: Update comments.
33789         * NEWS: Document the semantic change.
33791         getcwd: enhance tests
33792         * tests/test-getcwd-lgpl.c: New file, taken from...
33793         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
33794         repeat long path stress tests from m4 probe.
33795         * modules/getcwd-lgpl-tests: New module.
33796         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
33797         * m4/getcwd-abort-bug.m4: Update comment.
33798         * m4/getcwd-path-max.m4: Likewise.
33800         getcwd-lgpl: new module
33801         * modules/getcwd-lgpl: New module.
33802         * lib/getcwd-lgpl.c: New file.
33803         * doc/posix-functions/getcwd.texi (getcwd): Document it.
33804         * MODULES.html.sh (lacking POSIX:2008): Likewise.
33805         * modules/getcwd (configure.ac): Set C witness.
33806         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
33808         getcwd: tweak comments
33809         * m4/getcwd-abort-bug.m4: Fix comments.
33810         * m4/getcwd-path-max.m4: Likewise.
33811         * m4/getcwd.m4: Likewise.
33813 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
33814         and Eric Blake  <eblake@redhat.com>
33816         mkstemp: replace if system version uses wrong permissions
33817         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
33818         read/write mode bits set in file created by mkstemp.
33819         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
33821 2011-04-27  Eric Blake  <eblake@redhat.com>
33823         passfd: avoid compiler warning
33824         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
33825         Reported by Laine Stump.
33827 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
33829         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
33830         required by the NetBSD (and perhaps other 4.4BSD derived) join.
33832 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
33833         and Eric Blake  <eblake@redhat.com>
33835         mkstemp: mention clean-temp module
33836         * lib/mkstemp.c: Add comment.
33837         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
33839 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
33841         inttypes: also provide default values for 32-bit tests
33842         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
33843         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
33845 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
33847         strtoumax: remove dependency on strtoimax
33848         This is like the strtoull change of yesterday.
33849         * modules/strtoumax (Files): Add lib/strtoimax.c.
33850         (Depends-on): Remove strtoimax and add verify.
33852         inttypes-incomplete: new module
33853         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
33854         all but the PRI* and SCN* parts of gl_INTTYPES_H.
33855         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
33856         of gl_INTTYPES_H.
33857         (gl_INTTYPES_H): Rewrite in terms of these new macros.
33858         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
33859         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
33860         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
33861         * modules/strtoumax, modules/xstrtol (Depends-on):
33862         Depend on inttypes-incomplete, not inttypes.
33863         * modules/inttypes-incomplete: New module, containing the contents
33864         of the old modules/inttypes module, except that the Files: section
33865         omits m4/inttypes-pri.m4, and the configure.ac section invokes
33866         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
33867         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
33868         (Depends-on): Depend only on inttypes-incomplete.
33869         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
33871         inttypes: omit now-redundant strtoimax and strtoumax work
33872         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
33873         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
33875         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
33876         This supports apps that need pointers to strtoimax and strtoumax,
33877         and ports to HP-UX 11.00 64.bit, which has macros that expand to
33878         nonexistent functions.  See
33879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
33880         et seq.
33881         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
33882         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
33883         a macro.
33884         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
33886 2011-04-25  Simon Josefsson  <simon@josefsson.org>
33888         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
33890 2011-04-25  Bruno Haible  <bruno@clisp.org>
33892         strtol, strtoul: Mark modules as obsolete.
33893         * modules/strtol (Status, Notice): New sections.
33894         * modules/strtoul (Status, Notice): New sections.
33896 2011-04-25  Bruno Haible  <bruno@clisp.org>
33898         strtod: Remove check for strtod, unless supporting old platforms.
33899         * modules/strtod-obsolete: New file.
33900         * m4/strtod-obsolete.m4: New file.
33901         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
33902         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
33903         * modules/strtod (Depends-on): Add strtod-obsolete.
33904         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
33906 2011-04-25  Bruno Haible  <bruno@clisp.org>
33908         strcase: Make module obsolete.
33909         * modules/strcase (Status, Notice): New sections.
33911 2011-04-25  Bruno Haible  <bruno@clisp.org>
33913         dup2: Remove check for dup2, unless supporting old obsolete platforms.
33914         * modules/dup2-obsolete: New file.
33915         * m4/dup2-obsolete.m4: New file.
33916         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
33917         gl_FUNC_DUP2_OBSOLETE is not also defined.
33918         * modules/dup2 (Depends-on): Add dup2-obsolete.
33919         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
33921 2011-04-25  Bruno Haible  <bruno@clisp.org>
33923         strnlen: Avoid memchr related link error on old obsolete platforms.
33924         * modules/memchr-obsolete: New file.
33925         * m4/memchr-obsolete.m4: New file.
33926         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
33927         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
33928         * modules/memchr (Depends-on): Add memchr-obsolete.
33929         * modules/strnlen (Depends-on): Likewise.
33930         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
33932 2011-04-25  Jim Meyering  <meyering@redhat.com>
33934         maint.mk: makefile_at_at_check extend and clean up
33935         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
33936         in addition to */Makefile.am.
33937         Exempt legitimate uses of @VAR@ notation, e.g.,
33938         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
33939         Remove obsolete coreutils-specific comment.
33940         Prompted by discussion here:
33941         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
33943 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
33945         strtoul: remove dependency on strtol
33946         This is so that 'configure' need not check for strtol merely because
33947         the application needs strtoul.
33948         * modules/strtoul (Files): Add lib/strtol.c.
33949         (Depends-on): Remove strtol.
33951         strtoull: remove dependency on strtoul
33952         This is like the strtoll change.
33953         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
33954         (Depends-on): Remove strtoul.
33956         strtoll: remove dependency on strtol
33957         This is so that 'configure' need not check for strtol merely because
33958         the application needs strtoll.
33959         * modules/strtoll (Files): Add lib/strtol.c.
33960         (Depends-on): Remove strtol.
33962 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
33964         inttypes: Move some configure check to module 'imaxdiv'.
33965         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
33966         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
33967         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
33969 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
33971         inttypes: Move some configure check to module 'imaxabs'.
33972         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
33973         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
33974         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
33976 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
33978         inttypes: Remove configure tests that are not needed since 2009-12-31.
33979         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
33980         gl_cv_header_working_inttypes_h.
33982 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
33984         * modules/strnlen (Depends-on): Remove memchr.
33985         The strnlen implementation doesn't need the memchr module's fixes; see
33986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
33988         strtol: remove dependency on wchar
33989         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
33990         * modules/strtol (Depends-on): Remove wchar.
33992 2011-04-21  Eric Blake  <eblake@redhat.com>
33994         passfd: fix test regression on Linux
33995         * modules/passfd-tests (configure.ac): Correct socketpair check.
33997         passfd: speed up configure and drop unused code
33998         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
33999         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
34000         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
34001         Instead of probing at configure for unix_scm_rights_bsd44_way,
34002         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
34003         check to a struct member probe.
34004         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
34005         (sendfd, recvfd): Update preprocessor checks.
34006         * modules/passfd (Files): Reflect rename, and drop unused file.
34007         (Depends-on): Drop unused dependency.
34009         passfd: allow compilation on mingw
34010         * modules/sys_socket (Depends-on): Add sys_uio.
34011         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
34012         iovec and a minimal struct msghdr.
34013         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
34014         * tests/test-sys_socket.c (main): Enhance test.
34015         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
34016         guaranteed to provide what we need.
34017         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
34018         * modules/passfd-tests (Depends-on): Add sys_wait.
34019         * tests/test-passfd.c (main): Skip test on mingw, for now.
34020         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
34021         partial 'struct msghdr' implementation.
34023         sys_uio: new module
34024         * modules/sys_uio: New module.
34025         * modules/sys_uio-tests: Likewise.
34026         * lib/sys_uio.in.h: New file.
34027         * m4/sys_uio_h.m4: Likewise.
34028         * tests/test-sys_uio.c: Likewise.
34029         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
34030         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
34032 2011-04-20  Jim Meyering  <meyering@redhat.com>
34034         useless-if-before-free: avoid false-positive
34035         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
34036         disjunct so that it too requires a terminating ";".  Without that,
34037         this script would identify as useless one statement from gcc that
34038         was not:
34039           if (aligned_ptr)
34040             free (((void **) aligned_ptr) [-1]);
34042 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
34044         doc: update users.txt.
34045         * users.txt: Add barcode.
34047 2011-04-19  Bruno Haible  <bruno@clisp.org>
34049         ioctl: Remove link dependency on native Windows.
34050         * lib/fd-hook.h: Renamed from lib/close-hook.h.
34051         (gl_close_fn, gl_ioctl_fn): New types.
34052         (struct fd_hook): Renamed from struct close_hook. Change type of
34053         private_close_fn field. Add private_ioctl_fn field.
34054         (close_hook_fn): Add parameter for primary close method.
34055         (execute_close_hooks, execute_all_close_hooks): Likewise.
34056         (ioctl_hook_fn): New type.
34057         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
34058         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
34059         argument.
34060         (unregister_fd_hook): Renamed from unregister_close_hook.
34061         * lib/fd-hook.c: Renamed from lib/close-hook.c.
34062         Don't include <unistd.h>.
34063         (close): Remove undef.
34064         (anchor): Update.
34065         (execute_close_hooks): Add argument for primary close method.
34066         (execute_all_close_hooks): Likewise.
34067         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
34068         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
34069         argument. Allow each argument to be NULL.
34070         (unregister_fd_hook): Renamed from unregister_close_hook.
34071         * lib/close.c (rpl_close): Pass 'close' function pointer to
34072         execute_all_close_hooks.
34073         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
34074         (primary_ioctl): New function.
34075         (ioctl): Don't call ioctlsocket here. Instead, call
34076         execute_all_ioctl_hooks.
34077         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
34078         close method.
34079         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
34080         (fd_sockets_hook): Renamed from close_sockets_hook.
34081         (gl_sockets_startup, gl_sockets_cleanup): Update.
34082         * modules/fd-hook: Renamed from modules/close-hook. Update.
34083         * modules/close (Depends-on): Add fd-hook, remove close-hook.
34084         * modules/sockets (Depends-on): Likewise.
34085         * modules/ioctl (Depends-on): Add fd-hook.
34086         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
34087         GNULIB_SOCKET.
34089 2011-04-19  Bruno Haible  <bruno@clisp.org>
34091         Move the support of O_NONBLOCK in open() to the 'open' module.
34092         * modules/nonblocking (Depends-on): Remove 'open'.
34093         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
34094         gl_cv_have_open_O_NONBLOCK.
34095         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
34096         O_NONBLOCK support.
34097         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
34099 2011-04-17  Bruno Haible  <bruno@clisp.org>
34101         pipe2: Simplify code.
34102         * lib/pipe2.c (pipe2): Reduce code duplication.
34104 2011-04-17  Bruno Haible  <bruno@clisp.org>
34106         nonblocking: Add comment.
34107         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
34109 2011-04-17  Bruno Haible  <bruno@clisp.org>
34111         nonblocking: Add tests for sockets.
34112         * tests/test-nonblocking-socket.sh: New file.
34113         * tests/test-nonblocking-socket-main.c: New file.
34114         * tests/test-nonblocking-socket-child.c: New file.
34115         * tests/test-nonblocking-socket.h: New file.
34116         * tests/socket-server.h: New file.
34117         * tests/socket-client.h: New file.
34118         * modules/nonblocking-socket-tests: New file.
34119         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
34121 2011-04-17  Bruno Haible  <bruno@clisp.org>
34123         nonblocking: Add tests for pipes.
34124         * tests/test-nonblocking-pipe.sh: New file.
34125         * tests/test-nonblocking-pipe-main.c: New file.
34126         * tests/test-nonblocking-pipe-child.c: New file.
34127         * tests/test-nonblocking-pipe.h: New file.
34128         * tests/test-nonblocking-writer.h: New file.
34129         * tests/test-nonblocking-reader.h: New file.
34130         * tests/test-nonblocking-misc.h: New file.
34131         * modules/nonblocking-pipe-tests: New file.
34132         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
34134 2011-04-16  Bruno Haible  <bruno@clisp.org>
34136         gettext: Clarify the needed programmer actions.
34137         * modules/gettext (Notice): New field.
34138         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34140 2011-04-16  Bruno Haible  <bruno@clisp.org>
34142         strchrnul: Tweak last commit.
34143         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
34144         bug.
34145         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
34146         as in _GL_FUNCDECL_SYS.
34147         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
34148         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
34150 2011-04-15  Eric Blake  <eblake@redhat.com>
34152         strchrnul: work around cygwin bug
34153         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
34154         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
34155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
34156         * modules/string (Makefile.am): Substitute it.
34157         * lib/string.in.h (strchrnul): Use it.
34159 2011-04-15  Bruno Haible  <bruno@clisp.org>
34161         Don't require lib/stdio-write.c when only module 'stdio' is used.
34162         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
34163         invocation.
34164         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
34166 2011-04-14  Bruno Haible  <bruno@clisp.org>
34168         Support non-blocking pipe I/O in read() on native Windows.
34169         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
34170         (read): New declaration.
34171         * lib/read.c: New file.
34172         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
34173         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
34174         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
34175         vscanf): New declarations.
34176         * lib/stdio-read.c: New file.
34177         * m4/read.m4: New file.
34178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
34179         REPLACE_READ.
34180         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
34181         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
34182         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
34183         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
34184         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
34185         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
34186         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
34187         * modules/read: New file.
34188         * modules/nonblocking (Files): Add lib/stdio-read.c.
34189         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
34190         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
34191         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
34192         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
34193         * modules/pread (Depends-on): Add read.
34194         * modules/safe-read (Depends-on): Likewise.
34195         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
34196         gets, scanf, vfscanf, vscanf): Verify signatures.
34197         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
34198         problem with non-blocking pipes.
34199         * doc/posix-functions/fgetc.texi: Likewise.
34200         * doc/posix-functions/fgets.texi: Likewise.
34201         * doc/posix-functions/fread.texi: Likewise.
34202         * doc/posix-functions/fscanf.texi: Likewise.
34203         * doc/posix-functions/getc.texi: Likewise.
34204         * doc/posix-functions/getchar.texi: Likewise.
34205         * doc/posix-functions/gets.texi: Likewise.
34206         * doc/posix-functions/scanf.texi: Likewise.
34207         * doc/posix-functions/vfscanf.texi: Likewise.
34208         * doc/posix-functions/vscanf.texi: Likewise.
34210 2011-04-14  Bruno Haible  <bruno@clisp.org>
34212         Support non-blocking pipe I/O in write() on native Windows.
34213         * lib/write.c (rpl_write): Split a write request that failed merely
34214         because the byte count was larger than the pipe buffer's size.
34215         * doc/posix-functions/write.texi: Mention the problem with large byte
34216         counts.
34218 2011-04-14  Bruno Haible  <bruno@clisp.org>
34220         wchar: Ensure that wchar_t gets defined on uClibc.
34221         * lib/wchar.in.h: On uClibc, include <stddef.h>.
34222         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
34224 2011-04-13  Bruno Haible  <bruno@clisp.org>
34226         safe-write, full-read: Avoid unnecessary compilation units.
34227         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
34228         (Depends-on): Remove safe-read. Add ssize_t.
34229         * modules/full-read (Files): Add lib/full-write.c.
34230         (Depends-on): Add full-write.
34232 2011-04-13  Bruno Haible  <bruno@clisp.org>
34234         Support non-blocking pipe I/O and SIGPIPE in pwrite().
34235         * modules/pwrite (Depends-on): Add 'write'.
34237 2011-04-13  Bruno Haible  <bruno@clisp.org>
34239         Support non-blocking pipe I/O in write() on native Windows.
34240         * lib/unistd.in.h (write): Enable replacement also if
34241         GNULIB_UNISTD_H_NONBLOCKING is 1.
34242         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
34243         (rpl_write): When failing to write on a non-blocking pipe, change
34244         errno from ENOSPC to EAGAIN.
34245         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
34246         putchar, puts, vfprintf, vprintf): Enable replacement also if
34247         GNULIB_STDIO_H_NONBLOCKING is 1.
34248         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
34249         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
34250         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
34251         CALL_WITH_SIGPIPE_EMULATION.
34252         (CALL_WITH_SIGPIPE_EMULATION): Use them.
34253         * m4/nonblocking.m4: New file.
34254         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
34255         for non-blocking I/O support.
34256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34257         GNULIB_UNISTD_H_NONBLOCKING.
34258         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
34259         required for non-blocking I/O support.
34260         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
34261         * modules/nonblocking (Files): Add m4/nonblocking.m4,
34262         lib/stdio-write.c, m4/asm-underscore.m4.
34263         (Depends-on): Add stdio, unistd.
34264         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
34265         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
34266         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
34267         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
34268         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
34269         problem with non-blocking pipes.
34270         * doc/posix-functions/fputc.texi: Likewise.
34271         * doc/posix-functions/fputs.texi: Likewise.
34272         * doc/posix-functions/fwrite.texi: Likewise.
34273         * doc/posix-functions/printf.texi: Likewise.
34274         * doc/posix-functions/putc.texi: Likewise.
34275         * doc/posix-functions/putchar.texi: Likewise.
34276         * doc/posix-functions/puts.texi: Likewise.
34277         * doc/posix-functions/vfprintf.texi: Likewise.
34278         * doc/posix-functions/vprintf.texi: Likewise.
34279         * doc/posix-functions/write.texi: Likewise.
34281 2011-04-10  Jim Meyering  <meyering@redhat.com>
34283         maint.mk: prohibit doubled words
34284         Detect them also when they're separated by a newline.
34285         There are 3 ways to customize it:
34286           - disable the test on a per file basis, as usual with rules using
34287             $(VC_LIST_EXCEPT)
34288           - replace the default doubled-word-selecting regexp (affects all files)
34289           - ignore a particular file-vs-doubled-word match
34290         I nearly used that last one to ignore the "is is" match in
34291         coreutils' NEWS file, since the text was "ls -is is ..."
34292         To do that, I would have added this line to cfg.mk:
34293           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
34294         but it would have ignored any "is is" match in NEWS.
34295         Low probability, but still...
34296         Instead, I changed the text, slightly:
34297           -  ls -is is now consistent with ls -lis in ignoring values returned
34298           +  "ls -is" is now consistent with ls -lis in ignoring values returned
34299         * top/maint.mk (prohibit_double_word_RE_): Provide default.
34300         (prohibit_doubled_word_): Define.
34301         (sc_prohibit_doubled_word): New rule.
34302         (sc_prohibit_the_the): Remove.  Subsumed by the above.
34304 2011-04-10  Jim Meyering  <meyering@redhat.com>
34306         maint: fix doubled-word typo in comment
34307         * m4/gethostname.m4: s/is is/it is/
34308         * m4/getdomainname.m4: Likewise.
34310 2011-04-10  Jim Meyering  <meyering@redhat.com>
34312         maint: remove doubled word: s/it it/it/
34313         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
34315 2011-04-10  Jim Meyering  <meyering@redhat.com>
34317         maint.mk: remove useless semicolon and backslash
34318         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
34319         semicolon and backslash.
34321 2011-04-10  Bruno Haible  <bruno@clisp.org>
34323         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
34324         * modules/stdint-tests (Depends-on): Add wchar.
34326 2011-04-10  Jim Meyering  <meyering@redhat.com>
34328         maint: remove doubled words in comments, e.g., s/a a/a/
34329         * lib/strptime.c (day_of_the_week): s/the the/the/
34330         * tests/test-chown.h (test_chown): s/a a/a/
34332         test-chown.h: correct a cast
34333         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
34334         when the destination is a stat.st_gid.
34336 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
34338         getaddrinfo: Fix test for sa_len member.
34339         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
34340         include <sys/types.h> before <sys/socket.h>.
34342 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
34344         maint: change "can not" to "cannot"
34345         * doc/posix-functions/iconv.texi (iconv): This one crossed line
34346         boundaries.
34348 2011-04-09  Jim Meyering  <meyering@redhat.com>
34350         maint: change "a a" to "a"
34351         * tests/test-lchown.h (test_lchown): s/a a/a/
34353         maint.mk: prohibit \<the the\>
34354         * top/maint.mk (sc_prohibit_the_the): New rule.
34356         maint: fix "the the" in comment
34357         * lib/count-one-bits.h: s/the the/the/
34359         maint: change "can not" to "cannot"
34360         But do not change the occurrences in maintain.texi or in
34361         build-aux/po/Makefile.in.in, which I presume comes from gettext.
34362         * doc/gnulib-tool.texi: s/can not/cannot/
34363         * doc/posix-functions/accept.texi (accept): Likewise.
34364         * doc/posix-functions/socket.texi (socket): Likewise.
34365         * lib/mbrtowc.c: Likewise.
34367         maint.mk: prohibit use of "can not"
34368         * top/maint.mk (sc_prohibit_can_not): New rule.
34369         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
34371 2011-04-09  Bruno Haible  <bruno@clisp.org>
34373         careadlinkat: Guard against misuse of careadlinkatcwd.
34374         * lib/careadlinkat.c: Include <stdlib.h>.
34375         (careadlinkatcwd): Check that the fd argument is as expected.
34377 2011-04-09  Bruno Haible  <bruno@clisp.org>
34379         careadlinkat: Use common coding style.
34380         * lib/careadlinkat.c: Move gnulib includes after system includes.
34382 2011-04-09  Bruno Haible  <bruno@clisp.org>
34384         careadlinkat: Clarify specification.
34385         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
34386         (careadlinkatcwd): Add comment.
34387         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
34389 2011-04-09  Bruno Haible  <bruno@clisp.org>
34391         areadlinkat: Avoid link error on many platforms.
34392         * modules/areadlinkat (Depends-on): Add areadlink.
34394 2011-04-09  Bruno Haible  <bruno@clisp.org>
34396         allocator, careadlinkat: Fix double-inclusion guard.
34397         * lib/allocator.h: Fix double-inclusion guard.
34398         * lib/careadlinkat.h: Likewise.
34400 2011-04-09  Bruno Haible  <bruno@clisp.org>
34402         relocatable-prog-wrapper: Update after module 'areadlink' changed.
34403         * lib/relocwrapper.c: Update dependencies hierarchy.
34404         * build-aux/install-reloc: Update list of files to be compiled.
34405         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
34406         lib/allocator.[hc].
34408 2011-04-08  Eric Blake  <eblake@redhat.com>
34410         strftime: silence gnulib-tool warning
34411         * modules/strftime-tests (Depends-on): Drop automatic dependency.
34413 2011-04-08  Bruno Haible  <bruno@clisp.org>
34415         verify: Fix syntax error with GCC 4.6 in C++ mode.
34416         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
34417         (HAVE_STATIC_ASSERT): New macro.
34418         (verify_true, verify): Use 'static_assert' if it is supported and
34419         '_Static_assert' is not supported.
34421 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
34423         allocator: New module.
34424         * modules/allocator, lib/allocator.c: New files.
34425         * lib/allocator.h (stdlib_allocator): New decl.
34426         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
34427         Remove.  Do not include <stdlib.h>.
34428         (careadlinkat): Use stdlib_allocator instead of rolling our own.
34429         * modules/careadlinkat (Files): Remove lib/allocator.h.
34430         (Depends-on): Add allocator.
34432         stdlib: let modules use system malloc, realloc
34433         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
34434         if !_GL_USE_STDLIB_ALLOC.
34435         (malloc, realloc): Limit this change to a smaller scope.
34437         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
34438         (malloc, realloc): Don't #undef; no longer needed.
34439         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34440         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34441         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
34442         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34443         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34444         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34445         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
34446         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
34448         careadlinkat: rename members to avoid problem
34449         * lib/allocator.h (struct allocator): Rename members from
34450         malloc/realloc to allocate/reallocate, to avoid problems if malloc
34451         and realloc are #define'd.  Reported by Eric Blake in
34452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
34453         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
34455 2011-04-08  Eric Blake  <eblake@redhat.com>
34457         nonblocking: reduce dependency
34458         * tests/test-nonblocking.c: Only test sockets when in use.
34459         * modules/nonblocking-tests (Depends-on): Drop socket.
34460         (Makefile.am): Link even if sockets are not present.
34461         * modules/pipe2-tests (Makefile.am): Likewise.
34462         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
34464         pipe2: fix O_NONBLOCK support on mingw
34465         * modules/pipe2 (Depends-on): Add nonblocking.
34466         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
34467         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
34468         * tests/test-nonblocking.c (main): Likewise.
34469         * modules/pipe2-tests (Makefile.am): Avoid link failure.
34471         fcntl-h: fix O_ACCMODE on cygwin
34472         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
34473         * lib/fcntl.in.h (O_ACCMODE): Fix it.
34475         pipe-filter: drop O_NONBLOCK workarounds
34476         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
34477         * modules/pipe-filter-ii (Depends-on): Likewise.
34478         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
34480         nonblocking: provide O_NONBLOCK for mingw
34481         * modules/nonblocking (Depends-on): Add open.
34482         (configure.ac): Set new witness macro.
34483         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
34484         * modules/fcntl-h (Makefile.am): Substitute it.
34485         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
34486         nonblocking module is in use.
34487         * lib/nonblocking.c: Adjust portability test.
34488         * lib/open.c (open): Don't let native open see gnulib flag.
34489         * tests/test-fcntl-h.c (main): Enhance test.
34490         * tests/test-open.h (test_open): Likewise.
34491         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
34493         careadlinkat: fix compilation error on mingw
34494         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
34495         within struct allocator.
34497 2011-04-06  Eric Blake  <eblake@redhat.com>
34499         binary-io: relicense under LGPLv2+
34500         * modules/binary-io (License): Relax to LGPLv2+.
34501         Requested for libvirt, and required by pipe2.
34503 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
34505         verify: use _Static_assert if available
34506         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
34507         (verify_true, verify): Use it if available.  This generates better
34508         diagnostics with GCC 4.6.0 and later.
34510 2011-04-05  Bruno Haible  <bruno@clisp.org>
34512         Remove leftover generated .h files after config.status changed.
34514         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
34515         GL_GENERATE_ALLOCA_H.
34516         * modules/alloca-opt (Makefile.am): Remove alloca.h if
34517         GL_GENERATE_ALLOCA_H evaluates to false.
34519         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
34520         GL_GENERATE_ARGZ_H.
34521         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
34522         evaluates to false.
34524         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
34525         GL_GENERATE_BYTESWAP_H.
34526         * modules/byteswap (Makefile.am): Remove byteswap.h if
34527         GL_GENERATE_BYTESWAP_H evaluates to false.
34529         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
34530         GL_GENERATE_ERRNO_H.
34531         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
34532         evaluates to false.
34534         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
34535         GL_GENERATE_FLOAT_H.
34536         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
34537         evaluates to false.
34539         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
34540         GL_GENERATE_FNMATCH_H.
34541         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
34542         GL_GENERATE_FNMATCH_H evaluates to false.
34544         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
34545         GL_GENERATE_GLOB_H.
34546         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
34547         evaluates to false.
34549         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
34550         automake conditional GL_GENERATE_ICONV_H.
34551         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
34552         evaluates to false.
34554         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
34555         GL_GENERATE_NETINET_IN_H.
34556         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
34557         GL_GENERATE_NETINET_IN_H evaluates to false.
34559         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
34560         conditional GL_GENERATE_PTHREAD_H.
34561         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
34562         * modules/pthread (Makefile.am): Remove pthread.h if
34563         GL_GENERATE_PTHREAD_H evaluates to false.
34565         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
34566         GL_GENERATE_SCHED_H.
34567         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
34568         evaluates to false.
34570         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
34571         conditional GL_GENERATE_SELINUX_CONTEXT_H.
34572         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
34573         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
34575         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
34576         GL_GENERATE_STDARG_H.
34577         * modules/stdarg (Makefile.am): Remove stdarg.h if
34578         GL_GENERATE_STDARG_H evaluates to false.
34580         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
34581         GL_GENERATE_STDBOOL_H.
34582         * modules/stdbool (Makefile.am): Remove stdbool.h if
34583         GL_GENERATE_STDBOOL_H evaluates to false.
34585         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
34586         conditional GL_GENERATE_STDDEF_H.
34587         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
34588         * modules/stddef (Makefile.am): Remove stddef.h if
34589         GL_GENERATE_STDDEF_H evaluates to false.
34591         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
34592         GL_GENERATE_STDINT_H.
34593         * modules/stdint (Makefile.am): Remove stdint.h if
34594         GL_GENERATE_STDINT_H evaluates to false.
34596         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
34597         GL_GENERATE_SYSEXITS_H.
34598         * modules/sysexits (Makefile.am): Remove sysexits.h if
34599         GL_GENERATE_SYSEXITS_H evaluates to false.
34601         Reported by Karl Berry and Ralf Wildenhues.
34603 2011-04-05  Bruno Haible  <bruno@clisp.org>
34605         Ensure to rebuild generated .h files when config.status has changed.
34606         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
34607         config.status.
34608         * modules/ctype (Makefile.am): Likewise.
34609         * modules/dirent (Makefile.am): Likewise.
34610         * modules/errno (Makefile.am): Likewise.
34611         * modules/fcntl-h (Makefile.am): Likewise.
34612         * modules/float (Makefile.am): Likewise.
34613         * modules/getopt-posix (Makefile.am): Likewise.
34614         * modules/glob (Makefile.am): Likewise.
34615         * modules/iconv-h (Makefile.am): Likewise.
34616         * modules/inttypes (Makefile.am): Likewise.
34617         * modules/langinfo (Makefile.am): Likewise.
34618         * modules/locale (Makefile.am): Likewise.
34619         * modules/math (Makefile.am): Likewise.
34620         * modules/netdb (Makefile.am): Likewise.
34621         * modules/netinet_in (Makefile.am): Likewise.
34622         * modules/poll-h (Makefile.am): Likewise.
34623         * modules/pthread (Makefile.am): Likewise.
34624         * modules/pty (Makefile.am): Likewise.
34625         * modules/sched (Makefile.am): Likewise.
34626         * modules/search (Makefile.am): Likewise.
34627         * modules/selinux-h (Makefile.am): Likewise.
34628         * modules/signal (Makefile.am): Likewise.
34629         * modules/spawn (Makefile.am): Likewise.
34630         * modules/stdarg (Makefile.am): Likewise.
34631         * modules/stdbool (Makefile.am): Likewise.
34632         * modules/stddef (Makefile.am): Likewise.
34633         * modules/stdint (Makefile.am): Likewise.
34634         * modules/stdio (Makefile.am): Likewise.
34635         * modules/stdlib (Makefile.am): Likewise.
34636         * modules/string (Makefile.am): Likewise.
34637         * modules/strings (Makefile.am): Likewise.
34638         * modules/sys_file (Makefile.am): Likewise.
34639         * modules/sys_ioctl (Makefile.am): Likewise.
34640         * modules/sys_select (Makefile.am): Likewise.
34641         * modules/sys_socket (Makefile.am): Likewise.
34642         * modules/sys_stat (Makefile.am): Likewise.
34643         * modules/sys_time (Makefile.am): Likewise.
34644         * modules/sys_times (Makefile.am): Likewise.
34645         * modules/sys_utsname (Makefile.am): Likewise.
34646         * modules/sys_wait (Makefile.am): Likewise.
34647         * modules/sysexits (Makefile.am): Likewise.
34648         * modules/termios (Makefile.am): Likewise.
34649         * modules/time (Makefile.am): Likewise.
34650         * modules/unistd (Makefile.am): Likewise.
34651         * modules/wchar (Makefile.am): Likewise.
34652         * modules/wctype-h (Makefile.am): Likewise.
34653         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
34655 2011-04-05  Bruno Haible  <bruno@clisp.org>
34657         pipe2: Relicense under LGPLv2+.
34658         * modules/pipe2 (License): Change to LGPLv2+.
34659         Requested by Eric Blake, for libvirt.
34661 2011-04-05  Bruce Korb  <bkorb@gnu.org>
34663         bootstrap: compute gnulib_extra_files after updating build_aux
34664         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
34665         change build_aux or also supply gnulib_extra_files.  Handle correctly.
34667 2011-04-05  Eric Blake  <eblake@redhat.com>
34669         bootstrap: preserve git whitelist item sorting
34670         * build-aux/bootstrap (sort_patterns): New function.
34671         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
34673 2011-04-05  Simon Josefsson  <simon@josefsson.org>
34675         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
34676         sc_space_tab check.
34678 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
34680         areadlink, areadlinkat: rewrite in terms of careadlinkat
34681         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
34682         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
34683         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
34684         (malloc, realloc): Remove #undefs.
34685         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
34686         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
34687         readlink, ssize_t, stdint, unistd.
34688         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
34689         areadlink, stdint.
34691         careadlinkat: new module
34692         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
34693         * modules/careadlinkat: New files, written by me with
34694         a review and feedback from Ben Pfaff in
34695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
34697 2011-04-01  Bruno Haible  <bruno@clisp.org>
34699         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
34700         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
34701         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
34702         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
34703         Reported by Bruce Korb <bruce.korb@gmail.com>.
34705 2011-04-01  Bruno Haible  <bruno@clisp.org>
34707         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
34708         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
34709         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
34710         * modules/wcpcpy (Depends-on): Add extensions.
34711         * modules/wcpncpy (Depends-on): Likewise.
34712         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
34713         systems.
34714         * doc/posix-functions/wcpncpy.texi: Likewise.
34715         * doc/posix-functions/wcwidth.texi: Likewise.
34717 2011-03-31  Eric Blake  <eblake@redhat.com>
34719         nonblocking: fix mingw test failures
34720         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
34721         non-blocking flag on regular file.
34722         (get_nonblocking_flag): Set errno on invalid fd.
34723         * tests/test-nonblocking.c (main): Avoid test failure on
34724         directories if fchdir is not active.
34725         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
34727 2011-03-31  Bruno Haible  <bruno@clisp.org>
34729         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
34730         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
34731         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
34732         Reported by Simon Josefsson <simon@josefsson.org>.
34734 2011-03-31  Bruno Haible  <bruno@clisp.org>
34735         and Eric Blake  <eblake@redhat.com>
34737         nonblocking: new module
34738         * modules/nonblocking: New module.
34739         * modules/nonblocking-tests: Likewise.
34740         * lib/nonblocking.h: New file.
34741         * lib/nonblocking.c: Likewise.
34742         * tests/test-nonblocking.c: New test.
34743         * lib/ioctl.c (ioctl) [mingw]: Update comment.
34745 2011-03-30  Bruno Haible  <bruno@clisp.org>
34747         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
34748         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
34749         instead of 'printf' format for GCC >= 4.4.
34750         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
34751         (fprintf, printf, vfprintf, vprintf): Declare with
34752         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
34753         the system's vfprintf() function.
34754         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
34756 2011-03-30  Eric Blake  <eblake@redhat.com>
34758         passfd: fix scoping bug
34759         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
34760         before sendmsg/recvmsg.
34762         passfd: standardize coding conventions
34763         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
34764         can be learned at compile time.
34765         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
34766         ifdefs.
34767         (sendfd, recvfd): Follow gnulib code conventions.
34769         passfd: fix incorrect sendmsg arguments
34770         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
34771         incorrect msg_controllen value.
34772         * modules/passfd-tests (Depends-on): Check for alarm.
34773         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
34774         Reported by Bastien ROUCARIES.
34776 2011-03-30  Bruno Haible  <bruno@clisp.org>
34778         c-strcasestr: Relicense under LGPLv2+.
34779         * modules/c-strcasestr (License): Change to LGPLv2+.
34780         Requested by Eric Blake, for libvirt.
34782 2011-03-30  Simon Josefsson  <simon@josefsson.org>
34784         * users.txt: Add libidn2.  Fix libtasn1 link.
34786 2011-03-30  Jim Meyering  <meyering@redhat.com>
34788         tests: readlink* ("",... fails with EINVAL on newer kernels
34789         readlink and readlinkat have typically failed with ENOENT for
34790         the invalid, empty file name,  "".  However, with the advent
34791         of linux-2.6.39, they fail with EINVAL.
34792         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
34793         when operating on the empty file name.
34794         * tests/test-readlink.h (test_readlink): Likewise.
34796 2011-03-29  Bruno Haible  <bruno@clisp.org>
34798         Relicense some modules under LGPLv2+, for libidn2.
34799         * modules/array-mergesort (License): Change to LGPLv2+.
34800         * modules/c-strcaseeq (License): Likewise.
34801         * modules/striconveh (License): Likewise.
34802         * modules/striconveha (License): Likewise.
34803         * modules/uniconv/base (License): Likewise.
34804         * modules/uniconv/u8-conv-from-enc (License): Likewise.
34805         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
34806         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
34807         * modules/unictype/base (License): Likewise.
34808         * modules/unictype/bidiclass-of (License): Likewise.
34809         * modules/unictype/category-M (License): Likewise.
34810         * modules/unictype/category-none (License): Likewise.
34811         * modules/unictype/category-of (License): Likewise.
34812         * modules/unictype/category-test (License): Likewise.
34813         * modules/unictype/category-test-withtable (License): Likewise.
34814         * modules/unictype/combining-class (License): Likewise.
34815         * modules/unictype/joiningtype-of (License): Likewise.
34816         * modules/unictype/scripts (License): Likewise.
34817         * modules/uninorm/base (License): Likewise.
34818         * modules/uninorm/canonical-decomposition (License): Likewise.
34819         * modules/uninorm/composition (License): Likewise.
34820         * modules/uninorm/decompose-internal (License): Likewise.
34821         * modules/uninorm/decomposition-table (License): Likewise.
34822         * modules/uninorm/nfc (License): Likewise.
34823         * modules/uninorm/nfd (License): Likewise.
34824         * modules/uninorm/u32-normalize (License): Likewise.
34825         * modules/unistr/base (License): Likewise.
34826         * modules/unistr/u32-cpy (License): Likewise.
34827         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
34828         * modules/unistr/u32-to-u8 (License): Likewise.
34829         * modules/unistr/u32-uctomb (License): Likewise.
34830         * modules/unistr/u8-check (License): Likewise.
34831         * modules/unistr/u8-mblen (License): Likewise.
34832         * modules/unistr/u8-mbtouc (License): Likewise.
34833         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
34834         * modules/unistr/u8-mbtoucr (License): Likewise.
34835         * modules/unistr/u8-prev (License): Likewise.
34836         * modules/unistr/u8-strlen (License): Likewise.
34837         * modules/unistr/u8-to-u32 (License): Likewise.
34838         * modules/unistr/u8-uctomb (License): Likewise.
34839         * modules/unitypes (License): Likewise.
34840         Requested by Simon Josefsson.
34842 2011-03-29  Simon Josefsson  <simon@josefsson.org>
34844         lib-symbol-visibility: Add a notice.
34845         * modules/lib-symbol-visibility (Notice): New field.
34847 2011-03-29  Bruno Haible  <bruno@clisp.org>
34849         getaddrinfo: Doc fix.
34850         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
34851         section "fixed in Gnulib".
34853 2011-03-28  Simon Josefsson  <simon@josefsson.org>
34855         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
34856         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
34858 2011-03-26  Bruno Haible  <bruno@clisp.org>
34860         unictype/property-byname: Reduce the number of load-time relocations.
34861         * lib/unictype/pr_byname.c: Include <stdlib.h>.
34862         (UC_PROPERTY_INDEX_*): New enumeration values.
34863         (uc_property_byname): Convert an index from the lookup table to an
34864         uc_property_t.
34865         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
34866         values.
34868 2011-03-26  Bruno Haible  <bruno@clisp.org>
34870         unictype/property-byname: Allow omitted word separators and aliases.
34871         * lib/unictype/pr_byname.gperf: Add property names without word
34872         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
34873         for 'space'.
34875 2011-03-26  Bruno Haible  <bruno@clisp.org>
34877         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
34878         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
34879         also hyphens to space.
34880         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
34881         without spaces.
34882         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
34884 2011-03-26  Bruno Haible  <bruno@clisp.org>
34886         unictype/joiningtype-byname: Recognize long names as well.
34887         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
34888         a long name.
34889         * lib/unictype/joiningtype_byname.c: Include <string.h>,
34890         unictype/joiningtype_byname.h.
34891         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
34892         * lib/unictype/joiningtype_byname.gperf: New file.
34893         * modules/unictype/joiningtype-byname (Files): Add
34894         lib/unictype/joiningtype_byname.gperf.
34895         (Depends-on): Add gperf.
34896         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
34897         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
34898         long names.
34900         Tests for module 'unictype/joiningtype-longname'.
34901         * modules/unictype/joiningtype-longname-tests: New file.
34902         * tests/unictype/test-joiningtype_longname.c: New file.
34904         New module 'unictype/joiningtype-longname'.
34905         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
34906         * lib/unictype/joiningtype_longname.c: New file.
34907         * modules/unictype/joiningtype-longname: New file.
34908         * modules/unictype/joiningtype-all (Depends-on): Add
34909         unictype/joiningtype-longname.
34911 2011-03-26  Bruno Haible  <bruno@clisp.org>
34913         unictype/bidiclass-byname: Recognize long names as well.
34914         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
34915         name.
34916         * lib/unictype/bidi_byname.c: Include <string.h>,
34917         unictype/bidi_byname.h.
34918         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
34919         * lib/unictype/bidi_byname.gperf: New file.
34920         * modules/unictype/bidiclass-byname (Files): Add
34921         lib/unictype/bidi_byname.gperf.
34922         (Depends-on): Add gperf.
34923         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
34924         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
34925         long names.
34927         Tests for module 'unictype/bidiclass-longname'.
34928         * modules/unictype/bidiclass-longname-tests: New file.
34929         * tests/unictype/test-bidi_longname.c: New file.
34931         New module 'unictype/bidiclass-longname'.
34932         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
34933         * lib/unictype/bidi_longname.c: New file.
34934         * modules/unictype/bidiclass-longname: New file.
34935         * modules/unictype/bidiclass-all (Depends-on): Add
34936         unictype/bidiclass-longname.
34938 2011-03-26  Bruno Haible  <bruno@clisp.org>
34940         unictype/bidi*: Rename modules.
34941         * modules/unictype/bidiclass-all: Renamed from
34942         modules/unictype/bidicategory-all.
34943         * modules/unictype/bidiclass-name: Renamed from
34944         modules/unictype/bidiclass-name.
34945         (Description): Update.
34946         * modules/unictype/bidiclass-name-tests: Renamed from
34947         modules/unictype/bidicategory-name-tests.
34948         * modules/unictype/bidiclass-byname: Renamed from
34949         modules/unictype/bidicategory-byname.
34950         (Description): Update.
34951         * modules/unictype/bidiclass-byname-tests: Renamed from
34952         modules/unictype/bidicategory-byname-tests.
34953         * modules/unictype/bidiclass-of: Renamed from
34954         modules/unictype/bidicategory-of.
34955         (Description): Update.
34956         * modules/unictype/bidiclass-of-tests: Renamed from
34957         modules/unictype/bidicategory-of-tests.
34958         * modules/unictype/bidiclass-test: Renamed from
34959         modules/unictype/bidicategory-test.
34960         (Description): Update.
34961         * modules/unictype/bidiclass-test-tests: Renamed from
34962         modules/unictype/bidicategory-test-tests.
34963         * modules/unictype/bidicategory-all: New file, a simple redirection.
34964         * modules/unictype/bidicategory-name: Likewise.
34965         * modules/unictype/bidicategory-byname: Likewise.
34966         * modules/unictype/bidicategory-of: Likewise.
34967         * modules/unictype/bidicategory-test: Likewise.
34968         * modules/unictype/property-bidi-* (Dependencies): Update.
34969         * lib/unictype/bidi_*.c: Update comment.
34971 2011-03-26  Bruno Haible  <bruno@clisp.org>
34973         unictype/bidi*: Rename functions, part 2.
34974         * modules/unictype/bidicategory-name (configure.ac): Update required
34975         libunistring version.
34976         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
34978 2011-03-25  Bruno Haible  <bruno@clisp.org>
34980         New module 'unictype/combining-class-all'.
34981         * modules/unictype/combining-class-all: New file.
34983         Tests for module 'unictype/combining-class-byname'.
34984         * modules/unictype/combining-class-byname-tests: New file.
34985         * tests/unictype/test-combiningclass_byname.c: New file.
34987         New module 'unictype/combining-class-byname'.
34988         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
34989         * lib/unictype/combiningclass_byname.c: New file.
34990         * lib/unictype/combiningclass_byname.gperf: New file.
34991         * modules/unictype/combining-class-byname: New file.
34993         Tests for module 'unictype/combining-class-longname'.
34994         * modules/unictype/combining-class-longname-tests: New file.
34995         * tests/unictype/test-combiningclass_longname.c: New file.
34997         New module 'unictype/combining-class-longname'.
34998         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
34999         * lib/unictype/combiningclass_longname.c: New file.
35000         * modules/unictype/combining-class-longname: New file.
35002         Tests for module 'unictype/combining-class-name'.
35003         * modules/unictype/combining-class-name-tests: New file.
35004         * tests/unictype/test-combiningclass_name.c: New file.
35006         New module 'unictype/combining-class-name'.
35007         * lib/unictype.in.h (uc_combining_class_name): New declaration.
35008         * lib/unictype/combiningclass_name.c: New file.
35009         * modules/unictype/combining-class-name: New file.
35011 2011-03-25  Bruno Haible  <bruno@clisp.org>
35013         unictype/combining-class: Rename source files.
35014         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
35015         of unictype/combining.h.
35016         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
35017         Update.
35018         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
35019         * modules/unictype/combining-class (Description): Fix.
35020         (Files, Makefile.am): Update.
35021         * tests/unictype/test-combiningclass.c: Renamed from
35022         tests/unictype/test-combining.c.
35023         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
35025 2011-03-25  Bruno Haible  <bruno@clisp.org>
35027         unictype: Update list of canonical combining classes.
35028         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
35030 2011-03-25  Bruno Haible  <bruno@clisp.org>
35032         unictype/category-byname: Recognize long names as well.
35033         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
35034         a long name.
35035         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
35036         unictype/categ_byname.h.
35037         (UC_CATEGORY_INDEX_*): New enumeration values.
35038         (uc_general_category_byname): Use uc_general_category_lookup and
35039         convert from index to value.
35040         * lib/unictype/categ_byname.gperf: New file.
35041         * modules/unictype/category-byname (Files): Add
35042         lib/unictype/categ_byname.gperf.
35043         (Depends-on): Add gperf.
35044         (Makefile.am): Add rule for generating unictype/categ_byname.h.
35045         * tests/unictype/test-categ_byname.c (main): Test the recognition of
35046         long names.
35048         Tests for module 'unictype/category-longname'.
35049         * modules/unictype/category-longname-tests: New file.
35050         * tests/unictype/test-categ_longname.c: New file.
35052         New module 'unictype/category-longname'.
35053         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
35054         * lib/unictype/categ_longname.c: New file.
35055         * modules/unictype/category-longname: New file.
35056         * modules/unictype/category-all (Depends-on): Add it.
35058 2011-03-25  Bruno Haible  <bruno@clisp.org>
35060         Tests for module 'unictype/category-LC'.
35061         * modules/unictype/category-LC-tests: New file.
35062         * tests/unictype/test-categ_LC.c: New file, automatically generated.
35064         New module 'unictype/category-LC'.
35065         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
35066         (UC_CATEGORY_LC): New declaration.
35067         (UC_CASED_LETTER): New macro.
35068         * lib/gen-uni-tables.c (is_category_LC): New function.
35069         (output_categories): Also handle category LC.
35070         (UC_CATEGORY_MASK_LC): New enumeration value.
35071         (general_category_byname): Also handle category LC.
35072         * lib/unictype/categ_LC.c: New file.
35073         * lib/unictype/categ_LC.h: New file, automatically generated.
35074         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
35075         category LC.
35076         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
35077         * modules/unictype/category-LC: New file.
35078         * modules/unictype/category-byname (Depends-on): Add
35079         unictype/category-LC.
35080         * modules/unictype/category-all (Depends-on): Likewise.
35082 2011-03-25  Eric Blake  <eblake@redhat.com>
35084         xmalloc: revert yesterday's regression
35085         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
35086         realloc's underlying behavior (allowing allocation of zero-size
35087         objects, especially if malloc-gnu is also in use).
35089 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
35091         maint.mk: add missing version to VC-tag
35092         * top/maint.mk: git tag was missing actual tag name; add it.
35094         valgrind: do leak checking, and exit with code 1 on error (not 0)
35095         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
35096         to VALGRIND.
35098 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
35100         posix-modules: say what it does.
35101         * posix-modules: Add a line to the --help output saying what it does.
35103 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
35105         xmalloc: Do not leak if underlying realloc is C99 compatible.
35106         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
35107         This avoids a leak on C99-based systems.  See
35108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
35110 2011-03-24  Eric Blake  <eblake@redhat.com>
35112         realloc: document portability problem
35113         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
35114         passing 0 size to realloc.
35116 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
35118         doc: update users.txt
35119         * users.txt: Add cvsps, tmpwatch
35121 2011-03-23  Matt Rice  <ratmice@gmail.com>
35123         doc: update users.txt
35124         * users.txt: Add gdb.
35126 2011-03-23  Jim Meyering  <meyering@redhat.com>
35128         doc: update users.txt
35129         Looking through matches up to the following URL (there are still
35130         several more pages), I found several projects that use gnulib:
35131         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
35132         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
35133         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
35135 2011-03-22  Bruno Haible  <bruno@clisp.org>
35137         unictype/bidi*: Rename functions.
35138         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
35139         uc_bidi_class, uc_is_bidi_class): New declarations.
35140         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
35141         uc_bidi_category_byname.
35142         (uc_bidi_category_byname): New function.
35143         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
35144         u_bidi_category_name.
35145         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
35146         (uc_bidi_category_name): New function.
35147         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
35148         uc_bidi_category.
35149         (uc_bidi_category): New function.
35150         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
35151         uc_is_bidi_category. Invoke uc_bidi_class.
35152         (uc_is_bidi_category): New function.
35153         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
35154         instead of uc_bidi_category_byname.
35155         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
35156         instead of uc_bidi_category_name.
35157         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
35158         uc_bidi_category.
35159         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
35160         instead of uc_is_bidi_category.
35162 2011-03-21  Bruno Haible  <bruno@clisp.org>
35164         New module 'unictype/joininggroup-all'.
35165         * modules/unictype/joininggroup-all: New file.
35167         Tests for module 'unictype/joininggroup-of'.
35168         * modules/unictype/joininggroup-of-tests: New file.
35169         * tests/unictype/test-joininggroup_of.c: New file.
35170         * tests/unictype/test-joininggroup_of.h: New file, automatically
35171         generated by gen-uni-tables.
35173         New module 'unictype/joininggroup-of'.
35174         * modules/unictype/joininggroup-of: New file.
35175         * lib/unictype/joininggroup_of.c: New file.
35176         * lib/unictype/joininggroup_of.h: New file, automatically generated by
35177         gen-uni-tables.
35179         Tests for module 'unictype/joininggroup-byname'.
35180         * modules/unictype/joininggroup-byname-tests: New file.
35181         * tests/unictype/test-joininggroup_byname.c: New file.
35183         New module 'unictype/joininggroup-byname'.
35184         * modules/unictype/joininggroup-byname: New file.
35185         * lib/unictype/joininggroup_byname.c: New file.
35186         * lib/unictype/joininggroup_byname.gperf: New file.
35188         Tests for module 'unictype/joininggroup-name'.
35189         * modules/unictype/joininggroup-name-tests: New file.
35190         * tests/unictype/test-joininggroup_name.c: New file.
35192         New module 'unictype/joininggroup-name'.
35193         * modules/unictype/joininggroup-name: New file.
35194         * lib/unictype/joininggroup_name.c: New file.
35195         * lib/unictype/joininggroup_name.h: New file.
35197         New module 'unictype/joiningtype-all'.
35198         * modules/unictype/joiningtype-all: New file.
35200         Tests for module 'unictype/joiningtype-of'.
35201         * modules/unictype/joiningtype-of-tests: New file.
35202         * tests/unictype/test-joiningtype_of.c: New file.
35203         * tests/unictype/test-joiningtype_of.h: New file, automatically
35204         generated by gen-uni-tables.
35206         New module 'unictype/joiningtype-of'.
35207         * modules/unictype/joiningtype-of: New file.
35208         * lib/unictype/joiningtype_of.c: New file.
35209         * lib/unictype/joiningtype_of.h: New file, automatically generated by
35210         gen-uni-tables.
35212         Tests for module 'unictype/joiningtype-byname'.
35213         * modules/unictype/joiningtype-byname-tests: New file.
35214         * tests/unictype/test-joiningtype_byname.c: New file.
35216         New module 'unictype/joiningtype-byname'.
35217         * modules/unictype/joiningtype-byname: New file.
35218         * lib/unictype/joiningtype_byname.c: New file.
35220         Tests for module 'unictype/joiningtype-name'.
35221         * modules/unictype/joiningtype-name-tests: New file.
35222         * tests/unictype/test-joiningtype_name.c: New file.
35224         New module 'unictype/joiningtype-name'.
35225         * modules/unictype/joiningtype-name: New file.
35226         * lib/unictype/joiningtype_name.c: New file.
35228         unictype: Add support for Arabic shaping properties.
35229         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
35230         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
35231         declarations.
35232         (UC_JOINING_GROUP_*): New enumeration values.
35233         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
35234         declarations.
35235         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
35236         (unicode_joining_type): New variable.
35237         (UC_JOINING_GROUP_*): New enumeration values.
35238         (unicode_joining_group): New variable.
35239         (fill_arabicshaping, joining_type_as_c_identifier,
35240         output_joining_type_test, output_joining_type,
35241         joining_group_as_c_identifier, output_joining_group_test,
35242         output_joining_group): New functions.
35243         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
35244         fill_arabicshaping and output_joining_type_test, output_joining_type,
35245         output_joining_group_test, output_joining_group.
35246         Reported by Simon Josefsson.
35248 2011-03-21  Jim Meyering  <meyering@redhat.com>
35250         strftime: fix a bug in yesterday's change
35251         * lib/strftime.c (add): Accommodate width's initial value of -1.
35252         Otherwise, nstrftime would copy uninitialized data into
35253         the result buffer.
35255 2011-03-21  Jim Meyering  <meyering@redhat.com>
35257         tests: add strftime-tests module
35258         * tests/test-strftime.c: New file.
35259         * modules/strftime-tests: New module.
35261 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
35263         strftime: don't assume a byte count fits in 'int'
35264         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
35265         found this problem by static analysis, using gcc -Wstrict-overflow
35266         (GCC 4.5.2, x86-64).  This reported an optimization that depended
35267         on an integer overflow having undefined behavior, but it turns out
35268         that the argument is a size, which might not fit in 'int' anyway,
35270 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
35272         stdio: don't require ignore_value around fwrite
35274         This patch works around libc bug 11959
35275         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
35276         Without this patch, applications must often write
35277         ignore_value (fwrite (...)) even though the ignore_value is
35278         not helpful here.  It's common to write many objects, using
35279         fwrite/printf/etc., and then use ferror to detect output error.
35281         I considered making this patch optional, but decided against it,
35282         because libc is obviously being inconsistent here: there is no
35283         reason libc should insist that user code must inspect fwrite
35284         return's value without also insisting that it inspect printf's,
35285         putchar's, etc.  If user code wants to have a strict style where
35286         all these functions' values are checked (so that ferror need not
35287         be checked), we could add support for that style in a new gnulib
35288         module, but in the meantime it's better to be consistent and to
35289         support common usage.
35291         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
35292         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
35293         that we are compiling in checking mode, and if not C++, and
35294         if not already wrapping fwrite for some other reason.
35295         (fwrite): #define to rpl_fwrite if the latter is defined.
35297 2011-03-20  Bruno Haible  <bruno@clisp.org>
35299         verror: Fix compilation error introduced on 2011-02-13.
35300         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
35301         instead of __attribute__.
35302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35304 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
35305             Bruno Haible  <bruno@clisp.org>
35307         socklen: do not depend on sys_socket
35308         While trying to modify Emacs to use gnulib's socklen module,
35309         I discovered a circular dependency: socklen depends on sys_socket
35310         and vice versa.  Emacs can use socklen, but it does not need
35311         sys_socket because it has its own substitute for sys/socket.h.
35312         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
35313         gl_TYPE_SOCKLEN_T.
35314         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
35315         gl_PREREQ_SYS_H_SOCKET.
35316         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
35317         gl_PREREQ_SYS_H_SOCKET.
35318         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
35319         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
35320         * modules/socklen (Depends-on): Do not depend on sys_socket.
35321         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
35323 2011-03-20  Jim Meyering  <meyering@redhat.com>
35325         maint.mk: sort file names *after* new transformation
35326         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
35327         prefix would have led to an unwarranted failure in GNU parted.
35328         Sort after that transformation.
35330 2011-03-19  Jim Meyering  <meyering@redhat.com>
35332         maint.mk: fix po-file syntax-check rule
35333         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
35334         Patch by Bruno Haible.
35336 2011-03-19  Bruno Haible  <bruno@clisp.org>
35338         socklen: Update comment.
35339         * m4/socklen.m4: Update comment about platforms.
35341 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35342             Bruno Haible  <bruno@clisp.org>
35344         inet_ntop, inet_pton: Simplify.
35345         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
35346         documented to provide socklen_t and we already depend on sys_socket.
35347         * modules/inet_pton (Depends-on): Likewise.
35348         * lib/arpa_inet.in.h: Adjust comment.
35350 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35351             Bruno Haible  <bruno@clisp.org>
35353         netdb: Simplify.
35354         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
35355         documented to provide socklen_t and we already depend on sys_socket.
35356         * lib/netdb.in.h: Adjust comment.
35358 2011-03-19  Bruno Haible  <bruno@clisp.org>
35360         sys_socket, netdb: Document problem with socklen_t.
35361         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
35362         platforms.
35363         * doc/posix-headers/netdb.texi: Likewise.
35365 2011-03-18  Eric Blake  <eblake@redhat.com>
35367         maint.mk: let po check work in VPATH build
35368         * top/maint.mk (po_file): Allow cfg.mk override.
35369         (sc_po_check): Allow VPATH use.
35370         Reported by Jiri Denemark.
35372 2011-03-16  Jim Meyering  <meyering@redhat.com>
35374         maint.mk: allow fine-grained syntax-check exclusion via Make variables
35375         Before, you would have had to create one .x-sc_ file per rule in order
35376         to exempt offending files.  Now, you may instead use a Make variable --
35377         usually defined in cfg.mk -- whose name identifies the affected rule.
35378         * top/maint.mk (_sc_excl): Define.
35379         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
35380         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
35382 2011-03-13  Bruno Haible  <bruno@clisp.org>
35384         ignore-value tests: Avoid warnings.
35385         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
35386         empty for gcc < 3.4.
35388 2011-03-13  Bruno Haible  <bruno@clisp.org>
35390         passfd: Fix link error on Solaris.
35391         * modules/passfd (Description): Correct.
35392         (Depends-on): Add socketlib.
35393         (Link): New section.
35394         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
35396 2011-03-13  Bruno Haible  <bruno@clisp.org>
35398         passfd: Fix link error on AIX 5.2.
35399         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
35401 2011-03-13  Bruno Haible  <bruno@clisp.org>
35403         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
35404         * lib/sys_socket.in.h: Include <stddef.h>.
35405         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
35406         CMSG_FIRSTHDR. Remove unused variable.
35408 2011-03-13  Bruno Haible  <bruno@clisp.org>
35410         passfd: Fix compilation error on OpenBSD.
35411         * lib/passfd.c: Include <sys/uio.h>.
35413 2011-03-13  Bruno Haible  <bruno@clisp.org>
35415         passfd test: Fix warnings.
35416         * tests/test-passfd.c: Include <sys/wait.h>.
35417         (main): Fix typo.
35419 2011-03-13  Bruno Haible  <bruno@clisp.org>
35421         passfd module, part 4, tweaks.
35422         * tests/test-passfd.c: Reorder includes.
35423         (main): Fix perror and printf calls.
35425 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
35427         passfd module, part 4.
35428         * modules/passfd-tests: New file.
35429         * tests/test-passfd.c: New file.
35431 2011-03-13  Jim Meyering  <meyering@redhat.com>
35433         Makefile: rely on GNU make; derive syntax-check rule names
35434         Rather than requiring that each sc_ rule be listed as a dependent
35435         of "check", use features of GNU make to derive the list.
35436         * Makefile (syntax-check-rules): Define.
35437         (check): Depend on the new variable, not the hard-coded list.
35439 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
35440             Bruno Haible  <bruno@clisp.org>
35442         passfd module, part 3.
35443         * lib/passfd.h (recvfd): Add a flags argument.
35444         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
35445         (recvfd): Add a flags argument.
35446         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
35447         exists.
35448         * modules/passfd (Depends-on): Add cloexec.
35449         Suggested by Eric Blake.
35451 2011-03-13  Bruno Haible  <bruno@clisp.org>
35453         passfd module, part 2, tweaks.
35454         * modules/passfd (Files): Reorder.
35455         (Depends-on): Remove errno.
35456         (Include): Remove <sys/socket.h>, <sys/un.h>.
35457         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
35458         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
35459         specification header. Include <sys/socket.h> always. Don't include
35460         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
35461         (sendfd): Clarify that it sets errno when it fails.
35462         (recvfd): Fix specification.
35464 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
35466         passfd module, part 2.
35467         * modules/passfd: New file.
35468         * lib/passfd.h: New file.
35469         * lib/passfd.c: New file.
35471 2011-03-12  Bruno Haible  <bruno@clisp.org>
35473         wcswidth, mbswidth: Avoid integer overflow.
35474         * lib/wcswidth.c: Include <limits.h>.
35475         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
35476         * lib/mbswidth.c: Include <limits.h>.
35477         (mbsnwidth): Avoid 'int' overflow.
35478         Reported by Jim Meyering.
35480 2011-03-12  Bruno Haible  <bruno@clisp.org>
35482         futimens, utimensat: Avoid endless recursion on Solaris 10.
35483         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
35484         Solaris.
35485         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
35486         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
35488 2011-03-11  Jim Meyering  <meyering@redhat.com>
35490         maint.mk: relax a regexp to accommodate other formatting styles
35491         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
35492         between "ngettext" and the following "(".
35494 2011-03-11  Pádraig Brady  <P@draigBrady.com>
35496         maint.mk: suppress a false positive warning
35497         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
35498         diagnostics are marked with ngettext.
35500 2011-03-10  Eric Blake  <eblake@redhat.com>
35502         wchar: add explicit dependencies, for Tru64
35503         * modules/mbmemcasecoll (Depends-on): Add wchar.
35504         * modules/mbtowc (Depends-on): Likewise.
35505         * modules/vasnprintf (Depends-on): Likewise.
35506         * modules/unistdio/u-printf-args (Depends-on): Likewise.
35507         * modules/wctomb (Depends-on): Likewise.
35508         Reported by Peter O'Gorman.
35510 2011-03-08  Bruno Haible  <bruno@clisp.org>
35512         passfd module, part 1, tweaks.
35513         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
35514         Improve indentation. Improve AC_MSG_CHECKING messages.
35515         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
35516         gl_SOCKET_FAMILIES.
35518 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
35520         passfd module, part 1.
35521         * m4/afunix.m4: New file.
35522         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
35523         sockets.
35525 2011-03-08  Bruno Haible  <bruno@clisp.org>
35527         regex-quote: New API.
35528         * lib/regex-quote.h: Include <stdbool.h>.
35529         (struct regex_quote_spec): New type.
35530         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
35531         New declarations.
35532         (regex_quote_length, regex_quote_copy, regex_quote): Take a
35533         'const struct regex_quote_spec *' argument.
35534         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
35535         (pcre_special): New constant.
35536         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
35537         New functions.
35538         (regex_quote_length, regex_quote_copy, regex_quote): Take a
35539         'const struct regex_quote_spec *' argument.
35540         * modules/regex-quote (Depends-on): Add stdbool.
35541         * tests/test-regex-quote.c (check): Update for new API. Add test for
35542         anchored results.
35543         * NEWS: Mention the API change.
35544         Reported by Reuben Thomas and Eric Blake.
35546 2011-03-06  Bruno Haible  <bruno@clisp.org>
35548         regex-quote: Fix creation of POSIX extended regular expressions.
35549         * lib/regex-quote.c (ere_special): Add grouping and alternation
35550         operators.
35552 2011-03-05  Bruno Haible  <bruno@clisp.org>
35554         doc: Improve doc regarding autopoint vs. gnulib.
35555         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
35556         disable autopoint while running autoreconf.
35557         Suggested by Ralf Wildenhues.
35559 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35561         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
35562         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
35564 2011-03-03  Bruce Korb  <bkorb@gnu.org>
35566         parse-duration: remove xalloc.h dependency
35567         * lib/parse-duration.c (parse_period): handle NULL return from
35568         strdup instead of calling xstrdup().
35569         * modules/parse-duration: remove "xalloc" dependency
35571 2011-03-03  Matthew Booth  <mbooth@redhat.com>
35573         bootstrap: honor m4_base when running aclocal
35574         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
35576 2011-03-02  Jim Meyering  <meyering@redhat.com>
35578         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
35579         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
35580         on request from Matt Booth.
35582 2011-03-01  Eric Blake  <eblake@redhat.com>
35584         test-link: work on Hurd
35585         * tests/test-link.h (test_link): Hurd rejects linking directories
35586         with EISDIR instead of the POSIX-mandated EPERM.
35588 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
35590         stdio: simplify by moving files to printf-posix, sigpipe
35591         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
35592         since this symbol is needed only if printf is replaced.
35593         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
35594         Require gl_ASM_SYMBOL_PREFIX.
35595         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
35596         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
35597         (Depends-on): Add 'raise'.
35598         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
35599         * modules/stdio (Files): Remove lib/stdio-write.c,
35600         m4/asm-underscore.m4.
35601         (Depends-on): Remove 'raise'.
35603         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
35604         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
35605         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
35606         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
35608 2011-02-28  Bruno Haible  <bruno@clisp.org>
35610         localcharset: Assume ANSI C behaviour of free().
35611         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
35612         calling free().
35613         Suggested by Simon Josefsson <simon@josefsson.org>.
35615 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
35616             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
35617             Bruno Haible  <bruno@clisp.org>  (tiny change)
35619         On Cygwin, use /proc file system instead of win32 API.
35620         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
35621         Win32 file names.
35622         (DllMain): Simplify by removing Cygwin specific code.
35623         (find_shared_library_fullname): Use Linux specific implementation also
35624         for Cygwin.
35625         (get_shared_library_fullname): Update accordingly.
35626         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
35627         Win32 file names.
35628         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
35629         Cygwin specific code.
35631 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
35632             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
35634         Fix OpenMP flag detection for various Fortran compilers.
35635         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
35636         OpenMP-conditional compilation construct, to force compile
35637         failure with missing OpenMP flag.
35638         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
35640 2011-02-25  Eric Blake  <eblake@redhat.com>
35642         strstr: expand test coverage
35643         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
35644         compilation.
35645         * tests/test-memmem.c (main): Duplicate tests.
35646         * tests/test-strcasestr.c (main): Likewise.
35647         * tests/test-c-strcasestr.c (main): Likewise.
35649 2011-02-25  Jim Meyering  <meyering@redhat.com>
35651         maint.mk: detect missing-NL-at-EOF, too
35652         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
35653         it also detects when a file lacks a newline at EOF.
35654         (require_exactly_one_NL_at_EOF_): Renamed from
35655         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
35656         since people may well have .x-sc_... file names tied to the
35657         existing name.  Suggested by Eric Blake.
35659 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35661         dirname: move m4/dos.m4 functionality into lib/dosname.h
35663         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
35664         extracts symbols from it, puts them into config.h; but it's much
35665         easier to use the symbols directly.  filename.h already does this,
35666         but it disagrees with dos.m4 in some respects.  This patch
35667         introduces a different include file dosname.h that packages up
35668         dos.m4, and then later we can work on merging filename.h and
35669         dosname.h.  Applications that need only the easy-to-configure
35670         symbols should consider including dosname.h rather than dirname.h.
35671         * NEWS: Mention incompatible changes.
35672         * m4/dos.m4: Remove.
35673         * lib/dosname.h, modules/dosname: New files.
35674         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
35675         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
35676         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
35677         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
35678         Include dosname.h, not dirname.h.
35679         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
35680         Include dosname.h, for definitions of symbols like ISSLASH
35681         that used to be in config.h.
35682         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
35683         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
35684         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35685         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35686         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
35687         * modules/rmdir (Files): Likewise.
35688         * modules/stat (Files): Likewise.
35689         * modules/unlink (Files): Likewise.
35690         * modules/dirname-lgpl (Depends-on): Add dosname.
35691         * modules/lstat (Depends-on): Likewise.
35692         * modules/openat (Depends-on): Likewise.
35693         * modules/rmdir (Depends-on): Likewise.
35694         * modules/savewd (Depends-on): Likewise.
35695         * modules/stat (Depends-on): Likewise.
35696         * modules/unlink (Depends-on): Likewise.
35697         * modules/openat (Depends-on): Remove dirname-lgpl.
35698         * modules/savewd (Depends-on): Likewise.
35699         * tests/test-dirname.c: Do not use removed symbols like
35700         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
35701         the remaining symbols, e.g., ISSLASH ('\\').
35703 2011-02-25  Eric Blake  <eblake@redhat.com>
35705         strstr: revert patches that introduced bug and pessimization
35706         * lib/str-two-way.h: Add another reference.
35707         (two_way_short_needle, two_way_long_needle): Revert changes from
35708         2011-02-24; they pessimize search speed.
35709         (critical_factorization): Partially revert changes from
35710         2010-06-22; they violate the requirement that the left half of the
35711         needle be smaller than the period of the needle.
35713 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35715         filenamecat: remove unnecessary dependency on dirname-lgpl
35716         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
35717         is no direct dependency, just an indirect one via filenamecat-lgpl.
35719         remove: remove unnecessary use of m4/dos.m4
35720         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
35721         * modules/remove (FILES): Remove m4/dos.m4.
35723         * lib/openat-proc.c: Don't include dirname.h; not needed.
35725         backupfile: remove unnecessary use of m4/dos.m4
35726         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
35727         of its symbols are used by the backupfile code.  backupfile.c does
35728         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
35729         for the rare case of programs that want all their backup file
35730         names to live within 8+3 limits, and dos.m4 doesn't address that.
35731         * modules/backupfile (Files): Remove m4/dos.m4.
35733 2011-02-24  Jim Meyering  <meyering@redhat.com>
35735         strstr: fix a bug whereby strstr would mistakenly return NULL
35736         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
35737         in period calculation.
35738         (two_way_long_needle): Likewise.
35739         The original problem was reported by Mike Stump in
35740         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
35741         Ralf Wildenhues provided the short needle and haystack.
35742         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
35743         Add a more involved test to trigger the bug in two_way_long_needle.
35745 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35747         gnulib-tool: remove use of bold display in help screen
35748         * gnulib-tool (func_usage): Do not use bold display anymore in the
35749         help screen.  That was just meant to be a temporary emphasis for a
35750         backward-incompatible change.
35752 2011-02-23  Bruno Haible  <bruno@clisp.org>
35754         Fix misindentation of preprocessor directives.
35755         * lib/argp-namefrob.h: Reindent preprocessor directives.
35756         * lib/getopt_int.h (struct _getopt_data): Likewise.
35757         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
35758         * lib/vasnprintf.c (decode_long_double): Likewise.
35759         * tests/test-argmatch.c: Insert blank lines, for clarity.
35760         * tests/test-exclude.c: Likewise.
35762 2011-02-22  Bruno Haible  <bruno@clisp.org>
35764         ioctl: Fix for MacOS X in 64-bit mode.
35765         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
35766         value.
35767         Suggested by Eric Blake.
35768         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
35770 2011-02-22  Jim Meyering  <meyering@redhat.com>
35772         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
35773         * Makefile (sc_cpp_indent_check): Don't limit the check to files
35774         in lib/.
35776 2011-02-22  Eric Blake  <eblake@redhat.com>
35778         maint: avoid any CDPATH issue
35779         * Makefile (sc_cpp_indent_check): Anchor cd argument.
35781         maint: adjust cpp indentation for my modules, as well
35782         * Makefile (sc_cpp_indent_check): Add my name.
35783         * lib/fbufmode.c: Filter through cppi.
35784         * lib/fpurge.c: Likewise.
35785         * lib/freadable.c: Likewise.
35786         * lib/freading.c: Likewise.
35787         * lib/fwritable.c: Likewise.
35788         * lib/fwriting.c: Likewise.
35789         * lib/sigaction.c: Likewise.
35791 2011-02-22  Jim Meyering  <meyering@redhat.com>
35793         maint: adjust cpp indentation to reflect nesting depth
35794         I.e., in a block of code that begins with an unnested "#if",
35795         put one space between the "#" in column 1 and following token.
35796         For example,
35797         -#include <sys/vfs.h>
35798         +# include <sys/vfs.h>
35799         Do this only in .c files that are part of a module I maintain.
35800         * lib/linkat.c: Filter through cppi.
35801         * lib/nanosleep.c: Likewise.
35802         * lib/openat.c: Likewise.
35803         * lib/openat-die.c: Likewise.
35804         * lib/dup3.c: Likewise.
35805         * lib/fchownat.c: Likewise.
35806         * lib/flock.c: Likewise.
35807         * lib/fsync.c: Likewise.
35808         * lib/fts.c: Likewise.
35809         * lib/getpass.c: Likewise.
35810         * lib/gettimeofday.c: Likewise.
35811         * lib/userspec.c: Likewise.
35812         * Makefile (sc_cpp_indent_check): New rule, to check this.
35814 2011-02-22  Bruno Haible  <bruno@clisp.org>
35816         New module 'wctomb'.
35817         * lib/stdlib.in.h (wctomb): New declaration.
35818         * lib/wctomb.c: New file.
35819         * lib/wctomb-impl.h: New file.
35820         * m4/wctomb.m4: New file.
35821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
35822         REPLACE_WCTOMB.
35823         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
35824         REPLACE_WCTOMB.
35825         * modules/wctomb: New file.
35826         * tests/test-stdlib-c++.cc: Test signature of wctomb.
35827         * doc/posix-functions/wctomb.texi: Mention the new module.
35828         * modules/wctob (Depends-on): Add wctomb.
35830 2011-02-22  Bruno Haible  <bruno@clisp.org>
35832         New module 'mbtowc'.
35833         * lib/stdlib.in.h (mbtowc): New declaration.
35834         * lib/mbtowc.c: New file.
35835         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
35836         * m4/mbtowc.m4: New file.
35837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
35838         REPLACE_MBTOWC.
35839         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
35840         REPLACE_MBTOWC.
35841         * modules/mbtowc: New file.
35842         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
35843         * doc/posix-functions/mbtowc.texi: Mention the new module.
35844         * modules/btowc (Depends-on): Add mbtowc.
35846 2011-02-22  Bruno Haible  <bruno@clisp.org>
35848         wcrtomb: Add more tests for native Windows platforms.
35849         * tests/test-wcrtomb-w32-1.sh: New file.
35850         * tests/test-wcrtomb-w32-2.sh: New file.
35851         * tests/test-wcrtomb-w32-3.sh: New file.
35852         * tests/test-wcrtomb-w32-4.sh: New file.
35853         * tests/test-wcrtomb-w32-5.sh: New file.
35854         * tests/test-wcrtomb-w32.c: New file.
35855         * modules/wcrtomb-tests (Files): Add them.
35856         (Makefile.am): Arrange to run these tests.
35857         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
35858         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
35860 2011-02-20  Bruno Haible  <bruno@clisp.org>
35862         wcrtomb: Enhance test.
35863         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
35865 2011-02-20  Bruno Haible  <bruno@clisp.org>
35867         mbrtowc: Tiny optimization.
35868         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
35870 2011-02-20  Jim Meyering  <meyering@redhat.com>
35872         test-exclude.c: remove unmatched #endif
35873         * tests/test-exclude.c: Remove stray #endif, left over from
35874         the change of a week ago.
35876 2011-02-19  Jim Meyering  <meyering@redhat.com>
35878         git-version-gen: skip "-dirty" check when appropriate
35879         * build-aux/git-version-gen: Don't run any git commands when the
35880         version string comes from .tarball-version.  Prior to this, we
35881         would run git update-index --refresh even from a just-unpacked
35882         tarball directory, and that could affect a .git/ directory in a
35883         parent of the build directory.  Reported by Mike Frysinger.
35885 2011-02-19  Bruno Haible  <bruno@clisp.org>
35887         unictype/property-byname: Reduce the size of the 'data' segment.
35888         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
35890 2011-02-19  Bruno Haible  <bruno@clisp.org>
35892         unictype/scripts: Reduce the size of the 'data' segment.
35893         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
35894         '%pic'.
35895         * lib/unictype/scripts_byname.gperf: Regenerated.
35897 2011-02-19  Bruno Haible  <bruno@clisp.org>
35899         stdint: Update documentation.
35900         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
35902 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
35904         stdint: omit redundant check for wchar.h
35905         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
35906         always tests whether wchar.h exists, so remove the now-redundant test.
35908 2011-02-18  Bruno Haible  <bruno@clisp.org>
35910         stdint: Cut dependency to module 'wchar'.
35911         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
35912         include the necessary prerequisites.
35913         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
35914         * modules/stdint (Depends-on): Remove wchar.
35915         (Makefile.am): Substitute HAVE_WCHAR_H.
35916         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
35918 2011-02-18  Eric Blake  <eblake@redhat.com>
35920         longlong: skip, rather than fail, on cross-compilation
35921         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
35922         when cross-compiling; regression from 2011-02-16.
35924 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
35926         * NEWS: Mention 2011-02-08 change to stdlib.
35928 2011-02-17  Bruno Haible  <bruno@clisp.org>
35930         getloadavg: Add comments about platforms.
35931         * m4/getloadavg.m4: Add comment.
35932         * lib/getloadavg.c: Likewise.
35934 2011-02-17  Bruno Haible  <bruno@clisp.org>
35936         getloadavg: Fix link error on Solaris 2.6.
35937         * modules/getloadavg (Link): New section.
35938         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
35939         linking test-getloadavg.
35940         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
35941         getloadavg.
35943 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
35945         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
35946         It was 'int', but this doesn't match the IRIX 6.5 manual.
35947         Suggested by Bruno Haible in
35948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
35950 2011-02-17  Bruno Haible  <bruno@clisp.org>
35952         havelib: Fix comments.
35953         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
35954         change.
35956 2011-02-17  Bruno Haible  <bruno@clisp.org>
35958         havelib: Update config.rpath.
35959         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
35961 2011-02-17  Bruno Haible  <bruno@clisp.org>
35963         getloadavg test: Add some plausibility checks.
35964         * tests/test-getloadavg.c (check_avg): Print a warning when the value
35965         is improbable.
35967 2011-02-16  Eric Blake  <eblake@redhat.com>
35969         maintainer-makefile: make syntax-check a no-op from tarballs
35970         * top/maint.mk (no-vc-detected): New rule.
35971         (local-checks-available): Use it to avoid hanging if someone tries
35972         'make syntax-check' from a tarball.  Also append to any non-syntax
35973         checks already defined in cfg.mk.
35975 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
35977         longlong: tune, particularly for common case of c99
35979         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
35980         or running anything if c99, or if unsigned long long int does not
35981         work.  In either case, we know the answer without further tests.
35982         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
35983         it at most once, and use its results for both long long int and
35984         unsigned long long int.  This is more likely to be efficient in
35985         the common case where the program wants to check for both long
35986         long int and unsigned long long int.
35987         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
35988         since the answer is already known.
35990 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
35992         getloadavg: set errno
35993         * lib/getloadavg.c: Set errno when returning -1.  If no other
35994         error number looks appropriate, set it to ENOSYS if the getloadavg
35995         looks like it can't possibly ever work, ENOTSUP otherwise.
35996         Suggested by Bruno Haible in
35997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
35999         getloadavg: trim unused parts and speed up 'configure'
36000         * NEWS: Document this.
36001         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
36002         always compiled if getloadavg is absent.
36003         Move test code to ...
36004         * tests/test-getloadavg.c: New file, containing previous
36005         contents of test from lib/getloadavg.c.  It also contains
36006         suggestions by Bruno Haible in
36007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
36008         * modules/getloadavg-tests: New file.
36009         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
36010         Do tests in the same order as they're needed for getloadavg.c.
36011         Omit setgid-related tests that generate symbols KMEM_GROUP,
36012         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
36013         Do only the tests that are needed to see whether the system has
36014         getloadavg, moving the other tests into ...
36015         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
36016         NLIST_NAME_UNION; nobody should be using it.  Do not define
36017         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
36018         relevant, as the user of this module shouldn't care how getloadavg
36019         is implemented.
36021         getloadavg: omit unused var
36022         * lib/getloadavg.c (getloadavg): Omit unused local variable.
36024 2011-02-15  Jim Meyering  <meyering@redhat.com>
36026         doc: update users.txt
36027         * users.txt: Update iwhd's URL.
36029 2011-02-13  Bruno Haible  <bruno@clisp.org>
36031         Consistent macro naming for macros that use GCC __attribute__.
36032         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
36033         _ATTRIBUTE_NONNULL_.
36034         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
36035         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
36036         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
36037         ATTRIBUTE_DEPRECATED.
36038         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
36039         ATTRIBUTE_NORETURN.
36040         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
36041         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
36042         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
36043         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
36044         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
36045         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
36046         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
36047         ATTRIBUTE_SENTINEL.
36048         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
36049         ATTRIBUTE_RETURN_CHECK.
36050         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
36051         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
36052         ATTRIBUTE_NORETURN.
36053         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
36054         Reported by Paul Eggert.
36056 2011-02-13  Bruno Haible  <bruno@clisp.org>
36058         Don't interfere with a program's definition of __attribute__.
36059         * lib/argp.h (__attribute__): Remove definition.
36060         (_GL_ATTRIBUTE_FORMAT): New macro.
36061         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
36062         * lib/argp-fmtstream.h (__attribute__): Remove definition.
36063         (_GL_ATTRIBUTE_FORMAT): New macro.
36064         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
36065         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
36066         GCC 3 or newer.
36067         * lib/error.h (__attribute__): Remove definition.
36068         (_GL_ATTRIBUTE_FORMAT): New macro.
36069         (error, error_at_line): Use it.
36070         * lib/hash.h (__attribute__): Remove definition.
36071         (ATTRIBUTE_WUR): Update definition. Define always.
36072         * lib/openat.h (__attribute__): Remove definition.
36073         (ATTRIBUTE_NORETURN): Update definition. Define always.
36074         * lib/sigpipe-die.h (__attribute__): Remove definition.
36075         (ATTRIBUTE_NORETURN): Update definition. Define always.
36076         * lib/vasnprintf.h (__attribute__): Remove definition.
36077         (_GL_ATTRIBUTE_FORMAT): New macro.
36078         (asnprintf, vasnprintf): Use it.
36079         * lib/xalloc.h (__attribute__): Remove definition.
36080         (ATTRIBUTE_NORETURN): Update definition. Define always.
36081         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
36082         * lib/xmemdup0.h (__attribute__): Remove definition.
36083         (ATTRIBUTE_NORETURN): Update definition. Define always.
36084         * lib/xprintf.h (__attribute__): Remove definition.
36085         (_GL_ATTRIBUTE_FORMAT): New macro.
36086         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
36087         * lib/xstrtol.h (__attribute__): Remove definition.
36088         (ATTRIBUTE_NORETURN): Update definition. Define always.
36089         * lib/xvasprintf.h (__attribute__): Remove definition.
36090         (_GL_ATTRIBUTE_FORMAT): New macro.
36091         (xasprintf, xvasprintf): Use it.
36092         * tests/test-argmatch.c (__attribute__): Remove definition.
36093         (ATTRIBUTE_NORETURN): Update definition. Define always.
36094         * tests/test-exclude.c (__attribute__): Remove definition.
36095         (ATTRIBUTE_NORETURN): Update definition. Define always.
36096         Reported by Paul Eggert.
36098 2011-02-13  Bruno Haible  <bruno@clisp.org>
36100         mbrtowc: Add more tests for native Windows platforms.
36101         * tests/test-mbrtowc-w32-1.sh: New file.
36102         * tests/test-mbrtowc-w32-2.sh: New file.
36103         * tests/test-mbrtowc-w32-3.sh: New file.
36104         * tests/test-mbrtowc-w32-4.sh: New file.
36105         * tests/test-mbrtowc-w32-5.sh: New file.
36106         * tests/test-mbrtowc-w32.c: New file.
36107         * modules/mbrtowc-tests (Files): Add them.
36108         (Makefile.am): Arrange to run these tests.
36109         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
36110         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
36112 2011-02-13  Bruno Haible  <bruno@clisp.org>
36114         mbrtowc: Work around native Windows bug.
36115         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
36116         guess when no suitable locale for testing was found.
36117         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
36119 2011-02-13  Bruno Haible  <bruno@clisp.org>
36121         mbsinit: Work around mingw bug.
36122         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
36123         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
36124         Windows.
36125         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
36127 2011-02-13  Bruno Haible  <bruno@clisp.org>
36129         mbsinit: Don't crash for a NULL argument.
36130         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
36131         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
36133 2011-02-13  Bruno Haible  <bruno@clisp.org>
36135         Don't interfere with a program's definition of __attribute__.
36136         * lib/stdio.in.h (__attribute__): Remove definition.
36137         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
36138         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
36139         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
36140         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
36141         * lib/string.in.h (__attribute__): Remove definition.
36142         Reported by Paul Eggert.
36144 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36146         stdlib: don't get in the way of non-GCC __attribute__
36147         See thread starting at
36148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
36149         Revert previous stdlib change, installing the following instead:
36150         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
36151         to get in the way of a non-GCC compiler that supports __attribute__.
36152         (_GL_ATTRIBUTE_RETURN): New macro.
36153         (_Exit): Use it instead of __attribute__.
36155 2011-02-12  Bruno Haible  <bruno@clisp.org>
36157         quotearg test: Avoid test failure on mingw.
36158         * tests/test-quotearg.sh: Convert the locale identifier from native
36159         Windows syntax to Unix syntax.
36161 2011-02-12  Bruno Haible  <bruno@clisp.org>
36163         setlocale: Prefer gnulib's override over libintl's override.
36164         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
36165         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
36166         GNULIB_defined_setlocale is set.
36168 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36170         stdlib: support non-GCC __attribute__
36172         Fix a serious and tricky problem encountered when attempting to
36173         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
36174         5.5, but it crashed due to memory corruption on Solaris 10 with
36175         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
36176         bits that are otherwise zero.  This tagging is optional inside
36177         Emacs but is preferred and is used when __attribute__ ((__aligned
36178         (8))) works, as it does with both recent-enough GCC and with Sun C
36179         5.11.  However, Sun C 5.11 is not GCC and does not #define
36180         __GNUC__ and __GNUC_MINOR__.
36182         When I added the getloadavg module to Emacs, it brought in
36183         stdlib.in.h, which contained this fragment:
36185            #ifndef __attribute__
36186            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
36187            #  define __attribute__(Spec)   /* empty */
36188            # endif
36189            #endif
36191         When files that include <stdlib.h> were compiled with Sun C 5.11,
36192         the above code disabled __attribute__ ((__aligned (8))), which
36193         caused variables to not be properly aligned, which eventually led
36194         to the pointer corruption mentioned above.  (This was a bit hard
36195         to diagnose, unfortunately.)
36197         Several "#define __attribute__(X) /* empty */" code snippets need
36198         to be eradicated from Gnulib to work with non-GCC compilers that
36199         support __attribute__.  The Autoconf way to do this is to test for
36200         each kind of attribute that we want support for, and selectively
36201         enable that in source code.
36203         Fix this problem just for stdlib.h, by adding a test for the
36204         __noreturn__ attribute, and change stdlib.in.h to use that test
36205         when needed.  This technique can be easily generalized to the
36206         other *.in.h files and attributes, and a similar technique can be
36207         used for *.h and *.c files.  This patch is enough to solve the
36208         problem for Emacs + getloadavg, and I thought I'd publish it for
36209         feedback before undertaking further, similar fixes in other
36210         modules.
36212         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
36213         because it's not needed for stdlib.h.  It merely substitutes the
36214         value directly into stdlib.h.  We may well need to #define it, or
36215         similar symbols, for other modules, but it's nice to also have an
36216         option to not #define it for applications like Emacs that do not
36217         need it.
36219         * lib/stdlib.in.h (__attribute__): Do not #define.
36220         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
36221         be defined only if the _Exit module is also used.
36222         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
36223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
36224         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
36225         platforms.
36226         * modules/_Exit (Files): Add m4/attribute.m4.
36227         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
36228         * m4/attribute.m4: New file.
36230 2011-02-12  Bruno Haible  <bruno@clisp.org>
36232         wcsrtombs: Work around bug on native Windows.
36233         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
36234         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
36235         instead of len.
36236         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
36238 2011-02-12  Bruno Haible  <bruno@clisp.org>
36240         mbsrtowcs: Work around bug on native Windows.
36241         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
36242         against mingw bug.
36243         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
36245 2011-02-12  Bruno Haible  <bruno@clisp.org>
36247         Avoid setlocale bugs in tests.
36248         * modules/btowc (Dependencies): Add setlocale.
36249         * modules/c-strcase (Dependencies): Likewise.
36250         * modules/mbmemcasecmp (Dependencies): Likewise.
36251         * modules/mbmemcasecoll (Dependencies): Likewise.
36252         * modules/mbrtowc (Dependencies): Likewise.
36253         * modules/mbscasecmp (Dependencies): Likewise.
36254         * modules/mbscasestr (Dependencies): Likewise.
36255         * modules/mbschr (Dependencies): Likewise.
36256         * modules/mbscspn (Dependencies): Likewise.
36257         * modules/mbsinit (Dependencies): Likewise.
36258         * modules/mbsncasecmp (Dependencies): Likewise.
36259         * modules/mbsnrtowcs (Dependencies): Likewise.
36260         * modules/mbspbrk (Dependencies): Likewise.
36261         * modules/mbspcasecmp (Dependencies): Likewise.
36262         * modules/mbsrchr (Dependencies): Likewise.
36263         * modules/mbsrtowcs (Dependencies): Likewise.
36264         * modules/mbsspn (Dependencies): Likewise.
36265         * modules/mbsstr (Dependencies): Likewise.
36266         * modules/nl_langinfo (Dependencies): Likewise.
36267         * modules/quotearg (Dependencies): Likewise.
36268         * modules/unicase/locale-language (Dependencies): Likewise.
36269         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
36270         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
36271         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
36272         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
36273         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
36274         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
36275         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
36276         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
36277         * modules/vasnprintf-posix (Dependencies): Likewise.
36278         * modules/wcrtomb (Dependencies): Likewise.
36279         * modules/wcsnrtombs (Dependencies): Likewise.
36280         * modules/wcsrtombs (Dependencies): Likewise.
36282 2011-02-12  Bruno Haible  <bruno@clisp.org>
36284         setlocale: Workaround native Windows bug.
36285         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
36286         succeeds but sets LC_CTYPE to "C", report a failure.
36287         * tests/test-setlocale2.sh: New file.
36288         * tests/test-setlocale2.c: New file.
36289         * modules/setlocale-tests (Files): Add the new files.
36290         (Makefile.am): Enable test-setlocale2.sh test.
36291         * doc/posix-functions/setlocale.texi: Mention workaround.
36293 2011-02-11  Bruno Haible  <bruno@clisp.org>
36295         Tests for module 'setlocale'.
36296         * modules/setlocale-tests: New file.
36297         * tests/test-setlocale1.sh: New file.
36298         * tests/test-setlocale1.c: New file.
36300         New module 'setlocale'.
36301         * lib/locale.in.h (setlocale): New declaration.
36302         * lib/setlocale.c: New file, based on
36303         gettext/gettext-runtime/intl/setlocale.c.
36304         * m4/setlocale.m4: New file.
36305         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
36306         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
36307         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
36308         REPLACE_SETLOCALE.
36309         * modules/setlocale: New file.
36310         * tests/test-locale-c++.cc: Test the declaration of setlocale.
36311         * doc/posix-functions/setlocale.texi: Mention the new module.
36313 2011-02-11  Bruno Haible  <bruno@clisp.org>
36315         Prepare for locale dependent tests on mingw.
36316         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
36317         because it has the wrong locale encoding.
36318         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
36319         French_France.1252 instead of "fr".
36320         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
36321         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
36322         because it has the wrong locale encoding.
36323         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
36324         native Windows, try Turkish_Turkey.65001.
36325         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
36326         Chinese_China.54936.
36328         Prepare for locale dependent tests on mingw.
36329         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
36330         differently.
36331         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
36332         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
36333         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36334         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36336 2011-02-11  Eric Blake  <eblake@redhat.com>
36338         strptime: avoid compiler warnings
36339         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
36340         compiler warnings about dead code.
36341         Reported by Daniel P. Berrange.
36343 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
36345         doc: update users.txt
36346         * users.txt: Add rcs.
36348 2011-02-10  John W. Eaton  <jwe@gnu.org>
36350         doc: update users.txt
36351         * users.txt: Add octave.
36353 2011-02-10  Jim Meyering  <meyering@redhat.com>
36355         doc: update users.txt
36356         * users.txt: Add iwhd.
36358 2011-02-09  Bruno Haible  <bruno@clisp.org>
36360         gnulib-tool: Make copyright notice adjustment more robust.
36361         * gnulib-tool (func_import): In sed_transform_main_lib_file,
36362         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
36363         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
36364         License".
36365         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
36367 2011-02-06  Bruno Haible  <bruno@clisp.org>
36369         New module 'towctrans'.
36370         * modules/towctrans: New file.
36371         * lib/wctype.in.h (towctrans): New declaration.
36372         * lib/towctrans.c: New file.
36373         * lib/towctrans-impl.h: New file.
36374         * m4/towctrans.m4: New file.
36375         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
36376         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
36377         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
36378         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
36379         * doc/posix-functions/towctrans.texi: Mention the new module.
36381 2011-02-06  Bruno Haible  <bruno@clisp.org>
36383         New module 'wctrans'.
36384         * modules/wctrans: New file.
36385         * lib/wctype.in.h (wctrans): New declaration.
36386         * lib/wctrans.c: New file.
36387         * lib/wctrans-impl.h: New file.
36388         * m4/wctrans.m4: New file.
36389         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
36390         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
36391         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
36392         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
36393         * doc/posix-functions/wctrans.texi: Mention the new module.
36395 2011-02-06  Bruno Haible  <bruno@clisp.org>
36397         New module 'iswctype'.
36398         * modules/iswctype: New file.
36399         * lib/wctype.in.h (iswctype): New declaration.
36400         * lib/iswctype.c: New file.
36401         * lib/iswctype-impl.h: New file.
36402         * m4/iswctype.m4: New file.
36403         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
36404         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
36405         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
36406         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
36407         * doc/posix-functions/iswctype.texi: Mention the new module and the
36408         HP-UX 11.00 problem.
36410 2011-02-06  Bruno Haible  <bruno@clisp.org>
36412         New module 'wctype'.
36413         * modules/wctype: Change to represent the wctype() substitute.
36414         * lib/wctype.in.h (wctype): New declaration.
36415         * lib/wctype.c: New file.
36416         * lib/wctype-impl.h: New file.
36417         * m4/wctype.m4: New file.
36418         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
36419         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
36420         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
36421         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
36422         * doc/posix-functions/wctype.texi: Mention the new module and the
36423         HP-UX 11.00 problem.
36425 2011-02-06  Bruno Haible  <bruno@clisp.org>
36427         wctype-h: Ensure wctype_t and wctrans_t are defined.
36428         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
36429         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
36430         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
36431         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
36432         HAVE_WCTRANS_T.
36433         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
36435 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
36437         flock: fix license typo
36439         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
36440         omitted.
36442 2011-02-08  Bruno Haible  <bruno@clisp.org>
36444         Split large sed scripts, for HP-UX sed.
36445         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
36446         to avoid HP-UX limit of 99 commands, in the near future.
36447         * modules/stdlib (Makefile.am): Likewise.
36448         * modules/unistd (Makefile.am): Likewise.
36449         * modules/wchar (Makefile.am): Likewise.
36450         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36451         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
36452         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
36454 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
36455             Bruno Haible  <bruno@clisp.org>
36457         stdlib: improve random_r modularization
36458         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
36459         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
36460         you also need the random_r module to get this material right.
36461         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
36462         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
36463         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
36465 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
36467         stdlib: don't depend on stdint
36468         * lib/stdlib.in.h: Don't include <stdint.h> merely because
36469         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
36470         be independent of whether stdint.h is needed.
36471         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
36472         here, instead of ...
36473         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
36474         struct random_data should be using the random_r module, not just
36475         the stdlib module (which wouldn't make sense: what package needs
36476         just struct random_data without also needing random_r?).
36477         * modules/stdlib (Depends-on): Remove stdint.
36479         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
36480         See the thread rooted at
36481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
36482         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
36483         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
36484         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
36485         __VMS)); previously it was always included (via fcntl--.h).
36486         (getloadavg): Do not use c_strtod.  Instead, approximate it by
36487         hand; this is good enough for load averages.  Also, do not use
36488         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
36489         flags directly if available and don't bother otherwise.  (Packages
36490         that need the extra reliability should use the modules that define
36491         these flags on older platforms that lack them.)
36492         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
36493         fcntl-safer.
36495 2011-02-08  Jim Meyering  <meyering@redhat.com>
36497         di-set.h, ino-map.h: add multiple-inclusion guard
36498         Technically, the guard is required only for ino-map.h, due to its
36499         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
36500         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
36501         * lib/ino-map.h: Likewise.
36503 2011-02-06  Bruno Haible  <bruno@clisp.org>
36505         iswblank: Ensure declaration on glibc systems.
36506         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
36507         * modules/iswblank (Dependencies): Add 'extensions'.
36508         * doc/posix-functions/iswblank.texi: Document the glibc problem.
36510 2011-02-06  Bruno Haible  <bruno@clisp.org>
36512         New module 'iswblank'.
36513         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
36514         * modules/iswblank: New file.
36515         * modules/wctype-h (Files): Remove lib/iswblank.c.
36516         (Makefile.am): Substitute GNULIB_ISWBLANK.
36517         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
36518         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
36519         (gl_WCTYPE_H_DEFAULTS): New macro.
36520         (gl_WCTYPE_H): Require it. Remove iswblank related code.
36521         * modules/iswblank-tests: New file.
36522         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
36523         * tests/test-wctype-h.c (main): Remove iswblank tests.
36524         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
36525         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
36526         of 'wctype-h'.
36527         * NEWS: Mention the change.
36528         * modules/mbchar (Depends-on): Add iswblank.
36530 2011-02-08  Bruno Haible  <bruno@clisp.org>
36532         di-set tests: Refactor.
36533         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
36534         unnecessary includes.
36535         (ASSERT): Remove macro.
36536         (main): Make C90 compliant by avoiding variable declaration after
36537         statement.
36538         * modules/di-set-tests (Files): Add tests/macros.h.
36540 2011-02-08  Bruno Haible  <bruno@clisp.org>
36542         ino-map tests: Refactor.
36543         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
36544         unnecessary includes.
36545         (ASSERT): Remove macro.
36546         (main): Make C90 compliant by avoiding variable declaration after
36547         statement.
36548         * modules/ino-map-tests (Files): Add tests/macros.h.
36550 2011-02-08  Jim Meyering  <meyering@redhat.com>
36552         di-set: add "const" to a cast
36553         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
36554         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
36556 2011-02-06  Bruno Haible  <bruno@clisp.org>
36558         Rename module 'wctype' to 'wctype-h'.
36559         * modules/wctype-h: Renamed from modules/wctype.
36560         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
36561         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
36562         (Files, Depends-on, Makefile.am): Update.
36563         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
36564         (Files, Makefile.am): Update.
36565         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
36566         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
36567         * doc/posix-headers/wctype.texi: Update.
36568         * doc/posix-functions/iswalnum.texi: Update.
36569         * doc/posix-functions/iswalpha.texi: Update.
36570         * doc/posix-functions/iswblank.texi: Update.
36571         * doc/posix-functions/iswcntrl.texi: Update.
36572         * doc/posix-functions/iswdigit.texi: Update.
36573         * doc/posix-functions/iswgraph.texi: Update.
36574         * doc/posix-functions/iswlower.texi: Update.
36575         * doc/posix-functions/iswprint.texi: Update.
36576         * doc/posix-functions/iswpunct.texi: Update.
36577         * doc/posix-functions/iswspace.texi: Update.
36578         * doc/posix-functions/iswupper.texi: Update.
36579         * doc/posix-functions/iswxdigit.texi: Update.
36580         * doc/posix-functions/towlower.texi: Update.
36581         * doc/posix-functions/towupper.texi: Update.
36582         * NEWS: Mention the change.
36583         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
36584         * modules/mbchar (Dependencies): Likewise.
36585         * modules/mbswidth (Dependencies): Likewise.
36586         * modules/quotearg (Dependencies): Likewise.
36587         * modules/regex (Dependencies): Likewise.
36588         * modules/wcscasecmp (Dependencies): Likewise.
36589         * modules/wcsncasecmp (Dependencies): Likewise.
36590         * modules/wcwidth (Dependencies): Likewise.
36592 2011-02-06  Bruno Haible  <bruno@clisp.org>
36594         New module 'wcswidth'.
36595         * modules/wcswidth: New file.
36596         * lib/wchar.in.h (wcswidth): New declaration.
36597         * lib/wcswidth.c: New file.
36598         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
36599         * m4/wcswidth.m4: New file.
36600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
36601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
36602         REPLACE_WCSWIDTH.
36603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
36604         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
36605         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
36606         * doc/posix-functions/wcswidth.texi: Mention the new module.
36608 2011-02-06  Bruno Haible  <bruno@clisp.org>
36610         New module 'wcstok'.
36611         * modules/wcstok: New file.
36612         * lib/wchar.in.h (wcstok): New declaration.
36613         * lib/wcstok.c: New file.
36614         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
36615         * m4/wcstok.m4: New file.
36616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
36617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
36618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
36619         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
36620         * doc/posix-functions/wcstok.texi: Mention the new module.
36622 2011-02-06  Bruno Haible  <bruno@clisp.org>
36624         New module 'wcsstr'.
36625         * modules/wcsstr: New file.
36626         * lib/wchar.in.h (wcsstr): New declaration.
36627         * lib/wcsstr.c: New file.
36628         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
36629         * m4/wcsstr.m4: New file.
36630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
36631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
36632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
36633         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
36634         * doc/posix-functions/wcsstr.texi: Mention the new module.
36636 2011-02-06  Bruno Haible  <bruno@clisp.org>
36638         New module 'wcspbrk'.
36639         * modules/wcspbrk: New file.
36640         * lib/wchar.in.h (wcspbrk): New declaration.
36641         * lib/wcspbrk.c: New file.
36642         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
36643         * m4/wcspbrk.m4: New file.
36644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
36645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
36646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
36647         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
36648         * doc/posix-functions/wcspbrk.texi: Mention the new module.
36650 2011-02-06  Bruno Haible  <bruno@clisp.org>
36652         New module 'wcsspn'.
36653         * modules/wcsspn: New file.
36654         * lib/wchar.in.h (wcsspn): New declaration.
36655         * lib/wcsspn.c: New file.
36656         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
36657         * m4/wcsspn.m4: New file.
36658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
36659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
36660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
36661         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
36662         * doc/posix-functions/wcsspn.texi: Mention the new module.
36664 2011-02-06  Bruno Haible  <bruno@clisp.org>
36666         New module 'wcscspn'.
36667         * modules/wcscspn: New file.
36668         * lib/wchar.in.h (wcscspn): New declaration.
36669         * lib/wcscspn.c: New file.
36670         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
36671         * m4/wcscspn.m4: New file.
36672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
36673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
36674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
36675         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
36676         * doc/posix-functions/wcscspn.texi: Mention the new module.
36678 2011-02-06  Bruno Haible  <bruno@clisp.org>
36680         New module 'wcsrchr'.
36681         * modules/wcsrchr: New file.
36682         * lib/wchar.in.h (wcsrchr): New declaration.
36683         * lib/wcsrchr.c: New file.
36684         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
36685         * m4/wcsrchr.m4: New file.
36686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
36687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
36688         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
36689         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
36690         * doc/posix-functions/wcsrchr.texi: Mention the new module.
36692 2011-02-06  Bruno Haible  <bruno@clisp.org>
36694         New module 'wcschr'.
36695         * modules/wcschr: New file.
36696         * lib/wchar.in.h (wcschr): New declaration.
36697         * lib/wcschr.c: New file.
36698         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
36699         * m4/wcschr.m4: New file.
36700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
36701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
36702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
36703         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
36704         * doc/posix-functions/wcschr.texi: Mention the new module.
36706 2011-02-06  Bruno Haible  <bruno@clisp.org>
36708         New module 'wcsdup'.
36709         * modules/wcsdup: New file.
36710         * lib/wchar.in.h (wcsdup): New declaration.
36711         * lib/wcsdup.c: New file.
36712         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
36713         * m4/wcsdup.m4: New file.
36714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
36715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
36716         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
36717         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
36718         * doc/posix-functions/wcsdup.texi: Mention the new module.
36720 2011-02-06  Bruno Haible  <bruno@clisp.org>
36722         New module 'wcsxfrm'.
36723         * modules/wcsxfrm: New file.
36724         * lib/wchar.in.h (wcsxfrm): New declaration.
36725         * lib/wcsxfrm.c: New file.
36726         * lib/wcsxfrm-impl.h: New file.
36727         * m4/wcsxfrm.m4: New file.
36728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
36729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
36730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
36731         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
36732         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
36734 2011-02-06  Bruno Haible  <bruno@clisp.org>
36736         New module 'wcscoll'.
36737         * modules/wcscoll: New file.
36738         * lib/wchar.in.h (wcscoll): New declaration.
36739         * lib/wcscoll.c: New file.
36740         * lib/wcscoll-impl.h: New file.
36741         * m4/wcscoll.m4: New file.
36742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
36743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
36744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
36745         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
36746         * doc/posix-functions/wcscoll.texi: Mention the new module.
36748 2011-02-06  Bruno Haible  <bruno@clisp.org>
36750         New module 'wcsncasecmp'.
36751         * modules/wcsncasecmp: New file.
36752         * lib/wchar.in.h (wcsncasecmp): New declaration.
36753         * lib/wcsncasecmp.c: New file.
36754         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
36755         * m4/wcsncasecmp.m4: New file.
36756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
36757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
36758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
36759         HAVE_WCSNCASECMP.
36760         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
36761         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
36763 2011-02-06  Bruno Haible  <bruno@clisp.org>
36765         New module 'wcscasecmp'.
36766         * modules/wcscasecmp: New file.
36767         * lib/wchar.in.h (wcscasecmp): New declaration.
36768         * lib/wcscasecmp.c: New file.
36769         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
36770         * m4/wcscasecmp.m4: New file.
36771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
36772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
36773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
36774         HAVE_WCSCASECMP.
36775         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
36776         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
36778 2011-02-05  Bruno Haible  <bruno@clisp.org>
36780         New module 'wcsncmp'.
36781         * modules/wcsncmp: New file.
36782         * lib/wchar.in.h (wcsncmp): New declaration.
36783         * lib/wcsncmp.c: New file.
36784         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
36785         * m4/wcsncmp.m4: New file.
36786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
36787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
36788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
36789         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
36790         * doc/posix-functions/wcsncmp.texi: Mention the new module.
36792 2011-02-05  Bruno Haible  <bruno@clisp.org>
36794         New module 'wcscmp'.
36795         * modules/wcscmp: New file.
36796         * lib/wchar.in.h (wcscmp): New declaration.
36797         * lib/wcscmp.c: New file.
36798         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
36799         * m4/wcscmp.m4: New file.
36800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
36801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
36802         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
36803         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
36804         * doc/posix-functions/wcscmp.texi: Mention the new module.
36806 2011-02-05  Bruno Haible  <bruno@clisp.org>
36808         New module 'wcsncat'.
36809         * modules/wcsncat: New file.
36810         * lib/wchar.in.h (wcsncat): New declaration.
36811         * lib/wcsncat.c: New file.
36812         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
36813         * m4/wcsncat.m4: New file.
36814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
36815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
36816         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
36817         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
36818         * doc/posix-functions/wcsncat.texi: Mention the new module.
36820 2011-02-05  Bruno Haible  <bruno@clisp.org>
36822         New module 'wcscat'.
36823         * modules/wcscat: New file.
36824         * lib/wchar.in.h (wcscat): New declaration.
36825         * lib/wcscat.c: New file.
36826         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
36827         * m4/wcscat.m4: New file.
36828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
36829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
36830         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
36831         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
36832         * doc/posix-functions/wcscat.texi: Mention the new module.
36834 2011-02-05  Bruno Haible  <bruno@clisp.org>
36836         New module 'wcpncpy'.
36837         * modules/wcpncpy: New file.
36838         * lib/wchar.in.h (wcpncpy): New declaration.
36839         * lib/wcpncpy.c: New file.
36840         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
36841         * m4/wcpncpy.m4: New file.
36842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
36843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
36844         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
36845         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
36846         * doc/posix-functions/wcpncpy.texi: Mention the new module.
36848 2011-02-05  Bruno Haible  <bruno@clisp.org>
36850         New module 'wcsncpy'.
36851         * modules/wcsncpy: New file.
36852         * lib/wchar.in.h (wcsncpy): New declaration.
36853         * lib/wcsncpy.c: New file.
36854         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
36855         * m4/wcsncpy.m4: New file.
36856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
36857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
36858         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
36859         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
36860         * doc/posix-functions/wcsncpy.texi: Mention the new module.
36862 2011-02-05  Bruno Haible  <bruno@clisp.org>
36864         New module 'wcpcpy'.
36865         * modules/wcpcpy: New file.
36866         * lib/wchar.in.h (wcpcpy): New declaration.
36867         * lib/wcpcpy.c: New file.
36868         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
36869         * m4/wcpcpy.m4: New file.
36870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
36871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
36872         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
36873         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
36874         * doc/posix-functions/wcpcpy.texi: Mention the new module.
36876 2011-02-05  Bruno Haible  <bruno@clisp.org>
36878         New module 'wcscpy'.
36879         * modules/wcscpy: New file.
36880         * lib/wchar.in.h (wcscpy): New declaration.
36881         * lib/wcscpy.c: New file.
36882         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
36883         * m4/wcscpy.m4: New file.
36884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
36885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
36886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
36887         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
36888         * doc/posix-functions/wcscpy.texi: Mention the new module.
36890 2011-02-05  Bruno Haible  <bruno@clisp.org>
36892         New module 'wcsnlen'.
36893         * modules/wcsnlen: New file.
36894         * lib/wchar.in.h (wcsnlen): New declaration.
36895         * lib/wcsnlen.c: New file.
36896         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
36897         * m4/wcsnlen.m4: New file.
36898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
36899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
36900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
36901         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
36902         * doc/posix-functions/wcsnlen.texi: Mention the new module.
36904 2011-02-05  Bruno Haible  <bruno@clisp.org>
36906         New module 'wcslen'.
36907         * modules/wcslen: New file.
36908         * lib/wchar.in.h (wcslen): New declaration.
36909         * lib/wcslen.c: New file.
36910         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
36911         * m4/wcslen.m4: New file.
36912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
36913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
36914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
36915         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
36916         * doc/posix-functions/wcslen.texi: Mention the new module.
36918 2011-02-05  Bruno Haible  <bruno@clisp.org>
36920         New module 'wmemset'.
36921         * modules/wmemset: New file.
36922         * lib/wchar.in.h (wmemset): New declaration.
36923         * lib/wmemset.c: New file.
36924         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
36925         * m4/wmemset.m4: New file.
36926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
36927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
36928         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
36929         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
36930         * doc/posix-functions/wmemset.texi: Mention the new module.
36932 2011-02-05  Bruno Haible  <bruno@clisp.org>
36934         New module 'wmemmove'.
36935         * modules/wmemmove: New file.
36936         * lib/wchar.in.h (wmemmove): New declaration.
36937         * lib/wmemmove.c: New file.
36938         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
36939         * m4/wmemmove.m4: New file.
36940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
36941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
36942         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
36943         HAVE_WMEMMOVE.
36944         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
36945         * doc/posix-functions/wmemmove.texi: Mention the new module.
36947 2011-02-05  Bruno Haible  <bruno@clisp.org>
36949         New module 'wmemcpy'.
36950         * modules/wmemcpy: New file.
36951         * lib/wchar.in.h (wmemcpy): New declaration.
36952         * lib/wmemcpy.c: New file.
36953         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
36954         * m4/wmemcpy.m4: New file.
36955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
36956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
36957         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
36958         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
36959         * doc/posix-functions/wmemcpy.texi: Mention the new module.
36961 2011-02-05  Bruno Haible  <bruno@clisp.org>
36963         New module 'wmemcmp'.
36964         * modules/wmemcmp: New file.
36965         * lib/wchar.in.h (wmemcmp): New declaration.
36966         * lib/wmemcmp.c: New file.
36967         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
36968         * m4/wmemcmp.m4: New file.
36969         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
36970         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
36971         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
36972         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
36973         * doc/posix-functions/wmemcmp.texi: Mention the new module.
36975 2011-02-07  Jim Meyering  <meyering@redhat.com>
36977         di-set, ino-map: new modules, from coreutils
36978         * lib/di-set.c: New file.
36979         * lib/di-set.h: Likewise.
36980         * lib/ino-map.c: Likewise.
36981         * lib/ino-map.h: Likewise.
36982         * modules/di-set: Likewise.
36983         * modules/di-set-tests: Likewise.
36984         * modules/ino-map: Likewise.
36985         * modules/ino-map-tests: Likewise.
36986         * tests/test-di-set.c: Likewise.
36987         * tests/test-ino-map.c: Likewise.
36989 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
36991         getloadavg: merge minor changes from Emacs
36993         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
36994         (getloadavg): Use memset, not bzero.
36996         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
36997         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
36998         clash (bug#86).
37000 2010-11-14  Bruno Haible  <bruno@clisp.org>
37002         Allow multiple gnulib generated replacements to coexist.
37003         * lib/getopt.in.h (struct option): Avoid identical redefinition.
37004         * lib/inttypes.in.h (imaxdiv_t): Likewise.
37005         * lib/langinfo.in.h (nl_item): Likewise.
37006         * lib/math.in.h (_NaN, NAN): Likewise.
37007         * lib/netdb.in.h (struct addrinfo): Likewise.
37008         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
37009         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
37010         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
37011         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
37012         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
37013         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
37014         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
37015         pthread_mutexattr_init, pthread_mutexattr_settype,
37016         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
37017         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
37018         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
37019         pthread_spin_trylock, pthread_spin_unlock): Likewise.
37020         * lib/sched.in.h (struct sched_param): Likewise.
37021         * lib/se-selinux.in.h (security_class_t, security_context_t,
37022         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
37023         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
37024         lsetfilecon, fsetfilecon, security_check_context,
37025         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
37026         Likewise.
37027         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
37028         Likewise.
37029         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
37030         _gl_function_taking_int_returning_void_t, union sigval,
37031         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
37032         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
37033         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
37034         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
37035         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
37036         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
37037         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
37038         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
37039         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
37040         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
37041         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
37042         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
37043         socklen_t, rpl_fd_isset): Likewise.
37044         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
37045         * lib/sys_time.in.h (struct timeval): Likewise.
37046         * lib/sys_times.in.h (struct tms): Likewise.
37047         * lib/sys_utsname.in.h (struct utsname):
37048         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
37049         * lib/unistd.in.h (getpagesize): Likewise.
37050         * lib/wchar.in.h (mbstate_t): Likewise.
37051         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
37052         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
37053         towlower, towupper): Likewise.
37054         Reported by Sam Steingold <sds@gnu.org>.
37056 2011-02-05  Eric Blake  <eblake@redhat.com>
37058         unsetenv: work around Haiku issues
37059         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
37060         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
37062 2010-12-30  Bruce Korb  <bkorb@gnu.org>
37064         libposix: avoid calling error() within libposix
37065         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
37066         is defined.
37068 2011-02-05  Eric Blake  <eblake@redhat.com>
37070         strerror_r-posix: port to cygwin
37071         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
37072         implementation.
37073         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
37074         * tests/test-strerror_r.c (main): Fix test.
37075         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
37076         issue.
37078 2011-02-05  Bruno Haible  <bruno@clisp.org>
37080         New module 'wmemchr'.
37081         * modules/wmemchr: New file.
37082         * lib/wchar.in.h (wmemchr): New declaration.
37083         * lib/wmemchr.c: New file.
37084         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
37085         * m4/wmemchr.m4: New file.
37086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
37087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
37088         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
37089         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
37090         * doc/posix-functions/wmemchr.texi: Mention the new module.
37092 2011-02-04  Eric Blake  <eblake@redhat.com>
37094         fdopendir: detect FreeBSD bug
37095         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
37096         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
37098 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37100         stdbool: do not define HAVE_STDBOOL_H
37101         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
37102         AC_HEADER_STDBOOL.  All uses changed.  Do not define
37103         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
37104         imported from the latest Autoconf git.  It was motivated by Emacs,
37105         which uses gnulib but does not need HAVE_STDBOOL_H.
37107 2011-02-04  Bruno Haible  <bruno@clisp.org>
37109         wcsnrtombs: Prepare for new module wwcsnrtombs.
37110         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
37111         * lib/wcsnrtombs.c: Include it.
37112         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
37114         wcsrtombs: Prepare for new module wwcsrtombs.
37115         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
37116         * lib/wcsrtombs.c: Include it.
37117         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
37119         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
37120         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
37121         * lib/mbsnrtowcs.c: Include it.
37122         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
37124         mbsrtowcs: Prepare for new module mbsrtowwcs.
37125         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
37126         * lib/mbsrtowcs.c: Include it.
37127         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
37129 2011-02-04  Bruno Haible  <bruno@clisp.org>
37131         vasnprintf: Reduce use of malloc for small format strings.
37132         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
37133         (arguments): Add room for the first 7 arguments.
37134         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
37135         (char_directives, u8_directives, u16_directives, u32_directives): Add
37136         room for the first 7 directives.
37137         * lib/printf-parse.c: Include <string.h>.
37138         (PRINTF_PARSE): Change memory handling code so that it uses the first
37139         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
37140         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
37141         Reported by Pádraig Brady <P@draigbrady.com>.
37143 2011-01-31  Eric Blake  <eblake@redhat.com>
37145         dup2: work around Haiku bug
37146         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
37147         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
37148         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37149         * tests/test-dup2.c (main): Enhance test.
37151 2011-01-31  Simon Josefsson  <simon@josefsson.org>
37153         doc: off_t is not available in eglibc 2.11.2 stdio.h.
37154         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
37155         declared by eglibc 2.11.2.
37156         * lib/stdio.in.h: Likewise.
37158 2011-01-31  Eric Blake  <eblake@redhat.com>
37160         ignore-value: add missing test dependency
37161         * tests/test-ignore-value.c: Revert previous change; stdio.h
37162         provides off_t.
37163         * modules/ignore-value-tests (Depends-on): Add missing dependency.
37165 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
37167         mktime: clarify long_int width checking
37168         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
37169         the top level, to make it clearer that the assumption about
37170         long_int width is being checked.  See
37171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
37173 2011-01-30  Simon Josefsson  <simon@josefsson.org>
37175         ignore-value: Fix self-test.
37176         * tests/test-ignore-value.c: Include sys/types.h for off_t.
37178 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
37180         TYPE_MAXIMUM: avoid theoretically undefined behavior
37181         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
37182         negative number, which the C Standard says has undefined behavior.
37183         In practice this is not a problem, but might as well do it by the book.
37184         Reported by Rich Felker and Eric Blake; see
37185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
37186         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
37187         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37189         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
37190         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37191         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
37193         mktime: #undef mktime before #defining it
37194         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
37196         mktime: systematically normalize tm_isdst comparisons
37197         * lib/mktime.c (isdst_differ): New function.
37198         (__mktime_internal): Use it systematically for all isdst comparisons.
37199         This completes the fix for libc BZ #6723, and removes the need for
37200         normalizing tm_isdst.  See
37201         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
37202         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
37204         mktime: fix some integer overflow issues and sidestep the rest
37206         This was prompted by a bug report by Benjamin Lindner for MinGW
37207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
37208         His bug is due to signed integer overflow (0 - INT_MIN), and I
37209         I scanned through mktime.c looking for other integer overflow
37210         problems, fixing all the bugs I found.
37212         Although the C Standard says the resulting code is still not safe
37213         in the presence of integer overflow, in practice it should be good
37214         enough for all real-world two's-complement implementations, except
37215         for debugging environments that deliberately trap on integer
37216         overflow (e.g., gcc -ftrapv).
37218         * lib/mktime.c (WRAPV): New macro.
37219         (SHR): Also check that long_int and time_t shift right in the
37220         usual way, before using the fast-but-unportable method.
37221         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
37222         used.  The code already assumed two's complement, so there's
37223         no need to test for alternatives.  All uses removed.
37224         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
37225         the C standard.  Problem reported by Rich Felker in
37226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
37227         (twos_complement_arithmetic): Also check long_int and time_t.
37228         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
37229         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
37230         (__mktime_internal): Avoid integer overflow with unary subtraction
37231         in two instances where -1 - X is an adequate replacement for -X,
37232         since the calculations are approximate.
37234 2011-01-29  Eric Blake  <eblake@redhat.com>
37236         mktime: avoid infinite loop
37237         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
37238         type; behavior is still undefined but portable to all known targets.
37239         Reported by Rich Felker.
37241 2011-01-29  Simon Josefsson  <simon@josefsson.org>
37243         rename, unlink, same-inode: Relicense.
37244         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
37245         * modules/unlink (License): Likewise.
37246         * modules/same-inode (License): Likewise.
37248 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37250         mktime: avoid problems on NetBSD 5 / i386
37251         * lib/mktime.c (long_int): New type.  This works around a problem
37252         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
37253         but time_t is 64 bits, and where I expect the existing code is
37254         wrong in some cases.
37255         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
37256         (ydhms_diff): Bring back the compile-time check for wide-enough
37257         year and yday.
37259         mktime: fix misspelling in comment
37260         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
37261         This merges all recent glibc changes of importance.
37263 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37265         move-if-change: cope with concurrent mv of identical file.
37266         * build-aux/move-if-change (CMPPROG): Accept environment
37267         variable as an override for `cmp'.
37268         (usage): Document CMPPROG.
37269         Adjust comparison to drop stdout.  Cope with failure of mv if
37270         the target file exists and is identical to the source, for
37271         parallel builds.
37272         Report from H.J. Lu against binutils in PR binutils/12283.
37274 2011-01-28  Bruce Korb  <bkorb@gnu.org>
37276         * users.txt: Mention sharutils.
37278 2011-01-28  Simon Josefsson  <simon@josefsson.org>
37280         * users.txt: Mention OATH Toolkit.
37282 2011-01-27  Bruno Haible  <bruno@clisp.org>
37284         Prepare for supporting FreeBSD 10.
37285         * build-aux/config.libpath: Remove handling of freebsd1*.
37287 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
37289         Prepare for supporting FreeBSD 10.
37290         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
37291         match FreeBSD 10.0.
37293 2011-01-27  Bruno Haible  <bruno@clisp.org>
37295         vma-iter, get-rusage-as: Add OpenBSD support.
37296         * modules/vma-iter (configure.ac): Test for mquery.
37297         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
37298         * lib/vma-iter.c: Include <sys/mman.h>.
37299         (vma_iterate): Add an implementation based on mquery().
37300         * lib/resource-ext.h (get_rusage_as): Update comments.
37301         * lib/get-rusage-as.c: Likewise.
37302         * lib/get-rusage-data.c: Likewise.
37304 2011-01-26  Karl Berry  <karl@gnu.org>
37306         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
37307         variables to make it easier to override the makeinfo program used.
37309 2011-01-26  Eric Blake  <eblake@redhat.com>
37311         fcntl: work around Haiku F_DUPFD bugs
37312         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
37313         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
37314         cloexec bit on duplication.
37315         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
37317 2011-01-26  Bruno Haible  <bruno@clisp.org>
37319         Enable memory leak tests on AIX.
37320         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
37321         * tests/test-fprintf-posix3.c (main): Likewise.
37323 2011-01-26  Bruno Haible  <bruno@clisp.org>
37325         Tests for module 'get-rusage-data'.
37326         * modules/get-rusage-data-tests: New file.
37327         * tests/test-get-rusage-data.c: New file.
37329         New module 'get-rusage-data'.
37330         * lib/resource-ext.h (get_rusage_data): New declaration.
37331         * lib/get-rusage-data.c: New file.
37332         * modules/get-rusage-data: New file.
37334 2011-01-25  Bruno Haible  <bruno@clisp.org>
37336         get-rusage-as: Allow for easier testing.
37337         * lib/resource-ext.h (get_rusage_as): Add comment.
37338         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
37339         (main): New function for interactive testing.
37341 2011-01-25  Bruno Haible  <bruno@clisp.org>
37343         vma-iter: Treat Haiku like BeOS.
37344         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
37345         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
37347 2011-01-25  Eric Blake  <eblake@redhat.com>
37349         c-stack: fix regression on cygwin when libsigsegv is present
37350         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
37352 2011-01-24  Bruno Haible  <bruno@clisp.org>
37354         vma-iter: Avoid empty intervals.
37355         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
37356         on an empty interval.
37358 2011-01-24  Jim Meyering  <meyering@redhat.com>
37360         u64: remove unnecessary #include
37361         * lib/u64.h: Don't include <stddef.h>.  It was not used.
37363 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37365         Allow the user to avoid the HAVE_RAW_DECL_* macros.
37366         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
37368 2011-01-23  Bruno Haible  <bruno@clisp.org>
37370         New module 'vma-iter'.
37371         * lib/vma-iter.h: New file.
37372         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
37373         * modules/vma-iter: New file.
37374         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
37375         for get_rusage_as_via_iterator.
37376         (vma_iterate_callback): New function.
37377         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
37378         * modules/get-rusage-as (Depends-on): Add vma-iter.
37380 2011-01-23  Bruno Haible  <bruno@clisp.org>
37382         uninorm: Tweak includes.
37383         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
37384         Reported by Jim Meyering.
37386 2011-01-23  Bruno Haible  <bruno@clisp.org>
37388         get-rusage-as: Improve on NetBSD.
37389         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
37390         /proc, like on FreeBSD.
37392 2011-01-23  Jim Meyering  <meyering@redhat.com>
37394         xreadlink.h: remove unnecessary #include
37395         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
37397         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
37398         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
37400 2011-01-23  Bruno Haible  <bruno@clisp.org>
37402         get-rusage-as: Fix bug.
37403         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
37404         original limit when aborting the first loop.
37406 2011-01-23  Bruno Haible  <bruno@clisp.org>
37408         wctype: Ensure valid C syntax.
37409         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
37410         unconditionally, instead of gl_NEXT_HEADERS conditionally.
37412 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
37414         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
37415         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
37416         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
37417         as they are needed only for configure's test case.
37418         This removes two unnecessary symbols from config.h.
37420         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
37421         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
37422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
37423         AC_CHECK_HEADERS_ONCE on a header that we also invoke
37424         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
37425         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
37426         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
37427         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
37428         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37429         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37430         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37431         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37432         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37433         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37434         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
37435         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37436         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
37437         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
37439 2011-01-21  Eric Blake  <eblake@redhat.com>
37441         maintainer-makefile: work with older git for submodule check
37442         * top/maint.mk (public-submodule-commit): Rewrite to avoid
37443         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
37444         Reported by Matthias Bolte.
37446         bootstrap: minor portability fixes
37447         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
37448         (usage): Omit leading capital and trailing . on help phrases, per
37449         GNU Coding Standards.
37450         (check_versions, top level): Prefix messages with script name.
37452 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
37454         bootstrap: support --no-git option
37455         * build-aux/bootstrap: Add --no-git option, to be used when
37456         --gnulib-srcdir points to the exact desired checkout.
37458 2011-01-21  Eric Blake  <eblake@redhat.com>
37460         strerror_r-posix: work with glibc 2.13
37461         * lib/strerror_r.c (strerror_r): Fix return type.
37463 2011-01-21  Pádraig Brady  <P@draigBrady.com>
37464             Bruno Haible  <bruno@clisp.org>
37466         uN_strstr: New unit tests.
37467         * modules/unistr/u8-strstr-tests: New file.
37468         * modules/unistr/u16-strstr-tests: New file.
37469         * modules/unistr/u32-strstr-tests: New file.
37470         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
37471         * tests/unistr/test-u8-strstr.c: New file.
37472         * tests/unistr/test-u16-strstr.c: New file.
37473         * tests/unistr/test-u32-strstr.c: New file.
37475 2011-01-21  Pádraig Brady  <P@draigBrady.com>
37476             Bruno Haible  <bruno@clisp.org>
37478         Make uN_strstr functions O(n) worst-case.
37479         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
37480         16-bit and 32-bit unit cases, use the unibyte algorithm from
37481         lib/mbsstr.c.
37482         * lib/unistr/u8-strstr.c: Include <string.h>.
37483         (UNIT_IS_UINT8_T): New macro.
37484         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
37485         (U_STRLEN, U_STRNLEN): New macros.
37486         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
37487         (U_STRLEN, U_STRNLEN): New macros.
37488         * modules/unistr/u8-strstr (Depends-on): Add strstr.
37489         (configure.ac): Update required libunistring version.
37490         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
37491         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
37492         malloca.
37493         (configure.ac): Update required libunistring version.
37494         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
37495         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
37496         malloca.
37497         (configure.ac): Update required libunistring version.
37499 2011-01-21  Pádraig Brady  <P@draigBrady.com>
37500             Bruno Haible  <bruno@clisp.org>
37502         Prepare for faster uN_strstr functions.
37503         * lib/str-kmp.h: Support definable UNITs.
37504         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
37505         needle_len argument.
37506         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
37507         * lib/mbscasestr.c (mbscasestr): Likewise.
37509 2011-01-21  Pádraig Brady  <P@draigBrady.com>
37511         malloca-tests: make faster by unsetting MALLOC_PERTURB_
37512         * tests/test-malloca.c (main): Unset the environment variable
37513         to greatly speed up the test.
37514         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
37515         * modules/malloca-tests: Depend on unsetenv.
37517 2011-01-21  Pádraig Brady  <P@draigBrady.com>
37519         ignore-value: remove stdint dependency
37520         * lib/ignore-value.h: Remove <stdint.h>
37521         * modules/ignore-value: Remove stdint dependency.
37523 2011-01-21  Jim Meyering  <meyering@redhat.com>
37525         maint.mk: adjust variable name to be consistent with other gl_ vars
37526         * top/maint.mk (gl_public_submodule_commit): Rename the variable
37527         to be lower case.
37529 2011-01-20  Jim Meyering  <meyering@redhat.com>
37531         maint.mk: make "check" depend on public-submodule-commit by default
37532         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
37534 2011-01-20  Bruno Haible  <bruno@clisp.org>
37536         mbfile, mbiter: Complete change from 2008-12-21.
37537         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
37538         * m4/mbiter.m4 (gl_MBITER): Likewise.
37540 2011-01-20  Jim Meyering  <meyering@redhat.com>
37542         init.sh: insert space between each function name and "()"
37543         * tests/init.sh: Make it a little easier to see that a function's
37544         name is "warn_", and not "warn" when looking at the first part of
37545         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
37547 2011-01-20  Jim Meyering  <meyering@redhat.com>
37549         mountlist: clean up code formatting
37550         * lib/mountlist.c (read_file_system_list): Split a long line,
37551         correct bracing style, use NULL in place of "(struct statfs *)0",
37552         don't parenthesize return value, add spaces around "=" and after
37553         ";-in-for-stmt".
37555 2011-01-14  Markus Duft  <mduft@gentoo.org>
37557         mountlist: add support for Interix
37558         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
37559         Apply statvfs to all entries of /dev/fs.
37560         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
37561         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
37563 2011-01-20  Jim Meyering  <meyering@redhat.com>
37565         maint.mk: improve the public-submodule-commit rule
37566         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
37567         to suppress printing of its commands... unless V=1.
37568         Add git submodule's --quiet option to suppress printing of e.g.,
37569         "Entering gnulib" output.
37570         "cd" into $(srcdir) before running git submodule.
37572 2011-01-20  Bruno Haible  <bruno@clisp.org>
37574         include_next: Fix bug introduced on 2011-01-18.
37575         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
37576         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
37577         ac_cv_header_... variable if the second argument is not 'check'.
37578         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
37579         gl_NEXT_HEADERS_INTERNAL.
37581 2011-01-20  Bruno Haible  <bruno@clisp.org>
37583         Allow the user to avoid the GNULIB_TEST_* macros.
37584         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
37585         Suggested by Paul Eggert.
37587 2011-01-14  Jim Meyering  <meyering@redhat.com>
37589         bootstrap: avoid failure when there is no .gitmodules file
37590         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
37591         has been assigned to, even when its value is the empty string.
37592         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
37593         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
37594         Reported by John W. Eaton <jwe@gnu.org>.
37596 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37598         assume <ctype.h>, ..., <time.h> exist
37599         For years gnulib has been assuming the existence of the headers
37600         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
37601         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
37602         them, since they don't appear to be needed.
37603         * README (Portability guidelines): Document this.
37604         * lib/flock.c: Assume <fcntl.h> exists.
37605         * lib/regex_internal.h: Assume <locale.h> exists.
37606         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
37607         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
37608         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
37609         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
37610         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
37611         * m4/regex.m4 (gl_REGEX): Likewise.
37612         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
37613         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
37614         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
37615         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
37616         * tests/test-argp.c: Likewise.
37617         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
37619         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
37620         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
37621         AA_APPLE_UNIVERSAL_BUILD.  See
37622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
37623         * NEWS: Document this.
37625 2011-01-19  Eric Blake  <eblake@redhat.com>
37627         c-stack: assume stack overflow if SA_SIGINFO unsupported
37628         * lib/c-stack.c (SIGACTION_WORKS): Rename...
37629         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
37630         sigaction will work.
37631         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
37632         behavior match Linux.
37633         * tests/test-c-stack.c (main): Prefer NULL for pointers.
37635         stdbool-tests: accommodate Haiku
37636         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
37638         binary-io: fix O_TEXT on Haiku
37639         * modules/binary-io (Depends-on): Add fcntl-h.
37640         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
37641         than blindly undefining O_TEXT.
37642         Reported by Scott McCreary.
37644 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
37646         include_next: do not check for standard headers like stddef.h
37648         I found this problem when modifying Emacs to use gnulib.
37649         I noticed that it added HAVE_STDDEF_H to config.h, even though
37650         gnulib always assumes <stddef.h> exists as per README and this
37651         symbol is unnecessary.
37652         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
37653         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
37654         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
37655         faster for headers like stddef.h that are known to exist.
37656         (gl_CHECK_NEXT_HEADERS): Use it.
37657         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
37658         rather than gl_CHECK_NEXT_HEADERS.
37659         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
37660         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
37662 2011-01-18  Eric Blake  <eblake@redhat.com>
37664         ansi-c++-opt: skip C++ dependency style if C++ is unused
37665         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
37666         tests when we know C++ compilation is not desired.
37667         Reported by Scott McCreary.
37669 2011-01-18  Bruno Haible  <bruno@clisp.org>
37671         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
37672         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
37673         (main): Perform test also when getrlimit and setrlimit don't exist or
37674         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
37675         limiting the address space size using setrlimit, compare the address
37676         space size before and after the test.
37677         * tests/test-dprintf-posix2.c: Likewise.
37678         * tests/test-fprintf-posix3.sh: Update skip messages.
37679         * tests/test-dprintf-posix2.sh: Likewise.
37680         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
37681         * modules/dprintf-posix-tests (Depends-on): Likewise.
37682         Reported by Bruce Korb <bkorb@gnu.org> and
37683         Gary V. Vaughan <gary@gnu.org>.
37685 2011-01-18  Bruno Haible  <bruno@clisp.org>
37687         get-rusage-as: Improvement for Cygwin.
37688         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
37689         areas that are merely reserved.
37691 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
37693         strftime: remove dependencies on multibyte modules
37695         strftime depended on mbrlen, mbsinit, and wchar, but these modules
37696         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
37697         only if __osf__ is defined, and I suspect OSF doesn't need these
37698         other modules.  If my guess is wrong, we'll need to come up with a
37699         variant of strftime that doesn't need the multibyte modules.
37701         I discovered this problem when attempting modify Emacs to use the
37702         strftime module.  With the previous gnulib, this caused Emacs to
37703         need 31 new files, ranging from lib/config.charset to
37704         m4/wint_t.m4.  This was overkill and I expect would be offputting
37705         to the Emacs maintainers.  After this change, only 6 new files are
37706         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
37707         stdbool.m4, and tm_gmtoff.m4.
37709         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
37710         Suggested by Bruno Haible in
37711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
37712         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
37713         and do not check for wchar.h.
37714         * modules/strftime (Files): Remove m4/mbstate_t.m4.
37715         (Depends-on): Remove mbrlen, mbsinit, wchar.
37717 2011-01-18  Bruno Haible  <bruno@clisp.org>
37719         Tests for module 'get-rusage-as'.
37720         * modules/get-rusage-as-tests: New file.
37721         * tests/test-get-rusage-as.c: New file.
37723         New module 'get-rusage-as'.
37724         * modules/get-rusage-as: New file.
37725         * lib/resource-ext.h: New file.
37726         * lib/get-rusage-as.c: New file.
37728 2011-01-17  Eric Blake  <eblake@redhat.com>
37730         sigaction: relax license from LGPLv3+ to LGPLv2+
37731         * modules/sigaction (License): Relax to LGPLv2+.
37733 2011-01-14  Bruno Haible  <bruno@clisp.org>
37735         filemode: Make function declarations usable in C++ mode.
37736         * lib/filemode.h: Enclose function declarations in extern "C" block.
37737         Reported by John W. Eaton <jwe@gnu.org>.
37739 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
37741         save-cwd: no longer include "xgetcwd.h"
37742         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
37743         This avoids a compilation failure in projects that use save-cwd
37744         without also using the xgetcwd module.
37746 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
37748         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
37749         This is so that a program like Emacs, which needs only dtoastr,
37750         does not have to bother with distributing and compiling ftoastr
37751         and ldtoastr.
37752         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
37753         * modules/dtoastr, modules/ldtoastr: New files.
37754         * modules/ftoastr: Now works just for 'float'.
37755         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
37756         (Makefile.am): Remove ftoastr.h (not needed and no effect),
37757         dtoastr.c, ldtoastr.c.
37759 2011-01-11  Jim Meyering  <meyering@redhat.com>
37761         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
37762         There is no need to work around the lack of the fchdir function,
37763         since gnulib can now provide a replacement when required.
37764         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
37765         * modules/save-cwd (Depends-on): Add fchdir.
37767 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
37769         openat, save-cwd: avoid xmalloc
37771         This removes a direct (but undocumented) dependency of openat on
37772         xalloc, along with an indirect dependency via save-cwd.  It also
37773         removes a dependency of save-cwd on xgetcwd, and thereby
37774         indirectly on xalloc.  This change causes the openat substitute
37775         to fall back on save_cwd when memory is tight, and for save_cwd to
37776         fail instead of dying when memory is tight, but that's good enough.
37777         Problem and initial idea for fix reported by Bastien Roucaries in
37778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
37780         * lib/openat-proc.c: Include stdlib.h (for malloc), not
37781         xalloc.h (for xmalloc).
37782         (openat_proc_name): Use malloc, not xmalloc.
37783         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
37784         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
37786         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
37787         This avoids heap allocation for file names whose lengths are in
37788         the range 512..1023, with the upper bound increasing to at most
37789         4031 depending on the platform's PATH_MAX.  (We do not want
37790         pathmax.h here as it might supply a non-constant PATH_MAX.)
37791         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
37792         Perhaps they should be moved to malloca.h?
37793         (OPENAT_BUFFER_SIZE): Use them.
37795 2011-01-10  Bruno Haible  <bruno@clisp.org>
37797         doc: Update users.txt.
37798         * users.txt: Add recutils.
37800 2011-01-09  Karl Berry  <karl@gnu.org>
37802         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
37804         * doc/configmake.texi: New file.
37805         * doc/gnulib.texi: Include it.
37806         * modules/configmake: Move documentation from here.
37808 2011-01-09  Bruno Haible  <bruno@clisp.org>
37810         Update to Unicode 6.0.0.
37811         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
37812         (get_lbp): Update for Unicode 6.0.0.
37813         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
37814         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
37815         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
37816         U+11001, U+11038..U+11046. Remove U+06DE.
37817         (uc_width): Fix bounds of planes.
37818         * tests/uniwidth/test-uc_width2.sh: Same updates as in
37819         lib/uniwidth/width.c.
37820         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
37821         trailing whitespace removed.
37822         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
37823         without comments, but with the original copyright notice.
37824         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
37825         * lib/unicase/ignorable.h: Likewise.
37826         * lib/unicase/tocasefold.h: Likewise.
37827         * lib/unicase/tolower.h: Likewise.
37828         * lib/unicase/totitle.h: Likewise.
37829         * lib/unicase/toupper.h: Likewise.
37830         * lib/unictype/bidi_of.h: Likewise.
37831         * lib/unictype/blocks.h: Likewise.
37832         * lib/unictype/categ_C.h: Likewise.
37833         * lib/unictype/categ_Cn.h: Likewise.
37834         * lib/unictype/categ_L.h: Likewise.
37835         * lib/unictype/categ_Ll.h: Likewise.
37836         * lib/unictype/categ_Lm.h: Likewise.
37837         * lib/unictype/categ_Lo.h: Likewise.
37838         * lib/unictype/categ_Lu.h: Likewise.
37839         * lib/unictype/categ_M.h: Likewise.
37840         * lib/unictype/categ_Mc.h: Likewise.
37841         * lib/unictype/categ_Me.h: Likewise.
37842         * lib/unictype/categ_Mn.h: Likewise.
37843         * lib/unictype/categ_N.h: Likewise.
37844         * lib/unictype/categ_Nd.h: Likewise.
37845         * lib/unictype/categ_No.h: Likewise.
37846         * lib/unictype/categ_P.h: Likewise.
37847         * lib/unictype/categ_Po.h: Likewise.
37848         * lib/unictype/categ_S.h: Likewise.
37849         * lib/unictype/categ_Sc.h: Likewise.
37850         * lib/unictype/categ_Sk.h: Likewise.
37851         * lib/unictype/categ_Sm.h: Likewise.
37852         * lib/unictype/categ_So.h: Likewise.
37853         * lib/unictype/categ_of.h: Likewise.
37854         * lib/unictype/combining.h: Likewise.
37855         * lib/unictype/ctype_alnum.h: Likewise.
37856         * lib/unictype/ctype_alpha.h: Likewise.
37857         * lib/unictype/ctype_graph.h: Likewise.
37858         * lib/unictype/ctype_lower.h: Likewise.
37859         * lib/unictype/ctype_print.h: Likewise.
37860         * lib/unictype/ctype_punct.h: Likewise.
37861         * lib/unictype/ctype_upper.h: Likewise.
37862         * lib/unictype/decdigit.h: Likewise.
37863         * lib/unictype/digit.h: Likewise.
37864         * lib/unictype/numeric.h: Likewise.
37865         * lib/unictype/pr_alphabetic.h: Likewise.
37866         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
37867         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37868         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37869         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
37870         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
37871         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
37872         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
37873         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
37874         * lib/unictype/pr_case_ignorable.h: Likewise.
37875         * lib/unictype/pr_cased.h: Likewise.
37876         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
37877         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
37878         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
37879         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
37880         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
37881         * lib/unictype/pr_combining.h: Likewise.
37882         * lib/unictype/pr_composite.h: Likewise.
37883         * lib/unictype/pr_currency_symbol.h: Likewise.
37884         * lib/unictype/pr_decimal_digit.h: Likewise.
37885         * lib/unictype/pr_deprecated.h: Likewise.
37886         * lib/unictype/pr_format_control.h: Likewise.
37887         * lib/unictype/pr_grapheme_base.h: Likewise.
37888         * lib/unictype/pr_grapheme_extend.h: Likewise.
37889         * lib/unictype/pr_grapheme_link.h: Likewise.
37890         * lib/unictype/pr_id_continue.h: Likewise.
37891         * lib/unictype/pr_id_start.h: Likewise.
37892         * lib/unictype/pr_ideographic.h: Likewise.
37893         * lib/unictype/pr_lowercase.h: Likewise.
37894         * lib/unictype/pr_math.h: Likewise.
37895         * lib/unictype/pr_numeric.h: Likewise.
37896         * lib/unictype/pr_other_alphabetic.h: Likewise.
37897         * lib/unictype/pr_other_id_continue.h: Likewise.
37898         * lib/unictype/pr_other_math.h: Likewise.
37899         * lib/unictype/pr_punctuation.h: Likewise.
37900         * lib/unictype/pr_sentence_terminal.h: Likewise.
37901         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37902         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37903         * lib/unictype/pr_unified_ideograph.h: Likewise.
37904         * lib/unictype/pr_uppercase.h: Likewise.
37905         * lib/unictype/pr_xid_continue.h: Likewise.
37906         * lib/unictype/pr_xid_start.h: Likewise.
37907         * lib/unictype/scripts.h: Likewise.
37908         * lib/unictype/scripts_byname.gperf: Likewise.
37909         * lib/unictype/sy_java_ident.h: Likewise.
37910         * lib/unigbrk/gbrkprop.h: Likewise.
37911         * lib/unilbrk/lbrkprop1.h: Likewise.
37912         * lib/unilbrk/lbrkprop2.h: Likewise.
37913         * lib/uninorm/decomposition-table2.h: Likewise.
37914         * lib/uniwbrk/wbrkprop.h: Likewise.
37915         * tests/unicase/test-cased.c: Likewise.
37916         * tests/unicase/test-ignorable.c: Likewise.
37917         * tests/unicase/test-uc_tolower.c: Likewise.
37918         * tests/unicase/test-uc_totitle.c: Likewise.
37919         * tests/unicase/test-uc_toupper.c: Likewise.
37920         * tests/unictype/test-categ_C.c: Likewise.
37921         * tests/unictype/test-categ_Cn.c: Likewise.
37922         * tests/unictype/test-categ_L.c: Likewise.
37923         * tests/unictype/test-categ_Ll.c: Likewise.
37924         * tests/unictype/test-categ_Lm.c: Likewise.
37925         * tests/unictype/test-categ_Lo.c: Likewise.
37926         * tests/unictype/test-categ_Lu.c: Likewise.
37927         * tests/unictype/test-categ_M.c: Likewise.
37928         * tests/unictype/test-categ_Mc.c: Likewise.
37929         * tests/unictype/test-categ_Me.c: Likewise.
37930         * tests/unictype/test-categ_Mn.c: Likewise.
37931         * tests/unictype/test-categ_N.c: Likewise.
37932         * tests/unictype/test-categ_Nd.c: Likewise.
37933         * tests/unictype/test-categ_No.c: Likewise.
37934         * tests/unictype/test-categ_P.c: Likewise.
37935         * tests/unictype/test-categ_Po.c: Likewise.
37936         * tests/unictype/test-categ_S.c: Likewise.
37937         * tests/unictype/test-categ_Sc.c: Likewise.
37938         * tests/unictype/test-categ_Sk.c: Likewise.
37939         * tests/unictype/test-categ_Sm.c: Likewise.
37940         * tests/unictype/test-categ_So.c: Likewise.
37941         * tests/unictype/test-ctype_alnum.c: Likewise.
37942         * tests/unictype/test-ctype_alpha.c: Likewise.
37943         * tests/unictype/test-ctype_graph.c: Likewise.
37944         * tests/unictype/test-ctype_lower.c: Likewise.
37945         * tests/unictype/test-ctype_print.c: Likewise.
37946         * tests/unictype/test-ctype_punct.c: Likewise.
37947         * tests/unictype/test-ctype_upper.c: Likewise.
37948         * tests/unictype/test-decdigit.h: Likewise.
37949         * tests/unictype/test-digit.h: Likewise.
37950         * tests/unictype/test-numeric.h: Likewise.
37951         * tests/unictype/test-pr_alphabetic.c: Likewise.
37952         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
37953         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
37954         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
37955         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
37956         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
37957         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
37958         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
37959         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
37960         * tests/unictype/test-pr_case_ignorable.c: Likewise.
37961         * tests/unictype/test-pr_cased.c: Likewise.
37962         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
37963         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
37964         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
37965         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
37966         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
37967         * tests/unictype/test-pr_combining.c: Likewise.
37968         * tests/unictype/test-pr_composite.c: Likewise.
37969         * tests/unictype/test-pr_currency_symbol.c: Likewise.
37970         * tests/unictype/test-pr_decimal_digit.c: Likewise.
37971         * tests/unictype/test-pr_deprecated.c: Likewise.
37972         * tests/unictype/test-pr_format_control.c: Likewise.
37973         * tests/unictype/test-pr_grapheme_base.c: Likewise.
37974         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
37975         * tests/unictype/test-pr_grapheme_link.c: Likewise.
37976         * tests/unictype/test-pr_id_continue.c: Likewise.
37977         * tests/unictype/test-pr_id_start.c: Likewise.
37978         * tests/unictype/test-pr_ideographic.c: Likewise.
37979         * tests/unictype/test-pr_lowercase.c: Likewise.
37980         * tests/unictype/test-pr_math.c: Likewise.
37981         * tests/unictype/test-pr_numeric.c: Likewise.
37982         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
37983         * tests/unictype/test-pr_other_id_continue.c: Likewise.
37984         * tests/unictype/test-pr_other_math.c: Likewise.
37985         * tests/unictype/test-pr_punctuation.c: Likewise.
37986         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
37987         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
37988         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
37989         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
37990         * tests/unictype/test-pr_uppercase.c: Likewise.
37991         * tests/unictype/test-pr_xid_continue.c: Likewise.
37992         * tests/unictype/test-pr_xid_start.c: Likewise.
37993         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
37994         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
37995         changes.
37996         * lib/unictype/categ_Cc.h: Likewise.
37997         * lib/unictype/categ_Cf.h: Likewise.
37998         * lib/unictype/categ_Co.h: Likewise.
37999         * lib/unictype/categ_Cs.h: Likewise.
38000         * lib/unictype/categ_Lt.h: Likewise.
38001         * lib/unictype/categ_Nl.h: Likewise.
38002         * lib/unictype/categ_Pc.h: Likewise.
38003         * lib/unictype/categ_Pd.h: Likewise.
38004         * lib/unictype/categ_Pe.h: Likewise.
38005         * lib/unictype/categ_Pf.h: Likewise.
38006         * lib/unictype/categ_Pi.h: Likewise.
38007         * lib/unictype/categ_Ps.h: Likewise.
38008         * lib/unictype/categ_Z.h: Likewise.
38009         * lib/unictype/categ_Zl.h: Likewise.
38010         * lib/unictype/categ_Zp.h: Likewise.
38011         * lib/unictype/categ_Zs.h: Likewise.
38012         * lib/unictype/ctype_blank.h: Likewise.
38013         * lib/unictype/ctype_cntrl.h: Likewise.
38014         * lib/unictype/ctype_digit.h: Likewise.
38015         * lib/unictype/ctype_space.h: Likewise.
38016         * lib/unictype/ctype_xdigit.h: Likewise.
38017         * lib/unictype/mirror.h: Likewise.
38018         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38019         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38020         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38021         * lib/unictype/pr_bidi_control.h: Likewise.
38022         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38023         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38024         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38025         * lib/unictype/pr_bidi_pdf.h: Likewise.
38026         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38027         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38028         * lib/unictype/pr_dash.h: Likewise.
38029         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38030         * lib/unictype/pr_diacritic.h: Likewise.
38031         * lib/unictype/pr_extender.h: Likewise.
38032         * lib/unictype/pr_hex_digit.h: Likewise.
38033         * lib/unictype/pr_hyphen.h: Likewise.
38034         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38035         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38036         * lib/unictype/pr_ignorable_control.h: Likewise.
38037         * lib/unictype/pr_iso_control.h: Likewise.
38038         * lib/unictype/pr_join_control.h: Likewise.
38039         * lib/unictype/pr_left_of_pair.h: Likewise.
38040         * lib/unictype/pr_line_separator.h: Likewise.
38041         * lib/unictype/pr_logical_order_exception.h: Likewise.
38042         * lib/unictype/pr_non_break.h: Likewise.
38043         * lib/unictype/pr_not_a_character.h: Likewise.
38044         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38045         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38046         * lib/unictype/pr_other_id_start.h: Likewise.
38047         * lib/unictype/pr_other_lowercase.h: Likewise.
38048         * lib/unictype/pr_other_uppercase.h: Likewise.
38049         * lib/unictype/pr_paired_punctuation.h: Likewise.
38050         * lib/unictype/pr_paragraph_separator.h: Likewise.
38051         * lib/unictype/pr_pattern_syntax.h: Likewise.
38052         * lib/unictype/pr_pattern_white_space.h: Likewise.
38053         * lib/unictype/pr_private_use.h: Likewise.
38054         * lib/unictype/pr_quotation_mark.h: Likewise.
38055         * lib/unictype/pr_radical.h: Likewise.
38056         * lib/unictype/pr_soft_dotted.h: Likewise.
38057         * lib/unictype/pr_space.h: Likewise.
38058         * lib/unictype/pr_titlecase.h: Likewise.
38059         * lib/unictype/pr_variation_selector.h: Likewise.
38060         * lib/unictype/pr_white_space.h: Likewise.
38061         * lib/unictype/pr_zero_width.h: Likewise.
38062         * lib/unictype/sy_c_ident.h: Likewise.
38063         * lib/unictype/sy_c_whitespace.h: Likewise.
38064         * lib/unictype/sy_java_whitespace.h: Likewise.
38065         * lib/uninorm/composition-table.gperf: Likewise.
38066         * lib/uninorm/decomposition-table1.h: Likewise.
38067         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
38068         LB8.
38069         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38070         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38071         * modules/unictype/*: Bump version number of expected libunistring
38072         version.
38074 2011-01-09  Bruno Haible  <bruno@clisp.org>
38076         Update to Unicode 5.2.0.
38077         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
38078         trailing whitespace removed.
38080 2011-01-09  Bruno Haible  <bruno@clisp.org>
38082         New Unicode character properties, from Unicode 5.2.0.
38083         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
38084         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
38085         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
38086         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
38087         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
38088         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
38089         uc_is_property_cased, uc_is_property_case_ignorable,
38090         uc_is_property_changes_when_lowercased,
38091         uc_is_property_changes_when_uppercased,
38092         uc_is_property_changes_when_titlecased,
38093         uc_is_property_changes_when_casefolded,
38094         uc_is_property_changes_when_casemapped): New declarations.
38095         * lib/unictype/pr_byname.gperf: Add the new properties.
38096         * modules/unictype/property-byname (Depends-on): Depend on the new
38097         properties modules.
38098         * modules/unictype/property-all (Depends-on): Likewise.
38099         * MODULES.html.sh (Unicode string functions): Add
38100         unictype/property-case-ignorable, unictype/property-cased,
38101         unictype/property-changes-when-casefolded,
38102         unictype/property-changes-when-casemapped,
38103         unictype/property-changes-when-lowercased,
38104         unictype/property-changes-when-titlecased,
38105         unictype/property-changes-when-uppercased.
38107         New module 'unictype/property-changes-when-casemapped'.
38108         * modules/unictype/property-changes-when-casemapped: New file.
38109         * lib/unictype/pr_changes_when_casemapped.c: New file.
38110         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
38111         generated by gen-uni-tables.
38112         * modules/unictype/property-changes-when-casemapped-tests: New file.
38113         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
38114         automatically generated by gen-uni-tables.
38116         New module 'unictype/property-changes-when-casefolded'.
38117         * modules/unictype/property-changes-when-casefolded: New file.
38118         * lib/unictype/pr_changes_when_casefolded.c: New file.
38119         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
38120         generated by gen-uni-tables.
38121         * modules/unictype/property-changes-when-casefolded-tests: New file.
38122         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
38123         automatically generated by gen-uni-tables.
38125         New module 'unictype/property-changes-when-titlecased'.
38126         * modules/unictype/property-changes-when-titlecased: New file.
38127         * lib/unictype/pr_changes_when_titlecased.c: New file.
38128         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
38129         generated by gen-uni-tables.
38130         * modules/unictype/property-changes-when-titlecased-tests: New file.
38131         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
38132         automatically generated by gen-uni-tables.
38134         New module 'unictype/property-changes-when-uppercased'.
38135         * modules/unictype/property-changes-when-uppercased: New file.
38136         * lib/unictype/pr_changes_when_uppercased.c: New file.
38137         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
38138         generated by gen-uni-tables.
38139         * modules/unictype/property-changes-when-uppercased-tests: New file.
38140         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
38141         automatically generated by gen-uni-tables.
38143         New module 'unictype/property-changes-when-lowercased'.
38144         * modules/unictype/property-changes-when-lowercased: New file.
38145         * lib/unictype/pr_changes_when_lowercased.c: New file.
38146         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
38147         generated by gen-uni-tables.
38148         * modules/unictype/property-changes-when-lowercased-tests: New file.
38149         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
38150         automatically generated by gen-uni-tables.
38152         New module 'unictype/property-case-ignorable'.
38153         * modules/unictype/property-case-ignorable: New file.
38154         * lib/unictype/pr_case_ignorable.c: New file.
38155         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
38156         by gen-uni-tables.
38157         * modules/unictype/property-case-ignorable-tests: New file.
38158         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
38159         generated by gen-uni-tables.
38161         New module 'unictype/property-cased'.
38162         * modules/unictype/property-cased: New file.
38163         * lib/unictype/pr_cased.c: New file.
38164         * lib/unictype/pr_cased.h: New file, automatically generated by
38165         gen-uni-tables.
38166         * modules/unictype/property-cased-tests: New file.
38167         * tests/unictype/test-pr_cased.c: New file, automatically generated by
38168         gen-uni-tables.
38170 2011-01-09  Bruno Haible  <bruno@clisp.org>
38172         Update to Unicode 5.2.0.
38173         * lib/gen-uni-tables.c (output_predicate, output_category,
38174         output_combclass, output_bidi_category, output_decimal_digit_test,
38175         output_decimal_digit, output_digit_test, output_digit,
38176         output_numeric_test, output_numeric, output_mirror, output_scripts,
38177         output_scripts_byname, output_blocks, output_ident_category): Fix
38178         comment header.
38179         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
38180         get_wbp.
38181         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
38182         items.
38183         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
38184         Changes_When_Lowercased, Changes_When_Uppercased,
38185         Changes_When_Titlecased, Changes_When_Casefolded,
38186         Changes_When_Casemapped.
38187         (is_property_alphabetic, is_property_default_ignorable_code_point):
38188         Update for Unicode 5.2.0.
38189         (is_property_cased, is_property_case_ignorable,
38190         is_property_changes_when_lowercased,
38191         is_property_changes_when_uppercased,
38192         is_property_changes_when_titlecased,
38193         is_property_changes_when_casefolded,
38194         is_property_changes_when_casemapped): New functions.
38195         (output_properties): Output also the properties cased, case_ignorable,
38196         changes_when_lowercased, changes_when_uppercased,
38197         changes_when_titlecased, changes_when_casefolded,
38198         changes_when_casemapped.
38199         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
38200         Unicode TR#11 revision 17 -> 19.
38201         (LBP_CP): New enumeration value.
38202         (LBP_*): Adjust values accordingly.
38203         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
38204         TR#14 revision 22 -> 24.
38205         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
38206         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
38207         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
38208         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
38209         is_WBP_MIDLETTER.
38210         (output_composition_tables): Allow for 24 bits instead of 16 bits in
38211         the code1 and code2 of each composition rule.
38212         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
38213         * lib/unicase/ignorable.h: Likewise.
38214         * lib/unicase/tocasefold.h: Likewise.
38215         * lib/unicase/tolower.h: Likewise.
38216         * lib/unicase/totitle.h: Likewise.
38217         * lib/unicase/toupper.h: Likewise.
38218         * lib/unictype/bidi_of.h: Likewise.
38219         * lib/unictype/blocks.h: Likewise.
38220         * lib/unictype/categ_C.h: Likewise.
38221         * lib/unictype/categ_Cf.h: Likewise.
38222         * lib/unictype/categ_Cn.h: Likewise.
38223         * lib/unictype/categ_L.h: Likewise.
38224         * lib/unictype/categ_Ll.h: Likewise.
38225         * lib/unictype/categ_Lm.h: Likewise.
38226         * lib/unictype/categ_Lo.h: Likewise.
38227         * lib/unictype/categ_Lu.h: Likewise.
38228         * lib/unictype/categ_M.h: Likewise.
38229         * lib/unictype/categ_Mc.h: Likewise.
38230         * lib/unictype/categ_Mn.h: Likewise.
38231         * lib/unictype/categ_N.h: Likewise.
38232         * lib/unictype/categ_Nd.h: Likewise.
38233         * lib/unictype/categ_Nl.h: Likewise.
38234         * lib/unictype/categ_No.h: Likewise.
38235         * lib/unictype/categ_P.h: Likewise.
38236         * lib/unictype/categ_Pd.h: Likewise.
38237         * lib/unictype/categ_Po.h: Likewise.
38238         * lib/unictype/categ_S.h: Likewise.
38239         * lib/unictype/categ_Sc.h: Likewise.
38240         * lib/unictype/categ_So.h: Likewise.
38241         * lib/unictype/categ_of.h: Likewise.
38242         * lib/unictype/combining.h: Likewise.
38243         * lib/unictype/ctype_alnum.h: Likewise.
38244         * lib/unictype/ctype_alpha.h: Likewise.
38245         * lib/unictype/ctype_graph.h: Likewise.
38246         * lib/unictype/ctype_lower.h: Likewise.
38247         * lib/unictype/ctype_print.h: Likewise.
38248         * lib/unictype/ctype_punct.h: Likewise.
38249         * lib/unictype/ctype_upper.h: Likewise.
38250         * lib/unictype/decdigit.h: Likewise.
38251         * lib/unictype/digit.h: Likewise.
38252         * lib/unictype/numeric.h: Likewise.
38253         * lib/unictype/pr_alphabetic.h: Likewise.
38254         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38255         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38256         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38257         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38258         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38259         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38260         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38261         * lib/unictype/pr_combining.h: Likewise.
38262         * lib/unictype/pr_composite.h: Likewise.
38263         * lib/unictype/pr_currency_symbol.h: Likewise.
38264         * lib/unictype/pr_dash.h: Likewise.
38265         * lib/unictype/pr_decimal_digit.h: Likewise.
38266         * lib/unictype/pr_deprecated.h: Likewise.
38267         * lib/unictype/pr_diacritic.h: Likewise.
38268         * lib/unictype/pr_extender.h: Likewise.
38269         * lib/unictype/pr_grapheme_base.h: Likewise.
38270         * lib/unictype/pr_grapheme_extend.h: Likewise.
38271         * lib/unictype/pr_grapheme_link.h: Likewise.
38272         * lib/unictype/pr_id_continue.h: Likewise.
38273         * lib/unictype/pr_id_start.h: Likewise.
38274         * lib/unictype/pr_ideographic.h: Likewise.
38275         * lib/unictype/pr_ignorable_control.h: Likewise.
38276         * lib/unictype/pr_logical_order_exception.h: Likewise.
38277         * lib/unictype/pr_lowercase.h: Likewise.
38278         * lib/unictype/pr_numeric.h: Likewise.
38279         * lib/unictype/pr_other_alphabetic.h: Likewise.
38280         * lib/unictype/pr_punctuation.h: Likewise.
38281         * lib/unictype/pr_sentence_terminal.h: Likewise.
38282         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38283         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38284         * lib/unictype/pr_unified_ideograph.h: Likewise.
38285         * lib/unictype/pr_uppercase.h: Likewise.
38286         * lib/unictype/pr_xid_continue.h: Likewise.
38287         * lib/unictype/pr_xid_start.h: Likewise.
38288         * lib/unictype/pr_zero_width.h: Likewise.
38289         * lib/unictype/scripts.h: Likewise.
38290         * lib/unictype/scripts_byname.gperf: Likewise.
38291         * lib/unictype/sy_java_ident.h: Likewise.
38292         * lib/unigbrk/gbrkprop.h: Likewise.
38293         * lib/unilbrk/lbrkprop1.h: Likewise.
38294         * lib/unilbrk/lbrkprop2.h: Likewise.
38295         * lib/unilbrk/lbrktables.h: Likewise.
38296         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
38297         LBP_CP. Implement rule LB30.
38298         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
38299         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
38300         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
38301         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
38302         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
38303         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
38304         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
38305         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
38306         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
38307         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
38308         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
38309         bits instead of 16 bits in the code1 and code2 of each composition
38310         rule.
38311         (uc_composition): Update for Unicode 5.2.0.
38312         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
38313         * lib/uninorm/decomposition-table2.h: Likewise.
38314         * lib/uniwbrk/wbrkprop.h: Likewise.
38315         * tests/unicase/test-cased.c: Likewise.
38316         * tests/unicase/test-ignorable.c: Likewise.
38317         * tests/unicase/test-uc_tolower.c: Likewise.
38318         * tests/unicase/test-uc_totitle.c: Likewise.
38319         * tests/unicase/test-uc_toupper.c: Likewise.
38320         * tests/unictype/test-categ_C.c: Likewise.
38321         * tests/unictype/test-categ_Cf.c: Likewise.
38322         * tests/unictype/test-categ_Cn.c: Likewise.
38323         * tests/unictype/test-categ_L.c: Likewise.
38324         * tests/unictype/test-categ_Ll.c: Likewise.
38325         * tests/unictype/test-categ_Lm.c: Likewise.
38326         * tests/unictype/test-categ_Lo.c: Likewise.
38327         * tests/unictype/test-categ_Lu.c: Likewise.
38328         * tests/unictype/test-categ_M.c: Likewise.
38329         * tests/unictype/test-categ_Mc.c: Likewise.
38330         * tests/unictype/test-categ_Mn.c: Likewise.
38331         * tests/unictype/test-categ_N.c: Likewise.
38332         * tests/unictype/test-categ_Nd.c: Likewise.
38333         * tests/unictype/test-categ_Nl.c: Likewise.
38334         * tests/unictype/test-categ_No.c: Likewise.
38335         * tests/unictype/test-categ_P.c: Likewise.
38336         * tests/unictype/test-categ_Pd.c: Likewise.
38337         * tests/unictype/test-categ_Po.c: Likewise.
38338         * tests/unictype/test-categ_S.c: Likewise.
38339         * tests/unictype/test-categ_Sc.c: Likewise.
38340         * tests/unictype/test-categ_So.c: Likewise.
38341         * tests/unictype/test-ctype_alnum.c: Likewise.
38342         * tests/unictype/test-ctype_alpha.c: Likewise.
38343         * tests/unictype/test-ctype_graph.c: Likewise.
38344         * tests/unictype/test-ctype_lower.c: Likewise.
38345         * tests/unictype/test-ctype_print.c: Likewise.
38346         * tests/unictype/test-ctype_punct.c: Likewise.
38347         * tests/unictype/test-ctype_upper.c: Likewise.
38348         * tests/unictype/test-decdigit.h: Likewise.
38349         * tests/unictype/test-digit.h: Likewise.
38350         * tests/unictype/test-numeric.h: Likewise.
38351         * tests/unictype/test-pr_alphabetic.c: Likewise.
38352         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38353         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38354         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38355         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38356         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38357         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38358         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38359         * tests/unictype/test-pr_combining.c: Likewise.
38360         * tests/unictype/test-pr_composite.c: Likewise.
38361         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38362         * tests/unictype/test-pr_dash.c: Likewise.
38363         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38364         * tests/unictype/test-pr_deprecated.c: Likewise.
38365         * tests/unictype/test-pr_diacritic.c: Likewise.
38366         * tests/unictype/test-pr_extender.c: Likewise.
38367         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38368         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38369         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38370         * tests/unictype/test-pr_id_continue.c: Likewise.
38371         * tests/unictype/test-pr_id_start.c: Likewise.
38372         * tests/unictype/test-pr_ideographic.c: Likewise.
38373         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38374         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38375         * tests/unictype/test-pr_lowercase.c: Likewise.
38376         * tests/unictype/test-pr_numeric.c: Likewise.
38377         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38378         * tests/unictype/test-pr_punctuation.c: Likewise.
38379         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38380         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38381         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38382         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38383         * tests/unictype/test-pr_uppercase.c: Likewise.
38384         * tests/unictype/test-pr_xid_continue.c: Likewise.
38385         * tests/unictype/test-pr_xid_start.c: Likewise.
38386         * tests/unictype/test-pr_zero_width.c: Likewise.
38387         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
38388         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
38389         changed behaviour: line breaking is now disallowed between a letter
38390         or '=' and '('.
38391         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38392         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38393         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38394         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
38395         * tests/uniwidth/test-uc_width2.sh: Same updates as in
38396         lib/uniwidth/width.c.
38397         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
38398         without comments, but with the original copyright notice.
38399         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
38400         changes.
38401         * lib/unictype/categ_Cc.h: Likewise.
38402         * lib/unictype/categ_Co.h: Likewise.
38403         * lib/unictype/categ_Cs.h: Likewise.
38404         * lib/unictype/categ_Lt.h: Likewise.
38405         * lib/unictype/categ_Me.h: Likewise.
38406         * lib/unictype/categ_Pc.h: Likewise.
38407         * lib/unictype/categ_Pe.h: Likewise.
38408         * lib/unictype/categ_Pf.h: Likewise.
38409         * lib/unictype/categ_Pi.h: Likewise.
38410         * lib/unictype/categ_Ps.h: Likewise.
38411         * lib/unictype/categ_Sk.h: Likewise.
38412         * lib/unictype/categ_Sm.h: Likewise.
38413         * lib/unictype/categ_Z.h: Likewise.
38414         * lib/unictype/categ_Zl.h: Likewise.
38415         * lib/unictype/categ_Zp.h: Likewise.
38416         * lib/unictype/categ_Zs.h: Likewise.
38417         * lib/unictype/ctype_blank.h: Likewise.
38418         * lib/unictype/ctype_cntrl.h: Likewise.
38419         * lib/unictype/ctype_digit.h: Likewise.
38420         * lib/unictype/ctype_space.h: Likewise.
38421         * lib/unictype/ctype_xdigit.h: Likewise.
38422         * lib/unictype/mirror.h: Likewise.
38423         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38424         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38425         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38426         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38427         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38428         * lib/unictype/pr_bidi_control.h: Likewise.
38429         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38430         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38431         * lib/unictype/pr_bidi_pdf.h: Likewise.
38432         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38433         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38434         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38435         * lib/unictype/pr_format_control.h: Likewise.
38436         * lib/unictype/pr_hex_digit.h: Likewise.
38437         * lib/unictype/pr_hyphen.h: Likewise.
38438         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38439         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38440         * lib/unictype/pr_iso_control.h: Likewise.
38441         * lib/unictype/pr_join_control.h: Likewise.
38442         * lib/unictype/pr_left_of_pair.h: Likewise.
38443         * lib/unictype/pr_line_separator.h: Likewise.
38444         * lib/unictype/pr_math.h: Likewise.
38445         * lib/unictype/pr_non_break.h: Likewise.
38446         * lib/unictype/pr_not_a_character.h: Likewise.
38447         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38448         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38449         * lib/unictype/pr_other_id_continue.h: Likewise.
38450         * lib/unictype/pr_other_id_start.h: Likewise.
38451         * lib/unictype/pr_other_lowercase.h: Likewise.
38452         * lib/unictype/pr_other_math.h: Likewise.
38453         * lib/unictype/pr_other_uppercase.h: Likewise.
38454         * lib/unictype/pr_paired_punctuation.h: Likewise.
38455         * lib/unictype/pr_paragraph_separator.h: Likewise.
38456         * lib/unictype/pr_pattern_syntax.h: Likewise.
38457         * lib/unictype/pr_pattern_white_space.h: Likewise.
38458         * lib/unictype/pr_private_use.h: Likewise.
38459         * lib/unictype/pr_quotation_mark.h: Likewise.
38460         * lib/unictype/pr_radical.h: Likewise.
38461         * lib/unictype/pr_soft_dotted.h: Likewise.
38462         * lib/unictype/pr_space.h: Likewise.
38463         * lib/unictype/pr_titlecase.h: Likewise.
38464         * lib/unictype/pr_variation_selector.h: Likewise.
38465         * lib/unictype/pr_white_space.h: Likewise.
38466         * lib/unictype/sy_c_ident.h: Likewise.
38467         * lib/unictype/sy_c_whitespace.h: Likewise.
38468         * lib/unictype/sy_java_whitespace.h: Likewise.
38469         * modules/uni*/*: Bump version number of expected libunistring version.
38470         Reported by Simon Josefsson.
38472 2011-01-09  Karl Heuer  <kwzh@gnu.org>
38474         useless-if-before-free: fix typo in --help and make the internal,
38475         automatic version date update process work once again.
38476         --help output contained a NUL character instead of the
38477         backslash-zero that was intended.  Also, the "must lie within
38478         the first 8 lines" line is on line 9, and hence not getting
38479         automatically updated.
38480         * build-aux/useless-if-before-free: Fix the former by adding a
38481         backslash, and the latter by condensing the three lines of what-it-does
38482         to a single line, leaving one line of slack for the future.
38484 2011-01-09  Bruno Haible  <bruno@clisp.org>
38486         uniwidth/width: Fix width of U+1D173..U+1D17A.
38487         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
38488         symbolic_width, output_width_property_test): New functions.
38489         (main): Invoke output_nonspacing_property, output_width_property_test.
38490         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
38491         U+1D173..U+1D17A.
38492         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
38493         1.
38494         * modules/uniwidth/*: Bump version number of expected libunistring
38495         version.
38496         * modules/unilbrk/*: Likewise.
38498 2011-01-08  Bruno Haible  <bruno@clisp.org>
38500         uninorm tests: Preserve copyright of Unicode data file.
38501         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
38502         Mention modifications.
38504 2011-01-08  Bruno Haible  <bruno@clisp.org>
38506         gen-uni-tables: Prepare for Unicode 5.2.0.
38507         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
38508         (debug_output_lbp, output_lbp): Update.
38510 2011-01-08  Bruno Haible  <bruno@clisp.org>
38512         unilbrk: Clarify gen-uni-tables.c code.
38513         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
38514         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
38515         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
38517 2011-01-07  Bruno Haible  <bruno@clisp.org>
38519         strtod: Restore errno when successfully parsing Infinity or NaN.
38520         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
38521         restore the original errno.
38523 2011-01-07  Bruno Haible  <bruno@clisp.org>
38525         remove test: Avoid failure on HP-UX 11.
38526         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
38528 2011-01-07  Bruno Haible  <bruno@clisp.org>
38530         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
38531         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
38532         error code.
38534 2011-01-07  Pádraig Brady  <P@draigBrady.com>
38536         ignore-value: fixup comments, and add Eric Blake
38537         as an author since he rewrote the macros.
38538         * lib/ignore-value.h (ignore_value):  State that
38539         we now support aggregates.  Also specify exactly
38540         when the GCC warn_unused_result feature was added.
38542 2011-01-06  Eric Blake  <eblake@redhat.com>
38544         ignore-value: support aggregate types
38545         * lib/ignore-value.h (ignore_value): Provide separate gcc
38546         definition.
38547         * modules/ignore-value-tests: New test module.
38548         * tests/test-ignore-value.c: New test.
38550         maint.mk: improve sc_prohibit_strcmp regex
38551         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
38552         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
38553         definition of STRNEQ.
38555         signal: work around Haiku issue with SIGBUS
38556         * lib/siglist.h: Add comment.
38557         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
38558         strsignal's favoring of SIGSEGV.
38559         * tests/test-signal.c (main): Avoid test failure.
38560         * doc/posix-headers/signal.texi (signal.h): Document the issue.
38561         Reported by Scott McCreary.
38563         maint.mk: add pre-release check to ensure submodule commits are public
38564         * top/maint.mk (public-submodule-commit): New rule.
38565         (submodule-checks): New variable.
38566         (alpha beta stable): Depend on the variable.
38568 2011-01-05  Pádraig Brady  <P@draigBrady.com>
38569         and Jim Meyering  <meyering@redhat.com>
38571         ignore-value: make ignore_value more generic; deprecate ignore_ptr
38572         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
38573         (ATTRIBUTE_DEPRECATED): Define.
38574         (_ignore_case): New function.
38575         (ignore_value): New macro, to replace the old function.
38576         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
38577         * modules/ignore-value (Depends-on): Add stdint.
38579 2011-01-04  Eric Blake  <eblake@redhat.com>
38581         doc: regenerate INSTALL
38582         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
38583         @firstparagraphindent support, now that autoconf dropped it.
38584         (INSTALL_PRELUDE): Reinstate old macro.
38585         * doc/install.texi: Resync from autoconf.
38586         * doc/INSTALL: Reflect recent autoconf update.
38587         * doc/INSTALL.ISO: Likewise.
38588         * doc/INSTALL.UTF-8: Likewise.
38589         Reported by Karl Berry.
38591 2011-01-04  Bruce Korb  <address@hidden>
38593         git-version-gen: avoid a sub-shell
38594         * build-aux/git-version-gen: Redirect stderr in `...` via
38595         "exec 2>...", rather than via an added sub-shell.
38597 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
38599         git-version-gen: use (...) rather than sh -c '...'
38600         * build-aux/git-version-gen: Rather than hard-coding a shell's name
38601         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
38603 2011-01-03  Jim Meyering  <meyering@redhat.com>
38605         git-version-gen: convert leading TABs to spaces
38606         * build-aux/git-version-gen: Expand leading TABs.
38608         git-version-gen: handle failed "git rev-list"
38609         * build-aux/git-version-gen: Rather than leaking a "fatal" error
38610         from git and proceeding as if it had succeeded but printed no SHA1
38611         checksums, suppress the diagnostic and handle the failure.
38612         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
38614         git-version-gen: include command name in one more diagnostic
38615         * build-aux/git-version-gen: When the required .tarball-version file
38616         was missing or unreadable, you might see the diagnostic from "cat",
38617         but no trace of the name of the invoking script.  Now, you still see
38618         the diagnostic from cat, but also get one from "git-version-gen: ".
38619         Inspired by a patch from Bruce Korb.
38621         update-copyright: adjust test to match changed code
38622         * tests/test-update-copyright.sh: Change test's expected output
38623         to match new actual output.
38625 2011-01-02  Bruno Haible  <bruno@clisp.org>
38627         getlogin_r: Avoid test failure on HP-UX 11.
38628         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
38629         ERANGE when the second argument is zero.
38630         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
38631         portability problem.
38633 2011-01-02  Bruce Korb  <bkorb@gnu.org>
38635         * build-aux/update-copyright: doc Simon's changes
38637 2011-01-02  Simon Josefsson  <simon@josefsson.org>
38639         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
38640         environment variable.
38642 2011-01-02  Bruno Haible  <bruno@clisp.org>
38644         unigbrk: Avoid gcc warnings.
38645         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
38646         unused variable.
38647         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
38648         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
38649         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
38650         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
38651         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
38652         Change type of first argument to 'const char *'.
38653         (main): Remove unused variable.
38654         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
38655         type of first argument to 'const char *'.
38656         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
38657         Likewise.
38658         (main): Change type of variable 's'.
38659         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
38660         to 'int'.
38662 2011-01-02  Bruno Haible  <bruno@clisp.org>
38664         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
38665         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
38666         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
38667         bug.
38668         * lib/pwrite.c: Undo 2010-12-31 patch.
38669         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
38671 2011-01-02  Bruno Haible  <bruno@clisp.org>
38673         pread: Fix test whether it works.
38674         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
38676 2011-01-02  Bruno Haible  <bruno@clisp.org>
38678         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
38679         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
38680         ends in "6". Don't require a specific month name. Try also the locale
38681         names found on HP-UX 11 and Solaris 7.
38683 2011-01-02  Bruno Haible  <bruno@clisp.org>
38685         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
38686         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
38687         C linkage.
38688         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
38690 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
38692         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
38693         for consistency, since the "cluster" term is not used elsewhere.
38694         * lib/unigbrk.in.h: Update name.
38695         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
38696         * lib/unigbrk/u16-grapheme-next.c: Update name.
38697         * lib/unigbrk/u16-grapheme-prev.c: Update name.
38698         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
38699         * lib/unigbrk/u32-grapheme-next.c: Update name.
38700         * lib/unigbrk/u32-grapheme-prev.c: Update name.
38701         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
38702         * lib/unigbrk/u8-grapheme-next.c: Update name.
38703         * lib/unigbrk/u8-grapheme-prev.c: Update name.
38704         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
38705         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
38706         Suggested by Bruno Haible.
38708 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
38710         Remove module 'u8-grapheme-len' as too redundant with
38711         'u8-grapheme-next'.
38712         * modules/unigbrk/u8-grapheme-len: Delete file.
38713         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
38714         * lib/unigbrk.in.h: Remove prototype for deleted function.
38715         * lib/unigbrk/u8-grapheme-len.c: Delete file.
38716         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
38718         Remove module 'u16-grapheme-len' as too redundant with
38719         'u16-grapheme-next'.
38720         * modules/unigbrk/u16-grapheme-len: Delete file.
38721         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
38722         * lib/unigbrk.in.h: Remove prototype for deleted function.
38723         * lib/unigbrk/u16-grapheme-len.c: Delete file.
38724         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
38726         Remove module 'u32-grapheme-len' as too redundant with
38727         'u32-grapheme-next'.
38728         * modules/unigbrk/u32-grapheme-len: Delete file.
38729         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
38730         * lib/unigbrk.in.h: Remove prototype for deleted function.
38731         * lib/unigbrk/u32-grapheme-len.c: Delete file.
38732         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
38734         Suggested by Bruno Haible.
38736 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
38738         * unigbrk.in.h: Fix typo: "ben" => "been".
38739         Reported by Bruno Haible.
38741 2011-01-01  Jim Meyering  <meyering@redhat.com>
38743         maint: update almost all copyright ranges to include 2011
38744         Run the new "make update-copyright" rule.
38746 2011-01-01  Jim Meyering  <meyering@redhat.com>
38748         maint: update-copyright: exempt doc/INSTALL*
38749         * Makefile (update-copyright): Also exclude doc/INSTALL*,
38750         since they are generated.  Suggested by Bruno Haible.
38752 2011-01-01  Jim Meyering  <meyering@redhat.com>
38754         maint: refine the update-copyright rule
38755         * Makefile (update-copyright): Also exclude any file that includes
38756         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
38757         code that merely generates the comment.
38759 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
38761         New module 'u8-grapheme-len'.
38762         * modules/unigbrk/u8-grapheme-len: New file.
38763         * modules/unigbrk/u8-grapheme-len-tests: New file.
38764         * lib/unigbrk.in.h: Add prototype for new function.
38765         * lib/unigbrk/u8-grapheme-len.c: New file.
38766         * tests/unigbrk/test-u8-grapheme-len.c: New file.
38768         New module 'u16-grapheme-len'.
38769         * modules/unigbrk/u16-grapheme-len: New file.
38770         * modules/unigbrk/u16-grapheme-len-tests: New file.
38771         * lib/unigbrk.in.h: Add prototype for new function.
38772         * lib/unigbrk/u16-grapheme-len.c: New file.
38773         * tests/unigbrk/test-u16-grapheme-len.c: New file.
38775         New module 'u32-grapheme-len'.
38776         * modules/unigbrk/u32-grapheme-len: New file.
38777         * modules/unigbrk/u32-grapheme-len-tests: New file.
38778         * lib/unigbrk.in.h: Add prototype for new function.
38779         * lib/unigbrk/u32-grapheme-len.c: New file.
38780         * tests/unigbrk/test-u32-grapheme-len.c: New file.
38782         New module 'u8-grapheme-next'.
38783         * modules/unigbrk/u8-grapheme-next: New file.
38784         * modules/unigbrk/u8-grapheme-next-tests: New file.
38785         * lib/unigbrk.in.h: Add prototype for new function.
38786         * lib/unigbrk/u8-grapheme-next.c: New file.
38787         * tests/unigbrk/test-u8-grapheme-next.c: New file.
38789         New module 'u16-grapheme-next'.
38790         * modules/unigbrk/u16-grapheme-next: New file.
38791         * modules/unigbrk/u16-grapheme-next-tests: New file.
38792         * lib/unigbrk.in.h: Add prototype for new function.
38793         * lib/unigbrk/u16-grapheme-next.c: New file.
38794         * tests/unigbrk/test-u16-grapheme-next.c: New file.
38796         New module 'u32-grapheme-next'.
38797         * modules/unigbrk/u32-grapheme-next: New file.
38798         * modules/unigbrk/u32-grapheme-next-tests: New file.
38799         * lib/unigbrk.in.h: Add prototype for new function.
38800         * lib/unigbrk/u32-grapheme-next.c: New file.
38801         * tests/unigbrk/test-u32-grapheme-next.c: New file.
38803         New module 'u8-grapheme-prev'.
38804         * modules/unigbrk/u8-grapheme-prev: New file.
38805         * modules/unigbrk/u8-grapheme-prev-tests: New file.
38806         * lib/unigbrk.in.h: Add prototype for new function.
38807         * lib/unigbrk/u8-grapheme-prev.c: New file.
38808         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
38810         New module 'u16-grapheme-prev'.
38811         * modules/unigbrk/u16-grapheme-prev: New file.
38812         * modules/unigbrk/u16-grapheme-prev-tests: New file.
38813         * lib/unigbrk.in.h: Add prototype for new function.
38814         * lib/unigbrk/u16-grapheme-prev.c: New file.
38815         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
38817         New module 'u32-grapheme-prev'.
38818         * modules/unigbrk/u32-grapheme-prev: New file.
38819         * modules/unigbrk/u32-grapheme-prev-tests: New file.
38820         * lib/unigbrk.in.h: Add prototype for new function.
38821         * lib/unigbrk/u32-grapheme-prev.c: New file.
38822         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
38824         New module 'u8-grapheme-breaks'.
38825         * modules/unigbrk/u8-grapheme-breaks: New file.
38826         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
38827         * lib/unigbrk.in.h: Add prototype for new function.
38828         * lib/unigbrk/u8-grapheme-breaks.c: New file.
38829         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
38831         New module 'u16-grapheme-breaks'.
38832         * modules/unigbrk/u16-grapheme-breaks: New file.
38833         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
38834         * lib/unigbrk.in.h: Add prototype for new function.
38835         * lib/unigbrk/u16-grapheme-breaks.c: New file.
38836         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
38838         New module 'u32-grapheme-breaks'.
38839         * modules/unigbrk/u32-grapheme-breaks: New file.
38840         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
38841         * lib/unigbrk.in.h: Add prototype for new function.
38842         * lib/unigbrk/u32-grapheme-breaks.c: New file.
38843         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
38845         New module 'ulc-grapheme-breaks'.
38846         * modules/unigbrk/ulc-grapheme-breaks: New file.
38847         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
38848         * m4/locale-ar.m4: New file.
38849         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
38850         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
38851         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
38853 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
38855         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
38856         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
38857         modified how this file was generated before I initially submitted
38858         the module, but failed to regenerate it.  This meant that several
38859         of the level2 entries were wrong.
38860         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
38861         Remove the division-by-2 that is folded into the table now that
38862         gbrkprop.h has been regenerated properly.  Now -1 entries are
38863         handled correctly.
38865         New module 'unigbrk/uc-gbrk-prop-tests'.
38866         * modules/unigbrk/uc-gbrk-prop-tests: New file.
38867         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
38868         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
38869         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
38871 2011-01-01  Bruno Haible  <bruno@clisp.org>
38873         Avoid use of hexadecimal escapes.
38874         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
38875         instead of hexadecimal escapes.
38877 2011-01-01  Jim Meyering  <meyering@redhat.com>
38879         maint: new rule to update copyright year ranges
38880         * Makefile (update-copyright): New rule.
38882         maint: indent with TABs in Makefile
38883         * Makefile: Expand leading sequences of spaces to TABs
38885         version-etc: update the copyright year it reports
38886         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
38888 2010-12-31  Bruno Haible  <bruno@clisp.org>
38890         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
38891         * lib/isfinite.c (zerof, zerod, zerol): New variables.
38892         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
38893         zero.
38895 2010-12-31  Bruno Haible  <bruno@clisp.org>
38897         pwrite: Work around HP-UX 11.11 bug.
38898         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
38899         works and set REPLACE_PWRITE if not.
38900         * lib/pwrite.c (pwrite): Add an implementation that uses the system
38901         function.
38902         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
38904 2010-12-31  Bruno Haible  <bruno@clisp.org>
38906         pread: Work around HP-UX 11 bugs.
38907         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
38908         and set REPLACE_PREAD if not.
38909         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
38911 2010-12-31  Eric Blake  <eblake@redhat.com>
38913         nl_langinfo: fix YESEXPR on Irix 6.5
38914         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
38915         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
38916         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
38917         it.
38919 2010-12-31  Bruno Haible  <bruno@clisp.org>
38921         iconv: Document HP-UX 11 bug.
38922         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
38924 2010-12-31  Bruno Haible  <bruno@clisp.org>
38926         ldexpl: Fix link error on HP-UX 11.
38927         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
38928         LDEXPL_LIBM, using $ISNANL_LIBM.
38930 2010-12-31  Eric Blake  <eblake@redhat.com>
38932         ftello: avoid compilation failure with SunStudio c89
38933         * lib/ftello.c (ftello): Use lseek, not llseek.
38935         tests: avoid failing coreutils tests on cygwin
38936         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
38937         (create_exe_shims_): Return 0 when skipping.
38939 2010-12-31  Bruno Haible  <bruno@clisp.org>
38941         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
38942         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
38944 2010-12-31  Bruno Haible  <bruno@clisp.org>
38946         waitpid: Fix link error in C++ mode.
38947         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
38949 2010-12-31  Bruno Haible  <bruno@clisp.org>
38951         isnan: Use GCC built-ins when possible.
38952         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
38953         __builtin_isnan.
38954         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
38955         (isnan): Define using GCC built-ins for GCC >= 4.0.
38957 2010-12-31  Bruno Haible  <bruno@clisp.org>
38959         isnand: Fix mistake.
38960         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
38961         __builtin_isnand.
38963 2010-12-31  Bruno Haible  <bruno@clisp.org>
38965         open: Avoid C++ error on HP-UX 11.
38966         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
38968 2010-12-31  Bruno Haible  <bruno@clisp.org>
38970         time_r: Add missing declarations on HP-UX 11.
38971         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
38972         instead of HAVE_LOCALTIME_R.
38973         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
38974         HAVE_LOCALTIME_R always.
38975         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
38976         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
38977         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
38978         HAVE_LOCALTIME_R.
38979         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
38980         * doc/posix-functions/localtime_r.texi: Likewise.
38982 2010-12-29  Eric Blake  <eblake@redhat.com>
38984         mountlist: tweak previous commit
38985         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
38986         Reported by Paul Eggert.
38988         mountlist: fix local drive detection on cygwin
38989         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
38990         that works for cygwin.
38992 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38994         ftoastr, snprintf: ftoastr + snprintf module
38995         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
38996         since the snprintf module now should be good enough here.
38997         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
38998         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
38999         and gl_MODULE_INDICATOR([snprintf]), but the former enables
39000         GNULIB_SNPRINTF only for the test directory, and the latter
39001         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
39002         seems to suffice by itself.
39004 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39006         alloca: one step towards thread-safety
39007         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
39008         need for a static variable.  All callers changed.  This does not
39009         make the alloca replacement thread-safe, but it's one step.
39011         tests: minor indenting change
39012         * tests/init.sh: Sync from coreutils housekeeping patch
39013         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
39014         to keep lines within 80 columns.
39016 2010-12-28  Jim Meyering  <meyering@redhat.com>
39018         regex: don't infloop on persistent failing calloc
39019         * lib/regexec.c (build_trtable): Return failure indication upon
39020         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
39021         In glibc, this was fixed for version 2.13:
39022         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
39024 2010-12-28  Bruno Haible  <bruno@clisp.org>
39025             Paul Eggert <eggert@cs.ucla.edu>
39027         linkat: Make implementation robust against system behaviour variations.
39028         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
39029         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
39030         way, and to -2 if it needs a generic runtime test.
39031         * lib/linkat.c (solaris_optimized_link_immediate,
39032         solaris_optimized_link_follow): New functions.
39033         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
39034         (check_same_link): Use it.
39036 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
39038         New module 'unigbrk/base'.
39039         * modules/unigbrk/base: New file.
39040         * lib/unigbrk.in.h: New file.
39042         New module 'unigbrk/uc-gbrk-prop'.
39043         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
39044         * modules/unigbrk/uc-gbrk-prop: New file.
39045         * lib/unigbrk/gbrkprop.h: New file.
39046         * lib/unigbrk/uc-gbrk-prop.c: New file.
39048         New module 'unigbrk/uc-is-grapheme-break'.
39049         * modules/unigbrk/uc-is-grapheme-break: New file.
39050         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
39051         * lib/unigbrk/uc-is-grapheme-break.c: New file.
39052         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
39053         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
39054         * tests/unigbrk/GraphemeBreakTest.txt: New file.
39056         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
39058 2010-12-27  Bruno Haible  <bruno@clisp.org>
39060         linkat test: Avoid failure on Solaris 11 2010-11.
39061         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
39063 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39065         utimens: work around glibc rounding bug on more platforms
39066         * lib/utimens.c (fdutimens): Work around rounding bug even if
39067         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
39068         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
39070 2010-12-27  Bruno Haible  <bruno@clisp.org>
39072         select tests: Improve comments.
39073         * tests/test-select.c (do_select): Add comments.
39075 2010-12-27  Bruno Haible  <bruno@clisp.org>
39077         select tests: Safer way of handling timeout.
39078         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
39079         at every invocation.
39081 2010-12-27  Bruno Haible  <bruno@clisp.org>
39083         select tests: Use 'bool' where appropriate.
39084         * tests/test-select.c (connect_to_socket): Change argument type to
39085         'bool'.
39087 2010-12-27  Bruno Haible  <bruno@clisp.org>
39089         select tests: Use existing modules.
39090         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
39091         (configure.ac): Don't test for unistd.h.
39092         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
39093         declared in <unistd.h>.
39095 2010-12-27  Bruno Haible  <bruno@clisp.org>
39097         mbrtowc: Work around a Solaris 7 bug.
39098         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
39099         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
39100         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
39101         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
39102         MBRTOWC_NULL_ARG1_BUG.
39103         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
39104         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
39105         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
39106         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
39108 2010-12-27  Jim Meyering  <meyering@redhat.com>
39110         read-file.c: tweak syntax
39111         * lib/read-file.c (fread_file): Remove space after "*" in function
39112         definitions.
39114 2010-12-27  Bruno Haible  <bruno@clisp.org>
39116         times test: Avoid gcc warnings on OSF/1.
39117         * tests/test-times.c (main): Cast printf arguments from clock_t to
39118         'long int'.
39120 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39122         utimens: work around glibc rounding bug on older Linux kernels
39123         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
39124         on Linux with a glibc whose utimes might not work, then work
39125         around a longstanding glibc bug involving rounding rather than
39126         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
39127         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
39129 2010-12-26  Bruno Haible  <bruno@clisp.org>
39131         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
39132         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
39133         _GL_CXXALIAS_SYS.
39134         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39136 2010-12-26  Bruno Haible  <bruno@clisp.org>
39138         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
39139         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
39140         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
39141         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
39142         looking for the declaration.
39143         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
39144         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
39145         problem.
39146         * doc/posix-functions/inet_pton.texi: Likewise.
39148 2010-12-26  Bruno Haible  <bruno@clisp.org>
39150         arpa_inet: Use the common idioms with C++ support.
39151         * lib/arpa_inet.in.h: Include c++defs.h.
39152         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
39153         support.
39154         * modules/arpa_inet (Depends-on): Add c++defs.
39155         (Makefile.am): Substitute the contents of c++defs.h.
39156         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
39157         * modules/arpa_inet-c++-tests: New file.
39158         * tests/test-arpa_inet-c++.cc: New file.
39160 2010-12-25  Bruno Haible  <bruno@clisp.org>
39162         Fix more C++ link errors on Solaris 8.
39163         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
39164         $(LIB_EACCESS).
39165         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
39166         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
39167         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
39168         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
39169         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
39171 2010-12-25  Bruno Haible  <bruno@clisp.org>
39173         printf-posix: Fix link error when a non-GCC compiler is used.
39174         * lib/stdio.in.h (printf): When not using GCC, override printf
39175         correctly.
39176         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39178 2010-12-25  Bruno Haible  <bruno@clisp.org>
39180         strerror_r-posix: Update doc.
39181         * doc/posix-functions/strerror_r.texi: Update doc about the return
39182         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
39184 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39186         utimens: simplify the logic of the previous change
39187         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
39188         This should not affect whether the test succeeds or fails.
39190         utimens: configure better on hosts with NFS clock skew
39191         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
39192         uses the clock of the local host.  It might use the clock of the
39193         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
39194         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
39196 2010-12-25  Bruno Haible  <bruno@clisp.org>
39198         ptsname test: Avoid failure on Solaris.
39199         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
39200         open a pseudo-terminal; don't use BSD-style ptys.
39201         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
39203 2010-12-25  Bruno Haible  <bruno@clisp.org>
39205         ptsname: Avoid ERANGE failure on some systems.
39206         * lib/ptsname.c (buffer): Increase size.
39208 2010-12-25  Bruno Haible  <bruno@clisp.org>
39210         rename, renameat: Avoid test failures at NFS mounted locations.
39211         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
39212         so that subsequent mkdir calls succeed.
39214 2010-12-25  Bruno Haible  <bruno@clisp.org>
39216         iswblank: Fix C++ link error on Solaris 8.
39217         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
39218         _GL_FUNCDECL_SYS.
39220 2010-12-25  Bruno Haible  <bruno@clisp.org>
39222         unistd: Fix C++ link error on Solaris 8.
39223         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
39225 2010-12-25  Bruno Haible  <bruno@clisp.org>
39227         readlink doc: Mention an old glibc bug.
39228         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
39230 2010-12-25  Bruno Haible  <bruno@clisp.org>
39232         fcntl-h: Fix for use of C++ on glibc systems.
39233         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
39234         also on glibc systems in C++ mode.
39235         Reported by Gary V. Vaughan <gary@gnu.org>.
39237 2010-12-25  Bruno Haible  <bruno@clisp.org>
39239         roundl-ieee: Make it work on OSF/1 5.1 with cc.
39240         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
39242 2010-12-25  Bruno Haible  <bruno@clisp.org>
39244         truncl-ieee: Make it work on OSF/1 5.1 with cc.
39245         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
39246         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
39247         test whether truncl works according to ISO C 99 with IEC 60559.
39248         * m4/truncl-ieee.m4: New file.
39249         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
39250         m4/signbit.m4.
39251         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
39253 2010-12-25  Bruno Haible  <bruno@clisp.org>
39255         ceill-ieee: Make it work on OSF/1 5.1 with cc.
39256         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
39257         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
39258         test whether ceill works according to ISO C 99 with IEC 60559.
39259         * m4/ceill-ieee.m4: New file.
39260         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
39261         m4/signbit.m4.
39262         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
39264 2010-12-25  Bruno Haible  <bruno@clisp.org>
39266         Ensure all prerequisites of <wchar.h> are included.
39267         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
39268         before <wchar.h>.
39269         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
39270         gl_MBRLEN_NUL_RETVAL): Likewise.
39271         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39272         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
39273         AC_FUNC_MBRTOWC): Likewise.
39274         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39275         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
39276         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
39277         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39278         Likewise.
39279         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39280         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
39281         (gl_WCHAR_H): Improve comments.
39282         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
39284 2010-12-25  Bruno Haible  <bruno@clisp.org>
39286         strtok_r: Fix C syntax error in autoconf macro.
39287         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
39288         characters in test program.
39290 2010-12-24  Bruno Haible  <bruno@clisp.org>
39292         ceil, trunc, round: Fix gcc warnings.
39293         * lib/ceil.c (MIN): Undefine before redefining.
39294         * lib/trunc.c (MIN): Likewise.
39295         * lib/round.c (MIN): Likewise.
39296         Include <math.h> first.
39298 2010-12-24  Bruno Haible  <bruno@clisp.org>
39300         select tests: Avoid failures on OSF/1 5.1.
39301         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
39302         failure of closing the last socket; it may fail with ECONNRESET.
39304 2010-12-24  Eric Blake  <eblake@redhat.com>
39306         stdint: avoid HP-UX 10.20 preprocessor bug
39307         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
39308         than #if.
39309         * tests/test-floor2.c (main): Likewise.
39310         Reported by Peter O'Gorman.
39312         pipe: make obsoletion transition easier
39313         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
39314         * modules/pipe (Files): Include revived file.
39315         (Include): Drop reference, to mirror getdate's behavior.
39317 2010-12-24  Bruno Haible  <bruno@clisp.org>
39319         sys_socket: Hide mismatch of declarations on NonStop Kernel.
39320         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
39321         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
39322         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39324 2010-12-24  Bruno Haible  <bruno@clisp.org>
39326         gethostname: Ensure declaration on NonStop Kernel.
39327         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
39328         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39330 2010-12-24  Bruno Haible  <bruno@clisp.org>
39332         sys_select: Ensure all necessary types on NonStop Kernel.
39333         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
39334         include <sys/time.h>.
39335         * doc/posix-headers/sys_select.texi: Mention that it's missing on
39336         NonStop Kernel.
39337         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39339 2010-12-24  Bruno Haible  <bruno@clisp.org>
39341         sys_select: Remove unneeded include.
39342         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
39343         have <sys/select.h>.
39345 2010-12-24  Bruno Haible  <bruno@clisp.org>
39347         gethostname: Provide a fallback for HOST_NAME_MAX.
39348         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
39349         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
39350         instead.
39351         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39353 2010-12-24  Bruno Haible  <bruno@clisp.org>
39355         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
39356         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
39357         (SA_RESTART): Likewise.
39358         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39360 2010-12-24  Bruno Haible  <bruno@clisp.org>
39362         signal: Define NSIG.
39363         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
39364         * tests/test-signal.c (nsig): New variable.
39365         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39367 2010-12-24  Bruno Haible  <bruno@clisp.org>
39369         rename, renameat: Avoid test failures on OSF/1 5.1.
39370         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
39371         alternative error codes.
39372         * tests/test-renameat.c (main): Likewise.
39374 2010-12-24  Bruno Haible  <bruno@clisp.org>
39376         *printf: Detect large precisions bug on Solaris 10/SPARC.
39377         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
39378         by Paul Eggert.
39379         * tests/test-snprintf-posix.h (test_function): Add this test code here
39380         too.
39381         * tests/test-sprintf-posix.h (test_function): Likewise.
39382         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39383         * tests/test-vasprintf-posix.c (test_function): Likewise.
39384         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
39385         around by gnulib.
39386         * doc/posix-functions/printf.texi: Likewise.
39387         * doc/posix-functions/snprintf.texi: Likewise.
39388         * doc/posix-functions/sprintf.texi: Likewise.
39389         * doc/posix-functions/vfprintf.texi: Likewise.
39390         * doc/posix-functions/vprintf.texi: Likewise.
39391         * doc/posix-functions/vsnprintf.texi: Likewise.
39392         * doc/posix-functions/vsprintf.texi: Likewise.
39393         * doc/posix-functions/dprintf.texi: Undo last commit.
39394         * doc/posix-functions/vdprintf.texi: Likewise.
39396 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39398         tests: port test-fdutimensat.c to Solaris 8
39399         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
39400         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
39401         On Solaris 8, it fails with errno == ENOSYS, because there is no
39402         futimens (so it can't use the fd), and there is no lutimens (so it
39403         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
39405         vsnprintf: make more consistent with snprintf; doc fixes
39407         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
39408         the byte count return problem was promoted from the snprintf-posix
39409         to the snprintf module.
39410         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
39411         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
39412         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
39413         * tests/test-snprintf.c (main): Check the byte count returned.
39414         * tests/test-vsnprintf.c (main): Likewise.
39416 2010-12-23  Eric Blake  <eblake@redhat.com>
39418         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
39419         * modules/sigpipe (License): Relax license.
39421 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39423         doc: document Solaris printf bug with large float precisions
39424         * doc/posix-functions/dprintf.texi (dprintf):
39425         * doc/posix-functions/fprintf.texi (fprintf):
39426         * doc/posix-functions/printf.texi (printf):
39427         * doc/posix-functions/snprintf.texi (snprintf):
39428         * doc/posix-functions/sprintf.texi (sprintf):
39429         * doc/posix-functions/vdprintf.texi (vdprintf):
39430         * doc/posix-functions/vfprintf.texi (vfprintf):
39431         * doc/posix-functions/vprintf.texi (vprintf):
39432         * doc/posix-functions/vsnprintf.texi (vsnprintf):
39433         * doc/posix-functions/vsprintf.texi (vsprintf):
39434         Mention that these functions mishandle large floating point
39435         precisions on Solaris 10.  The same bug is also present in Solaris
39436         8, and I assume earlier.  This causes "cd gnulib-tests; make
39437         check" to fail on Solaris 8 (and I assume, later) when building
39438         the latest coreutils, in test-vasprintf-posix's call to
39439         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
39440         the wide flavors (e.g., wprintf) so this patch just updates the
39441         documentation for the narrow ones.
39443         test-posixtm.c: add two tests
39444         * tests/test-posixtm.c: Add two tests, to highlight the
39445         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
39446         around this bug; this is merely to document it.
39448 2010-12-22  Bruno Haible  <bruno@clisp.org>
39450         getlogin_r: Work around portability problem on OSF/1.
39451         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
39452         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
39453         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
39454         test for a truncated result.
39455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
39456         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
39457         * modules/getlogin_r (Depends-on): Add memchr.
39458         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
39460 2010-12-22  Bruno Haible  <bruno@clisp.org>
39462         ptsname: Avoid test failure on OSF/1 5.1.
39463         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
39464         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
39465         (same_slave): New function.
39466         (main): Use it to compare ptsname's result with the expected file name.
39468 2010-12-22  Bruno Haible  <bruno@clisp.org>
39470         Port extended stdio modules to HP NonStop Kernel.
39471         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
39472         macros.
39473         * lib/fbufmode.c: Update comments.
39474         * lib/fflush.c: Likewise.
39475         * lib/fpurge.c: Likewise.
39476         * lib/freadable.c: Likewise.
39477         * lib/freadahead.c: Likewise.
39478         * lib/freading.c: Likewise.
39479         * lib/freadptr.c: Likewise.
39480         * lib/freadseek.c: Likewise.
39481         * lib/fseeko.c: Likewise.
39482         * lib/fseterr.c: Likewise.
39483         * lib/fwritable.c: Likewise.
39484         * lib/fwriting.c: Likewise.
39485         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
39487 2010-12-22  Bruno Haible  <bruno@clisp.org>
39489         ttyname_r: Work around bug on OSF/1 5.1.
39490         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
39491         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
39492         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
39493         present.
39494         * lib/ttyname_r.c (ttyname_r): Update comments.
39496 2010-12-22  Bruno Haible  <bruno@clisp.org>
39498         round: Implement result sign according to IEEE 754.
39499         * lib/round.c (MIN, MINUS_ZERO): New macros.
39500         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
39501         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
39502         * tests/test-round-ieee.c (main): Likewise.
39503         * tests/test-roundl-ieee.c (main): Likewise.
39505         trunc: Implement result sign according to IEEE 754.
39506         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
39507         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
39508         * tests/test-trunc2.c: Include minus-zero.h.
39509         (MINUS_ZERO): New macro.
39510         (trunc_reference): Keep in sync with lib/trunc.c.
39511         * tests/test-truncf2.c: Include minus-zero.h.
39512         (MINUS_ZERO): New macro.
39513         (truncf_reference): Keep in sync with lib/trunc.c.
39514         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
39515         * tests/test-trunc-ieee.c (main): Likewise.
39516         * tests/test-truncl-ieee.c (main): Likewise.
39518         ceil: Implement result sign according to IEEE 754.
39519         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
39520         (FUNC): Return -0.0 for -1 < x < 0.
39521         * tests/test-ceil2.c: Include minus-zero.h.
39522         (MINUS_ZERO): New macro.
39523         (ceil_reference): Keep in sync with lib/ceil.c.
39524         * tests/test-ceilf2.c: Include minus-zero.h.
39525         (MINUS_ZERO): New macro.
39526         (ceilf_reference): Keep in sync with lib/ceil.c.
39527         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
39528         * tests/test-ceil-ieee.c (main): Likewise.
39529         * tests/test-ceill-ieee.c (main): Likewise.
39531         floor: Implement result sign according to IEEE 754.
39532         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
39533         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
39534         * tests/test-floorf2.c (floorf_reference): Likewise.
39535         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
39536         * tests/test-floor-ieee.c (main): Likewise.
39537         * tests/test-floorl-ieee.c (main): Likewise.
39539 2010-12-22  Bruno Haible  <bruno@clisp.org>
39541         getaddrinfo: Update doc.
39542         * doc/posix-functions/gai_strerror.texi: Return type is also different
39543         on AIX and HP-UX.
39545 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39547         getaddrinfo, inet_ntop: Update doc for Solaris.
39548         * doc/posix-functions/gai_strerror.texi: Return type is also an
39549         issue on Solaris 9 and earlier.
39550         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
39551         on Solaris 10 and earlier.
39553 2010-12-21  Bruno Haible  <bruno@clisp.org>
39555         New module 'roundl-ieee'.
39556         * modules/roundl-ieee: New file.
39557         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
39558         test whether roundl works according to ISO C 99 with IEC 60559.
39559         * m4/roundl-ieee.m4: New file.
39560         * modules/roundl-ieee-tests: New file.
39561         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
39562         * tests/test-roundl.c (main): Remove signbit tests.
39563         * modules/roundl-tests (Depends-on): Remove signbit.
39564         * doc/posix-functions/roundl.texi: Mention the new module.
39566 2010-12-21  Bruno Haible  <bruno@clisp.org>
39568         New module 'truncl-ieee'.
39569         * modules/truncl-ieee: New file.
39570         * modules/truncl-ieee-tests: New file.
39571         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
39572         * tests/test-truncl.c (main): Remove signbit tests.
39573         * modules/truncl-tests (Depends-on): Remove signbit.
39574         * doc/posix-functions/truncl.texi: Mention the new module.
39576 2010-12-21  Bruno Haible  <bruno@clisp.org>
39578         New module 'ceill-ieee'.
39579         * modules/ceill-ieee: New file.
39580         * modules/ceill-ieee-tests: New file.
39581         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
39582         * tests/test-ceill.c (main): Remove signbit tests.
39583         * modules/ceill-tests (Depends-on): Remove signbit.
39584         * doc/posix-functions/ceill.texi: Mention the new module.
39586 2010-12-21  Bruno Haible  <bruno@clisp.org>
39588         New module 'floorl-ieee'.
39589         * modules/floorl-ieee: New file.
39590         * modules/floorl-ieee-tests: New file.
39591         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
39592         * tests/test-floorl.c (main): Remove signbit tests.
39593         * modules/floorl-tests (Depends-on): Remove signbit.
39594         * doc/posix-functions/floorl.texi: Mention the new module.
39596 2010-12-21  Bruno Haible  <bruno@clisp.org>
39598         New module 'round-ieee'.
39599         * modules/round-ieee: New file.
39600         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
39601         whether round works according to ISO C 99 with IEC 60559.
39602         * m4/round-ieee.m4: New file.
39603         * modules/round-ieee-tests: New file.
39604         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
39605         * tests/test-round1.c (main): Remove signbit tests.
39606         * modules/round-tests (Depends-on): Remove 'signbit'.
39607         * doc/posix-functions/round.texi: Mention the new module.
39609 2010-12-21  Bruno Haible  <bruno@clisp.org>
39611         New module 'trunc-ieee'.
39612         * modules/trunc-ieee: New file.
39613         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
39614         whether trunc works according to ISO C 99 with IEC 60559.
39615         * m4/trunc-ieee.m4: New file.
39616         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
39617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
39618         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
39619         * modules/trunc-ieee-tests: New file.
39620         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
39621         * tests/test-trunc1.c (main): Remove signbit tests.
39622         * modules/trunc-tests (Depends-on): Remove 'signbit'.
39623         * doc/posix-functions/trunc.texi: Mention the new module.
39625 2010-12-21  Bruno Haible  <bruno@clisp.org>
39627         New module 'ceil-ieee'.
39628         * modules/ceil-ieee: New file.
39629         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
39630         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
39631         ISO C 99 with IEC 60559.
39632         * m4/ceil-ieee.m4: New file.
39633         * modules/ceil (Files): Add lib/ceil.c.
39634         (Depends-on): Add 'float'.
39635         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39636         * lib/math.in.h (ceil): New declaration.
39637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
39638         REPLACE_CEIL.
39639         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
39640         * modules/ceil-ieee-tests: New file.
39641         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
39642         * tests/test-math-c++.cc: Check the signature of 'ceil'.
39643         * doc/posix-functions/ceil.texi: Mention the new module.
39645 2010-12-21  Bruno Haible  <bruno@clisp.org>
39647         New module 'floor-ieee'.
39648         * modules/floor-ieee: New file.
39649         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
39650         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
39651         ISO C 99 with IEC 60559.
39652         * m4/floor-ieee.m4: New file.
39653         * modules/floor (Files): Add lib/floor.c.
39654         (Depends-on): Add 'float'.
39655         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39656         * lib/math.in.h (floor): New declaration.
39657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
39658         REPLACE_FLOOR.
39659         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
39660         * modules/floor-ieee-tests: New file.
39661         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
39662         * tests/test-math-c++.cc: Check the signature of 'floor'.
39663         * doc/posix-functions/floor.texi: Mention the new module.
39665 2010-12-21  Bruno Haible  <bruno@clisp.org>
39667         New module 'roundf-ieee'.
39668         * modules/roundf-ieee: New file.
39669         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
39670         test whether roundf works according to ISO C 99 with IEC 60559.
39671         * m4/roundf-ieee.m4: New file.
39672         * modules/roundf-ieee-tests: New file.
39673         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
39674         * tests/test-roundf1.c (main): Remove signbit tests.
39675         * modules/roundf-tests (Depends-on): Remove 'signbit'.
39676         * doc/posix-functions/roundf.texi: Mention the new module.
39678 2010-12-21  Bruno Haible  <bruno@clisp.org>
39680         New module 'truncf-ieee'.
39681         * modules/truncf-ieee: New file.
39682         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
39683         test whether truncf works according to ISO C 99 with IEC 60559.
39684         * m4/truncf-ieee.m4: New file.
39685         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
39686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
39687         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
39688         * modules/truncf-ieee-tests: New file.
39689         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
39690         * tests/test-truncf1.c (main): Remove signbit tests.
39691         * modules/truncf-tests (Depends-on): Remove 'signbit'.
39692         * doc/posix-functions/truncf.texi: Mention the new module.
39694 2010-12-21  Bruno Haible  <bruno@clisp.org>
39696         New module 'ceilf-ieee'.
39697         * modules/ceilf-ieee: New file.
39698         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
39699         test whether ceilf works according to ISO C 99 with IEC 60559.
39700         * m4/ceilf-ieee.m4: New file.
39701         * modules/ceilf-ieee-tests: New file.
39702         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
39703         * tests/test-ceilf1.c (main): Remove signbit tests.
39704         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
39705         * doc/posix-functions/ceilf.texi: Mention the new module.
39707 2010-12-21  Bruno Haible  <bruno@clisp.org>
39709         New module 'floorf-ieee'.
39710         * modules/floorf-ieee: New file.
39711         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
39712         test whether floorf works according to ISO C 99 with IEC 60559.
39713         * m4/floorf-ieee.m4: New file.
39714         * modules/floorf-ieee-tests: New file.
39715         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
39716         * tests/test-floorf1.c (main): Remove signbit tests.
39717         * modules/floorf-tests (Depends-on): Remove 'signbit'.
39718         * doc/posix-functions/floorf.texi: Mention the new module.
39720 2010-12-21  Bruno Haible  <bruno@clisp.org>
39722         Support for minus zero in autoconf macros.
39723         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
39724         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
39725         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
39726         * tests/minus-zero.h: Update comments.
39728 2010-12-21  Bruno Haible  <bruno@clisp.org>
39730         Tests for module 'ceil'.
39731         * modules/ceil-tests: New file.
39732         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
39733         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
39735 2010-12-21  Bruno Haible  <bruno@clisp.org>
39737         Tests for module 'floor'.
39738         * modules/floor-tests: New file.
39739         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
39740         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
39742 2010-12-21  Bruno Haible  <bruno@clisp.org>
39744         math: Fix indentation.
39745         * lib/math.in.h (floorf): Fix indentation.
39747 2010-12-21  Bruno Haible  <bruno@clisp.org>
39749         Fix cross-compilation guesses on Solaris.
39750         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
39751         not match "solaris2.10".
39752         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
39753         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
39754         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
39756 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39758         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
39759         This fixes a problem observed with the latest coreutils snapshot
39760         that caused a test to fail on Solaris 8.  src/csplit.c's call
39761         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
39762         earlier, instead of returning the number of bytes that would have
39763         been generated; this causes csplit to incorrectly report memory
39764         exhaustion.
39765         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
39766         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
39767         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
39768         comments to match.
39769         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
39770         Fix typo in matching older versions of Solaris: "solaris2.10"
39771         is matched by the shell pattern "solaris2.[0-9]*".  This matters
39772         only for guessing while cross-compiling.
39773         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
39775 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
39777         ftoastr: fix comment again
39778         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
39779         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
39780         Also, simplify example a bit by using flags = 0.
39782 2010-12-20  Bruno Haible  <bruno@clisp.org>
39784         round*, trunc*: Update documentation regarding glibc.
39785         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
39786         * doc/posix-functions/round.texi: Likewise.
39787         * doc/posix-functions/roundl.texi: Likewise.
39788         * doc/posix-functions/truncf.texi: Likewise.
39789         * doc/posix-functions/trunc.texi: Likewise.
39790         * doc/posix-functions/truncl.texi: Likewise.
39792 2010-12-20  Bruno Haible  <bruno@clisp.org>
39794         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
39795         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
39796         * doc/posix-functions/round.texi: Likewise.
39797         * doc/posix-functions/roundl.texi: Likewise.
39799 2010-12-20  Bruno Haible  <bruno@clisp.org>
39801         ttyname_r: Add missing declaration on HP-UX 11.
39802         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
39803         HAVE_TTYNAME_R.
39804         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
39805         declared. Set HAVE_TTYNAME_R always.
39806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39807         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
39808         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
39809         HAVE_TTYNAME_R.
39810         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
39812 2010-12-20  Bruno Haible  <bruno@clisp.org>
39814         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
39815         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
39816         * doc/posix-functions/getlogin_r.texi: Likewise.
39817         * tests/test-getlogin.c: Include <errno.h>.
39818         (main): Avoid test failure on HP-UX 11.11.
39819         * tests/test-getlogin_r.c (main): Likewise.
39821 2010-12-20  Bruno Haible  <bruno@clisp.org>
39823         getlogin_r: Add missing declaration on HP-UX 11.
39824         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
39825         declared also when it exists as a function.
39826         * doc/posix-functions/getlogin_r.texi: Document this workaround.
39828 2010-12-20  Bruno Haible  <bruno@clisp.org>
39830         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
39831         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
39832         through wcrtomb.
39834 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39836         ftoastr: fix comment
39837         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
39838         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
39840 2010-12-19  Bruno Haible  <bruno@clisp.org>
39842         isnan: Ensure it is a macro.
39843         * lib/math.in.h (isnan): Define as a macro if not already a macro.
39844         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
39845         Solaris.
39847 2010-12-19  Bruno Haible  <bruno@clisp.org>
39849         ldexpl test: Fix link error on OSF/1 5.1.
39850         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
39852 2010-12-19  Bruno Haible  <bruno@clisp.org>
39854         wctype: Make it work in C++ mode on OSF/1 5.1.
39855         * lib/wctype.in.h (iswblank): Declare but not define here.
39856         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
39857         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
39858         * modules/wctype (Files): Add lib/iswblank.c.
39860 2010-12-19  Bruno Haible  <bruno@clisp.org>
39862         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
39863         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
39864         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
39866 2010-12-19  Bruno Haible  <bruno@clisp.org>
39868         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
39869         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
39870         _POSIX_PII_SOCKET.
39871         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
39872         * doc/posix-functions/recvfrom.texi: Likewise.
39873         * doc/posix-functions/send.texi: Likewise.
39874         * doc/posix-functions/sendto.texi: Likewise.
39876 2010-12-19  Bruno Haible  <bruno@clisp.org>
39878         tcgetsid: Add missing declaration on OSF/1 5.1.
39879         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
39880         HAVE_TCGETSID.
39881         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
39882         Don't set HAVE_TCGETSID.
39883         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
39884         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
39885         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
39886         HAVE_TCGETSID.
39887         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
39889 2010-12-19  Bruno Haible  <bruno@clisp.org>
39891         stdio: Fix problem with popen() declaration on OSF/1 5.1.
39892         * lib/stdio.in.h: During the include_next statement, let recursive
39893         includes of this file include only the system header file.
39895 2010-12-19  Bruno Haible  <bruno@clisp.org>
39897         iconv_open: Fix regression from 2010-12-04.
39898         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
39899         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
39901 2010-12-19  Bruno Haible  <bruno@clisp.org>
39903         stdbool test: Avoid a gcc warning.
39904         * tests/test-stdbool.c (main): Fail if e1 is false.
39905         Reported by Jim Meyering.
39907 2010-12-19  Jim Meyering  <meyering@redhat.com>
39909         setenv: restore to working order
39910         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
39911         mistakenly removed.
39912         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
39913         HAVE_SETENV.
39914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
39915         HAVE_SETENV.
39917 2010-12-19  Bruno Haible  <bruno@clisp.org>
39919         Document some different function declarations on OSF/1 5.1.
39920         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
39921         * doc/posix-functions/inet_ntop.texi: Likewise.
39922         * doc/posix-functions/gethostname.texi: Likewise.
39923         * lib/unistd.in.h (gethostname): Update comment.
39925 2010-12-19  Bruno Haible  <bruno@clisp.org>
39927         doc: Mention vasprintf-posix module.
39928         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
39929         the 'vasprintf-posix' module.
39930         * doc/glibc-functions/vasprintf.texi: Likewise.
39932 2010-12-19  Bruno Haible  <bruno@clisp.org>
39934         unsetenv: Add missing declaration on OSF/1 5.1.
39935         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
39936         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
39937         Don't set HAVE_UNSETENV. In the test program, set _BSD.
39938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
39939         not HAVE_UNSETENV.
39940         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
39941         HAVE_UNSETENV.
39942         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
39944 2010-12-19  Bruno Haible  <bruno@clisp.org>
39946         setenv: Add missing declaration on OSF/1 5.1.
39947         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
39948         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
39949         declared. Don't set HAVE_SETENV.
39950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
39951         not HAVE_SETENV.
39952         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
39953         HAVE_SETENV.
39954         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
39956 2010-12-19  Bruno Haible  <bruno@clisp.org>
39958         nl_langinfo tests: Avoid gcc warning.
39959         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
39961 2010-12-19  Bruno Haible  <bruno@clisp.org>
39963         mknod: Avoid error in C++ mode on OSF/1 with GCC.
39964         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
39965         _GL_CXXALIAS_SYS.
39967 2010-12-19  Bruno Haible  <bruno@clisp.org>
39969         stdbool: Relax test.
39970         * tests/test-stdbool.c (e): Don't require that casts from a variable's
39971         address to 'bool' work in static initializer, for compilers other than
39972         GCC.
39974 2010-12-19  Bruno Haible  <bruno@clisp.org>
39976         ftello: Add missing declaration on OSF/1 5.1.
39977         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
39978         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
39979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
39980         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
39981         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
39983 2010-12-19  Bruno Haible  <bruno@clisp.org>
39985         fseeko: Add missing declaration on OSF/1 5.1.
39986         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
39987         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
39988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
39989         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
39990         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
39992 2010-12-19  Bruno Haible  <bruno@clisp.org>
39994         fchdir: Add missing declaration on OSF/1 5.1.
39995         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
39996         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
39997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
39998         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
39999         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
40001 2010-12-19  Bruno Haible  <bruno@clisp.org>
40003         relocatable-prog-wrapper: Separate from relocatable-prog.
40004         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
40005         uninstall-relocwrapper rule here.
40006         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
40007         Reported by Ian Beckwith <ianb@erislabs.net>.
40009 2010-12-19  Bruno Haible  <bruno@clisp.org>
40011         unistr/u8-mbsnlen: Add missing dependency.
40012         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
40013         Reported by Ian Beckwith <ianb@erislabs.net>.
40015 2010-12-19  Bruno Haible  <bruno@clisp.org>
40017         iconv: Make it possible again to use this module without 'iconv-h'.
40018         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
40019         if it is not defined.
40020         Reported by Ian Beckwith <ianb@erislabs.net>.
40022 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40024         acl: port to Solaris 8 when copying from tmpfs to ufs
40025         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
40026         error number.  Problem observed on Solaris 8 with latest
40027         coreutils, with "mv A B", where A is on a tmpfs file system and B
40028         is on a ufs file system.  This caused coreutils' mv/part-symlink
40029         test to fail.
40031         tests: set fail=0 at start
40032         * tests/init.sh (setup_): Move fail=0 initialization here ...
40033         (mktempd_): ... from here, so that tests can rely on fail being
40034         set to 0 initially.  This fixes a problem in coreutils; see:
40035         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
40037 2010-12-18  Bruno Haible  <bruno@clisp.org>
40039         memmem-simple: Stylistic changes.
40040         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
40041         Fix preprocessor directive indentation.
40043 2010-12-15  Pádraig Brady  <P@draigBrady.com>
40045         memmem, memmem-simple: reorganize and expand empty needle check
40046         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
40047         functional checks to memmem-simple so that one has a fully functional
40048         memmem by using just this module.
40049         Restrict the performance only check to the memmem module.
40050         Also expand the empty needle check to ensure the correct
40051         pointer is returned, not just a non NULL pointer.
40052         * doc/glibc-functions/memmem.texi: Rearrange the portability
40053         documentation to correlate with the rearranged checks.
40054         Clarify exactly how the memmem and memmem-simple modules
40055         relate to each other.
40057 2010-12-15  Pádraig Brady  <P@draigBrady.com>
40058             Bruno Haible  <bruno@clisp.org>
40060         Improve cross-compilation guesses for uClibc.
40061         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
40062         that uClibc does not have the glibc bug.
40063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
40064         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
40066 2010-12-14  Eric Blake  <eblake@redhat.com>
40068         configmake: provide fallbacks for oldest supported autotools
40069         * m4/configmake.m4: New file.
40070         * modules/configmake (Files): Ship it.
40071         (configure.ac): Use it to guarantee fallbacks.
40073 2010-12-13  Pádraig Brady  <P@draigBrady.com>
40075         read-file: Improve handling of large files
40076         * lib/read-file.c (fread_file): Minimize realloc()s
40077         for regular files, and better manage sizes around SIZE_MAX.
40079 2010-12-13  Eric Blake  <eblake@redhat.com>
40081         cloexec, fcntl: relax license
40082         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
40083         consent from all contributors.
40084         * modules/fcntl (License): Likewise.
40086 2010-12-10  Bruno Haible  <bruno@clisp.org>
40088         Tests for module 'pipe-posix'.
40089         * modules/pipe-posix-tests: New file.
40090         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
40092 2010-12-10  Bruno Haible  <bruno@clisp.org>
40094         pipe-posix: Make it work in C++ mode.
40095         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
40096         (pipe): Use common idiom, not a macro definition.
40097         * lib/pipe.c: New file.
40098         * m4/pipe.m4: New file.
40099         * modules/pipe-posix (Description): Enhance.
40100         (Files): Add lib/pipe.c, m4/pipe.m4.
40101         (configure.ac): Invoke gl_FUNC_PIPE.
40102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
40103         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
40104         * tests/test-unistd-c++.cc: Check the signature of pipe.
40106 2010-12-10  Bruno Haible  <bruno@clisp.org>
40108         Rename module 'pipe' to 'spawn-pipe'.
40109         * modules/spawn-pipe: New file, renamed from modules/pipe.
40110         (Files, configure.ac, Makefile.am): Update.
40111         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
40112         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
40113         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
40114         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
40115         "spawn-pipe.h" instead of "pipe.h".
40116         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
40117         to gl_SPAWN_PIPE.
40118         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
40119         (Files, Makefile.am): Update.
40120         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
40121         Update.
40122         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
40123         Include "spawn-pipe.h" instead of "pipe.h".
40124         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
40125         * lib/javacomp.c: Likewise.
40126         * lib/javaversion.c: Likewise.
40127         * lib/pipe-filter-gi.c: Likewise.
40128         * lib/pipe-filter-ii.c: Likewise.
40129         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
40130         * modules/javacomp (Depends-on): Likewise.
40131         * modules/javaversion (Depends-on): Likewise.
40132         * modules/pipe-filter-gi (Depends-on): Likewise.
40133         * modules/pipe-filter-ii (Depends-on): Likewise.
40134         * MODULES.html.sh (Executing programs): Update.
40135         * NEWS: Mention the change.
40137 2010-12-10  Eric Blake  <eblake@redhat.com>
40139         pipe-posix: new module
40140         * modules/pipe-posix: New file.
40141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
40142         (gl_UNISTD_H): Check for declaration.
40143         * modules/unistd (Makefile.am): Substitute it.
40144         * lib/unistd.in.h (pipe): Provide it for mingw.
40145         * doc/posix-functions/pipe.texi (pipe): Update documentation.
40146         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
40148 2010-12-07  Bruno Haible  <bruno@clisp.org>
40150         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
40151         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
40152         u8_strcmp_gnu.
40153         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
40155 2010-12-06  Bruno Haible  <bruno@clisp.org>
40157         Update internal documentation.
40158         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
40160 2010-12-04  Bruno Haible  <bruno@clisp.org>
40162         Put more information about failed tests into the test return codes.
40163         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
40164         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
40165         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
40166         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
40167         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
40168         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40169         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40170         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40171         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
40172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40173         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
40174         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40175         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
40176         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40177         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
40178         returns a bit mask.
40179         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
40180         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
40181         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
40182         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
40183         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
40184         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
40185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40186         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40187         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
40188         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
40189         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40190         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
40191         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40192         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
40193         * m4/link.m4 (gl_FUNC_LINK): Likewise.
40194         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40195         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
40196         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
40197         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40198         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
40199         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40200         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40201         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
40202         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40203         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
40204         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40205         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
40206         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
40207         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
40208         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
40209         gl_PRINTF_PRECISION): Likewise.
40210         * m4/regex.m4 (gl_REGEX): Likewise.
40211         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40212         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
40213         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
40214         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40215         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40217         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
40218         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
40219         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40220         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
40221         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40222         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40223         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
40224         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
40225         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40226         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40227         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
40228         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
40229         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40230         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
40231         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
40232         enumerated value.
40233         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
40235 2010-12-04  Bruno Haible  <bruno@clisp.org>
40237         Update for Solaris 11 2010-11.
40238         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
40239         Express, released in November 2010.
40241 2010-12-04  Bruno Haible  <bruno@clisp.org>
40243         nproc: Relax license.
40244         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
40245         and Paul Eggert.
40246         Requested by Ludovic Courtès <ludo@gnu.org>.
40248 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
40250         utimecmp: fine-grained src to nearby coarse-grained dest
40252         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
40253         and the source is on a file system with higher-resolution time
40254         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
40255         not work, and the time stamps are close together, the algorithm to
40256         determine the exact resolution from the read-back mtime was buggy:
40257         it had a "!=" where it should have had an "==".  This bug has been
40258         in the code ever since it was introduced to gnulib.
40259         Problem reported by Dan Jacobson in
40260         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
40262 2010-11-30  Bruno Haible  <bruno@clisp.org>
40264         strerror_r-posix: Fix autoconf test.
40265         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
40267 2010-11-28  Bruno Haible  <bruno@clisp.org>
40268             Paul Eggert  <eggert@cs.ucla.edu>
40270         Tests for module 'getdomainname'.
40271         * modules/getdomainname-tests: New file.
40272         * tests/test-getdomainname.c: New file, based on
40273         tests/test-gethostname.c.
40275 2010-11-28  Bruno Haible  <bruno@clisp.org>
40276             Paul Eggert  <eggert@cs.ucla.edu>
40278         getdomainname: Use the system function when possible.
40279         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
40280         (getdomainname): Replace if needed. Provide the declaration if it is
40281         missing. Don't use _GL_CXXALIAS_SYS_CAST.
40282         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
40283         (getdomainname): When the system has getdomainname, call the system
40284         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
40285         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
40286         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
40287         found in libnsl. Look for the declaration also in <netdb.h>. Replace
40288         the function if its second argument is of type 'int' or if it is found
40289         in libnsl.
40290         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
40291         <sys/systeminfo.h> and sysinfo().
40292         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
40293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40294         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
40295         HAVE_GETDOMAINNAME.
40296         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
40297         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
40298         * doc/glibc-functions/getdomainname.texi: Document the problems with
40299         the getdomainname declaration.
40301 2010-11-28  Bruno Haible  <bruno@clisp.org>
40303         sys_socket: Ensure ss_family field on AIX.
40304         * lib/sys_socket.in.h (ss_family): New macro definition.
40305         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
40306         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
40307         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40308         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
40309         * modules/sys_socket (Makefile.am): Substitute
40310         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
40311         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
40313 2010-11-27  Bruno Haible  <bruno@clisp.org>
40315         readline: Improve configure output.
40316         * m4/readline.m4 (gl_FUNC_READLINE): Make the
40317         "checking for readline..." result understandable.
40319 2010-11-27  Bruno Haible  <bruno@clisp.org>
40321         *printf-posix: Detect a bug on Solaris 10/x86.
40322         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
40323         for floating-point output.
40324         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
40325         directive.
40326         * tests/test-snprintf-posix.h (test_function): Likewise.
40327         * tests/test-sprintf-posix.h (test_function): Likewise.
40328         * tests/test-vasprintf-posix.c (test_function): Likewise.
40329         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
40330         * doc/posix-functions/printf.texi: Likewise.
40331         * doc/posix-functions/snprintf.texi: Likewise.
40332         * doc/posix-functions/sprintf.texi: Likewise.
40333         * doc/posix-functions/vfprintf.texi: Likewise.
40334         * doc/posix-functions/vprintf.texi: Likewise.
40335         * doc/posix-functions/vsnprintf.texi: Likewise.
40336         * doc/posix-functions/vsprintf.texi: Likewise.
40337         * doc/glibc-functions/obstack_printf.texi: Likewise.
40338         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40340 2010-11-27  Bruno Haible  <bruno@clisp.org>
40342         Fix link error when module libunistring-optional is in use.
40343         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
40344         * modules/striconveha-tests (Makefile.am): Likewise.
40346 2010-11-27  Bruno Haible  <bruno@clisp.org>
40348         regex: Mention link dependencies.
40349         * modules/regex (Link): New section.
40350         * modules/rpmatch (Link): Likewise.
40351         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
40353 2010-11-27  Bruno Haible  <bruno@clisp.org>
40355         ftoastr: Fix compilation error on Solaris.
40356         * lib/ftoastr.c: Include <config.h>.
40358 2010-11-27  Bruno Haible  <bruno@clisp.org>
40360         getloadavg: Update documentation.
40361         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
40363 2010-11-27  Bruno Haible  <bruno@clisp.org>
40365         sys_socket: Fix test whether the functions are declared.
40366         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
40367         not <sys/select.h>.
40369 2010-11-27  Bruno Haible  <bruno@clisp.org>
40371         getpass: Make sure to get system declaration on some platforms.
40372         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
40373         gl_USE_SYSTEM_EXTENSIONS.
40374         * modules/getpass (Depends-on): Add extensions.
40376 2010-11-26  Bruno Haible  <bruno@clisp.org>
40378         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
40379         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
40380         'iconv' module is present.
40381         (ICONV_CONST): New macro.
40382         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
40383         ICONV_CONST.
40384         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
40385         set ICONV_CONST.
40386         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
40387         here.
40388         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
40389         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
40390         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
40391         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
40392         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
40393         present.
40395 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
40397         ftoastr: comment fix
40398         * lib/ftoastr.c: "little" -> "little or no" in comment
40400 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
40402         stdint: port to GCC 4.3 + OSX + Octave
40403         On this platform, stdint.h is buggy and defines int64_t to long
40404         long int.  The replacement defined it to long int, causing
40405         problems with C++ style name mangling.  Instead, trust the system
40406         definition if INT64_MAX is defined, and likewise for the unsigned
40407         variant.   Problem reported by Jarno Rajahalme in
40408         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
40409         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
40410         and don't mess with int64_t and INT64_MAX in this case.
40411         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
40413 2010-11-24  Bruno Haible  <bruno@clisp.org>
40415         doc: Corrections regarding MacOS X 10.4 and 10.5.
40416         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
40417         MacOS X.
40418         Reported by Simon Josefsson.
40420 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
40422         Uninstall ".bin" files installed by relocwrapper.
40423         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
40424         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
40425         unless it is already there.
40427 2010-11-21  Bruno Haible  <bruno@clisp.org>
40429         Update for NetBSD 5.0.
40430         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
40431         NetBSD; the test fails on NetBSD 5.0.
40432         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
40433         about NetBSD.
40435 2010-11-21  Bruno Haible  <bruno@clisp.org>
40437         Update for HP-UX 11.23 and HP-UX 11.31.
40438         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
40439         HP-UX.
40441 2010-11-21  Bruno Haible  <bruno@clisp.org>
40443         Update for MacOS X 10.5.
40444         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
40445         MacOS X; the test fails on MacOS X 10.5.8.
40446         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
40447         about MacOS X.
40449 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
40451         bootstrap: add bootstrap_sync option.
40452         See discussion at
40453         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
40454         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
40455         * build-aux/bootstrap: Accept --bootstrap-sync to update
40456         bootstrap if it is not identical to the local gnulib's
40457         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
40458         enable this by default.  Accept --no-bootstrap-sync to disable
40459         it.
40461 2010-11-20  Bruno Haible  <bruno@clisp.org>
40463         Ensure that <features.h> is included before __GLIBC__ is tested.
40464         * lib/printf-parse.h: Include <features.h>.
40465         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
40466         Reported by Mike Frysinger <vapier@gentoo.org>.
40468         Ensure that <features.h> is included before __GLIBC__ is tested.
40469         * lib/wchar.in.h: Include <features.h>.
40470         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
40471         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
40472         Reported by Mike Frysinger <vapier@gentoo.org>.
40474         Ensure that <features.h> is included before __GLIBC__ is tested.
40475         * lib/arpa_inet.in.h: Include <features.h>.
40476         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
40477         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
40478         Reported by Mike Frysinger <vapier@gentoo.org>.
40480         Ensure that <features.h> is included before __GLIBC__ is tested.
40481         * build-aux/link-warning.h: Include <features.h>.
40482         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
40483         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
40484         Reported by Mike Frysinger <vapier@gentoo.org>.
40486         Ensure that <features.h> is included before __GLIBC__ is tested.
40487         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
40488         Reported by Mike Frysinger <vapier@gentoo.org>.
40490 2010-11-20  Bruno Haible  <bruno@clisp.org>
40492         memmem: Fix autoconf test.
40493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
40495 2010-11-20  Bruno Haible  <bruno@clisp.org>
40497         Port to uClibc.
40498         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
40499         * lib/fcntl.in.h: Likewise.
40500         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
40501         * lib/mbrtowc.c (mbrtowc): Likewise.
40502         * lib/relocatable.c (find_shared_library_fullname): Likewise.
40503         * lib/strerror_r.c: Likewise.
40504         * lib/unistr/u8-strnlen.c: Likewise.
40505         * lib/vasnprintf.c (decimal_point_char): Likewise.
40506         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
40507         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
40508         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40509         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
40510         * tests/test-sigaction.c (handler, main): Likewise.
40511         * lib/freading.h: Treat uClibc like a non-glibc platform.
40512         * lib/freading.c: Likewise.
40513         * lib/gettext.h: Likewise.
40514         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
40515         Likewise.
40516         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
40517         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40518         * lib/propername.c (proper_name_utf8): Likewise.
40519         * lib/spawn.in.h: Likewise.
40520         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
40521         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
40522         mem_cd_iconveh_internal): Likewise.
40523         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
40524         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
40525         strstr, strcasestr): Likewise.
40526         * lib/unicodeio.c (unicode_to_mb): Likewise.
40527         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
40528         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
40529         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
40530         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
40531         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
40532         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
40533         * lib/unistr/u8-stpncpy.c: Likewise.
40534         * lib/vasnprintf.c (VASNPRINTF): Likewise.
40535         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
40536         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40537         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40538         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
40539         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
40540         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
40541         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
40542         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
40543         Likewise.
40544         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
40545         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
40546         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
40547         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40548         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40549         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40550         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40551         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
40552         * tests/test-getopt.h (OPTIND_MIN): Likewise.
40553         * tests/test-striconveha.c (main): Likewise.
40554         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40555         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
40556         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
40557         * doc/posix-functions/getline.texi: Likewise.
40558         Reported by Mike Frysinger <vapier@gentoo.org>.
40560 2010-11-20  Bruno Haible  <bruno@clisp.org>
40562         nproc: Fix condition.
40563         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
40564         HAVE_PTHREAD_AFFINITY_NP.
40566 2010-11-20  Bruno Haible  <bruno@clisp.org>
40568         Fix a comment.
40569         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
40571 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
40573         ftoastr: don't assume snprintf
40574         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
40575         Implement a subset of snprintf here, by using sprintf safely.
40576         * modules/ftoastr (Depends-on): Remove snprintf.
40578 2010-11-19  Jim Meyering  <meyering@redhat.com>
40580         test-rename.h: fix compilation failure
40581         * tests/test-rename.h (test_rename): Add omitted "}".
40583 2010-11-17  Jim Meyering  <meyering@redhat.com>
40585         maint.mk: add a URL discussing the no-@acronym policy
40586         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
40588 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
40590         ftoastr: depend on snprintf, improve comments
40591         * lib/ftoastr.c: Also mention Loitsch's draft.
40592         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
40593         needed in the current implementation, but it might simplify
40594         speeding up the code later.
40595         * modules/ftoastr: Depend on snprintf; this improves portability.
40596         Suggested by Bruno Haible in the same email.
40598         ftoastr: port to hosts lacking strtof and strtold
40599         Problem reported by Bruno Haible in
40600         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
40601         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
40602         environment and strtold (and presumably strtof) are not available.
40603         * modules/ftoastr (Files): Add m4/c-strtod.m4.
40604         (configure.ac): Require gl_C99_STRTOLD.
40606 2010-11-18  Bruno Haible  <bruno@clisp.org>
40608         c-strtold: Avoid link error on AIX 7.
40609         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
40610         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
40611         (gl_C_STRTOLD): Test whether strtold_l exists.
40612         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40614 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40616         intprops: new macro INT_BITS_STRLEN_BOUND
40617         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
40618         ftoastr.h.  This exposes an internal of intprops.h that was formerly
40619         not exposed.  Also, it uses a slightly tighter bound than before;
40620         though this makes no practical difference, we might as well be as
40621         tight as we easily can.
40623         ftoastr: new module, for lossless conversion of floats to short strings
40624         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
40625         * modules/ftoastr: New files.
40627 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
40629         bootstrap: port to Solaris sed
40630         * build-aux/bootstrap (get_version): Port to Solaris sed.
40631         See Ralf Wildenhues's note in
40632         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
40634 2010-11-14  Jim Meyering  <meyering@redhat.com>
40636         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
40637         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
40638         and move definition closer to sole use.
40640 2010-11-13  Jim Meyering  <meyering@redhat.com>
40642         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
40643         Now we require at least autoconf-2.59, which means the work-around
40644         is no longer needed.
40645         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
40646         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40647         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
40648         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
40649         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40651 2010-11-13  Bruno Haible  <bruno@clisp.org>
40653         rename, renameat: Avoid test failures at NFS mounted locations.
40654         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
40655         functions.
40656         (test_rename): Use assert_nonexistent.
40657         * tests/test-rename.c: Include <dirent.h>.
40658         * tests/test-renameat.c: Likewise.
40659         Reported by Gary V. Vaughan <gary@gnu.org>.
40661         rename, renameat: Document Linux bug with NFS
40662         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
40663         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
40664         * doc/posix-functions/renameat.texi: Likewise.
40665         Suggested by Eric Blake.
40667 2010-11-13  Bruno Haible  <bruno@clisp.org>
40669         rename test: Add comments.
40670         * tests/test-rename.h (test_rename): Add structure and comments.
40672 2010-11-13  Eric Blake  <eblake@redhat.com>
40674         maintainer-makefile: cover a few more files
40675         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
40676         scripts generated within C files, for libvirt.
40678 2010-11-13  Bruno Haible  <bruno@clisp.org>
40680         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
40681         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
40682         character, return the number of bytes that belong together, not always
40683         1.
40684         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
40685         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
40686         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
40687         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
40688         number of bytes of an invalid character.
40689         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
40690         (main): Invoke it.
40691         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
40692         results.
40693         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
40694         malformed byte sequences.
40695         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
40696         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
40697         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
40698         Reported by Ben Pfaff and Paolo Bonzini.
40700 2010-11-13  Bruno Haible  <bruno@clisp.org>
40702         openat: Work around glibc bug with fchownat() and empty file names.
40703         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
40704         (gl_FUNC_FCHOWNAT): Invoke it.
40705         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
40706         * doc/posix-functions/fchownat.texi: Document the glibc bug.
40707         Reported by Gary V. Vaughan <gary@gnu.org>.
40709 2010-11-13  Bruno Haible  <bruno@clisp.org>
40711         openat: Ensure autoconf macro ordering.
40712         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
40713         gl_USE_SYSTEM_EXTENSIONS.
40714         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
40716 2010-11-13  Bruno Haible  <bruno@clisp.org>
40718         Update comments.
40719         * lib/unistr/u8-check.c: Update file name in comments.
40720         * lib/unistr/u8-mblen.c: Likewise.
40721         * lib/unistr/u8-prev.c: Likewise.
40722         * lib/unistr/u8-strmblen.c: Likewise.
40723         * lib/unistr/u8-strmbtouc.c: Likewise.
40725 2010-11-13  Jim Meyering  <meyering@redhat.com>
40727         tests: avoid test failure on Solaris 10 due to lack of PATH export
40728         * tests/test-update-copyright.sh: Don't forget to export PATH.
40730         init.sh: ensure that IFS is defined, just in case...
40731         * tests/init.sh (setup_): Ensure that IFS is defined,
40732         so that saving and restoring it works as expected.  This
40733         appears to be useful at least for an old version of dash
40734         from a long time ago (RH 6).  See here for details:
40735         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
40737         maint.mk: tighten "test a == b" check
40738         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
40739         test to files that contain something like #!/bin/sh.
40740         Without this, coreutils would get two false positives in
40741         the comments of C source files.
40743 2010-11-12  Eric Blake  <eblake@redhat.com>
40745         bootstrap: fix typo in previous attempt
40746         * build-aux/bootstrap (buildreq): Correct the grouping.
40747         Reported by Paul Eggert.
40749         maintainer-makefile: prohibit test x == x
40750         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
40751         Based on a report by Matthias Bolte.
40753         bootstrap: allow FreeBSD gzip
40754         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
40755         which has no '.' and goes to stderr.
40756         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
40757         Reported by Matthias Bolte.
40759         maintainer-makefile: check for i18n setup
40760         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
40761         will likely work.
40763 2010-11-12  Bruno Haible  <bruno@clisp.org>
40765         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
40766         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
40767         * lib/nanosleep.c (nanosleep): Likewise.
40769 2010-11-11  Bruno Haible  <bruno@clisp.org>
40771         fcntl-h: Fix for use of C++ on glibc systems.
40772         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
40773         also on glibc systems in C++ mode.
40774         Reported by Gary V. Vaughan <gary@gnu.org>.
40776 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
40778         mknod: avoid false failure with dash
40779         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
40781 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
40783         unlink: Fix "is it should" typo in diagnostic.
40784         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
40785         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
40787 2010-11-11  Bruno Haible  <bruno@clisp.org>
40789         Tests for module 'strerror_r-posix'.
40790         * modules/strerror_r-posix-tests: New file.
40791         * tests/test-strerror_r.c: New file.
40792         * tests/test-string-c++.cc: Check the signature of strerror_r.
40794         New module 'strerror_r-posix'.
40795         * lib/string.in.h (strerror_r): New declaration.
40796         * lib/strerror_r.c: New file.
40797         * m4/strerror_r.m4: New file.
40798         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
40799         of strerror_r.
40800         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
40801         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
40802         * modules/strerror_r-posix: New file.
40803         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
40804         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
40805         * doc/posix-functions/strerror_r.texi: Mention the new module and the
40806         portability problems.
40808 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
40810         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
40811         line is also considered for output. Quoted function name in shell
40812         command, so temporary files for functions like MyClass::operator()
40813         are removed correctly without errors.
40815 2010-11-09  Bruno Haible  <bruno@clisp.org>
40817         * doc/posix-functions/strerror.texi: List more failing platforms.
40819         * doc/posix-functions/strerror.texi: Add a comment.
40821 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40823         fdopendir: fix bug on MacOS X when low on file descriptors
40825         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
40826         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
40827         All callers changed.
40828         (fdopendir): Invoke save_cwd at the top level, not after using
40829         multiple dup() calls to use up file descriptors.  Then retry
40830         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
40831         less than the maximum number of open file descriptors, because
40832         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
40833         on Mac OS X 10.6.4 for tar 1.24
40834         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
40835         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
40836         and for tar 1.25
40837         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
40839 2010-11-07  Bruno Haible  <bruno@clisp.org>
40841         vasnprintf: Support I flag on glibc systems.
40842         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
40843         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
40844         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
40845         snprintf function.
40846         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
40847         glibc systems.
40848         * tests/test-vasnprintf-posix3.c: New file.
40849         * modules/vasnprintf-posix-tests (Files): Add it.
40850         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
40852 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40854         [html] Fix copy/paste bug: Use unique name for compiler warnings.
40855         * MODULES.html.sh: For compiler warnings, use name
40856         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
40858 2010-11-05  Eric Blake  <eblake@redhat.com>
40860         ceil, floor: avoid spurious failure with icc
40861         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
40862         [denormals-as-zero] when optimizing without -mieee-fp option.
40863         * tests/test-floorf2.c (floorf_reference): Likewise.
40864         * tests/test-ceilf1.c (dummy): New function.
40865         (main): Use it to outsmart icc's optimization.
40866         * tests/test-floorf1.c (dummy, main): Likewise.
40868         tests: require working signbit
40869         * modules/ceilf-tests (Depends-on): Add signbit.
40870         * modules/ceill-tests (Depends-on): Likewise.
40871         * modules/floorf-tests (Depends-on): Likewise.
40872         * modules/floorl-tests (Depends-on): Likewise.
40873         * modules/round-tests (Depends-on): Likewise.
40874         * modules/roundf-tests (Depends-on): Likewise.
40875         * modules/roundl-tests (Depends-on): Likewise.
40876         * modules/trunc-tests (Depends-on): Likewise.
40877         * modules/truncf-tests (Depends-on): Likewise.
40878         * modules/truncl-tests (Depends-on): Likewise.
40880         strtod: work around icc bug
40881         * lib/strtod.c (minus_zero): Define to working value.
40882         (strtod): Use it to avoid icc bug.
40884         copysign: enhance tests
40885         * modules/copysign-tests (Files): Add minus-zero.h.
40886         * tests/test-copysign.c (main): Also test zeros.
40888 2010-11-04  Eric Blake  <eblake@redhat.com>
40890         ceil, floor, round, trunc: enhance tests of -0
40891         * tests/test-ceilf1.c (main): Ensure correct sign of result.
40892         * tests/test-ceill.c (main): Likewise.
40893         * tests/test-floorf1.c (main): Likewise.
40894         * tests/test-floorl.c (main): Likewise.
40895         * tests/test-round1.c (main): Likewise.
40896         * tests/test-roundf1.c (main): Likewise.
40897         * tests/test-roundl.c (main): Likewise.
40898         * tests/test-trunc1.c (main): Likewise.
40899         * tests/test-truncf1.c (main): Likewise.
40900         * tests/test-truncl.c (main): Likewise.
40902 2010-11-04  Eric Blake  <eblake@redhat.com>
40904         frexp, tests: work around ICC bug with -zero
40905         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
40906         works with more compilers.
40907         * tests/minus-zero.h: New file.
40908         * modules/ceilf-tests (Files): Include it.
40909         * modules/ceill-tests (Files): Likewise.
40910         * modules/floorf-tests (Files): Likewise.
40911         * modules/floorl-tests (Files): Likewise.
40912         * modules/frexp-nolibm-tests (Files): Likewise.
40913         * modules/frexp-tests (Files): Likewise.
40914         * modules/frexpl-nolibm-tests (Files): Likewise.
40915         * modules/frexpl-tests (Files): Likewise.
40916         * modules/isnan-tests (Files): Likewise.
40917         * modules/isnand-nolibm-tests (Files): Likewise.
40918         * modules/isnand-tests (Files): Likewise.
40919         * modules/isnanf-nolibm-tests (Files): Likewise.
40920         * modules/isnanf-tests (Files): Likewise.
40921         * modules/isnanl-nolibm-tests (Files): Likewise.
40922         * modules/isnanl-tests (Files): Likewise.
40923         * modules/round-tests (Files): Likewise.
40924         * modules/roundf-tests (Files): Likewise.
40925         * modules/roundl-tests (Files): Likewise.
40926         * modules/ldexpl-tests (Files): Likewise.
40927         * modules/signbit-tests (Files): Likewise.
40928         * modules/snprintf-posix-tests (Files): Likewise.
40929         * modules/sprintf-posix-tests (Files): Likewise.
40930         * modules/strtod-tests (Files): Likewise.
40931         * modules/trunc-tests (Files): Likewise.
40932         * modules/truncf-tests (Files): Likewise.
40933         * modules/truncl-tests (Files): Likewise.
40934         * modules/vsnprintf-posix-tests (Files): Likewise.
40935         * modules/vsprintf-posix-tests (Files): Likewise.
40936         * modules/vasnprintf-posix-tests (Files): Likewise.
40937         * modules/vasprintf-posix-tests (Files): Likewise.
40938         * tests/test-ceilf1.c (main): Use it.
40939         * tests/test-ceill.c (main): Likewise.
40940         * tests/test-floorf1.c (main): Likewise.
40941         * tests/test-floorl.c (main): Likewise.
40942         * tests/test-frexp.c (main): Likewise.
40943         * tests/test-frexpl.c (main): Likewise.
40944         * tests/test-isnan.c (main): Likewise.
40945         * tests/test-isnand.h (main): Likewise.
40946         * tests/test-isnanf.h (main): Likewise.
40947         * tests/test-isnanl.h (main): Likewise.
40948         * tests/test-ldexpl.c (main): Likewise.
40949         * tests/test-round.c (main): Likewise.
40950         * tests/test-roundf.c (main): Likewise.
40951         * tests/test-roundl.c (main): Likewise.
40952         * tests/test-signbit.c (test_signbitf, test_signbitd)
40953         (test_signbitl): Likewise.
40954         * tests/test-snprintf-posix.h (test_function): Likewise.
40955         * tests/test-sprintf-posix.h (test_function): Likewise.
40956         * tests/test-strtod.c (main): Likewise.
40957         * tests/test-trunc1.c (main): Likewise.
40958         * tests/test-truncf1.c (main): Likewise.
40959         * tests/test-truncl.c (main): Likewise.
40961         isnanl: work around icc bug
40962         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
40964 2010-11-03  Eric Blake  <eblake@redhat.com>
40966         tests: fix compiler warnings
40967         * tests/test-getopt.h (test_getopt): Fix condition.
40968         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40969         * tests/test-pipe2.c (main): Likewise.
40970         * tests/test-quotearg-simple.c (main): Avoid icc warning.
40972         utimens: fix broken m4 test
40973         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
40975 2010-10-28  Bruno Haible  <bruno@clisp.org>
40977         posix_spawn*, getdtablesize: Relax license.
40978         * modules/posix_spawn (License): Change to LGPLv2+.
40979         * modules/posix_spawnp (License): Likewise.
40980         * modules/posix_spawn-internal (License): Likewise.
40981         * modules/posix_spawnattr_init (License): Likewise.
40982         * modules/posix_spawnattr_getflags (License): Likewise.
40983         * modules/posix_spawnattr_setflags (License): Likewise.
40984         * modules/posix_spawnattr_getpgroup (License): Likewise.
40985         * modules/posix_spawnattr_setpgroup (License): Likewise.
40986         * modules/posix_spawnattr_getschedparam (License): Likewise.
40987         * modules/posix_spawnattr_setschedparam (License): Likewise.
40988         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
40989         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
40990         * modules/posix_spawnattr_getsigdefault (License): Likewise.
40991         * modules/posix_spawnattr_setsigdefault (License): Likewise.
40992         * modules/posix_spawnattr_getsigmask (License): Likewise.
40993         * modules/posix_spawnattr_setsigmask (License): Likewise.
40994         * modules/posix_spawnattr_destroy (License): Likewise.
40995         * modules/posix_spawn_file_actions_init (License): Likewise.
40996         * modules/posix_spawn_file_actions_addclose (License): Likewise.
40997         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
40998         * modules/posix_spawn_file_actions_addopen (License): Likewise.
40999         * modules/posix_spawn_file_actions_destroy (License): Likewise.
41000         * modules/getdtablesize (License): Likewise.
41001         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
41003 2010-10-26  Bruno Haible  <bruno@clisp.org>
41005         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
41006         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
41007         Cygwin and mingw.
41008         Suggested by Eric Blake.
41010 2010-10-26  Bruno Haible  <bruno@clisp.org>
41012         stdio: Work around compilation error due to renameat() on Solaris 10.
41013         * lib/stdio.in.h: Include <unistd.h> on Solaris.
41014         * lib/renameat.c: Don't include <unistd.h> here.
41015         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
41016         Reported by Paul Eggert and Eric Blake.
41018 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41020         renameat: port to Solaris 10, which declares renameat in unistd.h
41022         * lib/renameat.c: Include unistd.h before stdio.h, because
41023         Solaris 10 declares renameat in unistd.h.  Problem encountered
41024         when building GNU tar 1.24 on Solaris 10.
41026 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
41028         fdopendir: fix C89 compilation
41029         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
41030         compilers.
41032 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
41034         inttostr: simplify by removing unnecessary redundancy
41035         * lib/anytostr.c: Don't include verify.h.
41036         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
41037         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
41038         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
41039         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
41040         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
41041         Likewise.
41042         * modules/inttostr (Depends-on): Remove 'verify'.
41044 2010-10-23  Bruno Haible  <bruno@clisp.org>
41046         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
41047         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
41048         Reported by Eric Blake.
41050 2010-10-23  Bruno Haible  <bruno@clisp.org>
41052         Tests: Fix LOCALE_JA on MirBSD 10.
41053         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
41054         to an UTF-8 locale.
41055         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
41056         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41057         Reported by Eric Blake.
41059 2010-10-21  Bruno Haible  <bruno@clisp.org>
41061         nl_langinfo test: Avoid test failure on NetBSD 5.
41062         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
41063         Reported by Eric Blake.
41065 2010-10-21  Eric Blake  <eblake@redhat.com>
41067         c-stack: work around libsigsegv 2.8 bug
41068         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
41069         overflow on at least PowerPC64.
41071 2010-10-17  Bruno Haible  <bruno@clisp.org>
41073         userspec: Drop redundant file.
41074         * modules/userspec (Files): Remove lib/inttostr.h.
41076 2010-10-17  Bruno Haible  <bruno@clisp.org>
41078         nl_langinfo tests: Silence some warnings.
41079         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
41080         Reported by Jim Meyering.
41082 2010-10-17  Bruno Haible  <bruno@clisp.org>
41084         Make use of GCC's attribute __alloc_size__.
41085         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
41086         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
41087         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
41088         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
41089         __alloc_size__.
41090         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41091         Suggested by Jim Meyering.
41093 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
41095         bootstrap: anchor .gitignore entries.
41096         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
41097         with...
41098         (insert_vc_ignore): ... this new function, which prepends `/' to
41099         all .gitignore entries before passing them to
41100         insert_sorted_if_absent.
41102 2010-10-16  Bruno Haible  <bruno@clisp.org>
41104         nextafter: Fix configure check.
41105         * modules/nextafter (configure.ac): Correct expected prototype.
41107 2010-10-16  Bruno Haible  <bruno@clisp.org>
41109         termios: Update documentation.
41110         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
41112 2010-10-16  Bruno Haible  <bruno@clisp.org>
41114         tests: Make them compile with TinyCC.
41115         * tests/test-strstr.c (main): Remove parentheses around array
41116         initializer.
41118 2010-10-15  Eric Blake  <eblake@redhat.com>
41120         ignore-value: make header idempotent
41121         * lib/ignore-value.h: Add double-inclusion guards.
41122         Reported by Stefan Berger.
41124 2010-10-15  Jim Meyering  <meyering@redhat.com>
41126         GNUmakefile: handle "stable" target, not "major"
41127         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
41128         lists in maint.mk and announce-gen.  Without this, "make stable"
41129         would fail to ensure that $(VERSION) is up to date.
41131 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
41133         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
41134         & co.
41136 2010-10-14  Bruno Haible  <bruno@clisp.org>
41138         vasnprintf: Don't set errno to 0.
41139         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
41140         block that sets it to 0.
41141         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
41143 2010-10-14  Bruno Haible  <bruno@clisp.org>
41145         socketlib: Fix.
41146         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
41147         gl_PREREQ_SYS_H_WINSOCK2.
41148         Reported by Ian Beckwith <ianb@erislabs.net>.
41150 2010-10-13  Jim Meyering  <meyering@redhat.com>
41152         test-select-stdin.c: avoid warn_unused_result warnings
41153         * tests/test-select-stdin.c: Include "macros.h".
41154         ASSERT that read and fflush succeed.
41156 2010-10-13  Jim Meyering  <meyering@redhat.com>
41158         git-version-gen: do require git-VC'd files in cwd
41159         * build-aux/git-version-gen: Reject a git version string
41160         if there are no commits associated with the current directory.
41161         This avoids an unlikely false-positive (unrelated dir whose parent
41162         repository also contains a tag matching v*), as pointed out
41163         by Giuseppe Scrivano in
41164         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
41166 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
41168         argv-iter: omit nonconforming declaration
41169         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
41170         enum arg_iter_err declaration, which doesn't conform to C99.
41171         Solaris 10 cc warns about this.
41173 2010-10-13  Eric Blake  <eblake@redhat.com>
41175         termios: fix compilation on mingw
41176         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
41177         (gl_TERMIOS_H): Adjust it on mingw.
41178         * modules/termios (Makefile.am): Substitute new key.
41179         * lib/termios.in.h (includes): Make include_next conditional.
41180         * doc/posix-headers/termios.texi (termios.h): Update
41181         documentation.
41182         Reported by Daniel P. Berrange.
41184 2010-10-13  Jim Meyering  <meyering@redhat.com>
41186         git-version-gen: don't require that .git/ be in the current dir
41187         * build-aux/git-version-gen: Adjust this script so that it works
41188         when run from any working directory beneath the top-level .git/-
41189         containing directory.  Inspired by a patch from Giuseppe Scrivano,
41190         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
41192         test-select: avoid warn_unused_result warnings
41193         * tests/test-select.c: Include "macros.h".
41194         ASSERT that each call to read, write, and pipe succeeds.
41195         While not technically required, also check each "close".
41196         * modules/select-tests (Files): Add tests/macros.h.
41198         test-symlinkat: remove declaration of unused local
41199         * tests/test-symlinkat.c (main): Remove unused local, "buf".
41201         test-inttostr: avoid shadowing warnings
41202         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
41203         and use malloc rather than the stack for the same reason as
41204         mentioned in the comment justifying the other allocation.
41206 2010-10-11  Bruno Haible  <bruno@clisp.org>
41208         stdlib: Allow multiple gnulib generated replacements to coexist.
41209         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
41210         Reported by Sam Steingold <sds@gnu.org>.
41212 2010-10-11  Jim Meyering  <meyering@redhat.com>
41214         fix a documentation typo
41215         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
41217 2010-10-11  Eric Blake  <eblake@redhat.com>
41219         futimens: work around Solaris 11 bug
41220         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
41221         * tests/test-futimens.h (test_futimens): Enhance, rather than
41222         weaken test.
41223         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41225 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41227         Indentation.
41228         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
41229         higher-level operators more to the left.
41231 2010-10-11  Jim Meyering  <meyering@redhat.com>
41233         test-futimens: avoid unwarranted test failure on Solaris 5.11
41234         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
41235         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
41236         because it tries to dereference the NULL name argument.
41238 2010-10-11  Bruno Haible  <bruno@clisp.org>
41240         Indentation.
41241         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
41242         indentation.
41244 2010-10-11  Jim Meyering  <meyering@redhat.com>
41246         spawn.in.h: make indentation consistent with parentheses
41247         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
41248         Make indentation consistent with parentheses.
41250 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
41252         Fix mismatched parens in previous commit
41253         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
41254         parens.
41256 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41258         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
41260         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
41261         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
41262         * lib/malloca.c: Include "verify.h".
41263         (verify1): Remove, replacing with a verify call.
41264         * lib/relocwrapper.c (verify1): Likewise.
41265         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
41266         Likewise.
41267         * modules/malloca (Depends-on): Add 'verify'.
41268         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
41269         * modules/vasnprintf (Depends-on): Add 'verify'.
41270         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41271         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41272         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41273         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41274         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41275         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41276         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41278         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
41280         Formerly the style was sometimes 2*X - 1, because the C standard
41281         was wrongly thought to disallow ?: in integral constant expressions.
41282         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
41283         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
41284         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
41285         * lib/stdint.in.h (_verify_intmax_size): Likewise.
41286         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
41287         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
41288         verify that time_t cannot be floating.
41290 2010-10-08  Eric Blake  <eblake@redhat.com>
41292         time: enforce recent POSIX ruling that time_t is integral
41293         * lib/time.in.h (__time_t_must_be_integral): Detect any
41294         problematic systems, allowing the rest of gnulib to assume POSIX.
41296 2010-10-08  Jim Meyering  <meyering@redhat.com>
41298         fdopendir: fix a bug on systems lacking openat and /proc support
41299         OpenBSD 4.7 is one such system.  The most noticeable effect was
41300         failure of any application making nontrivial use of fts: rm, du,
41301         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
41302           ./rm: traversal failed: `a': Bad file descriptor
41303         Debugging that, you see that even though FD 6 was closed just
41304         prior to the opendir call in fd_clone_opendir, its resulting
41305         dir->dd_fd was 8, rather than the expected value of 6:
41307         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
41308         93                close (fd);
41309         (gdb) n
41310         94                dir = fd_clone_opendir (dupfd);
41311         (gdb) n
41312         95                saved_errno = errno;
41313         (gdb) p dir->dd_fd
41314         $11 = 8
41316         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
41317         The problem is that on OpenBSD, fd_clone_opendir has to resort
41318         to using the old-style save/restore CWD mechanism, due to its
41319         lack of openat/proc support, and *that* would steal the FD (6)
41320         that opendir was supposed to use.
41322         The fix is to squirrel away the desired FD so that save_cwd uses a
41323         different one, and then free the dest FD right before calling opendir.
41324         That guarantees opendir will use the required file descriptor.
41326         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
41328 2010-10-08  Bruno Haible  <bruno@clisp.org>
41330         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
41331         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
41333 2010-10-08  Bruno Haible  <bruno@clisp.org>
41335         nanosleep: Make replacement POSIX compliant.
41336         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
41337         is out of range.
41338         Reported by Jim Meyering.
41340 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41342         bootstrap: add hook for altering gnulib.mk, for Bison
41343         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
41344         the Bison bootstrapping process can rewrite file names and variables
41345         in this file before later parts of 'bootstrap' use the file.
41346         Bison wants to include lib/gnulib.mk from the top-level makefile,
41347         so it needs the file names in this file to be relative to the top
41348         level, not relative to lib; plus it needs variable names to be
41349         rewritten.
41350         (slurp): Use the new function.
41352         bootstrap: reformat for readability
41353         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
41355 2010-10-08  Eric Blake  <eblake@redhat.com>
41357         docs: update cygwin progress
41358         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
41359         1.7.7.
41360         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
41361         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
41362         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
41363         * doc/posix-functions/carg.texi (carg): Likewise.
41364         * doc/posix-functions/cargf.texi (cargf): Likewise.
41365         * doc/posix-functions/casin.texi (casin): Likewise.
41366         * doc/posix-functions/casinf.texi (casinf): Likewise.
41367         * doc/posix-functions/casinh.texi (casinh): Likewise.
41368         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
41369         * doc/posix-functions/catan.texi (catan): Likewise.
41370         * doc/posix-functions/catanf.texi (catanf): Likewise.
41371         * doc/posix-functions/catanh.texi (catanh): Likewise.
41372         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
41373         * doc/posix-functions/ccos.texi (ccos): Likewise.
41374         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
41375         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
41376         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
41377         * doc/posix-functions/cexp.texi (cexp): Likewise.
41378         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
41379         * doc/posix-functions/cimag.texi (cimag): Likewise.
41380         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
41381         * doc/posix-functions/clog.texi (clog): Likewise.
41382         * doc/posix-functions/clogf.texi (clogf): Likewise.
41383         * doc/posix-functions/conj.texi (conj): Likewise.
41384         * doc/posix-functions/conjf.texi (conjf): Likewise.
41385         * doc/posix-functions/cpow.texi (cpow): Likewise.
41386         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
41387         * doc/posix-functions/cproj.texi (cproj): Likewise.
41388         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
41389         * doc/posix-functions/creal.texi (creal): Likewise.
41390         * doc/posix-functions/crealf.texi (crealf): Likewise.
41391         * doc/posix-functions/csin.texi (csin): Likewise.
41392         * doc/posix-functions/csinf.texi (csinf): Likewise.
41393         * doc/posix-functions/csinh.texi (csinh): Likewise.
41394         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
41395         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
41396         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
41397         * doc/posix-functions/ctan.texi (ctan): Likewise.
41398         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
41399         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
41400         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
41401         * doc/posix-headers/complex.texi (complex.h): Likewise.
41403 2010-10-07  Jim Meyering  <meyering@redhat.com>
41405         parse-datetime: avoid compilation failure on OpenBSD 4.7
41406         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
41407         This works around a compilation failure on OpenBSD 4.7:
41408         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
41410 2010-10-07  Eric Blake  <eblake@redhat.com>
41412         docs: update cygwin progress
41413         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
41414         1.7.6.
41415         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41416         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
41417         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
41418         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
41419         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
41420         Likewise.
41421         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
41422         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
41423         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
41424         Likewise.
41425         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
41426         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
41427         Likewise.
41428         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
41429         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
41430         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
41431         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
41432         Likewise.
41433         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
41434         Likewise.
41435         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
41437         docs: update parse-datetime history
41438         * doc/parse-datetime.texi (Authors of parse_datetime): Better
41439         documentation of this function's history and alternatives.
41441         cygwin: use more robust version check
41442         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
41443         exclude an eventual cygwin 1.9.1.
41444         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
41445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
41446         (gl_FUNC_STRCASESTR): Likewise.
41447         Reported by Bruno Haible.
41449 2010-10-06  Bruno Haible  <bruno@clisp.org>
41451         string, sys_select: Avoid #including large headers unless necessary.
41452         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
41453         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
41454         OSF/1, BeOS, Haiku.
41455         Reported by Jim Meyering.
41457 2010-10-05  Eric Blake  <eblake@redhat.com>
41459         memmem, strstr, strcasestr: fix bug with long periodic needle
41460         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
41461         periodic needle having false positive.
41462         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
41463         and cygwin 1.7.7.
41464         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
41465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
41466         (gl_FUNC_STRCASESTR): Likewise.
41467         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
41468         * tests/test-memmem.c (main): Expose the bug.
41469         * tests/test-strcasestr.c (main): Likewise.
41470         * tests/test-strstr.c (main): Likewise.
41471         * tests/test-c-strcasestr.c (main): Likewise.
41472         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
41473         * doc/posix-functions/strstr.texi (strstr): Likewise.
41474         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41475         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
41477 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41479         parse-datetime: do some more renaming
41480         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
41481         parse_datetime, not get_date.  Mention the renaming.
41482         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
41483         in comments.
41484         * m4/bison.m4: Likewise.
41486 2010-10-05  Eric Blake  <eblake@redhat.com>
41488         parse-datetime: better name than get_date
41489         * NEWS: Reword the deprecation notice.
41490         * modules/get_date: Rename to modules/parse-datetime.
41491         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
41492         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
41493         * lib/get_date.y: Rename to lib/parse-datetime.y.
41494         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
41495         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
41496         * doc/getdate.texi: Provide fallback wrapper.
41497         * lib/getdate.h: Move guts, and wrap...
41498         * lib/parse-datetime.h: ...new file.
41499         * lib/parse-datetime.y (get_date): Rename...
41500         (parse_datetime): ...to this.
41501         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
41502         (gl_PARSE_DATETIME): ...to this.
41503         * doc/posix-functions/getdate.texi (get_date): Provide fallback
41504         documentation.
41505         * modules/getdate (Files): Provide fallback docs and header.
41506         (Notice, Depends-on): Update references.
41507         * tests/test-parse-datetime.c: Likewise.
41508         * DEPENDENCIES: Likewise.
41509         * MODULES.html.sh (Date and time <time.h>): Likewise.
41510         * doc/parse-datetime.texi (Date input formats)
41511         (Authors of parse_datetime): Likewise.
41512         * modules/parse-datetime (Files, configure.ac, Makefile.am)
41513         (Include): Likewise.
41514         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
41515         * gnulib-tool: Likewise.
41516         * m4/bison.m4 (gl_BISON): Likewise.
41517         Suggested by Bruno Haible.
41519 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41521         more ports to Solaris tr, which needs [] around ranges
41522         * gnulib-tool: Solaris tr needs [] around ranges.
41523         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
41524         * tests/test-pipe-filter-gi1.c (main): Likewise.
41525         * tests/test-pipe-filter-ii1.c (main): Likewise.
41527 2010-10-05  Eric Blake  <eblake@redhat.com>
41529         bootstrap: fix Solaris regression
41530         * build-aux/bootstrap (check_versions): Solaris tr still needs []
41531         around ranges.
41532         Reported by Pádraig Brady.
41534         bootstrap: work with pkg-config
41535         * build-aux/bootstrap (check_versions): Also transliterate - in
41536         prerequisite name.
41537         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
41538         prerequisites that were already found, to avoid confusion.
41539         Reported by Justin Clift.
41541         faccessat: remove unused wrappers
41542         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
41543         presence of these wrappers dragged in -lgen on Solaris.
41544         Reported by Clemens Brogi; fix suggested by Paul Eggert.
41546 2010-10-05  Jim Meyering  <meyering@redhat.com>
41548         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
41549         * Makefile (sc_pragma_columns): New syntax-check rule.
41551 2010-10-04  Bruno Haible  <bruno@clisp.org>
41553         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
41554         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
41555         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
41556         Reported by Bruce Korb and Eric Blake.
41558 2010-10-04  Bruno Haible  <bruno@clisp.org>
41560         threadlib: Make option --with-libpth-prefix work.
41561         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
41562         use $LIBPTH, not just -lpth.
41564 2010-10-04  Bruno Haible  <bruno@clisp.org>
41566         Avoid line length limitation from HP NonStop system header files.
41567         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
41568         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
41569         * lib/ctype.in.h: Likewise.
41570         * lib/dirent.in.h: Likewise.
41571         * lib/errno.in.h: Likewise.
41572         * lib/fcntl.in.h: Likewise.
41573         * lib/float.in.h: Likewise.
41574         * lib/getopt.in.h: Likewise.
41575         * lib/iconv.in.h: Likewise.
41576         * lib/inttypes.in.h: Likewise.
41577         * lib/langinfo.in.h: Likewise.
41578         * lib/locale.in.h: Likewise.
41579         * lib/math.in.h: Likewise.
41580         * lib/netdb.in.h: Likewise.
41581         * lib/netinet_in.in.h: Likewise.
41582         * lib/poll.in.h: Likewise.
41583         * lib/pthread.in.h: Likewise.
41584         * lib/pty.in.h: Likewise.
41585         * lib/sched.in.h: Likewise.
41586         * lib/se-selinux.in.h: Likewise.
41587         * lib/search.in.h: Likewise.
41588         * lib/signal.in.h: Likewise.
41589         * lib/spawn.in.h: Likewise.
41590         * lib/stdarg.in.h: Likewise.
41591         * lib/stddef.in.h: Likewise.
41592         * lib/stdint.in.h: Likewise.
41593         * lib/stdio.in.h: Likewise.
41594         * lib/stdlib.in.h: Likewise.
41595         * lib/string.in.h: Likewise.
41596         * lib/strings.in.h: Likewise.
41597         * lib/sys_file.in.h: Likewise.
41598         * lib/sys_ioctl.in.h: Likewise.
41599         * lib/sys_select.in.h: Likewise.
41600         * lib/sys_socket.in.h: Likewise.
41601         * lib/sys_stat.in.h: Likewise.
41602         * lib/sys_time.in.h: Likewise.
41603         * lib/sys_times.in.h: Likewise.
41604         * lib/sys_utsname.in.h: Likewise.
41605         * lib/sys_wait.in.h: Likewise.
41606         * lib/sysexits.in.h: Likewise.
41607         * lib/termios.in.h: Likewise.
41608         * lib/time.in.h: Likewise.
41609         * lib/unistd.in.h: Likewise.
41610         * lib/wchar.in.h: Likewise.
41611         * lib/wctype.in.h: Likewise.
41612         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
41613         * modules/ctype (Makefile.am): Likewise.
41614         * modules/dirent (Makefile.am): Likewise.
41615         * modules/errno (Makefile.am): Likewise.
41616         * modules/fcntl-h (Makefile.am): Likewise.
41617         * modules/float (Makefile.am): Likewise.
41618         * modules/getopt-posix (Makefile.am): Likewise.
41619         * modules/iconv-h (Makefile.am): Likewise.
41620         * modules/inttypes (Makefile.am): Likewise.
41621         * modules/langinfo (Makefile.am): Likewise.
41622         * modules/locale (Makefile.am): Likewise.
41623         * modules/math (Makefile.am): Likewise.
41624         * modules/netdb (Makefile.am): Likewise.
41625         * modules/netinet_in (Makefile.am): Likewise.
41626         * modules/poll-h (Makefile.am): Likewise.
41627         * modules/pthread (Makefile.am): Likewise.
41628         * modules/pty (Makefile.am): Likewise.
41629         * modules/sched (Makefile.am): Likewise.
41630         * modules/search (Makefile.am): Likewise.
41631         * modules/selinux-h (Makefile.am): Likewise.
41632         * modules/signal (Makefile.am): Likewise.
41633         * modules/spawn (Makefile.am): Likewise.
41634         * modules/stdarg (Makefile.am): Likewise.
41635         * modules/stddef (Makefile.am): Likewise.
41636         * modules/stdint (Makefile.am): Likewise.
41637         * modules/stdio (Makefile.am): Likewise.
41638         * modules/stdlib (Makefile.am): Likewise.
41639         * modules/string (Makefile.am): Likewise.
41640         * modules/strings (Makefile.am): Likewise.
41641         * modules/sys_file (Makefile.am): Likewise.
41642         * modules/sys_ioctl (Makefile.am): Likewise.
41643         * modules/sys_select (Makefile.am): Likewise.
41644         * modules/sys_socket (Makefile.am): Likewise.
41645         * modules/sys_stat (Makefile.am): Likewise.
41646         * modules/sys_time (Makefile.am): Likewise.
41647         * modules/sys_times (Makefile.am): Likewise.
41648         * modules/sys_utsname (Makefile.am): Likewise.
41649         * modules/sys_wait (Makefile.am): Likewise.
41650         * modules/sysexits (Makefile.am): Likewise.
41651         * modules/termios (Makefile.am): Likewise.
41652         * modules/time (Makefile.am): Likewise.
41653         * modules/unistd (Makefile.am): Likewise.
41654         * modules/wchar (Makefile.am): Likewise.
41655         * modules/wctype (Makefile.am): Likewise.
41657 2010-10-04  Bruno Haible  <bruno@clisp.org>
41659         read-file tests: Avoid a test failure on NonStop Kernel.
41660         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
41661         a regular file.
41662         Reported by Joachim Schmitz <schmitz@hp.com>.
41664 2010-10-03  Bruno Haible  <bruno@clisp.org>
41666         gnulib-tool: Fixes for --create-testdir with --libtool.
41667         * gnulib-tool (func_get_automake_snippet): Don't augment
41668         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
41669         an executable.
41670         (func_create_testdir): Handle module 'alloca' like func_import.
41671         Reported by Bruce Korb <bruce.korb@gmail.com>.
41673 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
41675         Avoid some lines longer than 80 characters.
41676         * lib/stdint.in.h: Break long comment lines.
41677         * lib/math.in.h: Likewise.
41678         (_GL_NUM_UINT_WORDS): New macro, for readability.
41679         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
41680         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
41681         * lib/stdlib.in.h: Likewise.
41682         * lib/spawn.in.h: Likewise.
41683         * lib/sys_socket.in.h: Update an URL.
41684         * lib/sys_stat.in.h: Break long line.
41686 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
41688         Improve pmccabe2html.
41689         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
41690         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
41691         when the sources change. Remove the line in the HTML about "Used
41692         ranges" (which implied that there might be other unused ranges),
41693         rename "Resume" to "Summary" (easier to understand for more users).
41694         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
41695         styles, and some unnecessary blank lines.
41697 2010-10-03  Bruno Haible  <bruno@clisp.org>
41698             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
41700         acl: Add support for ACLs on NonStop Kernel.
41701         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
41702         Check whether the function aclsort() exists.
41703         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
41704         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
41705         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
41706         (acl_nontrivial [HAVE_ACLSORT]: New function.
41707         (file_has_acl): Implement for NonStop Kernel.
41708         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
41709         (qset_acl): Implement for NonStop Kernel.
41710         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
41711         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
41712         (main): Implement for NonStop Kernel.
41713         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
41714         Kernel. Handle this flavor.
41715         * tests/test-set-mode-acl.sh: Likewise.
41716         * tests/test-copy-acl.sh: Likewise.
41717         * tests/test-copy-file.sh: Likewise.
41719 2010-10-03  Bruno Haible  <bruno@clisp.org>
41721         Info about ACLs on NonStop Kernel.
41722         * doc/acl-resources.txt: Add info about NonStop Kernel.
41723         References by Joachim Schmitz <schmitz@hp.com>.
41725 2010-10-02  Bruno Haible  <bruno@clisp.org>
41727         Define missing EDQUOT on NonStop Kernel.
41728         * lib/errno.in.h (EDQUOT): Assign a value if missing.
41729         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
41730         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
41731         missing.
41732         * doc/posix-headers/errno.texi: Mention the NSK bug.
41733         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
41734         Reported by Joachim Schmitz <schmitz@hp.com>.
41736 2010-10-02  Bruno Haible  <bruno@clisp.org>
41738         Update doc for POSIX:2008.
41739         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
41740         Update URL of POSIX specification.
41742 2010-10-02  Bruno Haible  <bruno@clisp.org>
41744         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
41745         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
41746         from gnulib, not from Automake.
41748 2010-10-02  Bruno Haible  <bruno@clisp.org>
41750         New module 'system-posix'.
41751         * modules/system-posix: New file.
41752         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
41753         module is present.
41754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41755         GNULIB_SYSTEM_POSIX.
41756         * modules/stdlib (Depends-on): Remove sys_wait.
41757         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
41758         * doc/posix-functions/system.texi: Mention the new module.
41759         * doc/posix-headers/stdlib.texi: Likewise.
41760         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
41761         define test_sys_wait_macros to a no-op.
41762         Reported by Sam Steingold <sds@gnu.org>.
41764 2010-09-30  Bruno Haible  <bruno@clisp.org>
41766         More renaming from 'getdate' to 'get_date'.
41767         * doc/get_date.texi: Renamed from doc/getdate.texi.
41768         * modules/get_date (Files): Update.
41769         * MODULES.html.sh (Date and time <time.h>): Update.
41770         * DEPENDENCIES: Update.
41771         * gnulib-tool: Update comment.
41772         * m4/bison.m4 (gl_BISON): Likewise.
41773         * m4/get_date.m4 (gl_GET_DATE): Likewise.
41775 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
41777         bootstrap: support ACLOCAL_FLAGS during aclocal
41778         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
41779         can add additional -I dir for third-party .m4 files.
41781 2010-09-30  Eric Blake  <eblake@redhat.com>
41783         bootstrap: use glibtoolize on MacOS
41784         * build-aux/bootstrap (check_versions): Convert libtool into
41785         libtoolize.
41786         (tool search): Move libtool check earlier, and look for
41787         glibtoolize for MacOS.
41788         (gnulib_tool_options): Auto-add --libtool when appropriate.
41789         Reported by Justin Clift.
41791         poll: fix typo that broke test on MacOS
41792         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
41793         Reported by Justin Clift.
41795         getdate: rename to get_date
41796         Note: getdate.h is not renamed, to minimize client impact.
41797         * modules/getdate: Mark obsolete.  Move old contents...
41798         * modules/get_date: ...to new module name.
41799         * modules/getdate-tests: Move...
41800         * modules/get_date-tests: ...here.
41801         * m4/getdate.m4: Move...
41802         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
41803         * lib/getdate.y: Move...
41804         * lib/get_date.y: ...here.
41805         * tests/test-getdate.c: Move...
41806         * tests/test-get_date.c: ...here.
41807         * doc/posix-functions/getdate.texi (getdate): Update name.
41808         * NEWS: Mention the change.
41810 2010-09-29  Bruno Haible  <bruno@clisp.org>
41812         Separate the module 'waitpid' from the module 'sys_wait'.
41813         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
41814         present.
41815         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
41816         gl_MODULE_INDICATOR_FOR_TESTS.
41817         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
41818         * modules/sys_wait (Depends-on): Remove waitpid.
41819         (Makefile.am): Substitute GNULIB_WAITPID.
41820         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
41821         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
41822         signature only if the 'waitpid' module is present.
41823         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
41824         * NEWS: Mention the change.
41825         * modules/grantpt (Depends-on): Add waitpid.
41826         * modules/wait-process (Depends-on): Likewise.
41828 2010-09-29  Bruno Haible  <bruno@clisp.org>
41830         More tests for module 'sys_wait'.
41831         * modules/sys_wait-c++-tests: New file.
41832         * tests/test-sys_wait-c++.cc: New file.
41833         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
41834         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
41836 2010-09-29  Bruno Haible  <bruno@clisp.org>
41838         New module 'waitpid'.
41839         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
41840         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
41841         Don't include <process.h>.
41842         (waitpid): Declare only, using modern idiom.
41843         * m4/waitpid.m4: New file.
41844         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
41845         * modules/waitpid: New file.
41846         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
41847         (Makefile.am): Update.
41848         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
41850 2010-09-28  Bruno Haible  <bruno@clisp.org>
41852         poll: Assume ANSI C.
41853         * lib/poll.c (poll): Use an ANSI C declaration.
41855 2010-09-28  Bruno Haible  <bruno@clisp.org>
41857         poll-h: Create poll.h on all platforms.
41858         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
41859         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
41860         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
41861         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
41862         (gl_REPLACE_POLL_H): Don't set POLL_H.
41863         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
41864         * modules/poll-h (Depends-on): Add include_next.
41865         (Makefile.am): Create poll.h unconditionally. Substitute also
41866         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
41868 2010-09-28  Bruno Haible  <bruno@clisp.org>
41870         Tests for module 'poll-h'.
41871         * modules/poll-h-c++-tests: New file.
41872         * tests/test-poll-h-c++.cc: New file.
41874         Tests for module 'poll-h'.
41875         * modules/poll-h-tests: New file.
41876         * tests/test-poll-h.c: New file.
41878 2010-09-28  Bruno Haible  <bruno@clisp.org>
41880         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
41881         * modules/poll-h (Depends-on): Add 'extensions'.
41883 2010-09-28  Bruno Haible  <bruno@clisp.org>
41885         New module 'poll-h'.
41886         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
41887         (poll): Use modern idiom.
41888         * modules/poll-h: New file.
41889         * modules/poll (Files): Remove lib/poll.in.h.
41890         (Depends-on): Add poll-h.
41891         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
41892         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
41893         * m4/poll_h.m4: New file.
41894         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
41895         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
41896         and invoke gl_REPLACE_POLL_H.
41897         * lib/poll.c: Use common idiom.
41898         * tests/test-poll.c: Likewise.
41899         * doc/posix-headers/poll.texi: Mention the poll-h module.
41900         Suggested by Eric Blake.
41902 2010-09-26  Bruno Haible  <bruno@clisp.org>
41904         sys_wait: Implement WSTOPSIG.
41905         * lib/sys_wait.in.h (WSTOPSIG): New macro.
41906         Reported by Simon Josefsson.
41908 2010-09-26  Simon Josefsson  <simon@josefsson.org>
41910         stdlib, sys_wait: Avoid compilation error on mingw.
41911         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
41913 2010-09-26  Bruno Haible  <bruno@clisp.org>
41915         stdlib tests: Avoid code duplication.
41916         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
41917         * modules/sys_wait-tests (Files): Likewise.
41918         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
41919         * tests/test-stdlib.c: Include test-sys_wait.h.
41920         (main): Invoke test_sys_wait_macros.
41921         * tests/test-sys_wait.c: Include test-sys_wait.h.
41922         (main): Invoke test_sys_wait_macros.
41924 2010-09-25  Simon Josefsson  <simon@josefsson.org>
41926         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
41927         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
41928         sure Windows sockets are working before calling getaddrinfo.
41929         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
41930         * doc/gnulib.texi (Windows sockets): Fix typo.
41932 2010-09-25  Bruno Haible  <bruno@clisp.org>
41934         Tests for module 'regex-quote'.
41935         * modules/regex-quote-tests: New file.
41936         * tests/test-regex-quote.c: New file.
41938         New module 'regex-quote'.
41939         * lib/regex-quote.h: New file.
41940         * lib/regex-quote.c: New file.
41941         * modules/regex-quote: New file.
41942         Suggested by Reuben Thomas <rrt@sc3d.org>.
41944 2010-09-24  Bruno Haible  <bruno@clisp.org>
41946         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
41947         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
41949 2010-09-23  Bruno Haible  <bruno@clisp.org>
41951         setenv: Relax license.
41952         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
41953         Blake.
41954         Requested by Eric Blake.
41956 2010-09-22  Bruno Haible  <bruno@clisp.org>
41958         termios: Relax license.
41959         * modules/termios (License): Change to LGPLv2+.
41960         Requested by Eric Blake.
41962 2010-09-22  Bruno Haible  <bruno@clisp.org>
41964         threadlib: Allow the package to change the default to 'no'.
41965         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
41966         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
41967         Reported by Paul Eggert.
41969 2010-09-22  Pádraig Brady  <P@draigbrady.com>
41970             Bruno Haible  <bruno@clisp.org>
41972         Fix endless loop in mbmemcasecoll.
41973         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
41974         byte.
41975         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
41977 2010-09-22  Bruno Haible  <bruno@clisp.org>
41979         Tests for module 'memcoll'.
41980         * modules/memcoll-tests: New file.
41981         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
41983         memcoll, xmemcoll: Clarify size vs. length.
41984         * modules/memcoll.c (memcoll0): Clarify specification.
41985         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
41986         passed to collate_error.
41988 2010-09-22  Bruno Haible  <bruno@clisp.org>
41990         Tests for module 'memcasecmp'.
41991         * modules/memcasecmp-tests: New file.
41992         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
41994 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
41996         * lib/pthread.in.h: Add split double-inclusion guard, and include
41997         system <pthread.h> if there is one.  Use @@-style as in other
41998         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
41999         pthread.h doesn't.
42000         (pthread_mutexattr_destroy, pthread_mutexattr_init):
42001         (pthread_mutexattr_settype, pthread_mutex_trylock):
42002         New static inline functions, if there's no system <pthread.h>.
42003         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
42004         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
42005         Approximate with mutexes if the system lacks spinlocks, as in
42006         MacOS.
42007         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
42008         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
42009         @@-style.  Check for spinlocks separately.
42010         (gl_PTHREAD_DEFAULTS): New macro.
42011         * modules/pthread: Redo to use a more typical style for in.h files.
42013 2010-09-21  Eric Blake  <eblake@redhat.com>
42015         net_if: enhance tests
42016         * tests/test-net_if.c (main): Move signature checks earlier.
42017         Print failures to stderr.
42018         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
42019         Document the bug that we do not yet fix.
42021 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
42023         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
42024         about gnulib, not GSS.
42026 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
42028         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
42029         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
42030         for Emacs.
42031         * build-aux/pmccabe2html: Make Makefile.am example code more
42032         cut-and-paste friendly.
42034 2010-09-21  Simon Josefsson  <simon@josefsson.org>
42036         * tests/test-net_if.c: New file.
42037         * modules/net_if-tests: New file.
42039 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42041         pthread: add pthread_spin_destroy
42042         * lib/pthread.in.h (pthread_spin_destroy): New function.
42044 2010-09-19  Bruno Haible  <bruno@clisp.org>
42046         gnulib-tool: Fix --help output.
42047         * gnulib-tool (func_usage): Fix help message.
42048         Reported by Reuben Thomas <rrt@sc3d.org>.
42050 2010-09-18  Jim Meyering  <meyering@redhat.com>
42052         maint.mk: avoid unexpanded \n in two diagnostics
42053         * top/maint.mk (sc_prohibit_always_true_header_tests):
42054         Don't use a literal \n in a halt=... assignment.  It would not be
42055         expanded, and the two \n bytes would appear in the diagnostic output
42056         rather than the desired newline.  Use halt=$$(printf ... instead.
42057         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
42059 2010-09-18  Bruno Haible  <bruno@clisp.org>
42061         netinet_in: Doc tweak.
42062         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
42063         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
42065 2010-09-18  Jim Meyering  <meyering@redhat.com>
42067         init.sh: correct an outdated comment
42068         * tests/init.sh (create_exe_shims_):  s/function/alias/
42070         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
42071         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
42072         a file named "*.exe" is removed between the glob expansion and the
42073         processing of that oddly named file.
42075 2010-09-17  Eric Blake  <eblake@redhat.com>
42077         mirbsd: add some more support
42078         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
42079         in BSD family.
42080         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
42081         devices as OpenBSD.
42082         * m4/host-os.m4 (mirbsd): Add MirBSD.
42084         tests: fix unportable assumption on sys/wait.h
42085         * tests/test-sys_wait.c (main): Relax test.
42086         * tests/test-stdlib.c (main): Likewise.
42088         init.sh: accommodate directory with no .exes
42089         * tests/init.sh: Accomodate directory containing only scripts.
42091         tests: avoid compiler warning
42092         * tests/test-stdlib.c (main): Use the variable.
42094         fdutimens, fdutimensat: update signature, again
42095         * lib/utimens.h (gl_futimens): Delete, and move signature...
42096         (fdutimens): ...here.
42097         (fdutimensat): Rearrange signature.
42098         (lutimensat): Rename variable for clarity.
42099         * lib/fdutimensat.c (fdutimensat): Update signature.
42100         * lib/utimens.c (fdutimens): Likewise.
42101         (gl_futimens): Delete.
42102         (utimens, lutimens): Update callers.
42103         * lib/futimens.c (futimens): Likewise.
42104         * tests/test-fdutimensat.c: Likewise.
42105         * tests/test-utimens.c: Likewise.
42106         * tests/test-futimens.h: Update comment.
42107         * NEWS: Mention this.
42108         Suggested by Paul Eggert.
42110 2010-09-17  Bruno Haible  <bruno@clisp.org>
42112         Take over the maintenance of some older macros from Autoconf.
42113         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
42114         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
42115         GNU Autoconf.
42116         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
42117         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
42119 2010-09-17  Eric Blake  <eblake@redhat.com>
42121         fdutimensat: drop atflag validation
42122         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
42123         with valid fd, to close a race scenario where futimens is
42124         unsupported and FILE was replaced by a symlink.
42125         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
42126         accordingly.
42127         Suggested by Paul Eggert.
42129 2010-09-16  Bruno Haible  <bruno@clisp.org>
42131         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
42132         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
42134 2010-09-16  Bruno Haible  <bruno@clisp.org>
42136         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
42137         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
42138         login_tty exists.
42139         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
42141 2010-09-16  Bruno Haible  <bruno@clisp.org>
42143         login_tty: Make the replacement code work on BSD systems.
42144         * lib/login_tty.c: Include <sys/ioctl.h>.
42145         (login_tty): Use ioctl TIOCSCTTY when available.
42146         * modules/login_tty (Depends-on): Add sys_ioctl.
42147         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
42149 2010-09-16  Bruno Haible  <bruno@clisp.org>
42151         login_tty: Stricter unit test.
42152         * modules/login_tty-tests (Depends-on): Add tcgetsid.
42153         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
42154         and tcgetsid() after login_tty.
42155         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
42157 2010-09-16  Bruno Haible  <bruno@clisp.org>
42159         New module 'tcgetsid'.
42160         * lib/tcgetsid.c: New file.
42161         * m4/tcgetsid.m4: New file.
42162         * modules/tcgetsid: New file.
42163         * modules/termios (Depends-on): Add c++defs, warn-on-use.
42164         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
42165         GNULIB_TCGETSID, HAVE_TCGETSID.
42166         * lib/termios.in.h: Include <sys/types.h>.
42167         (tcgetsid): New declaration.
42168         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
42169         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
42170         * doc/posix-functions/tcgetsid.texi: Mention the new module.
42171         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
42173 2010-09-16  Bruno Haible  <bruno@clisp.org>
42175         Tests for module 'termios'.
42176         * modules/termios-c++-tests: New file.
42177         * modules/termios-tests: New file.
42178         * tests/test-termios-c++.cc: New file.
42179         * tests/test-termios.c: New file.
42181         New module 'termios'.
42182         * modules/termios: New file.
42183         * lib/termios.in.h: New file.
42184         * m4/termios_h.m4: New file.
42185         * doc/posix-headers/termios.texi: Mention the new module.
42187 2010-09-16  Eric Blake  <eblake@redhat.com>
42189         fdutimensat: add an atflag parameter
42190         * lib/fdutimensat.c (fdutimensat): Add new parameter.
42191         * lib/utimens.h (fdutimensat): Update prototype.
42192         * tests/test-fdutimensat.c: Adjust test to match.
42193         * NEWS: Document the change.
42194         Suggested by Paul Eggert.
42196 2010-09-16  Bruno Haible  <bruno@clisp.org>
42198         Fix typos in comments.
42199         * lib/striconveh.h: Fix typo in comment.
42200         * lib/login_tty.c (login_tty): Likewise.
42202 2010-09-15  Bruno Haible  <bruno@clisp.org>
42204         stdlib: clarify MirBSD WEXITSTATUS bug
42205         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
42206         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42208 2010-09-15  Eric Blake  <eblake@redhat.com>
42210         stdlib: work around MirBSD WEXITSTATUS bug
42211         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
42212         * modules/stdlib (Depends-on): Add sys_wait.
42213         * tests/test-sys_wait.c (main): Enhance test.
42214         * tests/test-stdlib.c (main): Likewise.
42215         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
42217         docs: mention MacOS issue with WEXITSTATUS(constant)
42218         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
42219         issue.
42220         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42222         strnlen: add tests
42223         * modules/strnlen-tests: New file.
42224         * tests/test-strnlen.c: Likewise.
42226 2010-09-14  Bruno Haible  <bruno@clisp.org>
42228         unistr/base: Avoid link errors when module 'libunistring' is also used.
42229         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
42230         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
42231         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
42232         Declare also when HAVE_LIBUNISTRING is set.
42233         Reported by Pádraig Brady <P@draigbrady.com>.
42235 2010-09-14  Eric Blake  <eblake@redhat.com>
42237         test-rawmemchr: make more robust
42238         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
42239         (Depends-on, configure.ac): Add needed prerequisites to use it.
42240         * modules/memchr-tests (Files, Depends-on, configure.ac):
42241         Likewise, to avoid implicit reliance on memchr module prereqs.
42242         * tests/test-memchr.c (main): Ensure proper masking.
42243         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
42244         reads.
42246         memchr: detect glibc Alpha bug
42247         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
42248         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
42249         Alpha.
42250         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
42251         * tests/test-memchr.c (main): Enhance test.
42252         Reported by Nelson H. F. Beebe.
42254 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42256         fts, getcwd, glob: audit for dirfd returning -1
42257         * lib/fts.c (opendir): Remove #define; no longer used.
42258         (opendirat): New arg PDIR_FD.  All callers changed.
42259         (fts_build, _opendir2): Use new opendirat to avoid the need for
42260         dirfd, or for checking whether dirfd returns a negative value.
42261         Don't use opendir; always use openat followed by fdopendir.
42262         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
42263         it.
42264         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
42265         returns -1 here.
42266         * modules/fts (Depends-on): Remove dirfd.
42267         * modules/getcwd (Depends-on): Likewise.
42269 2010-09-13  Eric Blake  <eblake@redhat.com>
42271         float: fix broken MirBSD header
42272         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
42273         * doc/posix-headers/float.texi (float.h): Document it.
42275 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42277         fts: use O_NOFOLLOW to avoid race condition when opening a directory
42278         * lib/fts.c (opendirat): New arg extra_flags.
42279         (__opendir2): Use it to avoid following symlinks when opening
42280         a directory, if symlinks are not supposed to be followed.  See
42281         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
42283         fdopendir: preserve argument fd before returning
42284         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
42285         (fdopendir_with_dup, fd_clone_opendir): New static functions.
42286         (fdopendir): Use them, arranging for FD to be open to the same
42287         directory that it was when it started.  (It might be temporarily
42288         closed while fdopendir is running, so this not thread- or
42289         signal-safe.)  Be careful to do the right thing even when file
42290         descriptors are scarce and dup fails with errno == EMFILE.  See
42291         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
42293 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
42295         regex: Pass the system regex if its only problem is 32-bit regoff_t.
42296         * NEWS: Document change.
42297         * m4/regex.m4: Disable test for regoff_t size.
42299 2010-09-13  Jim Meyering  <meyering@redhat.com>
42301         fts: don't operate on an invalid file descriptor after failed dup
42302         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
42303         negative file descriptor.
42305 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
42307         savedir: add streamsavedir, deprecate fdsavedir
42308         * NEWS: Mention deprecation of fdsavedir.
42309         * lib/savedir.c (streamsavedir): New extern function, whose name
42310         ends in "savedir" to be consistent with the others.  This differs
42311         from savedirstream in that it doesn't close its argument.  The
42312         next version of GNU tar will use this instead of fdsavedir, to
42313         avoid some race conditions and conserve file descriptors.
42314         (savedirstream): Reimplement as a wrapper around streamsavedir.
42315         (fdsavedir): Add a comment deprecating this function.  As far as
42316         I know, only GNU tar used it, and GNU tar doesn't need it any more.
42317         * lib/savedir.h (streamsavedir): New decl.
42318         (fdsavedir): Add a comment deprecating this.
42320 2010-09-10  Bruno Haible  <bruno@clisp.org>
42322         langinfo: Fix last commit.
42323         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
42324         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
42325         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42327 2010-09-10  Bruno Haible  <bruno@clisp.org>
42329         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
42330         * lib/progreloc.c (O_EXEC): Define fallback.
42332 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
42334         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
42335         * NEWS: Document recent changes to fcntl-h.
42336         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
42337         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
42338         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
42339         Similarly for O_SEARCH; this last was already true, but not documented.
42340         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
42341         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
42342         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
42343         Likewise.
42344         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
42345         is zero, not whether it is defined.
42346         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
42347         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
42348         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
42350 2010-09-10  Bruno Haible  <bruno@clisp.org>
42352         langinfo, nl_langinfo: Fix for IRIX 5.3.
42353         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
42354         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
42355         HAVE_LANGINFO_YESEXPR.
42356         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
42357         HAVE_LANGINFO_YESEXPR.
42358         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
42359         HAVE_LANGINFO_T_FMT_AMPM is 0.
42360         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
42361         HAVE_LANGINFO_YESEXPR is 0.
42362         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
42363         NOEXPR.
42364         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
42365         * doc/posix-functions/nl_langinfo.texi: Likewise.
42366         Reported by Eric Blake.
42368 2010-09-10  Bruno Haible  <bruno@clisp.org>
42370         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
42371         * doc/glibc-functions/login_tty.texi: Mention the include file problem
42372         on FreeBSD 8.0 and OpenBSD 4.6.
42373         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
42374         * m4/pty_h.m4 (gl_PTY_H): Likewise.
42375         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
42376         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
42377         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
42378         ac_includes_default.
42379         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
42381 2010-09-09  Eric Blake  <eblake@redhat.com>
42383         strsignal: work around NetBSD bug
42384         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
42385         * lib/string.in.h (includes): Likewise.
42386         * doc/posix-functions/strsignal.texi (strsignal): Document the
42387         bug.
42388         Reported by Nelson H. F. Beebe.
42390         gnulib-tool: work with NetBSD /bin/sh
42391         * gnulib-tool (func_cache_var, func_cache_lookup_module)
42392         (func_get_description, func_get_comment, func_get_status)
42393         (func_get_notice, func_get_applicability, func_get_filelist)
42394         (func_get_dependencies, func_get_autoconf_early_snippet)
42395         (func_get_autoconf_snippet, func_get_automake_snippet)
42396         (func_get_include_directive, func_get_link_directive)
42397         (func_get_license, func_get_maintainer, func_import): Avoid
42398         shell syntax errors from parsing syntax extensions.
42400 2010-09-09  Bruno Haible  <bruno@clisp.org>
42402         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
42403         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
42404         a reliable way to determine whether the 'alias' command works.
42406 2010-09-08  Jim Meyering  <meyering@redhat.com>
42408         init.sh: penalize a set-x-impaired shell; don't disqualify it
42409         * tests/init.sh: Too many shells corrupt application stderr when
42410         you set -x, so we can't afford to disqualify them, since at least
42411         on Irix-6.5, that would disqualify all bourne shells.
42412         Instead, use a two-pass approach.
42413         On the first pass, try to find a shell that meets the stricter
42414         condition that set -x does not corrupt stderr.
42415         If no shell meets the stricter condition, retest each candidate
42416         shell, but without that extra condition.  Finally, when
42417         VERBOSE=yes is requested and set -x might cause trouble, simply
42418         issue a warning and refrain from enabling debug output.
42420 2010-09-08  Eric Blake  <eblake@redhat.com>
42422         unsetenv: fix OpenBSD bug
42423         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
42424         * doc/posix-functions/unsetenv.texi (unsetenv): Update
42425         documentation.
42426         Reported by Jim Meyering.
42428         strtod: work around IRIX 6.5 bug
42429         * lib/strtod.c (strtod): Reparse number on shorter string if
42430         exponent parse was invalid.
42431         * tests/test-strtod.c (main): Add check for "0x1p 2".
42432         Reported by Tom G. Christensen.
42434         getopt: optimize previous patch
42435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
42436         empty variable.  Speed up awk script.
42437         Reported by Paolo Bonzini.
42439 2010-09-08  Jim Meyering  <meyering@redhat.com>
42441         test.sh: disqualify shells for which set -x corrupts stderr
42442         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
42443         and OpenBSD 4.7.  They make it so with "set -x", environment settings
42444         appear in stderr output.  For example, this command:
42445             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
42446         prints "P=1" on those two systems:
42448 2010-09-08  Bruno Haible  <bruno@clisp.org>
42450         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
42451         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
42452         commands, because some shells ignore redirections when there is an
42453         error in the command lookup.
42454         Reported by Eric Blake.
42456 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
42458         * lib/regex.h: Fix a mention of `regex_compile' (should be
42459         `re_compile_pattern').
42460         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
42461         (re_set_registers): Correct name of parameter in comment.
42463         * doc/regex.texi: Add documentation for missing syntax flags.
42464         Remove commented-out documentation of defunct syntax option
42465         RE_NO_EMPTY_ALTS.
42466         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
42467         Add documentation of re_set_registers.
42468         Document trick to re-use a pattern buffer by setting fastmap manually.
42469         Update documentation of struct re_pattern_buffer per public members.
42470         Uncomment documentation of equivalence class operators and
42471         collating symbol operators, since they are now implemented,
42472         Explain leftmost-longest matching in relation to alternatives.
42473         Tidy documentation of substring matching.
42474         Remove POSIX documentation, which is done better in
42475         glibc, and refer the reader there. Keep BSD API documentation, as
42476         that is not readily available elsewhere.
42478 2010-09-07  Eric Blake  <eblake@redhat.com>
42480         getopt: handle POSIXLY_CORRECT set but not exported
42481         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
42482         export state of POSIXLY_CORRECT, due to bash set -o posix.
42483         Reported by Dustin J. Mitchell.
42485 2010-09-05  Bruno Haible  <bruno@clisp.org>
42487         gnulib-tool: Highlight the changed options.
42488         * gnulib-tool (func_usage): Display the --import, --add-import,
42489         --remove-import explanations in bold font.
42491 2010-09-06  Karl Berry  <karl@gnu.org>
42493         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
42495 2010-09-05  Bruno Haible  <bruno@clisp.org>
42497         uniwidth/width: Update comment.
42498         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
42499         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
42501 2010-09-05  Bruno Haible  <bruno@clisp.org>
42503         isinf, isnan: Relax license.
42504         * modules/isinf (License): Change from GPL to LGPL, with consent from
42505         Ben Pfaff.
42506         * modules/isnan (License): Likewise.
42507         Requested by Ludovic Courtès.
42509 2010-09-04  Bruno Haible  <bruno@clisp.org>
42511         gnulib-tool: Help migration from --import to --add-import or --update.
42512         * gnulib-tool: Emit a verbose error message when --import is used
42513         without any module name.
42515 2010-09-04  Bruno Haible  <bruno@clisp.org>
42517         Update doc about gnulib-tool.
42518         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
42519         'gnulib-tool --update' in more detail.
42520         Reported by Eric Blake.
42522 2010-09-04  Bruno Haible  <bruno@clisp.org>
42524         gnulib-tool: Change --import. New options --add/remove-import.
42525         * gnulib-tool: New options --add-import, --remove-import.
42526         (func_usage): Document them.
42527         (have_associative): Define always.
42528         (func_import): In import mode, don't merge the specified settings with
42529         the cached settings. Implement remove-import mode.
42530         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
42531         Explain when to use them versus --import.
42532         (Simple update): Use --add-import instead of --import.
42533         * NEWS: Mention the change.
42535 2010-09-04  Bruno Haible  <bruno@clisp.org>
42537         * doc/gnulib-tool.texi (Initial import): Update paragraph about
42538         separate gnulib.mk.
42540 2010-09-04  Bruno Haible  <bruno@clisp.org>
42542         gnulib-tool: Don't talk about CVS any more.
42543         * gnulib-tool (func_usage, func_import): Write "version control"
42544         instead of CVS.
42546 2010-09-04  Jim Meyering  <meyering@redhat.com>
42548         maint.mk: avoid obscure sc_copyright_check failure in coreutils
42549         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
42550         false positives (whose names may be ill-chosen) when searching
42551         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
42552         would cause a false-positive.
42554         avoid coreutils "make distcheck" failure
42555         Coreutils tests with an absolute build directory name that contains
42556         a space.  Not quoting this directory name caused a failure.
42557         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
42558         * tests/test-vc-list-files-cvs.sh: Likewise.
42560 2010-09-04  Bruno Haible  <bruno@clisp.org>
42562         gnulib-tool: Avoid error when run in a package without Makefile.am.
42563         * gnulib-tool: When collecting the m4dirs in a package that does not
42564         have a Makefile.am, eliminate those directories that contain no
42565         gnulib-cache.m4. Fix expression that counts these directories.
42567 2010-09-04  Bruno Haible  <bruno@clisp.org>
42569         update-copyright test: Improve output when perl is missing or too old.
42570         * tests/test-update-copyright.sh: Move test of Perl version down after
42571         the test whether Perl exists. Provide an explanation relating Perl's
42572         error message to Automake's SKIP: message.
42574 2010-09-04  Bruno Haible  <bruno@clisp.org>
42576         Don't augment PATH in TESTS_ENVIRONMENT.
42577         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
42578         set abs_aux_dir instead of augmenting PATH.
42579         * modules/vc-list-files-tests (Makefile.am): Likewise.
42580         * tests/test-update-copyright.sh: Augment PATH here.
42581         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
42582         path_prepend_.
42583         * tests/test-vc-list-files-git.sh: Likewise.
42585 2010-09-04  Jim Meyering  <meyering@redhat.com>
42587         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
42588         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
42590 2010-09-04  Bruno Haible  <bruno@clisp.org>
42592         strdup: Fix compilation error in C++ mode.
42593         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
42594         the macro.
42596 2010-09-04  Bruno Haible  <bruno@clisp.org>
42598         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
42599         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
42600         macro into a function.
42601         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
42603 2010-09-04  Bruno Haible  <bruno@clisp.org>
42605         Set PATH_SEPARATOR the same way autoconf does.
42606         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
42607         the value of PATH_SEPARATOR the same way autoconf-generated configure
42608         scripts do.
42609         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
42610         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42612 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42614         Set PATH_SEPARATOR the same way autoconf does.
42615         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
42616         the same way autoconf-generated configure scripts do.
42617         * posix-modules: Likewise.
42619 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
42621         hash: fix safe_hasher const typo
42622         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
42623         const; otherwise, there is a type error later.
42625 2010-09-02  Jim Meyering  <meyering@redhat.com>
42627         test-update-copyright.sh: require perl 5.8.0
42628         * tests/test-update-copyright.sh: Require 5.8.0,
42629         which Tom G. Christensen has confirmed is adequate,
42630         while 5.6.1 is not.
42632 2010-09-02  Eric Blake  <eblake@redhat.com>
42634         tests: init.sh improvements for re-exec'ing with zsh
42635         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
42636         -vx through shell re-exec.
42637         Reported by Tom G. Christensen.
42639         wctype: fix typo in previous commit
42640         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
42641         Reported by Ludovic Courtès.
42643 2010-09-02  Jim Meyering  <meyering@redhat.com>
42645         test-update-copyright.sh: skip test if Perl is too old
42646         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
42647         Reported by Tom G. Christensen.
42649 2010-09-02  Bruno Haible  <bruno@clisp.org>
42651         wctype: Avoid compilation error on IRIX 6.5.30.
42652         * lib/wctype.in.h (iswblank): Declare with a replacement if
42653         REPLACE_ISWBLANK is set.
42654         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
42655         declared. Set REPLACE_ISWBLANK.
42656         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
42657         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
42658         * doc/posix-headers/wctype.texi: Likewise.
42659         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42661 2010-09-01  Bruno Haible  <bruno@clisp.org>
42663         New module 'socketlib'.
42664         * modules/socketlib: New file.
42665         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
42666         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
42667         * modules/sockets (Depends-on): Add socketlib.
42668         Suggested by Sam Steingold <sds@gnu.org>.
42670 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42672         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
42674         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
42675         when one needs search access to a directory but not read access.
42676         On systems where it is available, it works in some cases where
42677         O_RDONLY does not, namely on directories that are searchable but
42678         not readable, and which need only to be searchable.  If O_SEARCH
42679         is not available, fall back to the traditional method of using
42680         O_RDONLY.
42682         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
42683         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
42684         when opening a directory that needs only to be searchable.
42685         * lib/chdir-safer.c (chdir_no_follow): Likewise.
42686         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
42687         * lib/openat-proc.c (openat_proc_name): Likewise.
42688         * lib/openat.c (openat_needs_fchdir): Likewise.
42689         * lib/save-cwd.c (save_cwd): Likewise.
42690         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
42692 2010-08-28  Bruno Haible  <bruno@clisp.org>
42694         New module 'host-cpu-c-abi'.
42695         * modules/host-cpu-c-abi: New file.
42696         * m4/host-cpu-c-abi.m4: New file, based on part of
42697         clisp/src/m4/general.m4.
42698         Requested by Sam Steingold <sds@gnu.org>.
42700 2010-08-31  Eric Blake  <eblake@redhat.com>
42701         and Jim Meyering  <meyering@redhat.com>
42703         hash: factor, and guard against misbehaving hasher function
42704         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
42705         of table->hasher's return value.  Also protect against a hash value
42706         so large that adding it to table->bucket results in a NULL pointer.
42707         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
42708         Use it in place of open-coded check-and-abort.
42710 2010-08-30  Bruno Haible  <bruno@clisp.org>
42712         hash: silence spurious clang warning
42713         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
42714         Reported by Eric Blake.
42716 2010-08-30  Eric Blake  <eblake@redhat.com>
42718         strstr, memmem, strcasestr: avoid leaked shell message
42719         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
42720         FreeBSD.
42721         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42722         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42724         tests: silence clang warning
42725         * tests/test-malloca.c (do_allocation): Avoid dead store.
42727 2010-08-29  Bruno Haible  <bruno@clisp.org>
42729         gettext: Fix recent mistake.
42730         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
42732 2010-08-29  Bruno Haible  <bruno@clisp.org>
42734         selinux-h: Offer a --without-selinux option.
42735         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
42736         --without-selinux was specified, skip all tests and define
42737         HAVE_SELINUX_SELINUX_H to 0.
42738         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
42739         set LIB_SELINUX to empty.
42740         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
42741         gl_LIBSELINUX. If --without-selinux was specified, replace
42742         selinux/context.h.
42743         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
42745 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42746             Bruno Haible  <bruno@clisp.org>
42748         Make the module 'realloc-gnu' work again on AIX and OSF/1.
42749         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
42750         of HAVE_REALLOC.
42751         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
42752         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
42753         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
42754         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
42756 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42757             Bruno Haible  <bruno@clisp.org>
42759         Make the module 'calloc-gnu' work again on AIX and OSF/1.
42760         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
42761         HAVE_CALLOC.
42762         * lib/xmalloc.c: Update accordingly.
42763         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
42764         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
42765         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
42767 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42768             Bruno Haible  <bruno@clisp.org>
42770         Make the module 'malloc-gnu' work again on AIX and OSF/1.
42771         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
42772         HAVE_MALLOC.
42773         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
42774         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
42775         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
42777 2010-08-29  Bruno Haible  <bruno@clisp.org>
42779         Update modules list.
42780         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42781         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
42782         (String handling <string.h>): Add astrxfrm.
42783         (File system functions): Add readlinkat.
42785 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42787         Tests for module 'realloc-gnu'.
42788         * modules/realloc-gnu-tests: New file.
42789         * tests/test-realloc-gnu.c: New file.
42791         Tests for module 'calloc-gnu'.
42792         * modules/calloc-gnu-tests: New file.
42793         * tests/test-calloc-gnu.c: New file.
42795         Tests for module 'malloc-gnu'.
42796         * modules/malloc-gnu-tests: New file.
42797         * tests/test-malloc-gnu.c: New file.
42799 2010-08-28  Bruno Haible  <bruno@clisp.org>
42801         Rename module 'realloc' -> 'realloc-gnu'.
42802         * modules/realloc-gnu: New file, copied from modules/realloc.
42803         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
42804         obsolete.
42805         * modules/mgetgroups (Depends-on): Update.
42806         * doc/posix-functions/realloc.texi: Update.
42807         * NEWS: Mention the change.
42809         Rename module 'calloc' -> 'calloc-gnu'.
42810         * modules/calloc-gnu: New file, copied from modules/calloc.
42811         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
42812         obsolete.
42813         * doc/posix-functions/calloc.texi: Update.
42814         * NEWS: Mention the change.
42816         Rename module 'malloc' -> 'malloc-gnu'.
42817         * modules/malloc-gnu: New file, copied from modules/malloc.
42818         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
42819         obsolete.
42820         * modules/argp (Depends-on): Update.
42821         * modules/regex (Depends-on): Update.
42822         * doc/posix-functions/malloc.texi: Update.
42823         * NEWS: Mention the change.
42825 2010-08-28  Eric Blake  <eblake@redhat.com>
42827         pread, pwrite: add missing dependency
42828         * modules/pread (Depends-on): Add extensions.
42829         * modules/pwrite (Depends-on): Likewise.
42831 2010-08-28  Bruno Haible  <bruno@clisp.org>
42833         unistr/u*-strchr: Fix tests dependencies.
42834         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
42835         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
42836         Reported by Ian Beckwith <ianb@erislabs.net>.
42838 2010-08-28  Bruno Haible  <bruno@clisp.org>
42840         read-file: Don't occupy too much unused memory.
42841         * lib/read-file.c (fread_file): Shrink the buffer at the end.
42843 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
42844             Eric Blake  <eblake@redhat.com>
42845             Bruno Haible  <bruno@clisp.org>
42847         read-file: Avoid memory reallocations with regular files.
42848         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
42849         (fread_file): With regular files, use the remaining length as the
42850         initial buffer size.  Check against overflow.
42851         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
42852         sys_stat.
42854 2010-08-28  Bruno Haible  <bruno@clisp.org>
42856         ftello: Relax license.
42857         * modules/ftello (License): Relax to LGPLv2+.
42858         Reported by Eric Blake.
42860 2010-08-28  Bruno Haible  <bruno@clisp.org>
42862         Avoid relocwrapper link errors due to gnulib replacement functions.
42863         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
42864         function.
42865         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42867 2010-08-28  Bruno Haible  <bruno@clisp.org>
42869         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
42870         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
42871         defined.
42872         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
42873         Suggested by Eric Blake.
42875 2010-08-28  Bruno Haible  <bruno@clisp.org>
42877         sys_socket, netdb: Ensure socklen_t gets defined.
42878         * modules/sys_socket (Depends-on): Add socklen.
42879         * modules/netdb (Depends-on): Likewise.
42880         * modules/getaddrinfo (Depends-on): Remove socklen.
42881         * modules/getsockopt (Depends-on): Likewise.
42882         * modules/setsockopt (Depends-on): Likewise.
42883         * tests/test-sys_socket.c: Check that socklen_t is defined.
42884         * tests/test-netdb.c: Likewise.
42885         * m4/socklen.m4: Update comments.
42886         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42888 2010-08-27  Eric Blake  <eblake@redhat.com>
42890         login_tty: add missing dependency
42891         * modules/login_tty (Depends-on): Add pty.
42893 2010-08-26  Eric Blake  <eblake@redhat.com>
42895         lib-symbol-versions: fix m4 quoting
42896         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
42897         format for AC_LINK_IFELSE.
42899         glob: fix compile test
42900         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
42902         btowc: fix missing file
42903         * modules/btowc (Files): Also ship locale-fr.m4.
42905         lseek: fix link test
42906         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
42907         AC_LINK_IFELSE.
42909         include_next: silence autoconf 2.68 warning
42910         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
42911         AC_COMPILE_IFELSE as special.
42912         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
42913         autoconf < 2.68.
42915         acl: fix compilation test
42916         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
42917         AC_COMPILE_IFELSE.
42919 2010-08-26  Bruno Haible  <bruno@clisp.org>
42921         Modernize AC_TRY_RUN invocations.
42922         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
42923         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
42924         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
42925         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
42926         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
42927         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
42928         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
42929         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42930         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
42931         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
42932         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
42933         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42934         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
42935         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42936         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
42937         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
42938         gl_MBRLEN_NUL_RETVAL): Likewise.
42939         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
42940         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
42941         Likewise.
42942         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42943         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
42944         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
42945         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
42946         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
42947         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
42948         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
42949         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
42950         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
42951         Likewise.
42952         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42953         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
42954         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42955         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42956         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
42957         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
42958         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
42959         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
42960         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42963 2010-08-26  Bruno Haible  <bruno@clisp.org>
42965         Modernize AC_TRY_LINK invocations.
42966         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
42967         AC_TRY_LINK.
42968         * m4/argp.m4 (gl_ARGP): Likewise.
42969         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
42970         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
42971         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42972         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42973         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42974         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
42975         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
42976         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
42977         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42978         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42979         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42980         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
42981         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
42982         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
42983         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42984         * m4/hostent.m4 (gl_HOSTENT): Likewise.
42985         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
42986         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
42987         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42988         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
42989         Likewise.
42990         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
42991         Likewise.
42992         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
42993         Likewise.
42994         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42995         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
42996         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
42997         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
42998         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
42999         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
43000         * m4/servent.m4 (gl_SERVENT): Likewise.
43001         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
43002         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
43003         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
43004         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
43005         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43006         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
43007         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
43008         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
43009         * modules/tsearch-tests (configure.ac): Likewise.
43011 2010-08-26  Bruno Haible  <bruno@clisp.org>
43013         Modernize AC_TRY_COMPILE invocations.
43014         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
43015         AC_TRY_COMPILE.
43016         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
43017         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
43018         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43019         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43020         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43021         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43022         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
43023         * m4/lock.m4 (gl_LOCK): Likewise.
43024         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
43025         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43026         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
43027         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
43028         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43029         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
43030         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43031         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
43032         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43033         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43034         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43035         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43036         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
43037         extraneous semicolon.
43039 2010-08-26  Jim Meyering  <meyering@redhat.com>
43041         stat-time: relax license LGPL
43042         * modules/stat-time (License): Change from GPL to LGPL,
43043         with consent from all contributors, for use in libguile.
43044         Requested by Ludovic Courtès.
43046 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
43048         poll: return immediately on POLLHUP.
43049         * lib/poll.c (poll): Always set timeout before wait_timeout is
43050         computed.
43052 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43054         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
43055         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
43056         rmdir ("dir/.//"), unlinkat.
43058 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43060         stdbool: avoid spurious failure with modern xlc
43061         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
43063 2010-08-24  Bruno Haible  <bruno@clisp.org>
43065         getloadavg: simplify code
43066         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
43067         gl_have_func. Update comments.
43069 2010-08-24  Eric Blake  <eblake@redhat.com>
43071         getloadavg: don't define SVR4 on cygwin
43072         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
43073         only define SVR4 when -lkvm is required.
43074         Reported by Yaakov Selkowitz.
43076 2010-08-24  Bruno Haible  <bruno@clisp.org>
43078         priv-set: fix comment
43079         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
43081 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43083         priv-set: fix comments
43084         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
43085         to match code, as suggested by David Bartley in:
43086         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
43088 2010-08-23  Eric Blake  <eblake@redhat.com>
43090         stdbool: avoid rejecting clang
43091         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
43092         * tests/test-stdbool.c: Enable more tests if using the system
43093         <stdbool.h> instead of the gnulib replacement.
43094         (main): Move xlc bug test to a runtime test for all compilers.
43095         Reported by Anders Kaseorg.
43097         argz: fix shell quoting issue
43098         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
43099         Reported by Charles Wilson.
43101 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
43102             Erik Faye-Lund <kusmabite@gmail.com>
43104         poll, select: handle ERROR_BROKEN_PIPE.
43105         * lib/poll.c (win32_compute_revents): Return POLLHUP when
43106         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
43107         * lib/select.c (win32_compute_revents): Do not mark a pipe
43108         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
43110 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
43112         fts: allow compilation with C++
43113         * lib/fts_.h: Specify extern "C" linkage with C++.
43115 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43117         Fix gnulib-tool sed script de-commentation for AIX sed.
43118         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
43119         sed.
43121 2010-08-17  Eric Blake  <eblake@redhat.com>
43123         test-stddef: test for (some) offsetof bugs
43124         * tests/test-stddef.c: Enhance test to ensure correct type of
43125         offsetof.
43126         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
43127         that we are not fixing at this time.
43129 2010-08-15  Bruno Haible  <bruno@clisp.org>
43131         stpncpy: Allow stpncpy to be defined as a macro.
43132         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
43133         if it's already correctly declared.
43134         * lib/string.in.h (stpncpy): Undefine before redefining.
43135         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
43137 2010-08-14  Bruno Haible  <bruno@clisp.org>
43139         Rename module 'memxfrm' to 'amemxfrm'.
43140         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
43141         (amemxfrm): Renamed from memxfrm.
43142         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
43143         (amemxfrm): Renamed from memxfrm.
43144         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
43145         * NEWS: Mention the change.
43146         * MODULES.html.sh (String handling <string.h>): Update.
43147         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
43148         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
43149         * lib/unicase/u16-casexfrm.c: Likewise.
43150         * lib/unicase/u32-casexfrm.c: Likewise.
43151         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
43152         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
43153         * lib/uninorm/u16-normxfrm.c: Likewise.
43154         * lib/uninorm/u32-normxfrm.c: Likewise.
43155         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
43156         memxfrm.
43157         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
43158         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
43159         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
43160         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
43161         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
43162         Suggested by Paul Eggert.
43164 2010-08-14  Bruno Haible  <bruno@clisp.org>
43166         Tests for module 'astrxfrm'.
43167         * modules/astrxfrm-tests: New file.
43168         * tests/test-astrxfrm.c: New file.
43170         New module 'astrxfrm'.
43171         * lib/astrxfrm.h: New file.
43172         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
43173         * modules/astrxfrm: New file.
43175 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
43177         regex: Tweak doc.
43178         * doc/regex.texi (Overview): Don't mention regex.c.
43179         (GNU Regular Expression Compiling): Likewise.
43180         (Match-end-of-line Operator): Mention 'not_eol'.
43182 2010-08-14  Brian Gough  <bjg@gnu.org>
43183             Bruno Haible  <bruno@clisp.org>
43185         git-merge-changelog: add doc relating to use with bzr and hg.
43186         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
43188 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
43190         pthread: fix pthread.h creation for srcdir != builddir
43191         * modules/pthread (Makefile.am): Fix the rule to work also in a
43192         non-srcdir build.
43194 2010-08-13  Karl Berry  <karl@gnu.org>
43196         * doc/regex.texi (Predefined Syntaxes): @smallexample.
43197         * doc/posix-*/*: force line break before @url of POSIX
43198         specifications.
43199         Suggested by Werner Lemberg.
43201 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43203         strtod: fix const diagnostic
43204         * lib/strtod.c (strtod): Don't assign const char * to char *,
43205         as this elicits a warning from GCC when warnings are enabled.
43207 2010-08-10  Pádraig Brady  <P@draigbrady.com>
43208         and Eric Blake  <eblake@redhat.com>
43210         copy-acl: ignore ENOTSUP on HP-UX
43211         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
43212         so that it is available for HP-UX.
43213         * lib/copy-acl.c (qcopy_acl): Use it.
43214         Reported by Patrick M. Callahan.
43216 2010-08-10  Eric Blake  <eblake@redhat.com>
43218         open, chown: relax license
43219         * modules/open (License): Change to LGPLv2+, with consent by all
43220         authors, for use in augeas.
43221         * modules/chown (License): Likewise.
43222         * modules/lchown (Likewise): Likewise.
43223         Requested by Adam Stokes.
43225 2010-08-09  Karl Berry  <karl@gnu.org>
43227         * build-aux/ar-lib: new file, import from Automake.
43228         * config/srclist.txt: autocheck for updates.
43230 2010-08-09  Eric Blake  <eblake@redhat.com>
43232         readlinkat: adjust client modules
43233         * modules/areadlinkat (Depends-on): Use readlinkat, not
43234         symlinkat.
43235         * modules/areadlinkat-with-size (Depends-on): Likewise.
43237         mknod: be more vocal about danger of running tests as root
43238         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
43239         root, since that is just asking for problems.
43240         Suggested by Bruno Haible, based on a report by Rainer Tammer.
43242         readlinkat: split into its own module
43243         * modules/symlinkat: Split readlinkat...
43244         * modules/readlinkat: ...into separate module.
43245         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
43246         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
43247         * lib/symlinkat.c (readlinkat): Move...
43248         * lib/readlinkat.c: ...into new file.
43249         * modules/symlinkat-tests: Split readlinkat test...
43250         * modules/readlinkat-tests: ...into separate module.
43251         * tests/test-symlinkat.c: Split...
43252         * tests/test-readlinkat.c: ...into new file.
43253         * NEWS: Document the split.
43254         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43255         * lib/unistd.in.h (readlinkat): Likewise.
43256         Suggested by Bruno Haible.
43258 2010-08-08  Bruno Haible  <bruno@clisp.org>
43260         memxfrm: Speed up.
43261         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
43262         that usually only one call to strxfrm is necessary for each string
43263         part.
43264         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43266 2010-08-07  Karl Berry  <karl@gnu.org>
43268         * doc/posix-headers/limits.texi,
43269         * doc/posix-functions/malloc.texi,
43270         * doc/posix-functions/strsignal.texi: missing @item.
43271         * doc/ld-version-script.texi: spurious leading i.
43272         * doc/regex.texi (Interval Operators): no commas inside @var.
43274 2010-08-01  Bruno Haible  <bruno@clisp.org>
43276         Integrate the regex documentation.
43277         * doc/gnulib.texi: Define 'cn' index.
43278         (Regular expressions): New a chapter that includes regex.texi and
43279         regexprops-generic.texi.
43280         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
43281         syntax.
43283         Whitespace cleanup.
43284         * doc/regex.texi: Remove trailing spaces.
43286         Add regex documentation.
43287         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
43288         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
43289         Written by Kathy A. Hargreaves and Karl Berry.
43291 2010-08-01  Bruno Haible  <bruno@clisp.org>
43293         link: Update documentation.
43294         * doc/posix-functions/link.texi: Update regarding Solaris.
43296 2010-07-31  Bruno Haible  <bruno@clisp.org>
43298         Update modules list.
43299         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
43300         (String handling <string.h>): Add memcmp2, memxfrm.
43301         (Container data structures): Add xlist, xsublist, xoset.
43302         (Core language properties): Add alignof, unused-parameter.
43303         (Process control, Numeric conversion functions <stdlib.h>): Renamed
43304         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
43305         (Unibyte characters <ctype.h>): New section.
43306         (String handling <string.h>): New section.
43307         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
43308         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
43309         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
43310         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
43311         tan, tanh, tanl, y0, y1, yn.
43312         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
43313         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
43314         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
43315         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
43316         unlockpt, vdprintf, vdprintf-posix.
43317         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
43318         (File system functions): Add concat-filename, sys_file, sys_ioctl,
43319         xconcat-filename.
43320         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
43321         getdtablesize, pipe2, pipe2-safer.
43322         (Security): New section.
43323         (Networking functions): Add accept4.
43324         (Signal handling): Add sigpipe.
43325         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
43326         mbmemcasecoll.
43327         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
43328         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
43329         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
43330         pipe-filter-ii.
43331         (Misc): Add argp-version-etc, login_tty, parse-duration.
43333 2010-07-31  Bruno Haible  <bruno@clisp.org>
43335         Improve doc in MODULES.html.
43336         * modules/linkat (Description): Add the word "function".
43337         * modules/mkfifo (Description): Likewise.
43338         * modules/mknod (Description): Likewise.
43339         * modules/remove (Description): Likewise.
43340         * modules/renameat (Description): Likewise.
43341         * modules/stat (Description): Likewise.
43342         * modules/symlink (Description): Likewise.
43343         * modules/unlink (Description): Likewise.
43345 2010-07-31  Bruno Haible  <bruno@clisp.org>
43347         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
43348         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
43349         option --enable/disable-c++ instead of --enable/disable-cxx.
43350         * NEWS: Mention the change.
43352 2010-07-31  Bruno Haible  <bruno@clisp.org>
43354         readlink, areadlink: Relax test a bit.
43355         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
43356         alternative to ENOTDIR.
43357         * tests/test-areadlink.h (test_areadlink): Likewise.
43358         Reported by Rainer Tammer.
43360 2010-07-31  Bruno Haible  <bruno@clisp.org>
43362         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
43363         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
43364         character, perform the search using U_STRCHR.
43365         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
43366         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
43367         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
43368         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
43369         Suggested by Paolo Bonzini.
43371 2010-07-31  Bruno Haible  <bruno@clisp.org>
43373         unistr/u*-strstr: Fix dependencies.
43374         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
43375         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
43376         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
43378 2010-07-31  Bruno Haible  <bruno@clisp.org>
43380         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
43381         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
43382         the beginning of the loop.
43383         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
43384         cases in 'switch' statement.
43386         unistr/u8-strchr: Fix several bugs.
43387         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
43388         the string. When not found, return NULL, not a pointer near the end.
43390         More tests for unistr/u8-strchr.
43391         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
43392         that the function does not read past the first occurrence of the byte
43393         being searched.
43394         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
43395         * tests/unistr/test-u16-strchr.c (main): New function.
43396         * tests/unistr/test-u32-strchr.c (main): New function.
43398 2010-07-31  Bruno Haible  <bruno@clisp.org>
43400         posix-modules: Ignore backup files of documentation files.
43401         * posix-modules: grep only through files named *.texi.
43403 2010-07-31  Bruno Haible  <bruno@clisp.org>
43405         symlinkat: Fix documentation.
43406         * doc/posix-functions/readlinkat.texi: Fix module name.
43408 2010-07-31  Bruno Haible  <bruno@clisp.org>
43410         fchownat: Replace also when chown has the trailing slash bug.
43411         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
43412         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
43413         introduced on 2010-04-10.
43414         Reported by Rainer Tammer.
43416 2010-07-31  Bruno Haible  <bruno@clisp.org>
43418         linkat: Work around AIX 7.1 bug.
43419         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
43420         whether linkat handles trailing slash correctly. If not, replace linkat
43421         and define LINKAT_TRAILING_SLASH_BUG.
43422         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
43423         check whether (fd1,file1) points to a directory if file1 or file2 ends
43424         in a slash. Code taken from lib/link.c.
43425         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
43426         Reported by Rainer Tammer.
43428 2010-07-31  Bruno Haible  <bruno@clisp.org>
43430         Correctly determine whether pow is available in libc on AIX 7 with xlc.
43431         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
43432         This disables an xlc optimization that was causing wrong test results.
43433         Reported by Rainer Tammer.
43435 2010-07-31  Bruno Haible  <bruno@clisp.org>
43437         iconv: Work around AIX 6.1..7.1 bug.
43438         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
43439         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
43440         cross-compiling, guess no on all versions of AIX.
43441         Reported by Rainer Tammer.
43443 2010-07-31  Bruno Haible  <bruno@clisp.org>
43445         readlink: Relax test a bit.
43446         * tests/test-readlink.h (test_readlink): Allow different errno value
43447         when readlink is called with a file name that ends in / and refers to
43448         a file.
43449         Suggested by Eric Blake.
43450         Reported by Rainer Tammer.
43452 2010-07-31  Bruno Haible  <bruno@clisp.org>
43454         copysign: Does not require -lm on glibc systems.
43455         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
43456         gl_COMMON_DOUBLE_MATHFUNC.
43457         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
43459 2010-07-31  Bruno Haible  <bruno@clisp.org>
43461         duplocale: Work around AIX 7.1 bug.
43462         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
43463         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
43464         * lib/duplocale.c (rpl_duplocale): Update comment.
43465         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
43466         Reported by Rainer Tammer.
43468 2010-07-30  Bruno Haible  <bruno@clisp.org>
43470         dirfd: Avoid link error on AIX 7.1.
43471         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
43472         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
43473         exist, set REPLACE_DIRFD.
43474         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
43475         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
43476         * doc/posix-functions/dirfd.texi: Update.
43477         Reported by Rainer Tammer.
43479 2010-07-30  Eric Blake  <eblake@redhat.com>
43481         strtod: next round of AIX fixes
43482         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
43483         exponent.
43484         * tests/test-strtod.c (main): Enhance tests.
43485         * doc/posix-functions/strtod.texi (strtod): Document next bug.
43486         Reported by Rainer Tammer.
43488         futimens: fix configure check
43489         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
43490         Reported by Bruno Haible.
43492 2010-07-30  Bruno Haible  <bruno@clisp.org>
43494         getline: Update regarding AIX.
43495         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
43496         Reported by Rainer Tammer.
43498 2010-07-30  Bruno Haible  <bruno@clisp.org>
43500         wcwidth: Drop replacement on AIX 7.
43501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
43502         AIX 7.
43503         Reported by Rainer Tammer.
43505 2010-07-30  Bruno Haible  <bruno@clisp.org>
43507         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
43508         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
43509         a 'char *'.
43510         Reported by Rainer Tammer.
43512 2010-07-30  Bruno Haible  <bruno@clisp.org>
43514         unlink: Update regarding AIX.
43515         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
43516         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
43517         Reported by Rainer Tammer.
43519 2010-07-30  Bruno Haible  <bruno@clisp.org>
43521         symlink: Update regarding AIX.
43522         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
43523         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
43524         Reported by Rainer Tammer.
43526 2010-07-30  Bruno Haible  <bruno@clisp.org>
43528         strndup: Update regarding AIX.
43529         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
43530         AIX 7.
43531         Reported by Rainer Tammer.
43533 2010-07-30  Bruno Haible  <bruno@clisp.org>
43535         stat: Update regarding AIX.
43536         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
43537         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
43538         Reported by Rainer Tammer.
43540 2010-07-30  Bruno Haible  <bruno@clisp.org>
43542         truncl: Fix autoconf test.
43543         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
43544         whether truncl works.
43545         Reported by Rainer Tammer.
43547 2010-07-30  Bruno Haible  <bruno@clisp.org>
43549         round: Update regarding AIX.
43550         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
43551         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
43552         Reported by Rainer Tammer.
43554 2010-07-30  Bruno Haible  <bruno@clisp.org>
43556         rename: Update regarding AIX.
43557         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
43558         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
43559         Reported by Rainer Tammer.
43561 2010-07-30  Bruno Haible  <bruno@clisp.org>
43563         printf.m4: Update regarding AIX.
43564         * m4/printf.m4: Update comments regarding AIX.
43565         Reported by Rainer Tammer.
43567 2010-07-30  Bruno Haible  <bruno@clisp.org>
43569         iconv: Update regarding AIX.
43570         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
43571         AIX 7.
43572         Reported by Rainer Tammer.
43574 2010-07-30  Bruno Haible  <bruno@clisp.org>
43576         getopt: Update regarding AIX.
43577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
43578         no on AIX.
43579         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
43580         Reported by Rainer Tammer.
43582 2010-07-30  Bruno Haible  <bruno@clisp.org>
43584         ldexpl; Update regarding AIX.
43585         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
43586         on AIX 7.
43587         Reported by Rainer Tammer.
43589 2010-07-30  Bruno Haible  <bruno@clisp.org>
43591         frexpl: Update regarding AIX.
43592         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
43593         on AIX 7.
43594         Reported by Rainer Tammer.
43596 2010-07-30  Bruno Haible  <bruno@clisp.org>
43598         open, fopen: Update regarding AIX.
43599         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
43600         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
43601         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
43602         * doc/posix-functions/fopen.texi: Likewise.
43603         Reported by Rainer Tammer.
43605 2010-07-30  Bruno Haible  <bruno@clisp.org>
43607         chown: Update doc regarding AIX.
43608         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
43609         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
43610         Reported by Rainer Tammer.
43612 2010-07-30  Eric Blake  <eblake@redhat.com>
43614         strtod: fix bug in replacement function on AIX
43615         * lib/strtod.c (strtod): Special case broken "0x" parse in
43616         underlying strtod.
43617         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
43618         * doc/posix-functions/strtod.texi (strtod): Likewise.
43619         Reported by Rainer Tammer.
43621 2010-07-30  Bruno Haible  <bruno@clisp.org>
43623         mbrlen: Fix cross-compilation guess for AIX.
43624         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
43625         guess. Leftover from 2008-12-22.
43627 2010-07-30  Bruno Haible  <bruno@clisp.org>
43629         mbrtowc: Fix cross-compilation guess for AIX.
43630         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
43631         guess. Leftover from 2008-12-21.
43633 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
43635         init.sh: work around trap limitation of some shells
43636         * tests/init.sh (setup_): Move exit trap outside of shell function.
43638 2010-07-29  Eric Blake  <eblake@redhat.com>
43640         strtod: aid debugging
43641         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
43642         understanding why strtod is rejected.
43644 2010-07-28  Bruno Haible  <bruno@clisp.org>
43646         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
43647         * lib/unistr/u8-chr.c: Include <string.h>.
43648         * tests/unistr/test-u8-chr.c: Likewise.
43649         * tests/unistr/test-u16-chr.c: Likewise.
43650         * tests/unistr/test-u32-chr.c: Likewise.
43651         * tests/unistr/test-u8-strchr.c: Likewise.
43652         * tests/unistr/test-u16-strchr.c: Likewise.
43653         * tests/unistr/test-u32-strchr.c: Likewise.
43654         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
43655         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
43656         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
43657         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
43659 2010-07-28  Bruno Haible  <bruno@clisp.org>
43661         Use spaces for indentation, not tabs.
43662         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43664 2010-07-27  Bruno Haible  <bruno@clisp.org>
43666         mbspcasecmp: Fix function specification.
43667         * lib/string.in.h (mbspcasecmp): Fix specification comment.
43668         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
43669         Reported by Eric Blake <eblake@redhat.com>.
43671 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
43673         timespec: use cast and not conditional, as truncation isn't possible
43674         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
43675         instead of a conditional.  Comment about the situation in more detail.
43676         This undoes most of the 2009-10-29 patch.
43678 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
43680         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
43681         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
43682         * lib/unistr/u8-strchr.c: Likewise.
43683         * modules/unistr/u8-chr: Depend on memchr.
43685         unistr/u*-strchr: add tests
43686         * modules/unistr/u8-strchr-tests: New file.
43687         * modules/unistr/u16-strchr-tests: New file.
43688         * modules/unistr/u32-strchr-tests: New file.
43689         * tests/unistr/test-strchr.h: New file.
43690         * tests/unistr/test-u8-strchr.c: New file.
43691         * tests/unistr/test-u16-strchr.c: New file.
43692         * tests/unistr/test-u32-strchr.c: New file.
43694         unistr/u*-chr: test multibyte sequences more
43695         * tests/unistr/test-chr.h: Do complete testing of the characters in the
43696         test vector.
43697         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
43698         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
43699         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
43701         unistr/u*-chr: test multibyte sequences
43702         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
43704         unistr/u*-chr: prepare for multibyte tests
43705         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
43706         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
43707         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
43708         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
43709         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
43710         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
43712 2010-07-18  Bruno Haible  <bruno@clisp.org>
43714         unistr/u8-strchr: Optimize non-ASCII argument case.
43715         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
43716         because the first byte often matches anyway.
43717         Reported by Pádraig Brady <P@draigbrady.com>.
43719 2010-07-15  Karl Berry  <karl@gnu.org>
43721         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
43723 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
43725         getcwd: on Solaris, work better if ancestors are inaccessible
43726         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
43727         buffer and size, try again with a large buffer.  This works better
43728         on Solaris, since its getcwd succeeds even if the path to the root
43729         is inaccessible, and this is helpful in common cases such as .zfs
43730         hidden directories.  Problem reported by J Chapman Flack in
43731         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
43732         Use system getcwd if it's declared, not merely if it's partly
43733         working; use the partly-working test only to avoid needless effort
43734         if the system getcwd fails.
43735         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
43736         comment that was already obsolete and is now even more obsolete.
43737         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
43738         now might call strdup.
43740 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
43742         pthread: Add enough so that coreutils/src/sort.c compiles.
43743         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
43744         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
43745         gnulib. Include <sched.h> and <time.h>, as per POSIX.
43746         Include <sys/types.h>, in case it defines pthread_t.
43747         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
43748         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
43749         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
43750         (pthread_rwlockattr_t, pthread_spinlock_t):
43751         New typedefs, if HAVE_PTHREAD_T is not defined.
43752         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
43753         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
43754         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
43755         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
43756         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
43757         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
43758         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
43759         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
43760         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
43761         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
43762         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
43763         New macros.
43764         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
43765         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
43766         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
43767         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
43768         (pthread_spin_unlock): New dummy functions.
43769         (pthread_create): Return EAGAIN; don't set errno.
43770         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
43771         require AC_C_INLINE.
43772         * modules/pthread (Depends-on): Add sched, time.
43773         (pthread.h): Use AM_V_GEN.
43775 2010-07-13  Bruno Haible  <bruno@clisp.org>
43777         striconveh: Don't malloc memory if the result buffer is sufficient.
43778         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
43779         buffer if its size is sufficient.
43780         Reported by Ludovic Courtès <ludo@gnu.org>.
43782 2010-07-13  Bruno Haible  <bruno@clisp.org>
43784         strtod: Add safety check.
43785         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
43787 2010-07-12  Bruno Haible  <bruno@clisp.org>
43789         Unify tests that set gl_cv_func_ldexpl_no_libm.
43790         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
43791         gl_FUNC_LDEXPL.
43792         (gl_FUNC_LDEXPL): Invoke it.
43793         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43795 2010-07-12  Bruno Haible  <bruno@clisp.org>
43797         Unify tests that set gl_cv_func_ldexp_no_libm.
43798         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
43799         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
43800         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
43801         (configure.ac): Simply invoke gl_FUNC_LDEXP.
43802         * modules/strtod (Files): Add m4/ldexp.m4.
43804 2010-07-12  Bruno Haible  <bruno@clisp.org>
43806         Unify tests that set gl_cv_func_frexpl_no_libm.
43807         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
43808         gl_FUNC_FREXPL_NO_LIBM.
43809         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
43810         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43812 2010-07-12  Bruno Haible  <bruno@clisp.org>
43814         Unify tests that set gl_cv_func_frexp_no_libm.
43815         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
43816         gl_FUNC_FREXP_NO_LIBM.
43817         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
43818         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
43820 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
43822         memcoll: clarify sizes versus lengths, document better, and tweak perf
43823         * lib/memcoll.c (strcoll_loop, memcoll0):
43824         Improve quality of descriptive comments.  Name variables
43825         consistently as to whether they are lengths (which do not include
43826         terminating null) versus sizes (which do).
43827         * lib/xmemcoll.c (xmemcoll0): Likewise.
43828         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
43829         returned when s1size == 0; this is easier to compile and saves
43830         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
43832 2010-07-12  Bruno Haible  <bruno@clisp.org>
43834         Tests for module '_Exit'.
43835         * modules/_Exit-tests: New file.
43836         * tests/test-_Exit.sh: New file.
43837         * tests/test-_Exit.c: New file.
43839         New module '_Exit'.
43840         * lib/stdlib.in.h (__attribute__): New macro.
43841         (_Exit): New declaration.
43842         * lib/_Exit.c: New file.
43843         * m4/_Exit.m4: New file.
43844         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
43845         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
43846         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
43847         * modules/_Exit: New file.
43848         * tests/test-stdlib-c++.cc (_Exit): Check signature.
43849         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
43851 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
43853         strtod: make it more-accurate typically, and don't require libm
43854         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
43855         Include limits.h.  Don't include string.h.
43856         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
43857         (locale_isspace): New function, so that no casts are needed to
43858         check whether *s is a space.
43859         (ldexp): Provide an unused dummy if not available.
43860         (scale_radix_exp, parse_number, underlying_strtod): New functions.
43861         (strtod): Use them.  This implementation prefers to use the
43862         underlying strtod if available, falling back on our own code
43863         only to fix known bugs.  This is more likely to produce an
43864         accurate result.  Also, it avoids the use of libm functions.
43865         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
43866         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
43867         was absent, but it caused a test failure with coreutils.
43868         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
43869         with libm.
43870         * modules/strtod (Makefile.am, Link): libm is no longer needed.
43871         * modules/strtod-tests (Makefile.am): Likewise.
43873 2010-07-11  Pádraig Brady  <P@draigBrady.com>
43874             Bruno Haible  <bruno@clisp.org>
43876         unistr/u8-strchr: Optimize ASCII argument case.
43877         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
43879 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
43881         (x)memcoll: minor tweaks
43882         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
43883         is after the type that it qualifies.
43884         (memcoll0): Likewise.
43885         * lib/memcoll.h (memcoll0): Likewise.
43886         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
43887         * lib/xmemcoll.h (xmemcoll0): Likewise.
43888         * lib/memcoll.c (memcoll0): Correct the comment.  This function
43889         differs from memcoll in that the NUL byte is part of the argument.
43890         Omit the abort-checks, as performance is a real issue here.  Plus,
43891         the checks were wrong anyway (an off-by-one error).  Omit local
43892         variable 'diff', as it's a bit clearer that way.
43893         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
43894         no longer needed.
43896 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
43898         (x)memcoll: speedup when input is known to be NUL delimited
43899         * lib/memcoll.c: Include stdlib.
43900         (memcoll0): New function.
43901         (strcoll_loop): New function, refactored for use in both memcoll
43902         and memcoll0.
43903         * lib/memcoll.h (memcoll0): Add prototype.
43904         * lib/xmemcoll.c (xmemcoll0): New function.
43905         (collate_error): New function, refactored for use in both xmemcoll
43906         and xmemcoll0.
43907         * lib/xmemcoll.h (xmemcoll0): Add prototype.
43908         * m4/memcoll.m4: add inline invocation.
43910 2010-07-06  Pádraig Brady  <P@draigBrady.com>
43912         * build-aux/bootstrap: Remove any local translations
43913         from the translation project synchronization directory,
43914         so that local only translations are not distributed.
43916 2010-07-04  Bruno Haible  <bruno@clisp.org>
43918         fsusage: Clarify which code applies to which platforms.
43919         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
43920         platform.
43921         * lib/fsusage.c (get_fs_usage): Likewise.
43923 2010-07-04  Bruno Haible  <bruno@clisp.org>
43925         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
43926         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
43927         Reported by Martin Lambers <marlam@marlam.de>.
43929 2010-07-04  Jim Meyering  <meyering@redhat.com>
43931         hash: once again explicitly disallow insertion of NULL
43932         * lib/hash.c (hash_insert0): Reinstate just-removed test:
43933         inserting a NULL pointer cannot work with these functions.
43934         Add a comment with details.
43935         This reverts part of the 2010-07-01 commit, 5bef1a35
43936         "hash: extend module to deal with non-pointer keys".
43938 2010-07-01  Bruno Haible  <bruno@clisp.org>
43940         stdbool: Update doc.
43941         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
43942         Info from Christian Weisgerber <naddy@mips.inka.de>.
43944 2010-07-01  Jim Meyering  <meyering@redhat.com>
43946         hash: extend module to deal with non-pointer keys
43947         * lib/hash.c (hash_insert0): New interface, much like hash_insert
43948         but that allows insertion of non-pointer entries.
43949         Do not disallow an ENTRY value of NULL.
43950         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
43951         * lib/hash.h (hash_insert0): Declare.
43953 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
43955         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
43956         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
43957         not present (i.e. with autoconf 2.59 and when using gettextize, not
43958         gnulib), require AC_GNU_SOURCE instead.
43960 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
43962         idpriv-drop: Fix tests.
43963         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
43964         not to the test-idpriv-droptemp program.
43966 2010-06-29  Bruno Haible  <bruno@clisp.org>
43968         string: Fix syntax error with g++ 2.96.
43969         * lib/string.in.h (__pure__): Remove definition.
43970         (_GL_ATTRIBUTE_PURE): New macro.
43971         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
43972         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
43973         Reported by Christian Weisgerber <naddy@mips.inka.de>.
43975 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
43977         unitypes: Fix bug introduced on 2010-05-18.
43978         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
43980 2010-06-22  Eric Blake  <eblake@redhat.com>
43982         memmem: slight optimization
43983         * lib/str-two-way.h (critical_factorization): Update comments.
43984         Reduce work during factorization phase.
43985         Reported by Carlos Bueno <carlos@bueno.org>.
43987 2010-06-21  Bruno Haible  <bruno@clisp.org>
43989         Fix HAVE_CALLOC_POSIX misnomer.
43990         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
43991         !HAVE_CALLOC_POSIX.
43992         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
43993         HAVE_CALLOC_POSIX.
43994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
43995         instead of HAVE_CALLOC_POSIX.
43996         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
43997         HAVE_CALLOC_POSIX.
43999         Use modern idiom for calloc() replacement.
44000         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
44001         AC_FUNC_CALLOC.
44002         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
44003         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
44004         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
44005         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
44006         (gl_REPLACE_CALLOC): New macro.
44008 2010-06-21  Bruno Haible  <bruno@clisp.org>
44010         Fix HAVE_REALLOC_POSIX misnomer.
44011         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
44012         !HAVE_REALLOC_POSIX.
44013         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
44014         HAVE_REALLOC_POSIX.
44015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
44016         instead of HAVE_REALLOC_POSIX.
44017         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
44018         HAVE_REALLOC_POSIX.
44020         Use modern idiom for realloc() replacement.
44021         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
44022         AC_FUNC_REALLOC.
44023         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
44024         Autoconf's AC_FUNC_REALLOC.
44025         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
44026         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
44027         (gl_REPLACE_REALLOC): New macro.
44028         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
44030 2010-06-21  Bruno Haible  <bruno@clisp.org>
44032         Fix HAVE_MALLOC_POSIX misnomer.
44033         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
44034         !HAVE_MALLOC_POSIX.
44035         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
44036         HAVE_MALLOC_POSIX.
44037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
44038         instead of HAVE_MALLOC_POSIX.
44039         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
44040         HAVE_MALLOC_POSIX.
44042         Use modern idiom for malloc() replacement.
44043         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
44044         AC_FUNC_MALLOC.
44045         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
44046         Autoconf's AC_FUNC_MALLOC.
44047         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
44048         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
44049         (gl_REPLACE_MALLOC): New macro.
44050         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
44052 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
44054         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
44055         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
44056         This macro takes 3 arguments, not 4.
44058 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
44060         ipv6: fix detection under mingw
44061         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
44062         in6_addr.
44064 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
44066         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
44067         that strtod() works when cross-compiling to a glibc version known
44068         to work.
44070 2010-06-15  Bruno Haible  <bruno@clisp.org>
44072         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
44074 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
44076         select: Correct timeout.
44077         * lib/select.c (rpl_select): Compute wait_timeout correctly.
44079 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44081         git-version-gen: init shell var to avoid env var influence
44082         * build-aux/git-version-gen (v): Init shell var to empty.
44084 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
44086         priv-set: Don't assume that priv.h exists merely because getppriv does.
44087         See Jan Andersen's bug report about AIX 5L in
44088         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
44089         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
44090         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
44091         * lib/priv-set.h: Likewise.
44092         * tests/test-priv-set.c: Likewise.
44094 2010-06-13  Bruno Haible  <bruno@clisp.org>
44096         relocatable: Make it easier to test whether to install wrappers.
44097         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
44098         RELOCATABLE_VIA_WRAPPER.
44100 2010-06-13  Bruno Haible  <bruno@clisp.org>
44102         gnulib-tool: Display specified modules and dependencies differently.
44103         * gnulib-tool (func_show_module_list): New function.
44104         (func_import, func_create_testdir): Invoke it.
44105         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44107 2010-06-13  Bruno Haible  <bruno@clisp.org>
44109         gnulib-tool: Align code of func_import and func_create_testdir.
44110         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
44111         specified_modules.
44113 2010-06-12  Jim Meyering  <meyering@redhat.com>
44115         test-inttostr: avoid spurious failure on Solaris 9
44116         * tests/test-inttostr.c (main): Skip the test when snprintf fails
44117         to accept "%ju".  Reported by Bruno Haible.
44119 2010-06-11  Jim Meyering  <meyering@redhat.com>
44121         test-sys_socket: mark variables as used more readably
44122         * tests/test-sys_socket.c (main): Mark otherwise unused variables
44123         as "used" explicitly via (void) statement casts.  This is more
44124         readable than using them in an artificial return expression.
44125         Suggestion from Bruno Haible.
44127 2010-06-11  Bruno Haible  <bruno@clisp.org>
44129         Avoid some more warnings from "gcc -Wwrite-strings".
44130         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
44131         to 'const char *'.
44132         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
44133         * tests/test-c-strcasestr.c (main): Likewise.
44134         * tests/test-mbscasestr1.c (main): Likewise.
44135         * tests/test-mbscasestr2.c (main): Likewise.
44136         * tests/test-memmem.c (main): Likewise.
44137         * tests/test-strstr.c (main): Likewise.
44138         * tests/test-strcasestr.c (main): Likewise.
44140 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44142         init.sh: change framework_failure_ to fail with status 99, not 1
44143         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
44144         automake's parallel-tests rule that this is an unexpected failure,
44145         even if the test is listed in XFAIL_TESTS.
44147 2010-06-11  Jim Meyering  <meyering@redhat.com>
44149         test-inttostr: avoid warnings about 4-6KB literal strings
44150         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
44151         Include "macros.h", for its definition of ASSERT.
44152         (CK): s/assert/ASSERT/
44153         * modules/inttostr-tests (Files): Add macros.h.
44155         init.sh: don't use $ME_ or skip_ before they are defined
44156         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
44157         their first uses.  Also hoist their companions: warn_, fail_,
44158         framework_failure_, $stderr_fileno.  Prompted by a patch from
44159         Stefano Lattarini.
44161         test-sys_socket: avoid set-but-not-used warnings from gcc
44162         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
44163         avoid warning about set-but-not-used variables.
44165         test-xvasprintf: avoid 'const' discard warnings
44166         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
44167         "const" when assigning from literal strings.
44168         (test_xasprintf): Add "void" in function argument list to placate
44169         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
44171         tests: avoid compilation warnings in argmatch and exclude tests...
44172         in packages that define ARGMATCH_DIE_DECL, like coreutils.
44173         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
44174         Since it always exits, declare with the "noreturn" attribute.
44175         * tests/test-argmatch.c: Likewise.
44177         tests: avoid 'const' discard warnings in mbsstr tests
44178         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
44179         * tests/test-mbsstr2.c (main): Likewise.
44181         test-verify: avoid warning from gcc's -Wmissing-declarations
44182         * tests/test-verify.c (function): Declare to be static.
44184         test-inttostr.c: include <string.h> for use of strcmp
44185         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
44187         test-linkat: avoid failed assertion on "other" architectures
44188         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
44189         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
44190         sparc: https://bugs.launchpad.net/bugs/591968
44192 2010-06-11  Jim Meyering  <meyering@redhat.com>
44194         printf.m4: avoid autoconf's "Expanded Before Required" warning
44195         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
44196         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
44197         autoconf warning.
44199 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
44201         Replacement header templates are now named with ".in", not "_".
44202         * doc/gnulib-intro.texi: Correct.
44204 2010-06-10  Jim Meyering  <meyering@redhat.com>
44206         inttostr-tests: depend on snprintf, not snprintf-posix
44207         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
44208         snprintf-posix, to avoid this aclocal failure:
44209           missing file gnulib-tests/vasnprintf.c
44210           configure.ac:45: error: expected source file, required through \
44211           AC_LIBSOURCES, not found
44213 2010-06-10  Jim Meyering  <meyering@redhat.com>
44215         inttostr: add a new function, inttostr, and tests
44216         The namesake function was not available.  The existence of the
44217         template file, inttostr.c makes its addition nontrivial.
44218         * lib/anytostr.c: Rename from inttostr.c.
44219         (anytostr): Rename from inttostr.
44220         * lib/inttostr.c: New file.
44221         * modules/inttostr (Files): Add anytostr.c.
44222         (Makefile.am): Set lib_SOURCES instead of ...
44223         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
44224         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
44225         * lib/offtostr.c: Likewise.
44226         * lib/uinttostr.c: Likewise.
44227         * lib/umaxtostr.c: Likewise.
44228         * modules/inttostr-tests: New file.
44229         * tests/test-inttostr.c: New file.  Test these functions.
44231 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
44232             Bruno Haible  <bruno@clisp.org>
44234         Add "Extending Gnulib" chapter to manual.
44235         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
44236         chapter.
44237         (Extending Gnulib): New chapter.
44238         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
44239         chapter.
44241 2010-06-09  Bruno Haible  <bruno@clisp.org>
44243         Avoid relocwrapper link errors due to gnulib replacement functions.
44244         * lib/areadlink.c: Use the system's malloc, realloc functions.
44245         (areadlink): Set errno to ENOMEM explicitly.
44246         * modules/areadlink (Depends-on): Remove malloc-posix.
44247         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44249 2010-06-09  Bruno Haible  <bruno@clisp.org>
44251         Avoid relocwrapper link errors due to gnulib replacement functions.
44252         * lib/canonicalize-lgpl.c: Use the system's malloc function.
44253         * lib/malloca.c: Likewise.
44254         * lib/relocatable.c: Likewise.
44255         * lib/progreloc.c: Use the system's malloc, sprintf functions.
44256         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
44257         * lib/setenv.c: Use the system's malloc, realloc functions.
44258         * lib/strerror.c: Use the system's sprintf function.
44259         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44261 2010-06-04  Bruno Haible  <bruno@clisp.org>
44263         Prefer documented low-level autoconf macro names.
44264         * m4/lib-link.m4: Use m4_translit instead of translit.
44265         * m4/environ.m4: Likewise.
44266         * m4/mathfunc.m4: Likewise.
44267         * m4/onceonly.m4: Likewise.
44268         * m4/stdint.m4: Likewise.
44269         Suggested by Eric Blake.
44271 2010-06-04  Martin Lambers  <marlam@marlam.de>
44272             Bruno Haible  <bruno@clisp.org>
44274         havelib: Allow library names with '+' characters.
44275         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44276         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
44278 2010-06-09  Bruno Haible  <bruno@clisp.org>
44280         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
44281         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
44282         realloc failed.
44284 2010-06-08  Peter Simons  <simons@cryp.to>
44286         maint.mk: make the news-check rule more configurable
44287         * top/maint.mk (news-check-lines-spec): New variable.
44288         (news-check): Use "sed -n 1,10p" in place of "head".
44290 2010-06-07  Jim Meyering  <meyering@redhat.com>
44292         do-release-commit-and-tag: fix typo in --help
44293         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
44295         regex: avoid new dead-code warning with gcc-4.6.0
44296         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
44297         if-block containing a while-loop.  It's been unused for at least
44298         5 years.
44300 2010-06-05  Bruno Haible  <bruno@clisp.org>
44302         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
44303         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
44305 2010-06-04  Bruno Haible  <bruno@clisp.org>
44307         Update to GNU gettext 0.18.1.
44308         * modules/gettext (configure.ac): Require gettext infrastructure from
44309         version 0.18.1.
44311 2010-06-03  Bruno Haible  <bruno@clisp.org>
44313         Don't use AC_LIBOBJ with file names in subdirectories.
44314         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
44315         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
44316         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
44317         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
44318         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
44319         gl_LIBUNISTRING_LIBSOURCE.
44320         (Makefile.am): Augment lib_SOURCES here, conditionally.
44321         * NEWS: Drop requirement for Automake option 'subdir-objects'.
44323 2010-06-03  Bruno Haible  <bruno@clisp.org>
44325         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
44326         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
44327         expansion does not end with a newline.
44328         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
44329         unnecessary newline.
44331 2010-06-03  Bruno Haible  <bruno@clisp.org>
44333         Reduce dependencies.
44334         * tests/test-quotearg.h: New file, extracted from
44335         tests/test-quotearg.c.
44336         * tests/test-quotearg-simple.c: New file, extracted from
44337         tests/test-quotearg.c.
44338         * tests/test-quotearg.c: Don't include <ctype.h>.
44339         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
44340         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
44341         use_quote_double_quotes, use_quotearg_colon): Moved to
44342         tests/test-quotearg.h.
44343         (results_g, flag_results, custom_quotes, custom_results): Moved
44344         to tests/test-quotearg-simple.c.
44345         (main): Moved the part that does not depend on gettext to
44346         tests/test-quotearg-simple.c. Return 77 if the test cannot be
44347         performed.
44348         * modules/quotearg-simple: New file.
44349         * modules/quotearg-simple-tests: New file.
44350         * modules/quotearg (Depends-on): Add quotearg-simple.
44351         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
44352         (Files): Add tests/test-quotearg.h.
44353         Reported by Paolo Bonzini.
44355 2010-06-03  Bruno Haible  <bruno@clisp.org>
44357         Reduce dependencies.
44358         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
44360 2010-06-03  Bruno Haible  <bruno@clisp.org>
44362         time: Undefine more broken macros.
44363         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
44364         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
44365         Reported by Eric Blake.
44367 2010-06-03  Bruno Haible  <bruno@clisp.org>
44369         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
44370         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
44371         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
44372         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
44373         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
44374         Reported by Ludovic Courtès <ludo@gnu.org>.
44376 2010-06-02  Eric Blake  <eblake@redhat.com>
44378         time: work with mingw + pthreads-win32 library
44379         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
44380         if timespec is defined only in pthread.h.
44381         * modules/time (Makefile.am): Substitute it.
44382         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
44383         <pthread.h>, when needed.
44384         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
44385         from the library.
44387 2010-05-31  Bruno Haible  <bruno@clisp.org>
44389         Avoid expanding two macros in the wrong order.
44390         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
44391         gl_LIBUNISTRING if it is defined.
44392         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
44393         autoconf >= 2.64.
44394         Reported by Ludovic Courtès <ludo@gnu.org>.
44396 2010-05-27  Jim Meyering  <meyering@redhat.com>
44398         maint.mk: also prohibit "#undef" of always-defined symbols
44399         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
44400         Allow more than one space before the symbol name.
44401         (sc_prohibit_always-defined_macros): Use grep's -E, now that
44402         the regexp uses alternation.
44404 2010-05-26  Eric Blake  <eblake@redhat.com>
44406         maint.mk: avoid echo -e
44407         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
44408         Convert all uses of echo -* to printf.
44409         Reported by Matthias Bolte.
44411 2010-05-25  Bruno Haible  <bruno@clisp.org>
44413         Update to GNU gettext 0.18, part 2.
44414         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
44415         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
44417 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44419         Add missing include in test-pwrite.c.
44420         * tests/test-pwrite.c: Include string.h, for strcmp.
44422 2010-05-24  Bruno Haible  <bruno@clisp.org>
44424         * NEWS: Mention requirement for Automake option 'subdir-objects'.
44426 2010-05-24  Bruno Haible  <bruno@clisp.org>
44428         Don't use conversion with transliteration in u{8,16,32}_strcoll.
44429         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
44430         iconveh_error argument.
44431         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
44432         U_STRCONV_TO_LOCALE.
44433         * lib/unistr/u16-strcoll.c: Likewise.
44434         * lib/unistr/u32-strcoll.c: Likewise.
44435         * modules/unistr/u8-strcoll (Depends-on): Add
44436         uniconv/u8-strconv-to-enc, localcharset. Remove
44437         uniconv/u8-strconv-to-locale.
44438         (configure.ac): Bump version number.
44439         * modules/unistr/u16-strcoll (Depends-on): Add
44440         uniconv/u16-strconv-to-enc, localcharset. Remove
44441         uniconv/u16-strconv-to-locale.
44442         (configure.ac): Bump version number.
44443         * modules/unistr/u32-strcoll (Depends-on): Add
44444         uniconv/u32-strconv-to-enc, localcharset. Remove
44445         uniconv/u32-strconv-to-locale.
44446         (configure.ac): Bump version number.
44448 2010-05-24  Bruno Haible  <bruno@clisp.org>
44450         Avoid a test failure on NetBSD 5.0.
44451         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
44452         an iconv() bug.
44454 2010-05-24  Bruno Haible  <bruno@clisp.org>
44456         Adjust #include directive style.
44457         * modules/regex (Includes): Recommend to write <regex.h>.
44459 2010-05-24  Bruno Haible  <bruno@clisp.org>
44461         regex: Don't require alloca.
44462         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
44463         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
44464         only inside if (0).
44466 2010-05-23  Jim Meyering  <meyering@redhat.com>
44468         test-renameat.c: include <sys/stat.h>
44469         * tests/test-renameat.c: Include <sys/stat.h>; required for
44470         definition of S_IS* macros.
44472 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
44474         Update maintainer documentation for 'relocatable-prog' module.
44475         * doc/relocatable-maint.texi: Update.
44476         Comments by Bruno Haible.
44478 2010-05-23  Bruno Haible  <bruno@clisp.org>
44480         git-merge-changelog: Enable --split-merged-entry by default.
44481         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
44482         (usage): Don't mention this option any more.
44483         Reported by Ralf Wildenhues.
44485 2010-05-23  Jim Meyering  <meyering@redhat.com>
44487         test-pwrite: do not leave behind a test file named "out"
44488         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
44489         The trivial-looking use of init.sh is really necessary.
44490         It ensures that the temporary file, "out", is created in
44491         a temporary directory, and removed upon termination.
44492         * tests/test-pwrite.sh: Re-add file.
44493         * modules/pwrite-tests: Reference it.
44495 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44497         Fix output redirection buglet in init.sh.
44498         * tests/init.sh: Fix redirection of stderr.
44500 2010-05-20  Simon Josefsson  <simon@josefsson.org>
44502         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
44504 2010-05-17  Simon Josefsson  <simon@josefsson.org>
44506         * modules/valgrind-tests: New file.
44507         * m4/valgrind-tests.m4: New file.
44508         * doc/valgrind-tests.texi: New file.
44509         * doc/gnulib.texi (Running self-tests under valgrind): New
44510         section.
44512 2010-05-19  Bruno Haible  <bruno@clisp.org>
44514         Clean up dead code in recent commit.
44515         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
44516         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
44517         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
44518         Suggested by Paolo Bonzini.
44520 2010-05-19  Bruno Haible  <bruno@clisp.org>
44522         Avoid valgrind error reports from libunistring.
44523         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
44524         * modules/libunistring (Files): Add it.
44525         * modules/libunistring-optional (Files): Likewise.
44527 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
44528             Bruno Haible  <bruno@clisp.org>
44530         New module 'libunistring-optional'.
44531         * modules/libunistring-optional: New file.
44532         * m4/libunistring-base.m4: New file.
44533         * m4/libunistring-optional.m4: New file.
44534         * lib/unicase.in.h: Renamed from lib/unicase.h.
44535         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
44536         * lib/unictype.in.h: Renamed from lib/unictype.h.
44537         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
44538         * lib/uniname.in.h: Renamed from lib/uniname.h.
44539         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
44540         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
44541         * lib/unistr.in.h: Renamed from lib/unistr.h.
44542         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
44543         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
44544         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
44545         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
44546         gl_LIBUNISTRING. If the library was found, determine the installed
44547         version and set LIBUNISTRING_VERSION.
44548         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
44549         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
44550         handle a configuration option --with-included-libunistring.
44551         * modules/libunistring (Files): Add m4/absolute-header.m4.
44552         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
44553         Add m4/libunistring-base.m4.
44554         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44555         (Makefile.am): Build unicase.h from unicase.in.h.
44556         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
44557         Add m4/libunistring-base.m4.
44558         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44559         (Makefile.am): Build uniconv.h from uniconv.in.h.
44560         * modules/unictype/base (Files): Use unictype.in.h instead of
44561         unictype.h. Add m4/libunistring-base.m4.
44562         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44563         (Makefile.am): Build unictype.h from unictype.in.h.
44564         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
44565         Add m4/libunistring-base.m4.
44566         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44567         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
44568         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
44569         Add m4/libunistring-base.m4.
44570         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44571         (Makefile.am): Build uniname.h from uniname.in.h.
44572         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
44573         Add m4/libunistring-base.m4.
44574         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44575         (Makefile.am): Build uninorm.h from uninorm.in.h.
44576         * modules/unistdio/base (Files): Use unistdio.in.h instead of
44577         unistdio.h. Add m4/libunistring-base.m4.
44578         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44579         (Makefile.am): Build unistdio.h from unistdio.in.h.
44580         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
44581         Add m4/libunistring-base.m4.
44582         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44583         (Makefile.am): Build unistr.h from unistr.in.h.
44584         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
44585         Add m4/libunistring-base.m4.
44586         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44587         (Makefile.am): Build unitypes.h from unitypes.in.h.
44588         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
44589         Add m4/libunistring-base.m4.
44590         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44591         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
44592         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
44593         uniwidth.h. Add m4/libunistring-base.m4.
44594         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
44595         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
44596         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
44597         instead of augmenting lib_SOURCES.
44598         * modules/unicase/empty-suffix-context: Likewise.
44599         * modules/unicase/locale-language: Likewise.
44600         * modules/unicase/tolower: Likewise.
44601         * modules/unicase/totitle: Likewise.
44602         * modules/unicase/toupper: Likewise.
44603         * modules/unicase/u8-casecmp: Likewise.
44604         * modules/unicase/u8-casecoll: Likewise.
44605         * modules/unicase/u8-casefold: Likewise.
44606         * modules/unicase/u8-casexfrm: Likewise.
44607         * modules/unicase/u8-ct-casefold: Likewise.
44608         * modules/unicase/u8-ct-tolower: Likewise.
44609         * modules/unicase/u8-ct-totitle: Likewise.
44610         * modules/unicase/u8-ct-toupper: Likewise.
44611         * modules/unicase/u8-is-cased: Likewise.
44612         * modules/unicase/u8-is-casefolded: Likewise.
44613         * modules/unicase/u8-is-lowercase: Likewise.
44614         * modules/unicase/u8-is-titlecase: Likewise.
44615         * modules/unicase/u8-is-uppercase: Likewise.
44616         * modules/unicase/u8-prefix-context: Likewise.
44617         * modules/unicase/u8-suffix-context: Likewise.
44618         * modules/unicase/u8-tolower: Likewise.
44619         * modules/unicase/u8-totitle: Likewise.
44620         * modules/unicase/u8-toupper: Likewise.
44621         * modules/unicase/u16-casecmp: Likewise.
44622         * modules/unicase/u16-casecoll: Likewise.
44623         * modules/unicase/u16-casefold: Likewise.
44624         * modules/unicase/u16-casexfrm: Likewise.
44625         * modules/unicase/u16-ct-casefold: Likewise.
44626         * modules/unicase/u16-ct-tolower: Likewise.
44627         * modules/unicase/u16-ct-totitle: Likewise.
44628         * modules/unicase/u16-ct-toupper: Likewise.
44629         * modules/unicase/u16-is-cased: Likewise.
44630         * modules/unicase/u16-is-casefolded: Likewise.
44631         * modules/unicase/u16-is-lowercase: Likewise.
44632         * modules/unicase/u16-is-titlecase: Likewise.
44633         * modules/unicase/u16-is-uppercase: Likewise.
44634         * modules/unicase/u16-prefix-context: Likewise.
44635         * modules/unicase/u16-suffix-context: Likewise.
44636         * modules/unicase/u16-tolower: Likewise.
44637         * modules/unicase/u16-totitle: Likewise.
44638         * modules/unicase/u16-toupper: Likewise.
44639         * modules/unicase/u32-casecmp: Likewise.
44640         * modules/unicase/u32-casecoll: Likewise.
44641         * modules/unicase/u32-casefold: Likewise.
44642         * modules/unicase/u32-casexfrm: Likewise.
44643         * modules/unicase/u32-ct-casefold: Likewise.
44644         * modules/unicase/u32-ct-tolower: Likewise.
44645         * modules/unicase/u32-ct-totitle: Likewise.
44646         * modules/unicase/u32-ct-toupper: Likewise.
44647         * modules/unicase/u32-is-cased: Likewise.
44648         * modules/unicase/u32-is-casefolded: Likewise.
44649         * modules/unicase/u32-is-lowercase: Likewise.
44650         * modules/unicase/u32-is-titlecase: Likewise.
44651         * modules/unicase/u32-is-uppercase: Likewise.
44652         * modules/unicase/u32-prefix-context: Likewise.
44653         * modules/unicase/u32-suffix-context: Likewise.
44654         * modules/unicase/u32-tolower: Likewise.
44655         * modules/unicase/u32-totitle: Likewise.
44656         * modules/unicase/u32-toupper: Likewise.
44657         * modules/unicase/ulc-casecmp: Likewise.
44658         * modules/unicase/ulc-casecoll: Likewise.
44659         * modules/unicase/ulc-casexfrm: Likewise.
44660         * modules/uniconv/u8-conv-from-enc: Likewise.
44661         * modules/uniconv/u8-conv-to-enc: Likewise.
44662         * modules/uniconv/u8-strconv-from-enc: Likewise.
44663         * modules/uniconv/u8-strconv-from-locale: Likewise.
44664         * modules/uniconv/u8-strconv-to-enc: Likewise.
44665         * modules/uniconv/u8-strconv-to-locale: Likewise.
44666         * modules/uniconv/u16-conv-from-enc: Likewise.
44667         * modules/uniconv/u16-conv-to-enc: Likewise.
44668         * modules/uniconv/u16-strconv-from-enc: Likewise.
44669         * modules/uniconv/u16-strconv-from-locale: Likewise.
44670         * modules/uniconv/u16-strconv-to-enc: Likewise.
44671         * modules/uniconv/u16-strconv-to-locale: Likewise.
44672         * modules/uniconv/u32-conv-from-enc: Likewise.
44673         * modules/uniconv/u32-conv-to-enc: Likewise.
44674         * modules/uniconv/u32-strconv-from-enc: Likewise.
44675         * modules/uniconv/u32-strconv-from-locale: Likewise.
44676         * modules/uniconv/u32-strconv-to-enc: Likewise.
44677         * modules/uniconv/u32-strconv-to-locale: Likewise.
44678         * modules/unictype/bidicategory-byname: Likewise.
44679         * modules/unictype/bidicategory-name: Likewise.
44680         * modules/unictype/bidicategory-of: Likewise.
44681         * modules/unictype/bidicategory-test: Likewise.
44682         * modules/unictype/block-list: Likewise.
44683         * modules/unictype/block-test: Likewise.
44684         * modules/unictype/category-C: Likewise.
44685         * modules/unictype/category-Cc: Likewise.
44686         * modules/unictype/category-Cf: Likewise.
44687         * modules/unictype/category-Cn: Likewise.
44688         * modules/unictype/category-Co: Likewise.
44689         * modules/unictype/category-Cs: Likewise.
44690         * modules/unictype/category-L: Likewise.
44691         * modules/unictype/category-Ll: Likewise.
44692         * modules/unictype/category-Lm: Likewise.
44693         * modules/unictype/category-Lo: Likewise.
44694         * modules/unictype/category-Lt: Likewise.
44695         * modules/unictype/category-Lu: Likewise.
44696         * modules/unictype/category-M: Likewise.
44697         * modules/unictype/category-Mc: Likewise.
44698         * modules/unictype/category-Me: Likewise.
44699         * modules/unictype/category-Mn: Likewise.
44700         * modules/unictype/category-N: Likewise.
44701         * modules/unictype/category-Nd: Likewise.
44702         * modules/unictype/category-Nl: Likewise.
44703         * modules/unictype/category-No: Likewise.
44704         * modules/unictype/category-P: Likewise.
44705         * modules/unictype/category-Pc: Likewise.
44706         * modules/unictype/category-Pd: Likewise.
44707         * modules/unictype/category-Pe: Likewise.
44708         * modules/unictype/category-Pf: Likewise.
44709         * modules/unictype/category-Pi: Likewise.
44710         * modules/unictype/category-Po: Likewise.
44711         * modules/unictype/category-Ps: Likewise.
44712         * modules/unictype/category-S: Likewise.
44713         * modules/unictype/category-Sc: Likewise.
44714         * modules/unictype/category-Sk: Likewise.
44715         * modules/unictype/category-Sm: Likewise.
44716         * modules/unictype/category-So: Likewise.
44717         * modules/unictype/category-Z: Likewise.
44718         * modules/unictype/category-Zl: Likewise.
44719         * modules/unictype/category-Zp: Likewise.
44720         * modules/unictype/category-Zs: Likewise.
44721         * modules/unictype/category-and: Likewise.
44722         * modules/unictype/category-and-not: Likewise.
44723         * modules/unictype/category-byname: Likewise.
44724         * modules/unictype/category-name: Likewise.
44725         * modules/unictype/category-none: Likewise.
44726         * modules/unictype/category-of: Likewise.
44727         * modules/unictype/category-or: Likewise.
44728         * modules/unictype/category-test: Likewise.
44729         * modules/unictype/combining-class: Likewise.
44730         * modules/unictype/ctype-alnum: Likewise.
44731         * modules/unictype/ctype-alpha: Likewise.
44732         * modules/unictype/ctype-blank: Likewise.
44733         * modules/unictype/ctype-cntrl: Likewise.
44734         * modules/unictype/ctype-digit: Likewise.
44735         * modules/unictype/ctype-graph: Likewise.
44736         * modules/unictype/ctype-lower: Likewise.
44737         * modules/unictype/ctype-print: Likewise.
44738         * modules/unictype/ctype-punct: Likewise.
44739         * modules/unictype/ctype-space: Likewise.
44740         * modules/unictype/ctype-upper: Likewise.
44741         * modules/unictype/ctype-xdigit: Likewise.
44742         * modules/unictype/decimal-digit: Likewise.
44743         * modules/unictype/digit: Likewise.
44744         * modules/unictype/mirror: Likewise.
44745         * modules/unictype/numeric: Likewise.
44746         * modules/unictype/property-alphabetic: Likewise.
44747         * modules/unictype/property-ascii-hex-digit: Likewise.
44748         * modules/unictype/property-bidi-arabic-digit: Likewise.
44749         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
44750         * modules/unictype/property-bidi-block-separator: Likewise.
44751         * modules/unictype/property-bidi-boundary-neutral: Likewise.
44752         * modules/unictype/property-bidi-common-separator: Likewise.
44753         * modules/unictype/property-bidi-control: Likewise.
44754         * modules/unictype/property-bidi-embedding-or-override: Likewise.
44755         * modules/unictype/property-bidi-eur-num-separator: Likewise.
44756         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
44757         * modules/unictype/property-bidi-european-digit: Likewise.
44758         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
44759         * modules/unictype/property-bidi-left-to-right: Likewise.
44760         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
44761         * modules/unictype/property-bidi-other-neutral: Likewise.
44762         * modules/unictype/property-bidi-pdf: Likewise.
44763         * modules/unictype/property-bidi-segment-separator: Likewise.
44764         * modules/unictype/property-bidi-whitespace: Likewise.
44765         * modules/unictype/property-byname: Likewise.
44766         * modules/unictype/property-combining: Likewise.
44767         * modules/unictype/property-composite: Likewise.
44768         * modules/unictype/property-currency-symbol: Likewise.
44769         * modules/unictype/property-dash: Likewise.
44770         * modules/unictype/property-decimal-digit: Likewise.
44771         * modules/unictype/property-default-ignorable-code-point: Likewise.
44772         * modules/unictype/property-deprecated: Likewise.
44773         * modules/unictype/property-diacritic: Likewise.
44774         * modules/unictype/property-extender: Likewise.
44775         * modules/unictype/property-format-control: Likewise.
44776         * modules/unictype/property-grapheme-base: Likewise.
44777         * modules/unictype/property-grapheme-extend: Likewise.
44778         * modules/unictype/property-grapheme-link: Likewise.
44779         * modules/unictype/property-hex-digit: Likewise.
44780         * modules/unictype/property-hyphen: Likewise.
44781         * modules/unictype/property-id-continue: Likewise.
44782         * modules/unictype/property-id-start: Likewise.
44783         * modules/unictype/property-ideographic: Likewise.
44784         * modules/unictype/property-ids-binary-operator: Likewise.
44785         * modules/unictype/property-ids-trinary-operator: Likewise.
44786         * modules/unictype/property-ignorable-control: Likewise.
44787         * modules/unictype/property-iso-control: Likewise.
44788         * modules/unictype/property-join-control: Likewise.
44789         * modules/unictype/property-left-of-pair: Likewise.
44790         * modules/unictype/property-line-separator: Likewise.
44791         * modules/unictype/property-logical-order-exception: Likewise.
44792         * modules/unictype/property-lowercase: Likewise.
44793         * modules/unictype/property-math: Likewise.
44794         * modules/unictype/property-non-break: Likewise.
44795         * modules/unictype/property-not-a-character: Likewise.
44796         * modules/unictype/property-numeric: Likewise.
44797         * modules/unictype/property-other-alphabetic: Likewise.
44798         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
44799         * modules/unictype/property-other-grapheme-extend: Likewise.
44800         * modules/unictype/property-other-id-continue: Likewise.
44801         * modules/unictype/property-other-id-start: Likewise.
44802         * modules/unictype/property-other-lowercase: Likewise.
44803         * modules/unictype/property-other-math: Likewise.
44804         * modules/unictype/property-other-uppercase: Likewise.
44805         * modules/unictype/property-paired-punctuation: Likewise.
44806         * modules/unictype/property-paragraph-separator: Likewise.
44807         * modules/unictype/property-pattern-syntax: Likewise.
44808         * modules/unictype/property-pattern-white-space: Likewise.
44809         * modules/unictype/property-private-use: Likewise.
44810         * modules/unictype/property-punctuation: Likewise.
44811         * modules/unictype/property-quotation-mark: Likewise.
44812         * modules/unictype/property-radical: Likewise.
44813         * modules/unictype/property-sentence-terminal: Likewise.
44814         * modules/unictype/property-soft-dotted: Likewise.
44815         * modules/unictype/property-space: Likewise.
44816         * modules/unictype/property-terminal-punctuation: Likewise.
44817         * modules/unictype/property-test: Likewise.
44818         * modules/unictype/property-titlecase: Likewise.
44819         * modules/unictype/property-unassigned-code-value: Likewise.
44820         * modules/unictype/property-unified-ideograph: Likewise.
44821         * modules/unictype/property-uppercase: Likewise.
44822         * modules/unictype/property-variation-selector: Likewise.
44823         * modules/unictype/property-white-space: Likewise.
44824         * modules/unictype/property-xid-continue: Likewise.
44825         * modules/unictype/property-xid-start: Likewise.
44826         * modules/unictype/property-zero-width: Likewise.
44827         * modules/unictype/scripts: Likewise.
44828         * modules/unictype/syntax-c-ident: Likewise.
44829         * modules/unictype/syntax-c-whitespace: Likewise.
44830         * modules/unictype/syntax-java-ident: Likewise.
44831         * modules/unictype/syntax-java-whitespace: Likewise.
44832         * modules/unilbrk/u8-possible-linebreaks: Likewise.
44833         * modules/unilbrk/u8-width-linebreaks: Likewise.
44834         * modules/unilbrk/u16-possible-linebreaks: Likewise.
44835         * modules/unilbrk/u16-width-linebreaks: Likewise.
44836         * modules/unilbrk/u32-possible-linebreaks: Likewise.
44837         * modules/unilbrk/u32-width-linebreaks: Likewise.
44838         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
44839         * modules/unilbrk/ulc-width-linebreaks: Likewise.
44840         * modules/uniname/uniname: Likewise.
44841         * modules/uninorm/canonical-decomposition: Likewise.
44842         * modules/uninorm/composition: Likewise.
44843         * modules/uninorm/decomposing-form: Likewise.
44844         * modules/uninorm/decomposition: Likewise.
44845         * modules/uninorm/filter: Likewise.
44846         * modules/uninorm/nfc: Likewise.
44847         * modules/uninorm/nfd: Likewise.
44848         * modules/uninorm/nfkc: Likewise.
44849         * modules/uninorm/nfkd: Likewise.
44850         * modules/uninorm/u8-normalize: Likewise.
44851         * modules/uninorm/u8-normcmp: Likewise.
44852         * modules/uninorm/u8-normcoll: Likewise.
44853         * modules/uninorm/u8-normxfrm: Likewise.
44854         * modules/uninorm/u16-normalize: Likewise.
44855         * modules/uninorm/u16-normcmp: Likewise.
44856         * modules/uninorm/u16-normcoll: Likewise.
44857         * modules/uninorm/u16-normxfrm: Likewise.
44858         * modules/uninorm/u32-normalize: Likewise.
44859         * modules/uninorm/u32-normcmp: Likewise.
44860         * modules/uninorm/u32-normcoll: Likewise.
44861         * modules/uninorm/u32-normxfrm: Likewise.
44862         * modules/unistdio/u8-asnprintf: Likewise.
44863         * modules/unistdio/u8-asprintf: Likewise.
44864         * modules/unistdio/u8-snprintf: Likewise.
44865         * modules/unistdio/u8-sprintf: Likewise.
44866         * modules/unistdio/u8-u8-asnprintf: Likewise.
44867         * modules/unistdio/u8-u8-asprintf: Likewise.
44868         * modules/unistdio/u8-u8-snprintf: Likewise.
44869         * modules/unistdio/u8-u8-sprintf: Likewise.
44870         * modules/unistdio/u8-u8-vasnprintf: Likewise.
44871         * modules/unistdio/u8-u8-vasprintf: Likewise.
44872         * modules/unistdio/u8-u8-vsnprintf: Likewise.
44873         * modules/unistdio/u8-u8-vsprintf: Likewise.
44874         * modules/unistdio/u8-vasnprintf: Likewise.
44875         * modules/unistdio/u8-vasprintf: Likewise.
44876         * modules/unistdio/u8-vsnprintf: Likewise.
44877         * modules/unistdio/u8-vsprintf: Likewise.
44878         * modules/unistdio/u16-asnprintf: Likewise.
44879         * modules/unistdio/u16-asprintf: Likewise.
44880         * modules/unistdio/u16-snprintf: Likewise.
44881         * modules/unistdio/u16-sprintf: Likewise.
44882         * modules/unistdio/u16-u16-asnprintf: Likewise.
44883         * modules/unistdio/u16-u16-asprintf: Likewise.
44884         * modules/unistdio/u16-u16-snprintf: Likewise.
44885         * modules/unistdio/u16-u16-sprintf: Likewise.
44886         * modules/unistdio/u16-u16-vasnprintf: Likewise.
44887         * modules/unistdio/u16-u16-vasprintf: Likewise.
44888         * modules/unistdio/u16-u16-vsnprintf: Likewise.
44889         * modules/unistdio/u16-u16-vsprintf: Likewise.
44890         * modules/unistdio/u16-vasnprintf: Likewise.
44891         * modules/unistdio/u16-vasprintf: Likewise.
44892         * modules/unistdio/u16-vsnprintf: Likewise.
44893         * modules/unistdio/u16-vsprintf: Likewise.
44894         * modules/unistdio/u32-asnprintf: Likewise.
44895         * modules/unistdio/u32-asprintf: Likewise.
44896         * modules/unistdio/u32-snprintf: Likewise.
44897         * modules/unistdio/u32-sprintf: Likewise.
44898         * modules/unistdio/u32-u32-asnprintf: Likewise.
44899         * modules/unistdio/u32-u32-asprintf: Likewise.
44900         * modules/unistdio/u32-u32-snprintf: Likewise.
44901         * modules/unistdio/u32-u32-sprintf: Likewise.
44902         * modules/unistdio/u32-u32-vasnprintf: Likewise.
44903         * modules/unistdio/u32-u32-vasprintf: Likewise.
44904         * modules/unistdio/u32-u32-vsnprintf: Likewise.
44905         * modules/unistdio/u32-u32-vsprintf: Likewise.
44906         * modules/unistdio/u32-vasnprintf: Likewise.
44907         * modules/unistdio/u32-vasprintf: Likewise.
44908         * modules/unistdio/u32-vsnprintf: Likewise.
44909         * modules/unistdio/u32-vsprintf: Likewise.
44910         * modules/unistdio/ulc-asnprintf: Likewise.
44911         * modules/unistdio/ulc-asprintf: Likewise.
44912         * modules/unistdio/ulc-fprintf: Likewise.
44913         * modules/unistdio/ulc-snprintf: Likewise.
44914         * modules/unistdio/ulc-sprintf: Likewise.
44915         * modules/unistdio/ulc-vasnprintf: Likewise.
44916         * modules/unistdio/ulc-vasprintf: Likewise.
44917         * modules/unistdio/ulc-vfprintf: Likewise.
44918         * modules/unistdio/ulc-vsnprintf: Likewise.
44919         * modules/unistdio/ulc-vsprintf: Likewise.
44920         * modules/unistr/u8-check: Likewise.
44921         * modules/unistr/u8-chr: Likewise.
44922         * modules/unistr/u8-cmp: Likewise.
44923         * modules/unistr/u8-cmp2: Likewise.
44924         * modules/unistr/u8-cpy: Likewise.
44925         * modules/unistr/u8-cpy-alloc: Likewise.
44926         * modules/unistr/u8-endswith: Likewise.
44927         * modules/unistr/u8-mblen: Likewise.
44928         * modules/unistr/u8-mbsnlen: Likewise.
44929         * modules/unistr/u8-mbtouc: Likewise.
44930         * modules/unistr/u8-mbtouc-unsafe: Likewise.
44931         * modules/unistr/u8-mbtoucr: Likewise.
44932         * modules/unistr/u8-move: Likewise.
44933         * modules/unistr/u8-next: Likewise.
44934         * modules/unistr/u8-prev: Likewise.
44935         * modules/unistr/u8-set: Likewise.
44936         * modules/unistr/u8-startswith: Likewise.
44937         * modules/unistr/u8-stpcpy: Likewise.
44938         * modules/unistr/u8-stpncpy: Likewise.
44939         * modules/unistr/u8-strcat: Likewise.
44940         * modules/unistr/u8-strchr: Likewise.
44941         * modules/unistr/u8-strcmp: Likewise.
44942         * modules/unistr/u8-strcoll: Likewise.
44943         * modules/unistr/u8-strcpy: Likewise.
44944         * modules/unistr/u8-strcspn: Likewise.
44945         * modules/unistr/u8-strdup: Likewise.
44946         * modules/unistr/u8-strlen: Likewise.
44947         * modules/unistr/u8-strmblen: Likewise.
44948         * modules/unistr/u8-strmbtouc: Likewise.
44949         * modules/unistr/u8-strncat: Likewise.
44950         * modules/unistr/u8-strncmp: Likewise.
44951         * modules/unistr/u8-strncpy: Likewise.
44952         * modules/unistr/u8-strnlen: Likewise.
44953         * modules/unistr/u8-strpbrk: Likewise.
44954         * modules/unistr/u8-strrchr: Likewise.
44955         * modules/unistr/u8-strspn: Likewise.
44956         * modules/unistr/u8-strstr: Likewise.
44957         * modules/unistr/u8-strtok: Likewise.
44958         * modules/unistr/u8-to-u16: Likewise.
44959         * modules/unistr/u8-to-u32: Likewise.
44960         * modules/unistr/u8-uctomb: Likewise.
44961         * modules/unistr/u16-check: Likewise.
44962         * modules/unistr/u16-chr: Likewise.
44963         * modules/unistr/u16-cmp: Likewise.
44964         * modules/unistr/u16-cmp2: Likewise.
44965         * modules/unistr/u16-cpy: Likewise.
44966         * modules/unistr/u16-cpy-alloc: Likewise.
44967         * modules/unistr/u16-endswith: Likewise.
44968         * modules/unistr/u16-mblen: Likewise.
44969         * modules/unistr/u16-mbsnlen: Likewise.
44970         * modules/unistr/u16-mbtouc: Likewise.
44971         * modules/unistr/u16-mbtouc-unsafe: Likewise.
44972         * modules/unistr/u16-mbtoucr: Likewise.
44973         * modules/unistr/u16-move: Likewise.
44974         * modules/unistr/u16-next: Likewise.
44975         * modules/unistr/u16-prev: Likewise.
44976         * modules/unistr/u16-set: Likewise.
44977         * modules/unistr/u16-startswith: Likewise.
44978         * modules/unistr/u16-stpcpy: Likewise.
44979         * modules/unistr/u16-stpncpy: Likewise.
44980         * modules/unistr/u16-strcat: Likewise.
44981         * modules/unistr/u16-strchr: Likewise.
44982         * modules/unistr/u16-strcmp: Likewise.
44983         * modules/unistr/u16-strcoll: Likewise.
44984         * modules/unistr/u16-strcpy: Likewise.
44985         * modules/unistr/u16-strcspn: Likewise.
44986         * modules/unistr/u16-strdup: Likewise.
44987         * modules/unistr/u16-strlen: Likewise.
44988         * modules/unistr/u16-strmblen: Likewise.
44989         * modules/unistr/u16-strmbtouc: Likewise.
44990         * modules/unistr/u16-strncat: Likewise.
44991         * modules/unistr/u16-strncmp: Likewise.
44992         * modules/unistr/u16-strncpy: Likewise.
44993         * modules/unistr/u16-strnlen: Likewise.
44994         * modules/unistr/u16-strpbrk: Likewise.
44995         * modules/unistr/u16-strrchr: Likewise.
44996         * modules/unistr/u16-strspn: Likewise.
44997         * modules/unistr/u16-strstr: Likewise.
44998         * modules/unistr/u16-strtok: Likewise.
44999         * modules/unistr/u16-to-u32: Likewise.
45000         * modules/unistr/u16-to-u8: Likewise.
45001         * modules/unistr/u16-uctomb: Likewise.
45002         * modules/unistr/u32-check: Likewise.
45003         * modules/unistr/u32-chr: Likewise.
45004         * modules/unistr/u32-cmp: Likewise.
45005         * modules/unistr/u32-cmp2: Likewise.
45006         * modules/unistr/u32-cpy: Likewise.
45007         * modules/unistr/u32-cpy-alloc: Likewise.
45008         * modules/unistr/u32-endswith: Likewise.
45009         * modules/unistr/u32-mblen: Likewise.
45010         * modules/unistr/u32-mbsnlen: Likewise.
45011         * modules/unistr/u32-mbtouc: Likewise.
45012         * modules/unistr/u32-mbtouc-unsafe: Likewise.
45013         * modules/unistr/u32-mbtoucr: Likewise.
45014         * modules/unistr/u32-move: Likewise.
45015         * modules/unistr/u32-next: Likewise.
45016         * modules/unistr/u32-prev: Likewise.
45017         * modules/unistr/u32-set: Likewise.
45018         * modules/unistr/u32-startswith: Likewise.
45019         * modules/unistr/u32-stpcpy: Likewise.
45020         * modules/unistr/u32-stpncpy: Likewise.
45021         * modules/unistr/u32-strcat: Likewise.
45022         * modules/unistr/u32-strchr: Likewise.
45023         * modules/unistr/u32-strcmp: Likewise.
45024         * modules/unistr/u32-strcoll: Likewise.
45025         * modules/unistr/u32-strcpy: Likewise.
45026         * modules/unistr/u32-strcspn: Likewise.
45027         * modules/unistr/u32-strdup: Likewise.
45028         * modules/unistr/u32-strlen: Likewise.
45029         * modules/unistr/u32-strmblen: Likewise.
45030         * modules/unistr/u32-strmbtouc: Likewise.
45031         * modules/unistr/u32-strncat: Likewise.
45032         * modules/unistr/u32-strncmp: Likewise.
45033         * modules/unistr/u32-strncpy: Likewise.
45034         * modules/unistr/u32-strnlen: Likewise.
45035         * modules/unistr/u32-strpbrk: Likewise.
45036         * modules/unistr/u32-strrchr: Likewise.
45037         * modules/unistr/u32-strspn: Likewise.
45038         * modules/unistr/u32-strstr: Likewise.
45039         * modules/unistr/u32-strtok: Likewise.
45040         * modules/unistr/u32-to-u16: Likewise.
45041         * modules/unistr/u32-to-u8: Likewise.
45042         * modules/unistr/u32-uctomb: Likewise.
45043         * modules/uniwbrk/u8-wordbreaks: Likewise.
45044         * modules/uniwbrk/u16-wordbreaks: Likewise.
45045         * modules/uniwbrk/u32-wordbreaks: Likewise.
45046         * modules/uniwbrk/ulc-wordbreaks: Likewise.
45047         * modules/uniwbrk/wordbreak-property: Likewise.
45048         * modules/uniwidth/u8-strwidth: Likewise.
45049         * modules/uniwidth/u8-width: Likewise.
45050         * modules/uniwidth/u16-strwidth: Likewise.
45051         * modules/uniwidth/u16-width: Likewise.
45052         * modules/uniwidth/u32-strwidth: Likewise.
45053         * modules/uniwidth/u32-width: Likewise.
45054         * modules/uniwidth/width: Likewise.
45055         * modules/unicase/cased-tests (Makefile.am): Link all test programs
45056         with $(LIBUNISTRING).
45057         * modules/unicase/ignorable-tests: Likewise.
45058         * modules/unicase/locale-language-tests: Likewise.
45059         * modules/unicase/tolower-tests: Likewise.
45060         * modules/unicase/totitle-tests: Likewise.
45061         * modules/unicase/toupper-tests: Likewise.
45062         * modules/unicase/u8-casecmp-tests: Likewise.
45063         * modules/unicase/u8-casecoll-tests: Likewise.
45064         * modules/unicase/u8-casefold-tests: Likewise.
45065         * modules/unicase/u8-is-cased-tests: Likewise.
45066         * modules/unicase/u8-is-casefolded-tests: Likewise.
45067         * modules/unicase/u8-is-lowercase-tests: Likewise.
45068         * modules/unicase/u8-is-titlecase-tests: Likewise.
45069         * modules/unicase/u8-is-uppercase-tests: Likewise.
45070         * modules/unicase/u8-tolower-tests: Likewise.
45071         * modules/unicase/u8-totitle-tests: Likewise.
45072         * modules/unicase/u8-toupper-tests: Likewise.
45073         * modules/unicase/u16-casecmp-tests: Likewise.
45074         * modules/unicase/u16-casecoll-tests: Likewise.
45075         * modules/unicase/u16-casefold-tests: Likewise.
45076         * modules/unicase/u16-is-cased-tests: Likewise.
45077         * modules/unicase/u16-is-casefolded-tests: Likewise.
45078         * modules/unicase/u16-is-lowercase-tests: Likewise.
45079         * modules/unicase/u16-is-titlecase-tests: Likewise.
45080         * modules/unicase/u16-is-uppercase-tests: Likewise.
45081         * modules/unicase/u16-tolower-tests: Likewise.
45082         * modules/unicase/u16-totitle-tests: Likewise.
45083         * modules/unicase/u16-toupper-tests: Likewise.
45084         * modules/unicase/u32-casecmp-tests: Likewise.
45085         * modules/unicase/u32-casecoll-tests: Likewise.
45086         * modules/unicase/u32-casefold-tests: Likewise.
45087         * modules/unicase/u32-is-cased-tests: Likewise.
45088         * modules/unicase/u32-is-casefolded-tests: Likewise.
45089         * modules/unicase/u32-is-lowercase-tests: Likewise.
45090         * modules/unicase/u32-is-titlecase-tests: Likewise.
45091         * modules/unicase/u32-is-uppercase-tests: Likewise.
45092         * modules/unicase/u32-tolower-tests: Likewise.
45093         * modules/unicase/u32-totitle-tests: Likewise.
45094         * modules/unicase/u32-toupper-tests: Likewise.
45095         * modules/unicase/ulc-casecmp-tests: Likewise.
45096         * modules/unicase/ulc-casecoll-tests: Likewise.
45097         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
45098         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
45099         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
45100         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
45101         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
45102         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
45103         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
45104         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
45105         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
45106         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
45107         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
45108         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
45109         * modules/unictype/bidicategory-byname-tests: Likewise.
45110         * modules/unictype/bidicategory-name-tests: Likewise.
45111         * modules/unictype/bidicategory-of-tests: Likewise.
45112         * modules/unictype/bidicategory-test-tests: Likewise.
45113         * modules/unictype/block-list-tests: Likewise.
45114         * modules/unictype/block-of-tests: Likewise.
45115         * modules/unictype/block-test-tests: Likewise.
45116         * modules/unictype/category-C-tests: Likewise.
45117         * modules/unictype/category-Cc-tests: Likewise.
45118         * modules/unictype/category-Cf-tests: Likewise.
45119         * modules/unictype/category-Cn-tests: Likewise.
45120         * modules/unictype/category-Co-tests: Likewise.
45121         * modules/unictype/category-Cs-tests: Likewise.
45122         * modules/unictype/category-L-tests: Likewise.
45123         * modules/unictype/category-Ll-tests: Likewise.
45124         * modules/unictype/category-Lm-tests: Likewise.
45125         * modules/unictype/category-Lo-tests: Likewise.
45126         * modules/unictype/category-Lt-tests: Likewise.
45127         * modules/unictype/category-Lu-tests: Likewise.
45128         * modules/unictype/category-M-tests: Likewise.
45129         * modules/unictype/category-Mc-tests: Likewise.
45130         * modules/unictype/category-Me-tests: Likewise.
45131         * modules/unictype/category-Mn-tests: Likewise.
45132         * modules/unictype/category-N-tests: Likewise.
45133         * modules/unictype/category-Nd-tests: Likewise.
45134         * modules/unictype/category-Nl-tests: Likewise.
45135         * modules/unictype/category-No-tests: Likewise.
45136         * modules/unictype/category-P-tests: Likewise.
45137         * modules/unictype/category-Pc-tests: Likewise.
45138         * modules/unictype/category-Pd-tests: Likewise.
45139         * modules/unictype/category-Pe-tests: Likewise.
45140         * modules/unictype/category-Pf-tests: Likewise.
45141         * modules/unictype/category-Pi-tests: Likewise.
45142         * modules/unictype/category-Po-tests: Likewise.
45143         * modules/unictype/category-Ps-tests: Likewise.
45144         * modules/unictype/category-S-tests: Likewise.
45145         * modules/unictype/category-Sc-tests: Likewise.
45146         * modules/unictype/category-Sk-tests: Likewise.
45147         * modules/unictype/category-Sm-tests: Likewise.
45148         * modules/unictype/category-So-tests: Likewise.
45149         * modules/unictype/category-Z-tests: Likewise.
45150         * modules/unictype/category-Zl-tests: Likewise.
45151         * modules/unictype/category-Zp-tests: Likewise.
45152         * modules/unictype/category-Zs-tests: Likewise.
45153         * modules/unictype/category-and-not-tests: Likewise.
45154         * modules/unictype/category-and-tests: Likewise.
45155         * modules/unictype/category-byname-tests: Likewise.
45156         * modules/unictype/category-name-tests: Likewise.
45157         * modules/unictype/category-none-tests: Likewise.
45158         * modules/unictype/category-of-tests: Likewise.
45159         * modules/unictype/category-or-tests: Likewise.
45160         * modules/unictype/category-test-withtable-tests: Likewise.
45161         * modules/unictype/combining-class-tests: Likewise.
45162         * modules/unictype/ctype-alnum-tests: Likewise.
45163         * modules/unictype/ctype-alpha-tests: Likewise.
45164         * modules/unictype/ctype-blank-tests: Likewise.
45165         * modules/unictype/ctype-cntrl-tests: Likewise.
45166         * modules/unictype/ctype-digit-tests: Likewise.
45167         * modules/unictype/ctype-graph-tests: Likewise.
45168         * modules/unictype/ctype-lower-tests: Likewise.
45169         * modules/unictype/ctype-print-tests: Likewise.
45170         * modules/unictype/ctype-punct-tests: Likewise.
45171         * modules/unictype/ctype-space-tests: Likewise.
45172         * modules/unictype/ctype-upper-tests: Likewise.
45173         * modules/unictype/ctype-xdigit-tests: Likewise.
45174         * modules/unictype/decimal-digit-tests: Likewise.
45175         * modules/unictype/digit-tests: Likewise.
45176         * modules/unictype/mirror-tests: Likewise.
45177         * modules/unictype/numeric-tests: Likewise.
45178         * modules/unictype/property-alphabetic-tests: Likewise.
45179         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
45180         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
45181         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
45182         * modules/unictype/property-bidi-block-separator-tests: Likewise.
45183         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
45184         * modules/unictype/property-bidi-common-separator-tests: Likewise.
45185         * modules/unictype/property-bidi-control-tests: Likewise.
45186         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
45187         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
45188         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
45189         * modules/unictype/property-bidi-european-digit-tests: Likewise.
45190         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
45191         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
45192         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
45193         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
45194         * modules/unictype/property-bidi-pdf-tests: Likewise.
45195         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
45196         * modules/unictype/property-bidi-whitespace-tests: Likewise.
45197         * modules/unictype/property-byname-tests: Likewise.
45198         * modules/unictype/property-combining-tests: Likewise.
45199         * modules/unictype/property-composite-tests: Likewise.
45200         * modules/unictype/property-currency-symbol-tests: Likewise.
45201         * modules/unictype/property-dash-tests: Likewise.
45202         * modules/unictype/property-decimal-digit-tests: Likewise.
45203         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
45204         * modules/unictype/property-deprecated-tests: Likewise.
45205         * modules/unictype/property-diacritic-tests: Likewise.
45206         * modules/unictype/property-extender-tests: Likewise.
45207         * modules/unictype/property-format-control-tests: Likewise.
45208         * modules/unictype/property-grapheme-base-tests: Likewise.
45209         * modules/unictype/property-grapheme-extend-tests: Likewise.
45210         * modules/unictype/property-grapheme-link-tests: Likewise.
45211         * modules/unictype/property-hex-digit-tests: Likewise.
45212         * modules/unictype/property-hyphen-tests: Likewise.
45213         * modules/unictype/property-id-continue-tests: Likewise.
45214         * modules/unictype/property-id-start-tests: Likewise.
45215         * modules/unictype/property-ideographic-tests: Likewise.
45216         * modules/unictype/property-ids-binary-operator-tests: Likewise.
45217         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
45218         * modules/unictype/property-ignorable-control-tests: Likewise.
45219         * modules/unictype/property-iso-control-tests: Likewise.
45220         * modules/unictype/property-join-control-tests: Likewise.
45221         * modules/unictype/property-left-of-pair-tests: Likewise.
45222         * modules/unictype/property-line-separator-tests: Likewise.
45223         * modules/unictype/property-logical-order-exception-tests: Likewise.
45224         * modules/unictype/property-lowercase-tests: Likewise.
45225         * modules/unictype/property-math-tests: Likewise.
45226         * modules/unictype/property-non-break-tests: Likewise.
45227         * modules/unictype/property-not-a-character-tests: Likewise.
45228         * modules/unictype/property-numeric-tests: Likewise.
45229         * modules/unictype/property-other-alphabetic-tests: Likewise.
45230         * modules/unictype/property-other-default-ignorable-code-point-tests:
45231         Likewise.
45232         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
45233         * modules/unictype/property-other-id-continue-tests: Likewise.
45234         * modules/unictype/property-other-id-start-tests: Likewise.
45235         * modules/unictype/property-other-lowercase-tests: Likewise.
45236         * modules/unictype/property-other-math-tests: Likewise.
45237         * modules/unictype/property-other-uppercase-tests: Likewise.
45238         * modules/unictype/property-paired-punctuation-tests: Likewise.
45239         * modules/unictype/property-paragraph-separator-tests: Likewise.
45240         * modules/unictype/property-pattern-syntax-tests: Likewise.
45241         * modules/unictype/property-pattern-white-space-tests: Likewise.
45242         * modules/unictype/property-private-use-tests: Likewise.
45243         * modules/unictype/property-punctuation-tests: Likewise.
45244         * modules/unictype/property-quotation-mark-tests: Likewise.
45245         * modules/unictype/property-radical-tests: Likewise.
45246         * modules/unictype/property-sentence-terminal-tests: Likewise.
45247         * modules/unictype/property-soft-dotted-tests: Likewise.
45248         * modules/unictype/property-space-tests: Likewise.
45249         * modules/unictype/property-terminal-punctuation-tests: Likewise.
45250         * modules/unictype/property-test-tests: Likewise.
45251         * modules/unictype/property-titlecase-tests: Likewise.
45252         * modules/unictype/property-unassigned-code-value-tests: Likewise.
45253         * modules/unictype/property-unified-ideograph-tests: Likewise.
45254         * modules/unictype/property-uppercase-tests: Likewise.
45255         * modules/unictype/property-variation-selector-tests: Likewise.
45256         * modules/unictype/property-white-space-tests: Likewise.
45257         * modules/unictype/property-xid-continue-tests: Likewise.
45258         * modules/unictype/property-xid-start-tests: Likewise.
45259         * modules/unictype/property-zero-width-tests: Likewise.
45260         * modules/unictype/scripts-tests: Likewise.
45261         * modules/unictype/syntax-c-ident-tests: Likewise.
45262         * modules/unictype/syntax-c-whitespace-tests: Likewise.
45263         * modules/unictype/syntax-java-ident-tests: Likewise.
45264         * modules/unictype/syntax-java-whitespace-tests: Likewise.
45265         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
45266         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
45267         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
45268         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
45269         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
45270         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
45271         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
45272         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
45273         * modules/uniname/uniname-tests: Likewise.
45274         * modules/uninorm/canonical-decomposition-tests: Likewise.
45275         * modules/uninorm/compat-decomposition-tests: Likewise.
45276         * modules/uninorm/composition-tests: Likewise.
45277         * modules/uninorm/decomposing-form-tests: Likewise.
45278         * modules/uninorm/decomposition-tests: Likewise.
45279         * modules/uninorm/filter-tests: Likewise.
45280         * modules/uninorm/nfc-tests: Likewise.
45281         * modules/uninorm/nfd-tests: Likewise.
45282         * modules/uninorm/nfkc-tests: Likewise.
45283         * modules/uninorm/nfkd-tests: Likewise.
45284         * modules/uninorm/u8-normcmp-tests: Likewise.
45285         * modules/uninorm/u8-normcoll-tests: Likewise.
45286         * modules/uninorm/u16-normcmp-tests: Likewise.
45287         * modules/uninorm/u16-normcoll-tests: Likewise.
45288         * modules/uninorm/u32-normcmp-tests: Likewise.
45289         * modules/uninorm/u32-normcoll-tests: Likewise.
45290         * modules/unistdio/u8-asnprintf-tests: Likewise.
45291         * modules/unistdio/u8-vasnprintf-tests: Likewise.
45292         * modules/unistdio/u8-vasprintf-tests: Likewise.
45293         * modules/unistdio/u8-vsnprintf-tests: Likewise.
45294         * modules/unistdio/u8-vsprintf-tests: Likewise.
45295         * modules/unistdio/u16-asnprintf-tests: Likewise.
45296         * modules/unistdio/u16-vasnprintf-tests: Likewise.
45297         * modules/unistdio/u16-vasprintf-tests: Likewise.
45298         * modules/unistdio/u16-vsnprintf-tests: Likewise.
45299         * modules/unistdio/u16-vsprintf-tests: Likewise.
45300         * modules/unistdio/u32-asnprintf-tests: Likewise.
45301         * modules/unistdio/u32-vasnprintf-tests: Likewise.
45302         * modules/unistdio/u32-vasprintf-tests: Likewise.
45303         * modules/unistdio/u32-vsnprintf-tests: Likewise.
45304         * modules/unistdio/u32-vsprintf-tests: Likewise.
45305         * modules/unistdio/ulc-asnprintf-tests: Likewise.
45306         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
45307         * modules/unistdio/ulc-vasprintf-tests: Likewise.
45308         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
45309         * modules/unistdio/ulc-vsprintf-tests: Likewise.
45310         * modules/unistr/u8-check-tests: Likewise.
45311         * modules/unistr/u8-chr-tests: Likewise.
45312         * modules/unistr/u8-cmp-tests: Likewise.
45313         * modules/unistr/u8-cmp2-tests: Likewise.
45314         * modules/unistr/u8-cpy-alloc-tests: Likewise.
45315         * modules/unistr/u8-cpy-tests: Likewise.
45316         * modules/unistr/u8-mblen-tests: Likewise.
45317         * modules/unistr/u8-mbsnlen-tests: Likewise.
45318         * modules/unistr/u8-mbtouc-tests: Likewise.
45319         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
45320         * modules/unistr/u8-mbtoucr-tests: Likewise.
45321         * modules/unistr/u8-move-tests: Likewise.
45322         * modules/unistr/u8-next-tests: Likewise.
45323         * modules/unistr/u8-prev-tests: Likewise.
45324         * modules/unistr/u8-set-tests: Likewise.
45325         * modules/unistr/u8-stpcpy-tests: Likewise.
45326         * modules/unistr/u8-stpncpy-tests: Likewise.
45327         * modules/unistr/u8-strcat-tests: Likewise.
45328         * modules/unistr/u8-strcmp-tests: Likewise.
45329         * modules/unistr/u8-strcoll-tests: Likewise.
45330         * modules/unistr/u8-strcpy-tests: Likewise.
45331         * modules/unistr/u8-strdup-tests: Likewise.
45332         * modules/unistr/u8-strlen-tests: Likewise.
45333         * modules/unistr/u8-strmblen-tests: Likewise.
45334         * modules/unistr/u8-strmbtouc-tests: Likewise.
45335         * modules/unistr/u8-strncat-tests: Likewise.
45336         * modules/unistr/u8-strncmp-tests: Likewise.
45337         * modules/unistr/u8-strncpy-tests: Likewise.
45338         * modules/unistr/u8-strnlen-tests: Likewise.
45339         * modules/unistr/u8-to-u16-tests: Likewise.
45340         * modules/unistr/u8-to-u32-tests: Likewise.
45341         * modules/unistr/u8-uctomb-tests: Likewise.
45342         * modules/unistr/u16-check-tests: Likewise.
45343         * modules/unistr/u16-chr-tests: Likewise.
45344         * modules/unistr/u16-cmp-tests: Likewise.
45345         * modules/unistr/u16-cmp2-tests: Likewise.
45346         * modules/unistr/u16-cpy-alloc-tests: Likewise.
45347         * modules/unistr/u16-cpy-tests: Likewise.
45348         * modules/unistr/u16-mblen-tests: Likewise.
45349         * modules/unistr/u16-mbsnlen-tests: Likewise.
45350         * modules/unistr/u16-mbtouc-tests: Likewise.
45351         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
45352         * modules/unistr/u16-mbtoucr-tests: Likewise.
45353         * modules/unistr/u16-move-tests: Likewise.
45354         * modules/unistr/u16-next-tests: Likewise.
45355         * modules/unistr/u16-prev-tests: Likewise.
45356         * modules/unistr/u16-set-tests: Likewise.
45357         * modules/unistr/u16-stpcpy-tests: Likewise.
45358         * modules/unistr/u16-stpncpy-tests: Likewise.
45359         * modules/unistr/u16-strcat-tests: Likewise.
45360         * modules/unistr/u16-strcmp-tests: Likewise.
45361         * modules/unistr/u16-strcoll-tests: Likewise.
45362         * modules/unistr/u16-strcpy-tests: Likewise.
45363         * modules/unistr/u16-strdup-tests: Likewise.
45364         * modules/unistr/u16-strlen-tests: Likewise.
45365         * modules/unistr/u16-strmblen-tests: Likewise.
45366         * modules/unistr/u16-strmbtouc-tests: Likewise.
45367         * modules/unistr/u16-strncat-tests: Likewise.
45368         * modules/unistr/u16-strncmp-tests: Likewise.
45369         * modules/unistr/u16-strncpy-tests: Likewise.
45370         * modules/unistr/u16-strnlen-tests: Likewise.
45371         * modules/unistr/u16-to-u32-tests: Likewise.
45372         * modules/unistr/u16-to-u8-tests: Likewise.
45373         * modules/unistr/u16-uctomb-tests: Likewise.
45374         * modules/unistr/u32-check-tests: Likewise.
45375         * modules/unistr/u32-chr-tests: Likewise.
45376         * modules/unistr/u32-cmp-tests: Likewise.
45377         * modules/unistr/u32-cmp2-tests: Likewise.
45378         * modules/unistr/u32-cpy-alloc-tests: Likewise.
45379         * modules/unistr/u32-cpy-tests: Likewise.
45380         * modules/unistr/u32-mblen-tests: Likewise.
45381         * modules/unistr/u32-mbsnlen-tests: Likewise.
45382         * modules/unistr/u32-mbtouc-tests: Likewise.
45383         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
45384         * modules/unistr/u32-mbtoucr-tests: Likewise.
45385         * modules/unistr/u32-move-tests: Likewise.
45386         * modules/unistr/u32-next-tests: Likewise.
45387         * modules/unistr/u32-prev-tests: Likewise.
45388         * modules/unistr/u32-set-tests: Likewise.
45389         * modules/unistr/u32-stpcpy-tests: Likewise.
45390         * modules/unistr/u32-stpncpy-tests: Likewise.
45391         * modules/unistr/u32-strcat-tests: Likewise.
45392         * modules/unistr/u32-strcmp-tests: Likewise.
45393         * modules/unistr/u32-strcoll-tests: Likewise.
45394         * modules/unistr/u32-strcpy-tests: Likewise.
45395         * modules/unistr/u32-strdup-tests: Likewise.
45396         * modules/unistr/u32-strlen-tests: Likewise.
45397         * modules/unistr/u32-strmblen-tests: Likewise.
45398         * modules/unistr/u32-strmbtouc-tests: Likewise.
45399         * modules/unistr/u32-strncat-tests: Likewise.
45400         * modules/unistr/u32-strncmp-tests: Likewise.
45401         * modules/unistr/u32-strncpy-tests: Likewise.
45402         * modules/unistr/u32-strnlen-tests: Likewise.
45403         * modules/unistr/u32-to-u16-tests: Likewise.
45404         * modules/unistr/u32-to-u8-tests: Likewise.
45405         * modules/unistr/u32-uctomb-tests: Likewise.
45406         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
45407         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
45408         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
45409         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
45410         * modules/uniwidth/u8-strwidth-tests: Likewise.
45411         * modules/uniwidth/u8-width-tests: Likewise.
45412         * modules/uniwidth/u16-strwidth-tests: Likewise.
45413         * modules/uniwidth/u16-width-tests: Likewise.
45414         * modules/uniwidth/u32-strwidth-tests: Likewise.
45415         * modules/uniwidth/u32-width-tests: Likewise.
45416         * modules/uniwidth/width-tests: Likewise.
45418 2010-05-18  Richard Jones  <rjones@redhat.com>
45420         doc: users.txt: list hivex
45421         * users.txt: Add hivex.
45423 2010-05-18  Richard Jones  <rjones@redhat.com>
45425         doc: users.txt: list febootstrap
45426         * users.txt: Add febootstrap.
45428 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
45430         bootstrap: fix an error when gnulib is not used as a git submodule
45431         * build-aux/bootstrap (gnulib_path): If its length is zero then
45432         assign "gnulib" to it.
45433         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
45435 2010-05-16  Bruno Haible  <bruno@clisp.org>
45437         Avoid autoconf warnings about AM_ICONV.
45438         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
45439         2.64.
45441 2010-05-16  Bruno Haible  <bruno@clisp.org>
45443         absolute-header: Make the macro usable in more situations.
45444         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
45445         from gl_ABSOLUTE_HEADER.
45446         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
45448 2010-05-16  James Youngman  <jay@gnu.org>
45450         doc: update users.txt
45451         * users.txt: Add CSSC.
45453 2010-05-16  Jim Meyering  <meyering@redhat.com>
45455         init.sh: fix an error in the previous change; add more comments
45456         * tests/init.sh: Compare exit code in loop against 9, not 2.
45457         Patch by Bruno Haible.
45458         Make the two tests more similar by adding an empty "then" clause.
45459         Add comments.
45461         init.sh: avoid unnecessary shell re-exec
45462         * tests/init.sh: Improve the re-exec-required check to first test the
45463         current shell.  If it passes the test, do not search for a shell that
45464         does pass, and do not re-exec.  This test is particularly contorted to
45465         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
45466         of $(...) evokes a syntax error and causes immediate shell exit with
45467         status 2.  Bruno Haible reported that the re-exec made it impossible
45468         to single-step through any init.sh-using script.
45470 2010-05-16  Bruno Haible  <bruno@clisp.org>
45472         Fix collision between gnulib's and libintl's printf replacements.
45473         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
45474         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
45475         (printf): When using GNU C, map the __printf__ function to rpl_printf
45476         via __asm__. When not using GNU C, define rpl_printf instead of
45477         __printf__.
45478         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
45479         commit.
45480         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
45481         commit.
45482         * m4/asm-underscore.m4: New file.
45483         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
45484         * modules/stdio (Files): Add m4/asm-underscore.m4.
45485         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
45486         Reported by Ben Pfaff.
45488 2010-05-16  Bruno Haible  <bruno@clisp.org>
45490         verify: Avoid skipping the test on openSUSE 11.0.
45491         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
45493 2010-05-13  Bruno Haible  <bruno@clisp.org>
45495         Avoid useless warnings from G++.
45496         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
45497         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
45498         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45500 2010-05-11  Jim Meyering  <meyering@redhat.com>
45502         maint.mk: tweak preceding change
45503         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
45504         regexps tighter by anchoring at EOL, and make the new group "shy"
45505         for slightly decreased overhead.
45507 2010-05-11  Eric Blake  <eblake@redhat.com>
45509         maint.mk: gnulib doesn't guarantee NSIG
45510         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
45512 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
45514         test-pwrite.c: Remove unused variable declaration.
45515         * tests/test-pwrite.c (main): Remove read_buf declaration.
45517         Remove useless test-pwrite.sh file.
45518         * tests/test-pwrite.sh: Delete file.
45519         * modules/pwrite-tests: Remove references.
45520         Reported by Bruno Haible.
45522 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
45524         init.sh: fix a typo
45525         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
45527 2010-05-10  Jim Meyering  <meyering@redhat.com>
45529         maint.mk: avoid using a temporary file in the always-defined-macros check
45530         * top/maint.mk (.re-defmac): Remove rule.
45531         (gl_trap_): Remove definition.
45532         (sc_prohibit_always-defined_macros): Rewrite not to create and
45533         depend on a temporary file.  Instead, depend on GNU grep's ability
45534         to read a list of regular expressions from stdin when given "-f -".
45536 2010-05-09  Bruno Haible  <bruno@clisp.org>
45538         Update to GNU gettext 0.18, part 1.
45539         * m4/gettext.m4: Update to GNU gettext 0.18.
45540         * m4/intl.m4: Likewise.
45541         * m4/po.m4: Likewise.
45542         * modules/gettext (Files): Add m4/fcntl-o.m4.
45543         (configure.ac): Require gettext infrastructure from version 0.18.
45545 2010-05-09  Jim Meyering  <meyering@redhat.com>
45547         init.sh: enable MALLOC_PERTURB_
45548         * tests/init.sh: Enable glibc's malloc-perturbing option.
45550         maint.mk: improve sc_cross_check_PATH_usage_in_tests
45551         With my recent change in init.sh from the two-line form:
45552             -#   : ${srcdir=.}
45553             -#   . "$srcdir/init.sh"; path_prepend_ .
45554             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
45555         I noticed that using the one-line form would cause this test
45556         to fail with a false-positive, or to stop working altogether,
45557         depending on whether help-version changed or all the tests did.
45558         * top/maint.mk (_hv_regex): Remove this definition.
45559         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
45560         (_hv_regex_strong): Use a stronger regex to check for conformance.
45561         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
45562         Give a separate diagnostic for lack of conforming use.
45564         maint.mk: prohibit definition of symbols defined by gnulib
45565         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
45566         definition of symbols defined by gnulib.
45568 2010-05-09  Bruno Haible  <bruno@clisp.org>
45570         acl: Avoid test failure on Cygwin-hosted mingw.
45571         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
45573 2010-05-09  Bruno Haible  <bruno@clisp.org>
45575         error: Use system's fcntl function.
45576         * lib/error.c (fcntl): Undefine.
45578 2010-05-09  Jim Meyering  <meyering@redhat.com>
45580         verify: adjust formatting to be more consistent
45581         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
45582         argument-list '('s, and after one comma.
45584 2010-05-09  Bruno Haible  <bruno@clisp.org>
45586         error: More reliable output on mingw.
45587         * lib/error.c: Include <windows.h>.
45588         (is_open): New function.
45589         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
45590         defined.
45592 2010-05-09  Bruno Haible  <bruno@clisp.org>
45594         vasnprintf: Fix syntax errors in libintl build on mingw.
45595         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
45596         pad_ourselves and prec_ourselves after use.
45598 2010-05-08  Bruno Haible  <bruno@clisp.org>
45600         * lib/config.charset: Update comments for Cygwin 1.7.
45601         * lib/localcharset.c: Likewise.
45603 2010-05-07  Jim Meyering  <meyering@redhat.com>
45605         init.sh: improve comments
45606         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
45607         . "${srcdir=.}/init.sh"; path_prepend_ .
45608         Add a note about path_prepend_ and the alternative of using
45609         TESTS_ENVIRONMENT.
45611 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45613         exclude: Unescape hashed patterns in wildcard mode.
45614         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
45615         to the hash list.
45616         * tests/test-exclude8.sh: New test case.
45617         * modules/exclude-tests: Add new test.
45619 2010-05-05  Eric Blake  <eblake@redhat.com>
45621         verify: automate tests
45622         * modules/verify-tests: New module.
45623         * tests/test-verify.sh: New file.
45624         * tests/test-verify.c: Guard each negative test with a unique id.
45625         Also avoid warning about unused left hand of comma expressions.
45627 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
45629         Further improvements to verify.h, suggested by Eric Blake.
45630         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
45631         the GL_* versions, to avoid collision with OpenGL.
45632         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
45633         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
45634         than testing merely whether it's defined.
45636         Modify verify.h to pacify gcc -Wredundant_decls.
45637         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
45638         These use the prefix "GL_" since they're likely to be useful elsewhere.
45639         We may need to break them out into a different .h file.
45640         (__COUNTER__): Define to 0 if the compiler doesn't support it.
45641         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
45642         of verify_function__.
45644 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
45646         Tests for module pwrite.
45647         * modules/pwrite-tests: New file.
45648         * tests/test-pwrite.sh: New file.
45649         * tests/test-pwrite.c: New file.
45651         New module pwrite.
45652         * lib/unistd.in.h (pwrite): New declaration.
45653         * lib/pwrite.c: New file, from glibc with modifications.
45654         * m4/pwrite.m4: New file.
45655         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
45656         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
45657         REPLACE_PWRITE.
45658         * modules/pwrite: New file.
45659         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
45660         REPLACE_PWRITE.
45661         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
45662         * doc/posix-functions/pwrite.texi: Mention the new module.
45664 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
45666         pread: Update documentation.
45667         * doc/posix-functions/pread.texi: Mention the 'pread' module.
45669 2010-05-04  Eric Blake  <eblake@redhat.com>
45671         docs: update cygwin progress
45672         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
45673         this bug.
45674         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
45675         Added in cygwin 1.7.2.
45676         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
45677         Likewise.
45678         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
45679         Likewise.
45680         * doc/glibc-functions/dup3.texi (dup3): Likewise.
45681         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
45682         * doc/glibc-functions/accept4.texi (accept4): Likewise.
45683         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
45684         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
45685         Mention nproc module.
45686         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
45687         bug in cygwin 1.7.5 addition.
45688         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
45689         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
45690         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
45691         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
45692         1.7.5.
45693         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
45694         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
45695         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
45696         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
45697         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
45698         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
45699         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
45700         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
45701         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
45702         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
45703         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
45704         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
45705         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
45706         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
45707         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
45708         Likewise.
45709         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
45710         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
45711         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
45712         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
45713         Likewise.
45714         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
45715         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
45716         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
45717         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
45718         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
45719         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
45720         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
45721         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
45722         Likewise.
45723         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
45724         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
45725         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
45726         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
45727         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
45728         Likewise.
45729         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
45730         Likewise.
45731         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
45732         Likewise.
45733         * doc/glibc-functions/xdrrec_endofrecord.texi
45734         (xdrrec_endofrecord): Likewise.
45735         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
45736         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
45737         Likewise.
45738         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
45739         Likewise.
45741 2010-05-04  Jim Meyering  <meyering@redhat.com>
45743         gendocs.sh: make its "-s FILE" option more useful
45744         * build-aux/gendocs.sh: When honoring the -s FILE option, update
45745         $PACKAGE to reflect the probably-different basename of "FILE".
45747 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45749         bootstrap: don't ignore download_po_files failure
45750         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
45751         failure.
45753 2010-05-03  Jim Meyering  <meyering@redhat.com>
45755         maint.mk: allow to pass options to gendocs.sh
45756         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
45757         (gendocs_options_): New overridable variable.
45759         gnu-web-doc-update: don't ignore configure or build failure
45760         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
45762         announce-gen: backslash-escape '@'s in --help output
45763         * build-aux/announce-gen: Fix syntax errors.
45765         maint.mk, announce-gen: allow project-specific announcement mail headers
45766         * top/maint.mk (translation_project_): Define default.
45767         (announcement_Cc_, announcement_mail_headers_): Likewise.
45768         (announcement): Invoke announce-gen with new --mail-headers option.
45769         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
45771         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
45772         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
45773         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
45774         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
45775         line in the "err2" output file when running "make check" in verbose
45776         mode (i.e., with set -x enabled).
45778 2010-05-03  Bruno Haible  <bruno@clisp.org>
45780         wctob: Fix for weird platforms.
45781         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
45782         argument value.
45784 2010-05-03  Jim Meyering  <meyering@redhat.com>
45786         maint.mk: prohibit unwarranted use of <strings.h>
45787         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
45788         strings.h in a file that does not also use strcasecmp, strncasecmp,
45789         ffs or ffsll.
45791         maint.mk: remove obsolete comments
45792         * top/maint.mk: Remove stale, commented-out rules.
45794 2010-05-02  Bruno Haible  <bruno@clisp.org>
45796         wcwidth: Declare also when it's aliased.
45797         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
45798         macro.
45800 2010-05-02  Bruno Haible  <bruno@clisp.org>
45802         Fix regression from 2010-04-25.
45803         * gnulib-tool (func_modules_transitive_closure): Check the status of
45804         all modules, not only of the tests that are of the form foo-tests where
45805         foo is a module.
45807 2010-05-02  Bruno Haible  <bruno@clisp.org>
45809         wctob: Work around nasty Cygwin 1.7.2 bug.
45810         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
45811         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
45813 2010-05-01  Bruno Haible  <bruno@clisp.org>
45815         fpurge: Sharper test.
45816         * tests/test-fpurge.c (main): Add one more ftell check.
45817         * modules/fpurge-tests (Depends-on): Add ftell.
45818         Suggested by Eric Blake.
45820 2010-05-01  Bruno Haible  <bruno@clisp.org>
45822         ftello: Another test.
45823         * tests/test-ftello3.c: New file.
45824         * modules/ftello-tests (Files): Add it.
45825         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
45826         MOSTLYCLEANFILES.
45828         ftell: Another test.
45829         * tests/test-ftell3.c: New file.
45830         * modules/ftell-tests (Files): Add it.
45831         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
45832         MOSTLYCLEANFILES.
45834 2010-05-01  Bruno Haible  <bruno@clisp.org>
45836         ftell, ftello: Work around Solaris bug.
45837         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
45838         * lib/ftello.c: Include stdio-impl.h.
45839         (ftello): On Solaris, when _IOWRT is set, compute the result without
45840         looking at _IOREAD.
45841         * modules/ftello (Files): Add lib/stdio-impl.h.
45842         * doc/posix-functions/ftell.texi: Mention Solaris bug.
45843         * doc/posix-functions/ftello.texi: Likewise.
45844         Reported by Eric Blake.
45846 2010-05-01  Bruno Haible  <bruno@clisp.org>
45848         freading: Adapt to special meaning of _IOREAD flag on Solaris.
45849         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
45850         the _IOWRT flag is also set.
45852 2010-05-01  Bruno Haible  <bruno@clisp.org>
45854         Fix doc about a HP-UX stdio bug.
45855         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
45856         * doc/posix-functions/ftello.texi: Likewise.
45858 2010-05-01  Bruno Haible  <bruno@clisp.org>
45860         lseek test: Fix failure on Solaris.
45861         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
45862         output.
45864 2010-04-30  Jim Meyering  <meyering@redhat.com>
45866         bootstrap: don't ignore failure to generate po*/Makevars
45867         * build-aux/bootstrap (with_gettext): Don't ignore failure
45868         to create po/Makevars or runtime-po/Makevars.
45870 2010-04-29  Eric Blake  <eblake@redhat.com>
45872         headers: relax license to LGPLv2+
45873         * modules/fcntl-h (License): Relax license.
45874         * modules/getopt-posix (License): Likewise.
45875         * modules/locale (License): Likewise.
45876         * modules/math (License): Likewise.
45877         * modules/pty (License): Likewise.
45878         * modules/sched (License): Likewise.
45879         * modules/search (License): Likewise.
45880         * modules/spawn (License): Likewise.
45881         * modules/stdarg (License): Likewise.
45882         * modules/sysexits (License): Likewise.
45884 2010-04-29  Jim Meyering  <meyering@redhat.com>
45886         inttypes: relax license to LGPLv2+
45887         * modules/inttypes (License): Relax license.
45889 2010-04-29  Simon Josefsson  <simon@josefsson.org>
45891         * top/maint.mk (indent): Run twice to produce idempotent results.
45893 2010-04-28  Bruno Haible  <bruno@clisp.org>
45895         getdate: Generate getdate.c in the source directory.
45896         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
45897         MOSTLYCLEANFILES.
45898         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
45900 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
45902         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
45903         is not declared as a const *; avoid warnings in that case.
45905 2010-04-28  Eric Blake  <eblake@redhat.com>
45907         canonicalize-lgpl: avoid compiler warning
45908         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
45909         declaration' / 'extraneous semicolon' warning with some compilers.
45910         Reported by Andreas Gruenbacher.
45912 2010-04-28  Jim Meyering  <meyering@redhat.com>
45914         init.sh: ensure a more reliable exit status when exiting via trap
45915         * tests/init.sh (setup_): Don't rely on $? in signal handler.
45916         Inspired by patches from Dmitry V. Levin.
45917         Also trap on signal 3 (SIGQUIT).
45919 2010-04-27  Bruno Haible  <bruno@clisp.org>
45921         Update doc about utimes().
45922         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
45923         'utimens' module.
45924         Reported by Andreas Gruenbacher <agruen@suse.de>.
45926 2010-04-27  Eric Blake  <eblake@redhat.com>
45928         full-read, full-write: relax license
45929         * modules/full-read (License): Drop to LGPLv2+.
45930         * modules/full-write (License): Likewise.
45931         * modules/safe-read (License): Likewise.
45932         * modules/safe-write (License): Likewise.
45934         pthread: mention library for linking
45935         * modules/pthread (Link): Mention $(LIB_PTHREAD).
45937 2010-04-27  Jim Meyering  <meyering@redhat.com>
45939         maint.mk: fix a bug introduced in last change
45940         * top/maint.mk (gl_assured_headers_): Now that all names are on
45941         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
45942         is not anchored to end of word, it should be adequate.
45944         maint.mk: avoid side-effect in latest syntax-check
45945         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
45946         to run commands via $(shell...), and hence to incur cost only when
45947         the new rule is actually run.
45949         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
45950         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
45951         and use that to create a regexp used to detect all #if HAVE_..._H uses.
45952         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
45953         (gl_assured_headers_, az_, AZ_): Define.
45954         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
45956 2010-04-26  Jim Meyering  <jim@meyering.net>
45957             Bruno Haible  <bruno@clisp.org>
45959         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
45960         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
45961         Prompted by an exchange with Gilles Espinasse.
45963 2010-04-26  Jim Meyering  <meyering@redhat.com>
45965         git-version-gen: aesthetic tweak
45966         * build-aux/git-version-gen: Use "$nl" rather than a literal,
45967         so that the command remains on a single line.
45969 2010-04-26  Eric Blake  <eblake@redhat.com>
45971         git-version-gen: allow use on EBCDIC hosts
45972         * build-aux/git-version-gen (dirty): Use literal rather than tying
45973         ourselves to ascii.
45974         Reported by Steve Goetze.
45976 2010-04-25  Bruno Haible  <bruno@clisp.org>
45978         netdb: Add support for GNULIB_POSIXCHECK.
45979         * lib/netdb.in.h: Include warn-on-use.h.
45980         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
45981         functions are used when GNULIB_POSIXCHECK is defined and the
45982         getaddrinfo module is not in use.
45983         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
45984         freeaddrinfo, gai_strerror, getnameinfo are declared.
45985         * modules/netdb (Depends-on): Add warn-on-use.
45986         (Makefile.am): Include warn-on-use.h in netdb.h.
45988 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
45990         build: avoid "make check" failure without .git/ directory
45991         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
45992         there is no .git/ directory.
45994 2010-04-25  Bruno Haible  <bruno@clisp.org>
45996         ptsname: Fix misuse of ttyname_r.
45997         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
45998         of errno.
46000 2010-04-25  Bruno Haible  <bruno@clisp.org>
46002         ttyname_r: Make it work on Solaris 10.
46003         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
46004         if the system function has the POSIX declaration. Test whether the
46005         function fails if the buffer is less than 128 bytes large.
46006         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
46007         system's ttyname_r function. Provide a reasonably large buffer.
46008         * modules/ttyname_r (Depends-on): Add extensions.
46009         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
46011 2010-04-25  Bruno Haible  <bruno@clisp.org>
46013         Use the 'extensions' module for some more functions on Solaris.
46014         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
46015         module.
46016         * doc/posix-functions/ctime_r.texi: Likewise.
46017         * doc/posix-functions/getgrgid_r.texi: Likewise.
46018         * doc/posix-functions/getgrnam_r.texi: Likewise.
46019         * doc/posix-functions/getpwnam_r.texi: Likewise.
46020         * doc/posix-functions/getpwuid_r.texi: Likewise.
46021         * doc/posix-functions/readdir_r.texi: Likewise.
46022         * doc/posix-functions/sigwait.texi: Likewise.
46023         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
46024         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
46026 2010-04-25  Bruno Haible  <bruno@clisp.org>
46028         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
46029         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
46030         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
46031         * lib/ttyname_r.c: Include <limits.h>.
46032         (ttyname_r): Define using the system's ttyname_r function, if it exists
46033         and not on Solaris.
46034         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
46035         set.
46036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
46037         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
46038         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
46039         Reported by Simon Josefsson.
46041 2010-04-25  Bruno Haible  <bruno@clisp.org>
46043         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
46044         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
46045         * doc/posix-functions/ctime_r.texi: Likewise.
46046         * doc/posix-functions/getgrgid_r.texi: Likewise.
46047         * doc/posix-functions/getgrnam_r.texi: Likewise.
46048         * doc/posix-functions/getlogin_r.texi: Likewise.
46049         * doc/posix-functions/getpwnam_r.texi: Likewise.
46050         * doc/posix-functions/getpwuid_r.texi: Likewise.
46051         * doc/posix-functions/readdir_r.texi: Likewise.
46052         * doc/posix-functions/sigwait.texi: Likewise.
46053         * doc/posix-functions/ttyname_r.texi: Likewise.
46054         Reported by Simon Josefsson.
46056 2010-04-25  Bruno Haible  <bruno@clisp.org>
46058         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
46059         * gnulib-tool (func_usage): Document that --with-*-tests options apply
46060         also to --create-testdir.
46061         (func_acceptable): Don't consider the status of *-tests modules here.
46062         (func_modules_transitive_closure): Consider it here, before including a
46063         test module.
46064         (func_import, func_create_testdir): Set inc_all_direct_tests,
46065         inc_all_indirect_tests.
46066         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
46067         --create-testdir and --create-megatestdir.
46069 2010-04-25  Bruno Haible  <bruno@clisp.org>
46071         gnulib-tool: Add --without-*-tests options.
46072         * gnulib-tool (func_usage): Document the --without-*-tests options.
46073         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
46074         excl_unportable_tests): New variables.
46075         Fail if they are specified with --import or --update.
46076         (func_acceptable): Respect the excl_*_tests variables.
46077         (func_import): Set the excl_*_tests variables to empty.
46079 2010-04-25  Simon Josefsson  <simon@josefsson.org>
46080             Bruno Haible  <bruno@clisp.org>
46082         Work around a MacOS X 10.4 bug with openpty.
46083         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
46084         * tests/test-openpty.c (main): Close the master side explicitly.
46086 2010-04-25  Bruno Haible  <bruno@clisp.org>
46088         strnlen: Fix a C++ test error on MacOS X and Solaris.
46089         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
46090         the function is not declared.
46091         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
46092         Simon Josefsson.
46094 2010-04-24  Bruno Haible  <bruno@clisp.org>
46096         Avoid a gcc warning.
46097         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
46098         of correct type for %08lx directive.
46099         Reported by Eric Blake.
46101 2010-04-24  Bruno Haible  <bruno@clisp.org>
46103         vasnprintf: Correct errno value in case of out-of-memory.
46104         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
46105         or sprintf. Use the errno value from SNPRINTF or sprintf.
46106         Reported by Ian Beckwith <ianb@erislabs.net>.
46108 2010-04-24  Bruno Haible  <bruno@clisp.org>
46110         ansi-c++-opt: Find correct compiler when cross-compiling.
46111         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
46112         AC_CHECK_PROGS.
46113         Reported by Simon Josefsson.
46115 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
46117         vc-list-files: Add support for subversion
46118         * build-aux/vc-list-files: Use "svn list" to generate the list of
46119         files controlled by subversion.
46121 2010-04-23  Jim Meyering  <meyering@redhat.com>
46123         vc-list-files tests: convert to use init.sh
46124         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
46125         path_prepend_.
46126         Use Exit, not exit.
46127         Use skip_ rather than open coding it.
46128         Remove trap set-up and compare definitions.
46129         * tests/test-vc-list-files-git.sh: Likewise.
46130         * modules/vc-list-files-tests (Files): Add tests/init.sh.
46132 2010-04-22  Simon Josefsson  <simon@josefsson.org>
46134         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
46135         backup files.
46137 2010-04-21  Simon Josefsson  <simon@josefsson.org>
46139         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
46141 2010-04-20  Eric Blake  <eblake@redhat.com>
46143         tests: be robust to ignored SIGPIPE
46144         * tests/test-select-in.sh: Consume all output.
46145         * tests/test-lseek.sh: Check correct exit status, while avoiding
46146         EPIPE.
46148 2010-04-20  Simon Josefsson  <simon@josefsson.org>
46149             Bruno Haible  <bruno@clisp.org>
46151         visibility: Don't use -fvisibility if it leads to a warning.
46152         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
46153         yes, don't pretend that visibility works if it leads to a warning.
46154         Reported by Mike Gran <spk121@yahoo.com>.
46156 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
46158         * build-aux/bootstrap: Use "git -h" for testing for supported options
46159         instead of "git --help".  The short-form option only shows a summary,
46160         and doesn't layout the full man page.  Grep for the full option name
46161         in the summary, too.
46163 2010-04-19  Bruno Haible  <bruno@clisp.org>
46165         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
46166         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
46167         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
46168         mention of RELOCATABLE_STRIP.
46169         Reported by Sylvain Beucler <beuc@beuc.net>.
46171 2010-04-19  Bruno Haible  <bruno@clisp.org>
46173         * lib/diffseq.h: Fix typo in comment.
46174         Reported by Eric Blake.
46176 2010-04-19  Bruno Haible  <bruno@clisp.org>
46178         ioctl: Move autoconf macro to a .m4 file.
46179         * m4/ioctl.m4: New file, extracted from modules/ioctl.
46180         * modules/ioctl (Files): Add it.
46181         (configure.ac): Simply invoke gl_FUNC_IOCTL.
46182         Reported by Ian Beckwith <ianb@erislabs.net>.
46184 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
46185             Bruno Haible  <bruno@clisp.org>
46187         diffseq: Accommodate use-case with abstract arrays.
46188         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
46189         is not defined.
46190         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
46191         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
46193 2010-04-18  Bruno Haible  <bruno@clisp.org>
46195         * doc/posix-headers/stdbool.texi: More precise wording.
46197 2010-04-17  Jim Meyering  <meyering@redhat.com>
46199         maint.mk: use gnu-style indentation in an embedded perl script
46200         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
46201         Rename variable: s/two/last_two_bytes/
46203 2010-04-16  Eric Blake  <eblake@redhat.com>
46205         test-stdbool: skip test that fails with Solaris CC
46206         * tests/test-stdbool.c (f): Skip test that causes compilation
46207         error under buggy C++ compiler.
46208         * lib/stdbool.in.h: Document the limitation.
46209         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
46211         setenv: allow compilation with C++
46212         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
46213         register keyword.
46215         stdint: allow test to pass with C++
46216         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
46218         getopt: allow compilation with C++
46219         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
46220         struct.
46221         * lib/getopt.c (_getopt_internal_r): Use correct type.
46222         Reported by Dagobert Michelson, via Joel E. Denny.
46224 2010-04-16  Bruno Haible  <bruno@clisp.org>
46226         Override netdb.h always.
46227         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
46228         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
46229         Reported by Ludovic Courtès <ludo@gnu.org>.
46231 2010-04-15  Bruno Haible  <bruno@clisp.org>
46233         openpty: Fix mistake from 2010-03-21.
46234         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
46235         Reported by Simon Josefsson.
46237 2010-04-15  Eric Blake  <eblake@redhat.com>
46239         test-forkpty: fix expected signature
46240         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
46241         Reported by Simon Josefsson.
46243 2010-04-15  Jim Meyering  <meyering@redhat.com>
46245         maint.mk: texinfo_suffix_re_: correct the default regexp
46246         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
46248         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
46249         make it configurable via texinfo_suffix_re_.
46251 2010-04-14  Eric Blake  <eblake@redhat.com>
46253         strtok_r: relax license to LGPLv2+
46254         * modules/strtok_r (License): Relax license.
46255         Reported by Matthias Bolte.
46257 2010-04-14  Simon Josefsson  <simon@josefsson.org>
46259         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
46260         version 1.4.4 by default instead of requiring the libgcrypt
46261         version used during build.  This makes it possible to use the
46262         application with older but still binary compatible libgcrypt
46263         versions.
46265 2010-04-13  Eric Blake  <eblake@redhat.com>
46267         getopt-gnu: match recent glibc fixes and posix ruling
46268         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
46269         '+' handling, when requesting extensions.
46270         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
46271         'W;' handling.
46272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
46273         * doc/posix-functions/getopt.texi (getopt): Document this.
46274         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
46275         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
46276         Likewise.
46278         getopt: merge bug fixes from glibc
46279         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
46280         diagnostics.  Honor '+:' correctly.  Reject ';'.
46282         getopt-posix: detect MacOS bug
46283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
46284         optind when missing a required argument.
46285         * doc/posix-functions/getopt.texi (getopt): Document the bug.
46286         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
46287         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
46288         Likewise.
46290         getopt-posix: avoid spurious failure on Solaris
46291         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
46292         an indicator that setting optind=1 is sufficient for reset.
46294         getopt-posix: avoid spurious failure on FreeBSD
46295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
46296         in POSIX mode, since the m4 test uses it.
46298         gnulib-tool: silence warning on BSD sh
46299         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
46301 2010-04-13  Jim Meyering  <meyering@redhat.com>
46303         doc: users.txt: GNU patch now uses gnulib
46304         * users.txt: Add patch.
46306 2010-04-12  Jim Meyering  <meyering@redhat.com>
46308         maint.mk: generate more concise timing data for syntax-check rules
46309         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
46310         " done" from each line that reports a syntax-check test duration.
46312 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
46314         git-version-gen: use "git update-index..." rather than "git status"
46315         * build-aux/git-version-gen: Use git update-index --refresh, not
46316         "git status".  With some versions of git, "git status" would fail
46317         to update the index and result in an unwarranted "-dirty" suffix.
46319 2010-04-11  Jim Meyering  <meyering@redhat.com>
46321         openat: correct formatting (no semantic change)
46322         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
46323         Suggested by Bruno Haible.
46325 2010-04-11  Bruno Haible  <bruno@clisp.org>
46327         Stricter declaration checking in testdirs.
46328         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46329         If for_tests is true, augment AM_CPPFLAGS to define
46330         GNULIB_STRICT_CHECKING.
46331         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
46332         GNULIB_STRICT_CHECKING is defined, verify that the function is
46333         declared.
46335 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
46336             Bruno Haible  <bruno@clisp.org>
46338         libunistring: Improve configure output.
46339         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
46340         Don't say "consider installing GNU libunistring" when checking again
46341         with libiconv.
46343 2010-04-11  Bruno Haible  <bruno@clisp.org>
46345         libunistring: Correct value of $LTLIBUNISTRING.
46346         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
46347         correct the value of $LTLIBUNISTRING.
46349 2010-04-11  Bruno Haible  <bruno@clisp.org>
46351         havelib: Add static libraries to LIBS in the right order.
46352         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
46353         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
46355 2010-04-11  Bruno Haible  <bruno@clisp.org>
46357         libunistring: Detect libunistring also when it depends on libiconv.
46358         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
46359         the second AC_LIB_HAVE_LINKFLAGS invocation.
46361 2010-04-11  James Youngman  <jay@gnu.org>
46363         close-stream: declare local scalars to be "const"
46364         * lib/close-stream.c (close_stream): Make boolean variables const
46365         to document the fact that we set but do not change them.
46367 2010-04-11  Bruno Haible  <bruno@clisp.org>
46369         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
46371 2010-04-11  Jim Meyering  <meyering@redhat.com>
46373         maint.mk: don't include dist-check.mk
46374         * top/maint.mk: Remove bogus include directive.
46376         maint.mk: improve empty-line-at-EOF check
46377         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
46378         solution, rather than tail+Perl-based one.  The latter would read
46379         a few kilobytes from the end of each file, and did not handle empty
46380         files properly.
46382         maint.mk: print the elapsed time for each syntax-check rule
46383         * top/maint.mk (sc_m_rules_): Save start time in a file.
46384         (sc_z_rules_): New rules: remove temp file and print elapsed time.
46385         (local-check): Interpose the .z rules
46387 2010-04-11  Jim Meyering  <meyering@redhat.com>
46389         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
46390         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
46391         empty file with one that ends in an empty line.
46393 2010-04-10  Bruno Haible  <bruno@clisp.org>
46395         mkdir: Make it work on mingw64.
46396         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
46397         * lib/mkdir.c: Update comment.
46398         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
46400 2010-04-10  Bruno Haible  <bruno@clisp.org>
46402         Don't override improved macro from newer autoconf.
46403         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
46404         autoconf >= 2.62.
46405         Reported by Joel E. Denny <jdenny@clemson.edu>.
46407 2010-04-10  Jim Meyering  <meyering@redhat.com>
46409         maint.mk: new syntax-check rule: prohibit empty lines at end of file
46410         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
46412         maint.mk: correct a diagnostic
46413         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
46414         in diagnostic; now use $prohibit.
46416 2010-04-10  Bruno Haible  <address@hidden>
46418         fchownat: Fix a C++ test error on Solaris 8.
46419         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
46420         the function does not exist.
46422 2010-04-10  Bruno Haible  <bruno@clisp.org>
46424         vasnprintf: Add more tests.
46425         * tests/test-vasnprintf-posix.c: Include <errno.h>.
46426         (test_function): Test converting an invalid wide string.
46428         vasnprintf: Correct handling of unconvertible wide string arguments.
46429         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
46430         VASNPRINTF.
46431         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
46432         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
46433         smaller than the expected maximum need for the directive. Set errno to
46434         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
46435         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
46436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
46437         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
46438         * modules/vasnprintf (Files): Add m4/printf.m4.
46439         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46441 2010-04-10  Bruno Haible  <bruno@clisp.org>
46443         vasnprintf: Fix crash in %ls directive.
46444         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
46445         string is passed as argument to %ls, with no precision and no width.
46446         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46448 2010-04-10  Bruno Haible  <bruno@clisp.org>
46450         vasnprintf: Fix multiple test failures on mingw.
46451         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
46452         _snprintf, or snwprintf, not _snwprintf.
46454 2010-04-10  Bruno Haible  <bruno@clisp.org>
46456         write: Fix a C++ test error on mingw.
46457         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
46459 2010-04-10  Bruno Haible  <bruno@clisp.org>
46461         vasnprintf test: Reduce code duplication.
46462         * tests/test-vasnprintf.c (test_function): New function, extracted from
46463         test_vasnprintf.
46464         (test_vasnprintf, test_asnprintf): Invoke it.
46466 2010-04-10  Bruno Haible  <bruno@clisp.org>
46468         strnlen: Fix warning in C++ mode on MacOS X.
46469         * lib/string.in.h (strnlen): Use the modern idiom.
46470         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
46471         defining strnlen as a macro already in <config.h>.
46472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46473         REPLACE_STRNLEN.
46474         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
46475         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46477 2010-04-08  James Youngman  <jay@gnu.org>
46479         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
46480         the example.
46482 2010-04-09  Jim Meyering  <meyering@redhat.com>
46484         maint.mk: print better diagnostic when there is no $(_hv_file)
46485         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
46486         announce that when $(_hv_file) (aka help-version) does not exist.
46488         init.sh: run tr in the "C" locale to avoid multibyte interpretation
46489         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
46490         not try to interpret its random input bytes.  Jarno Rajahalme reported
46491         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
46492         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
46493         (mktempd_): Likewise, just in case.
46495         ftruncate: add two years to projected module removal date: 2012
46496         * m4/ftruncate.m4: Adjust comments.
46498         ftruncate: mark module as obsolete; even MinGW provides it, now
46499         * modules/ftruncate (Status): Obsolete.
46500         (Notice): Say that.
46501         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
46502         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
46504 2010-04-08  Bruno Haible  <bruno@clisp.org>
46506         Fix side effects from tests-related modules.
46507         * modules/dprintf-posix (Comment): New section.
46508         * modules/fprintf-posix (Comment): Likewise.
46509         * modules/obstack-printf-posix (Comment): Likewise.
46510         * modules/printf-posix (Comment): Likewise.
46511         * modules/snprintf-posix (Comment): Likewise.
46512         * modules/sprintf-posix (Comment): Likewise.
46513         * modules/vasnprintf-posix (Comment): Likewise.
46514         * modules/vasprintf-posix (Comment): Likewise.
46515         * modules/vdprintf-posix (Comment): Likewise.
46516         * modules/vfprintf-posix (Comment): Likewise.
46517         * modules/vprintf-posix (Comment): Likewise.
46518         * modules/vsnprintf-posix (Comment): Likewise.
46519         * modules/vsprintf-posix (Comment): Likewise.
46520         * modules/xprintf-posix (Comment): Likewise.
46521         * modules/xvasprintf-posix (Comment): Likewise.
46522         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
46523         * modules/floorf-tests (Depends-on): Likewise.
46524         * modules/round-tests (Depends-on): Likewise.
46525         * modules/roundf-tests (Depends-on): Likewise.
46526         * modules/trunc-tests (Depends-on): Likewise.
46527         * modules/truncf-tests (Depends-on): Likewise.
46528         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
46529         'fprintf-posix' module is not present.
46530         * tests/test-floorf2.c (check): Likewise.
46531         * tests/test-trunc2.c (check): Likewise.
46532         * tests/test-truncf2.c (check): Likewise.
46533         * tests/test-round2.c (equal): Likewise.
46534         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46536 2010-04-07  Karl Berry  <karl@gnu.org>
46538         * config/srclist.txt,
46539         * config/srclistvars.sh,
46540         * config/srclist-update: doc fixes.
46542 2010-04-07  Jim Meyering  <meyering@redhat.com>
46544         maint.mk: add a PATH crosschecking syntax-check rule
46545         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
46546         Useful if you use a test like the one in help-version (coreutils,
46547         diffutils, grep, gzip) that ensures $(VERSION) matches what is
46548         printed by prog --version.
46550 2010-04-06  Bruno Haible  <bruno@clisp.org>
46552         Fix link error on mingw.
46553         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
46554         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
46556 2010-04-06  Bruno Haible  <bruno@clisp.org>
46558         Assume rmdir exists.
46559         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
46561 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
46563         doc: update users.txt
46564         * users.txt: Add gcal.
46566 2010-04-06  Jim Meyering  <meyering@redhat.com>
46568         init.sh: simply unset TMPDIR rather than risking env -i
46569         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
46570         although it probably works fine on all Unix-based systems, some
46571         systems (Cygwin?) cannot tolerate a totally cleared environment.
46572         Suggestion from Eric Blake.
46574 2010-04-06  Jim Meyering  <meyering@redhat.com>
46576         init.sh: portability fix: use env's POSIX-specified -i option not -u
46577         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
46578         than unportable env -u.  Solaris 5.11's env lacks support for -u.
46580 2010-04-05  Bruno Haible  <bruno@clisp.org>
46582         btowc: Work around Cygwin 1.7.2 bug.
46583         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
46584         does not map NUL to 0.
46585         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
46587 2010-04-05  Bruno Haible  <bruno@clisp.org>
46589         Make the multithread modules work on Cygwin 1.7.2.
46590         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
46591         imported symbols can be declared weak, so that it returns "no" on
46592         Cygwin 1.7.2.
46594 2010-04-05  Bruno Haible  <bruno@clisp.org>
46596         Use the module 'strncat'.
46597         * modules/unistr/u8-strncat (Depends-on): Add strncat.
46599         Tests for module 'strncat'.
46600         * modules/strncat-tests: New file.
46601         * tests/test-strncat.c: New file.
46603         New module 'strncat'.
46604         * lib/string.in.h (strncat): New declaration.
46605         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
46606         * m4/strncat.m4: New file, based on m4/memchr.m4.
46607         * modules/strncat: New file.
46608         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
46609         is declared.
46610         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
46611         REPLACE_STRNCAT.
46612         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
46613         REPLACE_STRNCAT.
46614         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
46615         module.
46616         * tests/test-string-c++.cc: Check signature of strncat.
46618 2010-04-05  Jim Meyering  <meyering@redhat.com>
46620         xstrtoumax-tests: convert to use init.sh
46621         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
46622         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
46623         Use Exit, not exit.
46624         Remove uses of $EXEEXT and "./" to run a program in the current dir.
46626         xstrtoimax-tests: convert to use init.sh
46627         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
46628         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
46629         Use Exit, not exit.
46630         Remove uses of $EXEEXT and "./" to run a program in the current dir.
46632 2010-04-05  Bruno Haible  <bruno@clisp.org>
46634         sys_socket: Avoid #define replacements in C++ mode.
46635         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
46636         warning to the function if possible, rather than #defining the symbol
46637         to a dysfunctional alias.
46639 2010-04-05  Bruno Haible  <bruno@clisp.org>
46641         fseeko: Fix C++ test error on mingw.
46642         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
46643         gl_FUNC_FSEEKO.
46644         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
46645         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
46646         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
46647         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
46649 2010-04-05  Bruno Haible  <bruno@clisp.org>
46651         duplocale: Improve test output.
46652         * tests/test-duplocale.c (main): Print reason for skipped test.
46654 2010-04-05  Bruno Haible  <bruno@clisp.org>
46656         Assume rmdir exists.
46657         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
46658         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
46660 2010-04-05  Bruno Haible  <bruno@clisp.org>
46662         Fix link error on Solaris 8 with cc.
46663         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
46665 2010-04-05  Bruno Haible  <bruno@clisp.org>
46667         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
46668         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
46670 2010-04-05  Bruno Haible  <bruno@clisp.org>
46672         vasprintf: Update documentation.
46673         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
46675 2010-04-05  Bruno Haible  <bruno@clisp.org>
46677         ptsname: Improve test.
46678         * tests/test-ptsname.c (main): Also try the various master names of BSD
46679         systems.
46681 2010-04-05  Bruno Haible  <bruno@clisp.org>
46683         memchr: Avoid a possible C++ test error.
46684         * lib/string.in.h (memchr): Provide declaration if function is missing.
46685         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
46686         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
46687         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
46688         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
46690 2010-04-05  Bruno Haible  <bruno@clisp.org>
46692         strtok_r: Improve idiom.
46693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
46694         AC_LIBOBJ is used.
46696 2010-04-05  Bruno Haible  <bruno@clisp.org>
46698         strdup: Improve idiom.
46699         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
46700         AC_LIBOBJ is used.
46701         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
46702         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
46703         when AC_LIBOBJ is used.
46705 2010-04-05  Bruno Haible  <bruno@clisp.org>
46707         mbsinit, mbrtowc, wcrtomb: Improve idioms.
46708         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
46709         don't set REPLACE_MBSINIT to 1.
46710         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
46711         don't set REPLACE_MBRTOWC to 1.
46712         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
46713         exist, don't set REPLACE_MBSRTOWCS to 1.
46714         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
46715         exist, don't set REPLACE_MBSNRTOWCS to 1.
46716         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
46717         don't set REPLACE_WCRTOMB to 1.
46718         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
46719         exist, don't set REPLACE_WCSRTOMBS to 1.
46720         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
46721         exist, don't set REPLACE_WCSNRTOMBS to 1.
46723 2010-04-05  Bruno Haible  <bruno@clisp.org>
46725         ldexpl: Improve idiom.
46726         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
46727         make sure to set HAVE_DECL_LDEXPL to 0.
46729 2010-04-05  Jim Meyering  <meyering@redhat.com>
46731         xstrtol-tests: convert to use init.sh
46732         * modules/xstrtol-tests (Files): Add tests/init.sh.
46733         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
46734         Use Exit, not exit.
46735         Remove uses of $EXEEXT and "./" to run a program in the current dir.
46737         atexit-tests: convert to use init.sh
46738         * modules/atexit-tests (Files): Add tests/init.sh.
46739         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
46740         Use Exit, not exit.
46741         Remove uses of $EXEEXT and "./" to run a program in the current dir.
46743         init.sh: fix typo
46744         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
46746         init.sh: make it easier for a test script to write to the tty, ...
46747         when using automake's parallel-tests mode.
46748         * tests/init.sh (stderr_fileno_): Define overridable variable.
46749         (warn_): New function, to use it.
46750         (fail_, skip_, framework_failure_): Use warn_.
46752 2010-04-04  Bruno Haible  <bruno@clisp.org>
46754         btowc: Avoid warning.
46755         * lib/btowc.c: Include <stdlib.h>.
46756         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
46758 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
46759             Bruno Haible  <bruno@clisp.org>
46761         wchar: Port to NetBSD 1.5.
46762         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
46763         * lib/wctype.in.h (WEOF): Likewise.
46765 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
46766             Bruno Haible  <bruno@clisp.org>
46768         Port extended stdio to NetBSD 1.5.
46769         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
46770         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
46771         older.
46773 2010-04-04  Bruno Haible  <bruno@clisp.org>
46775         string: Remove unused substitution.
46776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
46777         HAVE_DECL_STRERROR.
46778         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
46780 2010-04-04  Bruno Haible  <bruno@clisp.org>
46782         strtod: Avoid a possible C++ test error.
46783         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
46784         set REPLACE_STRTOD.
46786 2010-04-04  Bruno Haible  <bruno@clisp.org>
46788         strerror: Update documentation.
46789         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
46791 2010-04-04  Bruno Haible  <bruno@clisp.org>
46793         stdio: Fix some C++ test errors on Solaris 8 with GCC.
46794         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
46795         _GL_CXXALIAS_SYS_CAST.
46797 2010-04-04  Bruno Haible  <bruno@clisp.org>
46799         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
46800         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
46801         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
46802         REPLACE_FREXPL to 1.
46803         * doc/posix-functions/frexpl.texi: Update documentation.
46805 2010-04-04  Bruno Haible  <bruno@clisp.org>
46807         math: Fix some C++ test errors on Solaris 8 and Cygwin.
46808         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
46810 2010-04-04  Bruno Haible  <bruno@clisp.org>
46812         Implement nanosleep for native Windows.
46813         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
46815 2010-04-04  Bruno Haible  <bruno@clisp.org>
46817         math: Fix some C++ test errors on Solaris 8.
46818         * lib/math.in.h (truncf, trunc): Use simpler idiom.
46820 2010-04-04  Bruno Haible  <bruno@clisp.org>
46822         math: Fix some C++ test errors on Cygwin.
46823         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
46824         truncl): Provide declaration if the system does not have it.
46825         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
46826         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
46827         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
46828         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
46829         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
46830         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
46831         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
46832         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
46833         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
46834         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
46835         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
46836         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
46837         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
46838         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
46839         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
46840         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
46841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
46842         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
46843         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
46844         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
46845         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
46846         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
46848 2010-04-04  Bruno Haible  <bruno@clisp.org>
46850         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
46851         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
46852         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
46853         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46854         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46855         * m4/isinf.m4 (gl_ISINF): Likewise.
46856         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
46858 2010-04-04  Bruno Haible  <bruno@clisp.org>
46860         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
46861         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
46863 2010-04-04  Bruno Haible  <bruno@clisp.org>
46865         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
46866         * modules/tmpfile (configure.ac): Update.
46868         tmpfile: Fix C++ test error on mingw.
46869         * lib/stdio.in.h (tmpfile): New declaration.
46870         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
46871         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
46872         * modules/tmpfile (Depends-on): Add stdio.
46873         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
46874         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
46875         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
46876         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
46877         REPLACE_TMPFILE.
46878         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
46880 2010-04-04  Bruno Haible  <bruno@clisp.org>
46882         ioctl: Fix C++ test error on mingw.
46883         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
46884         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
46885         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
46887 2010-04-03  Bruno Haible  <bruno@clisp.org>
46889         wcwidth: Fix C++ test error on mingw.
46890         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
46891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
46892         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
46894 2010-04-03  Bruno Haible  <bruno@clisp.org>
46896         nanosleep: Fix C++ test error on mingw.
46897         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
46898         * lib/time.in.h (nanosleep): Use modern idiom.
46899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
46900         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
46901         REPLACE_NANOSLEEP to 1.
46902         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
46903         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
46905 2010-04-03  Bruno Haible  <bruno@clisp.org>
46907         strptime: Fix C++ test error on mingw.
46908         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
46909         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
46910         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
46911         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
46912         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
46913         not REPLACE_STRPTIME.
46914         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
46915         REPLACE_STRPTIME.
46917 2010-04-03  Bruno Haible  <bruno@clisp.org>
46919         timegm: Fix C++ test error on mingw.
46920         * lib/time.in.h (timegm): Use modern idiom.
46921         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
46922         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
46923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
46924         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
46926 2010-04-03  Bruno Haible  <bruno@clisp.org>
46928         timegm: Assume declaration if function exists.
46929         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
46930         if it exists. Don't clobber ac_cv_func_timegm.
46932 2010-04-03  Bruno Haible  <bruno@clisp.org>
46934         time_r: Fix C++ test error on mingw.
46935         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
46936         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
46937         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
46938         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
46939         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
46941 2010-04-03  Bruno Haible  <bruno@clisp.org>
46943         time_r: Minor updates.
46944         * modules/time_r (Description): Mention the provided functions.
46945         * lib/time_r.c: Don't include <string.h>.
46946         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
46947         * doc/posix-functions/localtime_r.texi: Likewise.
46949 2010-04-03  Bruno Haible  <bruno@clisp.org>
46951         time: Fix regression introduced on 2010-03-08.
46952         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
46953         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
46955 2010-04-03  Jim Meyering  <meyering@redhat.com>
46957         maint.mk: don't silently disable project-specific syntax-check rules
46958         * top/maint.mk (_prohibit_regexp): Define, to help people realize
46959         that they need to convert their project-specific syntax-check rules
46960         to use the new _sc_search_regexp.
46962 2010-04-03  Bruno Haible  <bruno@clisp.org>
46964         fchdir: Fix regression introduced on 2010-03-08.
46965         * lib/unistd.in.h (fchdir): Fix declaration.
46966         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
46967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
46968         REPLACE_FCHDIR.
46969         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
46970         REPLACE_FCHDIR.
46972 2010-04-03  Bruno Haible  <bruno@clisp.org>
46974         getpagesize: Fix C++ test error on mingw.
46975         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
46976         system does not declare the function.
46977         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
46978         declared.
46979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46980         HAVE_DECL_GETPAGESIZE.
46981         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
46983 2010-04-03  Bruno Haible  <bruno@clisp.org>
46985         stdio: Make C++ tests work on mingw.
46986         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
46987         does not declare the function.
46989 2010-04-03  Bruno Haible  <bruno@clisp.org>
46991         ftello: Fix C++ test error on mingw.
46992         * lib/stdio.in.h (ftello): Use modern idiom.
46993         * lib/ftello.c (ftello): Renamed from rpl_ftello.
46994         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
46995         is missing and that it needs to be replaced.
46996         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
46997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
46998         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
47000 2010-04-03  Bruno Haible  <bruno@clisp.org>
47002         fseeko: Fix C++ test error on mingw.
47003         * lib/stdio.in.h (fseeko): Use modern idiom.
47004         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
47005         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
47006         is missing and that it needs to be replaced.
47007         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
47008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
47009         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
47011 2010-04-03  Bruno Haible  <bruno@clisp.org>
47013         mkstemp: Fix C++ test error on mingw.
47014         * lib/stdlib.in.h (mkstemp): Use modern idiom.
47015         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
47016         function is missing and that it needs to be replaced.
47017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
47018         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
47020 2010-04-03  Bruno Haible  <bruno@clisp.org>
47022         stpncpy: Fix C++ test error on mingw.
47023         * lib/string.in.h (stpncpy): Use modern idiom.
47024         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
47025         function is missing and that it needs to be replaced.
47026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47027         REPLACE_STPNCPY.
47028         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
47030 2010-04-03  Bruno Haible  <bruno@clisp.org>
47032         sys_stat: Fix C++ test error on mingw.
47033         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
47034         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
47036 2010-04-03  Bruno Haible  <bruno@clisp.org>
47038         pty: Update doc.
47039         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
47041 2010-04-03  Bruno Haible  <bruno@clisp.org>
47043         unistd: Fix C++ test error on mingw.
47044         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
47046 2010-04-03  Bruno Haible  <bruno@clisp.org>
47048         Update doc regarding mingw.
47049         * doc/glibc-functions/openpty.texi: Update regarding mingw.
47050         * doc/glibc-functions/login_tty.texi: Likewise.
47051         * doc/glibc-functions/forkpty.texi: Likewise.
47053 2010-04-03  Bruno Haible  <bruno@clisp.org>
47055         stdlib: Avoid compilation failure of c-strtold on mingw.
47056         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
47058 2010-04-03  Bruno Haible  <bruno@clisp.org>
47060         locale: Make C++ tests work on Cygwin and mingw.
47061         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
47062         cannot provide the function.
47063         Reported by Simon Josefsson.
47065 2010-04-03  Bruno Haible  <bruno@clisp.org>
47067         localename: Port to MacOS X 10.6.
47068         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
47069         memory layout of the locales in MacOS X 10.6 as well.
47070         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
47072 2010-04-02  Bruno Haible  <bruno@clisp.org>
47074         gnulib-tool: Ensure that long-running tests are executed last.
47075         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
47076         running tests after the one for the other tests.
47078 2010-04-02  Bruno Haible  <bruno@clisp.org>
47080         gnulib-tool: Ensure the tests in the main directory are executed first.
47081         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
47082         start with the current directory.
47084 2010-04-02  Bruno Haible  <bruno@clisp.org>
47086         Tests for module 'havelib', moved here from GNU gettext.
47087         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
47088         modifications.
47089         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
47090         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
47091         with modifications.
47092         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
47093         modifications.
47094         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
47095         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
47096         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
47097         with modifications.
47098         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
47099         with modifications.
47100         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
47101         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
47102         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
47103         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
47104         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
47105         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
47106         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
47107         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
47108         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
47109         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
47110         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
47111         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
47112         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
47113         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
47114         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
47115         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
47116         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
47117         with modifications.
47118         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
47119         with modifications.
47120         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
47121         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
47122         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
47123         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
47124         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
47125         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
47126         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
47127         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
47128         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
47129         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
47130         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
47131         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
47132         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
47133         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
47134         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
47135         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
47136         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
47137         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
47138         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
47139         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
47140         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
47141         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
47142         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
47143         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
47144         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
47145         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
47146         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
47147         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
47148         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
47149         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
47150         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
47151         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
47152         * tests/havelib/rpathx/rpathx.c: New file, from
47153         gettext/autoconf-lib-link.
47154         * tests/havelib/rpathx/Makefile.am: New file, from
47155         gettext/autoconf-lib-link.
47156         * tests/havelib/rpathx/configure.ac: New file, from
47157         gettext/autoconf-lib-link with modifications.
47158         * tests/havelib/rpathy/rpathy.c: New file, from
47159         gettext/autoconf-lib-link.
47160         * tests/havelib/rpathy/Makefile.am: New file, from
47161         gettext/autoconf-lib-link.
47162         * tests/havelib/rpathy/configure.ac: New file, from
47163         gettext/autoconf-lib-link with modifications.
47164         * tests/havelib/rpathz/rpathz.c: New file, from
47165         gettext/autoconf-lib-link.
47166         * tests/havelib/rpathz/Makefile.am: New file, from
47167         gettext/autoconf-lib-link.
47168         * tests/havelib/rpathz/configure.ac: New file, from
47169         gettext/autoconf-lib-link with modifications.
47170         * tests/havelib/rpathlx/usex.c: New file, from
47171         gettext/autoconf-lib-link.
47172         * tests/havelib/rpathlx/Makefile.am: New file, from
47173         gettext/autoconf-lib-link.
47174         * tests/havelib/rpathlx/configure.ac: New file, from
47175         gettext/autoconf-lib-link with modifications.
47176         * tests/havelib/rpathly/usey.c: New file, from
47177         gettext/autoconf-lib-link.
47178         * tests/havelib/rpathly/Makefile.am: New file, from
47179         gettext/autoconf-lib-link.
47180         * tests/havelib/rpathly/configure.ac: New file, from
47181         gettext/autoconf-lib-link with modifications.
47182         * tests/havelib/rpathlz/usez.c: New file, from
47183         gettext/autoconf-lib-link.
47184         * tests/havelib/rpathlz/Makefile.am: New file, from
47185         gettext/autoconf-lib-link.
47186         * tests/havelib/rpathlz/configure.ac: New file, from
47187         gettext/autoconf-lib-link with modifications.
47188         * tests/havelib/rpathlyx/usey.c: New file, from
47189         gettext/autoconf-lib-link.
47190         * tests/havelib/rpathlyx/Makefile.am: New file, from
47191         gettext/autoconf-lib-link.
47192         * tests/havelib/rpathlyx/configure.ac: New file, from
47193         gettext/autoconf-lib-link with modifications.
47194         * tests/havelib/rpathlzyx/usez.c: New file, from
47195         gettext/autoconf-lib-link.
47196         * tests/havelib/rpathlzyx/Makefile.am: New file, from
47197         gettext/autoconf-lib-link.
47198         * tests/havelib/rpathlzyx/configure.ac: New file, from
47199         gettext/autoconf-lib-link with modifications.
47200         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
47201         with modifications.
47203 2010-04-02  Bruno Haible  <bruno@clisp.org>
47205         gnulib-tool: Create distributed built sources also for the tests.
47206         * gnulib-tool (func_create_testdir): Also generate distributed built
47207         sources in the tests directory.
47209 2010-04-02  Bruno Haible  <bruno@clisp.org>
47211         gnulib-tool: Obey user's environment variables.
47212         * gnulib-tool (func_create_testdir): When creating built sources,
47213         respect the environment variables for autoconf, automake, etc. given by
47214         the user.
47216 2010-04-02  Bruno Haible  <bruno@clisp.org>
47218         gnulib-tool: Provide the value of --m4-base to modules.
47219         * gnulib-tool (func_import, func_create_testdir): Emit a definition
47220         of gl_m4_base.
47222 2010-04-02  Eric Blake  <eblake@redhat.com>
47224         maint.mk: fix some fallout
47225         * NEWS: Document the incompatible change, and its effect on cfg.mk.
47226         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
47228 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
47230         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
47231         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
47232         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
47233         (sc_cast_of_x_alloc_return_value): Likewise.
47234         (sc_cast_of_alloca_return_value): Likewise.
47235         (sc_space_tab): Likewise.
47236         (sc_prohibit_atoi_atof): Likewise.
47237         (sc_prohibit_magic_number_exit): Likewise.
47238         (sc_error_exit_success): Likewise.
47239         (sc_file_system): Likewise.
47240         (sc_prohibit_have_config_h): Likewise.
47241         (sc_require_config_h): Likewise.
47242         (sc_prohibit_HAVE_MBRTOWC): Likewise.
47243         (sc_obsolete_symbols): Likewise.
47244         (sc_changelog): Likewise.
47245         (sc_program_name): Likewise.
47246         (sc_the_the): Likewise.
47247         (sc_trailing_blank): Likewise.
47248         (sc_two_space_separator_in_usage): Likewise.
47249         (sc_useless_cpp_parens): Likewise.
47250         (sc_GPL_version): Likewise.
47251         (sc_GFDL_version): Likewise.
47252         (sc_texinfo_acronym): Likewise.
47253         (sc_prohibit_cvs_keyword): Likewise.
47254         (sc_prohibit_stat_st_blocks): Likewise.
47255         (sc_prohibit_S_IS_definition): Likewise.
47256         (sc_redundant_const): Likewise.
47257         (sc_makefile_TAB_only_indentation): Likewise.
47258         (sc_m4_quote_check): Likewise.
47259         (sc_makefile_path_separator_check): Likewise.
47260         (sc_copyright_check): Likewise.
47261         (sc_Wundef_boolean): Likewise.
47262         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
47264         maint.mk: match 0 or more whitespace-before-function-call '('
47265         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
47266         that have zero or two-and-more spaces between the function name
47267         and the open parenthesis.
47268         (sc_error_message_warn_fatal): Likewise.
47269         (sc_error_message_uppercase): Likewise.
47270         (sc_error_message_period): Likewise.
47272 2010-03-31  Eric Blake  <eblake@redhat.com>
47274         maint.mk: check for [ as well as test
47275         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
47276         Based on a libvirt report by Matthias Bolte.
47278         gnumakefile: don't squelch _version output
47279         * top/GNUmakefile (_version): Create one-shot dependency rather
47280         than using $(shell) when version must be regenerated.
47281         (_autoreconf): Run verbosely, by default.
47283         sys_time: avoid compiler warnings
47284         * lib/sys_time.in.h (includes): Ensure gcc pragma is
47285         unconditional, fixing regression from 2010-03-29.
47286         Reported by Simon Josefsson.
47288 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
47290         maint.mk: s/_header_without_use/_sc_header_without_use/
47291         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
47292         (sc_prohibit_assert_without_use): Use the new name.
47293         (sc_prohibit_close_stream_without_use): Likewise.
47294         (sc_prohibit_getopt_without_use): Likewise.
47295         (sc_prohibit_quotearg_without_use): Likewise.
47296         (sc_prohibit_quote_without_use): Likewise.
47297         (sc_prohibit_long_options_without_use): Likewise.
47298         (sc_prohibit_inttostr_without_use): Likewise.
47299         (sc_prohibit_ignore_value_without_use): Likewise.
47300         (sc_prohibit_error_without_use): Likewise.
47301         (sc_prohibit_xalloc_without_use): Likewise.
47302         (sc_prohibit_hash_without_use): Likewise.
47303         (sc_prohibit_hash_pjw_without_use): Likewise.
47304         (sc_prohibit_safe_read_without_use): Likewise.
47305         (sc_prohibit_argmatch_without_use): Likewise.
47306         (sc_prohibit_canonicalize_without_use): Likewise.
47307         (sc_prohibit_root_dev_ino_without_use): Likewise.
47308         (sc_prohibit_openat_without_use): Likewise.
47309         (sc_prohibit_c_ctype_without_use): Likewise.
47310         (sc_prohibit_signal_without_use): Likewise.
47311         (sc_prohibit_intprops_without_use): Likewise.
47313 2010-03-30  Eric Blake  <eblake@redhat.com>
47315         maint: improve module indicators
47316         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
47317         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
47318         columns, and avoid extra macro expansion.
47320         fdopendir: work around FreeBSD bug
47321         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
47322         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
47323         * modules/dirent (Makefile.am): Substitute it.
47324         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
47325         declaration.
47326         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
47327         fix.
47328         Reported by Christian Weisgerber <naddy@mips.inka.de>.
47330 2010-03-29  Bruno Haible  <bruno@clisp.org>
47332         Emit #pragma system_header after the inclusion guard, not before.
47333         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
47334         guard that spans the entire file, not before. This enables an
47335         optimization in GCC's preprocessor.
47336         * lib/ctype.in.h: Likewise.
47337         * lib/dirent.in.h: Likewise.
47338         * lib/errno.in.h: Likewise.
47339         * lib/float.in.h: Likewise.
47340         * lib/getopt.in.h: Likewise.
47341         * lib/iconv.in.h: Likewise.
47342         * lib/langinfo.in.h: Likewise.
47343         * lib/locale.in.h: Likewise.
47344         * lib/math.in.h: Likewise.
47345         * lib/netdb.in.h: Likewise.
47346         * lib/netinet_in.in.h: Likewise.
47347         * lib/pty.in.h: Likewise.
47348         * lib/sched.in.h: Likewise.
47349         * lib/se-selinux.in.h: Likewise.
47350         * lib/search.in.h: Likewise.
47351         * lib/spawn.in.h: Likewise.
47352         * lib/stdarg.in.h: Likewise.
47353         * lib/stdint.in.h: Likewise.
47354         * lib/string.in.h: Likewise.
47355         * lib/strings.in.h: Likewise.
47356         * lib/sys_file.in.h: Likewise.
47357         * lib/sys_ioctl.in.h: Likewise.
47358         * lib/sys_time.in.h: Likewise.
47359         * lib/sys_times.in.h: Likewise.
47360         * lib/sys_utsname.in.h: Likewise.
47361         * lib/sys_wait.in.h: Likewise.
47362         * lib/sysexits.in.h: Likewise.
47363         * lib/wctype.in.h: Likewise.
47365 2010-03-28  James Youngman  <jay@gnu.org>
47367         save-cwd: don't leak a file descriptor when the caller execs.
47368         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
47369         saved file descriptor.
47370         * modules/save-cwd (Depends-on): Depend on cloexec.
47372 2010-03-29  Bruno Haible  <bruno@clisp.org>
47374         Remove vestiges of fts-lgpl module.
47375         * lib/fts_.h: Assume GNULIB_FTS is 1.
47376         * lib/fts.c: Likewise.
47377         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
47379 2010-03-28  Bruno Haible  <bruno@clisp.org>
47381         Fix definition of tests witness macro.
47382         * gnulib-tool (func_import): Fix definition of witness macro.
47384 2010-03-28  Bruno Haible  <bruno@clisp.org>
47386         Fix ioctl's protoype on glibc systems.
47387         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
47388         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
47389         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
47390         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
47391         signature. If not, arrange to replace the ioctl function.
47392         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47393         REPLACE_IOCTL.
47394         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
47395         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
47396         Reported by Ludovic Courtès <ludo@gnu.org>.
47398 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
47400         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
47401         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
47402         made it so grep -r --include=GLOB* ... did not work.
47404 2010-03-26  Jim Meyering  <meyering@redhat.com>
47405             Eric Blake  <eblake@redhat.com>
47407         maint.mk: prohibit use of test's -o and -a operators
47408         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
47410 2010-03-28  Bruno Haible  <bruno@clisp.org>
47412         Remove unused GNULIB_XYZ macro definitions.
47413         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
47414         invocation.
47416 2010-03-28  Bruno Haible  <bruno@clisp.org>
47418         Mark privileged tests modules.
47419         * modules/idpriv-drop-tests (Status): New section.
47420         * modules/idpriv-droptemp-tests (Status): New section.
47422 2010-03-28  Bruno Haible  <bruno@clisp.org>
47424         Split C++ tests into separate tests modules.
47425         * modules/dirent-c++-tests: New file, extracted from
47426         modules/dirent-tests.
47427         * modules/dirent-tests: Depend on it.
47428         * modules/fcntl-h-c++-tests: New file, extracted from
47429         modules/fcntl-h-tests.
47430         * modules/fcntl-h-tests: Depend on it.
47431         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
47432         * modules/glob-tests: Depend on it.
47433         * modules/iconv-h-c++-tests: New file, extracted from
47434         modules/iconv-h-tests.
47435         * modules/iconv-h-tests: Depend on it.
47436         * modules/langinfo-c++-tests: New file, extracted from
47437         modules/langinfo-tests.
47438         * modules/langinfo-tests: Depend on it.
47439         * modules/locale-c++-tests: New file, extracted from
47440         modules/locale-tests.
47441         * modules/locale-tests: Depend on it.
47442         * modules/math-c++-tests: New file, extracted from modules/math-tests.
47443         * modules/math-tests: Depend on it.
47444         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
47445         * modules/pty-tests: Depend on it.
47446         * modules/search-c++-tests: New file, extracted from
47447         modules/search-tests.
47448         * modules/search-tests: Depend on it.
47449         * modules/signal-c++-tests: New file, extracted from
47450         modules/signal-tests.
47451         * modules/signal-tests: Depend on it.
47452         * modules/spawn-c++-tests: New file, extracted from
47453         modules/spawn-tests.
47454         * modules/spawn-tests: Depend on it.
47455         * modules/stdio-c++-tests: New file, extracted from
47456         modules/stdio-tests.
47457         * modules/stdio-tests: Depend on it.
47458         * modules/stdlib-c++-tests: New file, extracted from
47459         modules/stdlib-tests.
47460         * modules/stdlib-tests: Depend on it.
47461         * modules/string-c++-tests: New file, extracted from
47462         modules/string-tests.
47463         * modules/string-tests: Depend on it.
47464         * modules/sys_ioctl-c++-tests: New file, extracted from
47465         modules/sys_ioctl-tests.
47466         * modules/sys_ioctl-tests: Depend on it.
47467         * modules/sys_select-c++-tests: New file, extracted from
47468         modules/sys_select-tests.
47469         * modules/sys_select-tests: Depend on it.
47470         * modules/sys_socket-c++-tests: New file, extracted from
47471         modules/sys_socket-tests.
47472         * modules/sys_socket-tests: Depend on it.
47473         * modules/sys_stat-c++-tests: New file, extracted from
47474         modules/sys_stat-tests.
47475         * modules/sys_stat-tests: Depend on it.
47476         * modules/sys_time-c++-tests: New file, extracted from
47477         modules/sys_time-tests.
47478         * modules/sys_time-tests: Depend on it.
47479         * modules/time-c++-tests: New file, extracted from modules/time-tests.
47480         * modules/time-tests: Depend on it.
47481         * modules/unistd-c++-tests: New file, extracted from
47482         modules/unistd-tests.
47483         * modules/unistd-tests: Depend on it.
47484         * modules/wchar-c++-tests: New file, extracted from
47485         modules/wchar-tests.
47486         * modules/wchar-tests: Depend on it.
47487         * modules/wctype-c++-tests: New file, extracted from
47488         modules/wctype-tests.
47489         * modules/wctype-tests: Depend on it.
47490         Reported by Simon Josefsson.
47492 2010-03-28  Bruno Haible  <bruno@clisp.org>
47494         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
47495         * gnulib-tool (func_exists_module): New function, extracted from
47496         func_verify_module.
47497         (func_verify_module): Use it.
47498         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
47499         'foo' only if 'foo' exists.
47500         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
47501         module.
47503 2010-03-28  Bruno Haible  <bruno@clisp.org>
47505         gnulib-tool: Add support for special categories of tests.
47506         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
47507         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
47508         (func_usage): Document them.
47509         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
47510         inc_unportable_tests, inc_all_tests): New variables.
47511         (func_acceptable): Consider these variables.
47512         (func_modules_transitive_closure): Make it work when the 'Status' field
47513         consists of multiple words.
47514         (func_import): Store and restore the values of inc_cxx_tests,
47515         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
47516         inc_all_tests in gnulib-comp.m4.
47517         (func_create_testdir): Set inc_all_tests to true.
47518         * doc/gnulib.texi (Extra tests modules): New section.
47519         Suggested by Jim Meyering.
47521 2010-03-28  Bruno Haible  <bruno@clisp.org>
47523         ansi-c++-opt: Allow turning off the C++ build by default.
47524         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
47525         gl_CXX_CHOICE_DEFAULT_NO is defined.
47526         Requested by Eric Blake.
47528 2010-03-28  Bruno Haible  <bruno@clisp.org>
47530         unistd: Avoid #define replacements in C++ mode.
47531         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
47532         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
47533         setsockopt, shutdown, select): In C++, attach a warning to the function
47534         if possible, rather than #defining the symbol to a dysfunctional alias.
47535         Reported by John W. Eaton <jwe@gnu.org>.
47537 2010-03-28  Bruno Haible  <bruno@clisp.org>
47539         Fix link errors on mingw.
47540         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
47541         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
47542         $(LIBSOCKET).
47543         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
47544         $(LIBSOCKET).
47546 2010-03-28  Bruno Haible  <bruno@clisp.org>
47547             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47549         lib-ignore: Determine different options for different compilers.
47550         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
47551         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
47552         Add comments.
47553         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
47554         * NEWS: Mention the change.
47556 2010-03-27  Bruno Haible  <bruno@clisp.org>
47558         Remove unused GNULIB_XYZ macro definitions.
47559         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
47560         * modules/fseek (configure.ac): Likewise.
47561         * modules/ioctl (configure.ac): Likewise.
47562         * modules/open (configure.ac): Likewise.
47563         * modules/stdlib-safer (configure.ac): Likewise.
47565 2010-03-27  Bruno Haible  <bruno@clisp.org>
47567         Add a remark about certain modules.
47568         * modules/malloc (Comment): New section.
47569         * modules/realloc (Comment): Likewise.
47570         * modules/sigpipe (Comment): Likewise.
47572 2010-03-27  Bruno Haible  <bruno@clisp.org>
47574         Resolve conflict between the two kinds of module indicators.
47575         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
47576         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
47577         * modules/canonicalize (configure.ac): Invoke
47578         gl_MODULE_INDICATOR_FOR_TESTS.
47579         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
47580         GNULIB_XYZ.
47581         * tests/test-dirent-c++.cc: Likewise.
47582         * tests/test-dirent-safer.c: Likewise.
47583         * tests/test-dup2.c: Likewise.
47584         * tests/test-fchdir.c: Likewise.
47585         * tests/test-fcntl-h-c++.cc: Likewise.
47586         * tests/test-getopt.c: Likewise.
47587         * tests/test-getopt.h: Likewise.
47588         * tests/test-langinfo-c++.cc: Likewise.
47589         * tests/test-locale-c++.cc: Likewise.
47590         * tests/test-math-c++.cc: Likewise.
47591         * tests/test-pty-c++.cc: Likewise.
47592         * tests/test-search-c++.cc: Likewise.
47593         * tests/test-signal-c++.cc: Likewise.
47594         * tests/test-spawn-c++.cc: Likewise.
47595         * tests/test-stdio-c++.cc: Likewise.
47596         * tests/test-stdlib-c++.cc: Likewise.
47597         * tests/test-string-c++.cc: Likewise.
47598         * tests/test-sys_ioctl-c++.cc: Likewise.
47599         * tests/test-sys_select-c++.cc: Likewise.
47600         * tests/test-sys_socket-c++.cc: Likewise.
47601         * tests/test-sys_stat-c++.cc: Likewise.
47602         * tests/test-sys_time-c++.cc: Likewise.
47603         * tests/test-time-c++.cc: Likewise.
47604         * tests/test-unistd-c++.cc: Likewise.
47605         * tests/test-wchar-c++.cc: Likewise.
47606         * tests/uninorm/test-u8-nfc.c: Likewise.
47607         * tests/uninorm/test-u8-nfd.c: Likewise.
47608         * tests/uninorm/test-u8-nfkc.c: Likewise.
47609         * tests/uninorm/test-u8-nfkd.c: Likewise.
47610         * tests/uninorm/test-u16-nfc.c: Likewise.
47611         * tests/uninorm/test-u16-nfd.c: Likewise.
47612         * tests/uninorm/test-u16-nfkc.c: Likewise.
47613         * tests/uninorm/test-u16-nfkd.c: Likewise.
47614         * tests/uninorm/test-u32-nfc.c: Likewise.
47615         * tests/uninorm/test-u32-nfc-big.c: Likewise.
47616         * tests/uninorm/test-u32-nfd.c: Likewise.
47617         * tests/uninorm/test-u32-nfd-big.c: Likewise.
47618         * tests/uninorm/test-u32-nfkc.c: Likewise.
47619         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
47620         * tests/uninorm/test-u32-nfkd.c: Likewise.
47621         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
47622         * tests/uninorm/test-u32-normalize-big.c: Likewise.
47624 2010-03-27  Bruno Haible  <bruno@clisp.org>
47626         Distinguish two kinds of module indicators.
47627         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
47628         gl_MODULE_INDICATOR.
47629         (gl_MODULE_INDICATOR): New macro.
47630         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
47631         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
47632         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
47633         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
47634         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
47635         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
47636         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
47637         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
47638         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
47639         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
47640         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
47641         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
47642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
47643         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
47644         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
47645         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
47646         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
47647         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
47648         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
47649         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
47650         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
47651         * modules/cloexec (configure.ac): Likewise.
47652         * modules/getopt-gnu (configure.ac): Likewise.
47653         * modules/uninorm/u8-normalize (configure.ac): Likewise.
47654         * modules/uninorm/u16-normalize (configure.ac): Likewise.
47655         * modules/uninorm/u32-normalize (configure.ac): Likewise.
47656         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
47658 2010-03-27  Bruno Haible  <bruno@clisp.org>
47660         New module description field 'Comment'.
47661         * gnulib-tool: New option --extract-comment.
47662         (func_usage): Document it.
47663         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
47664         (func_get_comment): New function.
47665         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
47667 2010-03-27  Bruno Haible  <bruno@clisp.org>
47669         Addendum to 2010-02-07 commit.
47670         * gnulib-tool (func_usage): Document --extract-applicability option.
47672 2010-03-27  Bruno Haible  <bruno@clisp.org>
47674         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
47675         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
47676         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
47677         rather than link errors.
47679 2010-03-27  Bruno Haible  <bruno@clisp.org>
47681         Avoid side effects from tests-related modules on the compilation of lib.
47682         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
47683         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
47684         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
47685         parameter. Emit into AM_CPPFLAGS a definition of the designated C
47686         macro.
47687         (func_import): Define a witness macro. Assign it a value that depends
47688         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
47689         tests-related modules.
47690         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
47691         Reported by Jim Meyering.
47693 2010-03-27  Bruno Haible  <bruno@clisp.org>
47695         Factorize common .m4 code.
47696         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
47697         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
47698         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
47699         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
47700         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
47701         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
47702         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
47703         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
47704         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
47705         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
47706         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
47707         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
47708         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
47709         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
47710         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
47711         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
47712         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
47713         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
47714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
47715         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
47716         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
47717         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
47718         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
47719         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
47720         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
47721         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
47722         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
47723         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
47724         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
47725         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
47726         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
47727         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
47729 2010-03-27  Bruno Haible  <bruno@clisp.org>
47731         Fix a compilation error on Cygwin with g++ >= 4.3.
47732         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
47733         if it is undefined or if we alias it to chmod.
47734         (lstat): Don't warn about the use of this function if it is undefined
47735         or if we alias it to stat.
47736         Reported by Simon Josefsson.
47738 2010-03-27  Bruno Haible  <bruno@clisp.org>
47740         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
47741         * modules/getlogin (configure.ac): Update.
47743         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
47744         * modules/getlogin_r (configure.ac): Update.
47746         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
47747         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
47748         * modules/inet_ntop (configure.ac): Update.
47750         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
47751         * modules/inet_pton (configure.ac): Update.
47753         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
47754         * modules/mbslen (configure.ac): Update.
47756         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
47757         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
47758         * modules/forkpty (configure.ac): Update.
47759         * modules/openpty (configure.ac): Update.
47761 2010-03-26  Simon Josefsson  <simon@josefsson.org>
47763         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
47764         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
47766 2010-03-25  Eric Blake  <eblake@redhat.com>
47768         maint: use pragma consistently across replacement headers
47769         * lib/ctype.in.h (system_header): Hoist for consistent placement.
47770         * lib/dirent.in.h (system_header): Likewise.
47771         * lib/errno.in.h (system_header): Likewise.
47772         * lib/float.in.h (system_header): Likewise.
47773         * lib/getopt.in.h (system_header): Likewise.
47774         * lib/iconv.in.h (system_header): Likewise.
47775         * lib/inttypes.in.h (system_header): Likewise.
47776         * lib/langinfo.in.h (system_header): Likewise.
47777         * lib/locale.in.h (system_header): Likewise.
47778         * lib/math.in.h (system_header): Likewise.
47779         * lib/netdb.in.h (system_header): Likewise.
47780         * lib/netinet_in.in.h (system_header): Likewise.
47781         * lib/pty.in.h (system_header): Likewise.
47782         * lib/sched.in.h (system_header): Likewise.
47783         * lib/se-selinux.in.h (system_header): Likewise.
47784         * lib/search.in.h (system_header): Likewise.
47785         * lib/spawn.in.h (system_header): Likewise.
47786         * lib/stdarg.in.h (system_header): Likewise.
47787         * lib/stdint.in.h (system_header): Likewise.
47788         * lib/string.in.h (system_header): Likewise.
47789         * lib/strings.in.h (system_header): Likewise.
47790         * lib/sys_file.in.h (system_header): Likewise.
47791         * lib/sys_ioctl.in.h (system_header): Likewise.
47792         * lib/sys_socket.in.h (system_header): Likewise.
47793         * lib/sys_times.in.h (system_header): Likewise.
47794         * lib/sys_utsname.in.h (system_header): Likewise.
47795         * lib/sys_wait.in.h (system_header): Likewise.
47796         * lib/sysexits.in.h (system_header): Likewise.
47797         * lib/unistd.in.h (system_header): Likewise.
47798         * lib/wctype.in.h (system_header): Likewise.
47800         arpa/inet: fix mingw compilation warning
47801         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
47802         Reported by Matthew Bolte.
47804 2010-03-25  Bruno Haible  <bruno@clisp.org>
47806         Avoid collision between gnulib wrapper and libintl wrapper.
47807         * lib/printf.c (printf): Don't define if a printf wrapper is already
47808         defined in intl/printf.c.
47809         Reported by Michel Boaventura <michel@michelboaventura.com>.
47811 2010-03-25  Bruno Haible  <bruno@clisp.org>
47813         Use ANSI C.
47814         * lib/readutmp.h (getutent): Provide ANSI C prototype.
47816 2010-03-25  Bruno Haible  <bruno@clisp.org>
47818         Minor formatting changes.
47819         * lib/acosl.c: Insert space before function argument list.
47820         * lib/argz.c: Likewise.
47821         * lib/asinl.c: Likewise.
47822         * lib/expl.c: Likewise.
47823         * lib/gen-uni-tables.c: Likewise.
47824         * lib/gettext.h: Likewise.
47825         * lib/glthread/lock.h: Likewise.
47826         * lib/tanl.c: Likewise.
47827         * lib/uniname/uniname.c: Likewise.
47828         * tests/test-idpriv-drop.c: Likewise.
47829         * tests/test-idpriv-droptemp.c: Likewise.
47830         * tests/test-lock.c: Likewise.
47831         * tests/test-tls.c: Likewise.
47832         * lib/argp-help.c: Insert space before function-like macro argument
47833         list.
47834         * lib/memcmp.c: Likewise.
47835         * tests/test-base64.c: Likewise.
47836         * lib/localename.c: Insert space before sizeof's argument list.
47837         * lib/safe-alloc.h: Likewise.
47838         * lib/file-set.h: Insert space before macro argument list.
47839         * tests/test-argp.c: Likewise.
47840         * lib/argp-namefrob.h: Insert space before function parameter list.
47841         * lib/getaddrinfo.c: Likewise.
47842         * lib/netdb.in.h: Likewise.
47843         * lib/parse-duration.h: Likewise.
47844         * lib/parse-duration.c: Likewise.
47845         * lib/poll.c: Likewise.
47846         * lib/select.c: Likewise.
47847         * lib/trim.h: Likewise.
47848         * tests/test-usleep.c: Likewise.
47849         * lib/ldexpl.c: Insert space before function parameter list and before
47850         function argument list.
47851         * lib/logl.c: Likewise.
47852         * lib/sqrtl.c: Likewise.
47853         * lib/trim.c: Likewise.
47854         * lib/cosl.c: Use GNU style indentation. Insert space before function
47855         argument list.
47856         * lib/sinl.c: Likewise.
47857         * lib/tsearch.c: Insert space after 'for'.
47858         Reported by Jim Meyering.
47860 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
47862         * maint.mk (sc_Wundef_boolean): Check for the presence of the
47863         config header before grepping, as it's not present before
47864         autoreconf/configure are run.  Reported by Simon Josefsson.
47866 2010-03-23  Bruno Haible  <bruno@clisp.org>
47868         pt_chown: Make it work with automake < 1.11.
47869         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
47870         Reported by Simon Josefsson.
47872 2010-03-23  Bruno Haible  <bruno@clisp.org>
47874         pt_chown: Don't depend on GPLed modules.
47875         * lib/pt_chown.c: Don't include idpriv.h.
47876         (main): Don't drop privileges.
47877         * modules/pt_chown (Depends-on): Remove idpriv-drop.
47878         Reported by Simon Josefsson.
47880 2010-03-24  Simon Josefsson  <simon@josefsson.org>
47882         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
47883         suggestions from karl@freefriends.org (Karl Berry).
47885 2010-03-22  Eric Blake  <eblake@redhat.com>
47887         gethostname: further tweaks
47888         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
47889         are overriding gethostname.
47890         Suggested by Bruno Haible.
47892 2010-03-21  Bruno Haible  <bruno@clisp.org>
47894         Fix comments.
47895         * lib/forkpty.c (rpl_forkpty): Fix comment.
47896         * lib/openpty.c (rpl_openpty): Likewise.
47897         Reported by Eric Blake.
47899 2010-03-22  Eric Blake  <eblake@redhat.com>
47901         gethostname: fix build on mingw
47902         * lib/unistd.in.h (includes): Work around fact that mingw
47903         <winsock2.h> re-includes <unistd.h>, by avoiding any
47904         redeclarations if we are being included by <winsock2.h>.
47905         Reported by Matthias Bolte.
47907 2010-03-21  Bruno Haible  <bruno@clisp.org>
47909         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
47910         * lib/forkpty.c (forkpty): New replacement function, from glibc with
47911         modifications.
47912         * lib/pty.in.h (forkpty): Update declaration. Add comments.
47913         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
47914         provide the replacement.
47915         * modules/forkpty (Depends-on): Add openpty, login_tty.
47916         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
47917         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
47918         * doc/glibc-functions/forkpty.texi: More supported platforms.
47919         * config/srclist.txt: Add forkpty.c (commented).
47921 2010-03-21  Bruno Haible  <bruno@clisp.org>
47923         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
47924         (Makefile.am): Verify that PTY_LIB is defined.
47926         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
47928 2010-03-21  Bruno Haible  <bruno@clisp.org>
47930         Tests for module 'login_tty'.
47931         * modules/login_tty-tests: New file.
47932         * tests/test-login_tty.c: New file.
47934         New module 'login_tty'.
47935         * lib/login_tty.c: New file.
47936         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
47937         * modules/login_tty: New file.
47938         * doc/glibc-functions/login_tty.texi: Mention the new module.
47940 2010-03-21  Bruno Haible  <bruno@clisp.org>
47942         login_tty: Documentation.
47943         * doc/glibc-functions/login_tty.texi: New file.
47944         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
47946 2010-03-21  Bruno Haible  <bruno@clisp.org>
47948         pty: Consistent macro naming.
47949         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
47950         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
47951         * modules/pty (configure.ac): Update.
47953 2010-03-21  Bruno Haible  <bruno@clisp.org>
47955         Tests for openpty: Make stricter.
47956         * tests/test-openpty.c (main): Add test of canonical processing and
47957         erase.
47958         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
47960         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
47961         * lib/openpty.c (openpty): New replacement function.
47962         * lib/pty.in.h: Include <termios.h>.
47963         (openpty): Update declaration. Add comments.
47964         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
47965         is not declared, arrange to provide the replacement. Check for _getpty
47966         and posix_openpt.
47967         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
47968         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
47969         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
47970         * modules/pty-tests (test_pty_c___LDADD): New variable.
47971         * doc/glibc-functions/openpty.texi: More supported platforms.
47973 2010-03-21  Bruno Haible  <bruno@clisp.org>
47975         setenv: Tweaks.
47976         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
47977         the test program.
47978         * doc/posix-functions/setenv.texi: Update platforms list.
47980 2010-03-21  Bruno Haible  <bruno@clisp.org>
47982         New module 'unlockpt'.
47983         * lib/unlockpt.c: New file, from glibc with modifications.
47984         * m4/unlockpt.m4: New file.
47985         * modules/unlockpt: New file.
47986         * lib/stdlib.in.h (unlockpt): New declaration.
47987         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
47988         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
47989         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
47990         HAVE_UNLOCKPT.
47991         * doc/posix-functions/unlockpt.texi: Mention the new module.
47992         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
47993         * config/srclist.txt: Add unlockpt.c (commented).
47995 2010-03-21  Jim Meyering  <meyering@redhat.com>
47997         maint.mk: prohibit inclusion of "intprops.h" without use
47998         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
48000 2010-03-21  Bruno Haible  <bruno@clisp.org>
48002         New module 'grantpt'.
48003         * lib/grantpt.c: New file, from glibc with modifications.
48004         * m4/grantpt.m4: New file.
48005         * modules/grantpt: New file.
48006         * lib/stdlib.in.h (grantpt): New declaration.
48007         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
48008         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
48009         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
48010         HAVE_GRANTPT.
48011         * doc/posix-functions/grantpt.texi: Mention the new module.
48012         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
48013         * config/srclist.txt: Add grantpt.c (commented).
48015 2010-03-21  Bruno Haible  <bruno@clisp.org>
48017         New module 'pt_chown'.
48018         * lib/pt_chown.c: New file, from glibc with modifications.
48019         * lib/pty-private.h: New file, from glibc with modifications.
48020         * modules/pt_chown: New file.
48021         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
48023 2010-03-21  Bruno Haible  <bruno@clisp.org>
48025         Tests for module 'ptsname'.
48026         * modules/ptsname-tests: New file.
48027         * tests/test-ptsname.c: New file.
48029         New module 'ptsname'.
48030         * lib/ptsname.c: New file, from glibc with modifications.
48031         * m4/ptsname.m4: New file.
48032         * modules/ptsname: New file.
48033         * lib/stdlib.in.h (ptsname): New declaration.
48034         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
48035         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
48036         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
48037         HAVE_PTSNAME.
48038         * doc/posix-functions/ptsname.texi: Mention the new module.
48039         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
48040         * config/srclist.txt: Add ptsname.c (commented).
48042 2010-03-21  Bruno Haible  <bruno@clisp.org>
48044         Tests for module 'ttyname_r'.
48045         * modules/ttyname_r-tests: New file.
48046         * tests/test-ttyname_r.c: New file.
48048         New module 'ttyname_r'.
48049         * lib/ttyname_r.c: New file.
48050         * m4/ttyname_r.m4: New file.
48051         * modules/ttyname_r: New file.
48052         * lib/unistd.in.h (ttyname_r): New declaration.
48053         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
48054         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
48055         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
48056         HAVE_TTYNAME_R.
48057         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
48058         * doc/posix-functions/ttyname_r.texi: Mention the new module.
48060 2010-03-20  Bruno Haible  <bruno@clisp.org>
48062         signal: Undefine macro definitions in C++ mode.
48063         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
48064         sigfillset): Undefine macro definitions from the system header in C++
48065         mode.
48066         Reported by John W. Eaton <jwe@gnu.org>.
48068 2010-03-20  Bruno Haible  <bruno@clisp.org>
48070         Ensure no #include statements inside extern "C" { ... }.
48071         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
48072         contain #include statements.
48073         * lib/time.in.h: Likewise.
48075 2010-03-20  Bruno Haible  <bruno@clisp.org>
48077         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
48078         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
48079         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
48080         Reported by John W. Eaton <jwe@gnu.org>.
48082 2010-03-20  Bruno Haible  <bruno@clisp.org>
48084         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
48085         Reported by Jim Meyering.
48087 2010-03-20  Bruno Haible  <bruno@clisp.org>
48089         pipe: Set errno upon failure.
48090         * lib/pipe.h: Specify that when -1 is returned, errno is set.
48091         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
48092         errno value in error message.
48094 2010-03-20  Bruno Haible  <bruno@clisp.org>
48095             Jim Meyering  <meyering@redhat.com>
48097         lchown: Avoid "unused variable" warning.
48098         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
48100 2010-03-20  Bruno Haible  <bruno@clisp.org>
48102         Work around unlink() bug on MacOS X 10.5.6.
48103         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
48104         attempting to unlink a parent directory.
48105         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
48106         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
48107         activate for the replacement function.
48108         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
48110 2010-03-20  Bruno Haible  <bruno@clisp.org>
48112         Fix link errors on Solaris 8.
48113         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
48114         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
48116 2010-03-19  Jim Meyering  <meyering@redhat.com>
48118         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
48119         The _LIBC implementation of build_range_exp correctly honors the
48120         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
48121         However, the non-_LIBC implementation would ignore that syntax-bit
48122         flag and return REG_ERANGE unconditionally.
48123         This change makes it honor that flag.
48124         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
48125         Make two pointer parameters "const".
48126         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
48127         (parse_bracket_exp): Update caller.
48129         regex.m4: correct the reversed range endpoint ([b-a]) test
48130         * m4/regex.m4: When requiring that [b-a] evoke failure,
48131         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
48132         test pass once again for x86-based systems.
48134 2010-03-19  Bruno Haible  <bruno@clisp.org>
48136         scandir: Fix link error on Solaris 8.
48137         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
48138         macros.
48140 2010-03-19  Bruno Haible  <bruno@clisp.org>
48142         getusershell: Fix documentation.
48143         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
48144         module.
48145         * doc/glibc-functions/setusershell.texi: Likewise.
48147         getusershell: Provide declaration, missing on Solaris 9.
48148         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
48149         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
48150         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
48151         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
48152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48153         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
48154         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
48155         HAVE_GETUSERSHELL.
48156         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
48158 2010-03-19  Bruno Haible  <bruno@clisp.org>
48160         wctype: Provide iswblank function.
48161         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
48162         exists and is fine.
48163         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
48164         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
48165         * tests/test-wctype.c (main): Re-enable the iswblank tests.
48166         * doc/posix-functions/iswblank.texi: Update.
48168 2010-03-19  Bruno Haible  <bruno@clisp.org>
48170         Tests of module 'pty' in C++ mode.
48171         * modules/pty-tests: New file.
48172         * tests/test-pty-c++.cc: New file.
48173         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
48175 2010-03-19  Eric Blake  <eblake@redhat.com>
48177         logb: fix documentation
48178         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
48179         1.5 declaration bug.
48181         forkpty, openpty: prefer glibc's const-safe prototype
48182         * lib/forkpty.c (rpl_forkpty): New file.
48183         * lib/openpty.c (rpl_openpty): Likewise.
48184         * modules/forkpty (Files): Distribute it.
48185         * modules/openpty (Files): Likewise.
48186         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
48187         check...
48188         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
48189         replacement for non-const BSD signature.
48190         * modules/pty (Makefile.am): Substitute witnesses.
48191         * lib/pty.in.h (forkpty, openpty): Declare replacements.
48192         * tests/test-forkpty.c: Update signature check.
48193         * tests/test-openpty.c: Likewise.
48194         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
48195         * doc/glibc-functions/openpty.texi (openpty): Likewise.
48197         forkpty, openpty: split functions into new modules
48198         * modules/pty (Makefile.am): Substitute new witnesses.
48199         (Libraries): Move library detection...
48200         * modules/forkpty: ...into new module.
48201         * modules/openpty: Another new module.
48202         * modules/pty-tests: Rename and split...
48203         * modules/forkpty-tests: ...to this...
48204         * modules/openpty-tests: ...and this.
48205         * tests/test-pty.c: Rename and split...
48206         * tests/test-forkpty.c: ...to this...
48207         * tests/test-openpty.c: ...and this.
48208         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
48209         (gl_PTY): Split library searching...
48210         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
48211         (gl_FORKPTY, gl_OPENPTY): New macros.
48212         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
48213         * NEWS: Mention the split.
48214         * MODULES.html.sh (Misc): Document the modules.
48215         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
48216         * doc/glibc-functions/openpty.texi (openpty): Likewise.
48218         pty: improve replacement header
48219         * lib/pty.in.h: New file.
48220         * modules/pty (Files): Ship it.
48221         (Makefile.am): Always build replacement.
48222         * m4/pty.m4: Rename...
48223         * m4/pty_h.m4: ...to this.
48224         (gl_PTY): Modernize setting of witness macros; update check of
48225         forkpty to take proper advantage of cache.
48226         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
48228         getopt: avoid compiler warning
48229         * lib/getopt.c (attribute_hidden): Remove unused macro.
48231 2010-03-18  Bruno Haible  <bruno@clisp.org>
48233         Fix link errors on Solaris 8.
48234         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
48235         * modules/search-tests (test_search_c___LDADD): Likewise.
48236         * modules/signal-tests (test_signal_c___LDADD): Likewise.
48237         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
48238         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
48239         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
48240         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
48241         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
48242         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
48244 2010-03-18  Bruno Haible  <bruno@clisp.org>
48246         Fix bug introduced on 2010-03-14.
48247         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
48248         (gl_SPAWN_H): Require it.
48249         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
48250         Reported by Simon Josefsson.
48252 2010-03-18  Bruno Haible  <bruno@clisp.org>
48254         Fix typo introduced on 2009-12-31.
48255         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
48256         posix_spawn_file_actions_adddup2.
48258 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
48259         and Eric Blake  <eblake@redhat.com>
48261         test-vc-list-files-git: make more robust
48262         * tests/test-vc-list-files-git.sh: Unset problematic environment
48263         variables.  Chain commands together.
48265 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
48267         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
48268         `AC_CHECK_DECL' invocation.
48270 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
48272         * lib/inttostr.c (inttostr): Make sure the invocation of verify
48273         appears before executable statements. Suggested by Petr Sumbera
48274         <Petr.Sumbera@Sun.COM>.
48276 2010-03-14  Bruno Haible  <bruno@clisp.org>
48278         * tests/test-flock.c (test_exclusive): Comment out a test that causes
48279         portability problems. Instead use a simpler test.
48280         (main): Check that invalid arguments are rejected only on Linux.
48282 2010-03-14  Bruno Haible  <bruno@clisp.org>
48284         Fix bug introduced on 2009-12-31.
48285         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
48286         gl_PREREQ_SYS_H_WINSOCK2 always.
48287         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
48288         SYS_SOCKET_H variable.
48289         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
48290         Update comments.
48291         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
48292         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
48293         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
48294         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
48295         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48297 2010-03-14  Bruno Haible  <bruno@clisp.org>
48299         Fix values returned by sinl, cosl.
48300         * lib/trigl.h: Add specification comments.
48301         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
48302         that combines the values from the precomputed table with the values of
48303         the Chebyshev polynomials.
48305 2010-03-14  Bruno Haible  <bruno@clisp.org>
48307         Fix compilation error when modules 'posix_spawn[p]' are not used.
48308         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
48309         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
48311 2010-03-14  Bruno Haible  <bruno@clisp.org>
48313         Fix compilation error on mingw when module 'time_r' is not used.
48314         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
48315         is 1.
48316         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
48317         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
48318         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
48319         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
48321 2010-03-14  Bruno Haible  <bruno@clisp.org>
48323         Fix compilation error with Sun C.
48324         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
48325         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
48326         instead of GCC specific ULONG_LONG_MAX.
48327         * lib/xstrtoll.c: Likewise.
48328         * lib/xstrtoull.c: Likewise.
48330 2010-03-13  Bruno Haible  <bruno@clisp.org>
48332         Allow the user to disable C++ code and tests.
48333         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
48334         (gl_PROG_ANSI_CXX): Require it.
48336 2010-03-13  Bruno Haible  <bruno@clisp.org>
48338         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
48339         cases.
48341 2010-03-13  Bruno Haible  <bruno@clisp.org>
48343         Test that gnulib does not break the standard C++ headers.
48344         * tests/test-locale-c++2.cc: New file.
48345         * modules/locale-tests (Files): Add it.
48346         (Makefile.am): Compile it for test-locale-c++.
48347         * tests/test-math-c++2.cc: New file.
48348         * modules/math-tests (Files): Add it.
48349         (Makefile.am): Compile it for test-math-c++.
48350         * tests/test-signal-c++2.cc: New file.
48351         * modules/signal-tests (Files): Add it.
48352         (Makefile.am): Compile it for test-signal-c++.
48353         * tests/test-stdio-c++2.cc: New file.
48354         * modules/stdio-tests (Files): Add it.
48355         (Makefile.am): Compile it for test-stdio-c++.
48356         * tests/test-stdlib-c++2.cc: New file.
48357         * modules/stdlib-tests (Files): Add it.
48358         (Makefile.am): Compile it for test-stdlib-c++.
48359         * tests/test-string-c++2.cc: New file.
48360         * modules/string-tests (Files): Add it.
48361         (Makefile.am): Compile it for test-string-c++.
48362         * tests/test-time-c++2.cc: New file.
48363         * modules/time-tests (Files): Add it.
48364         (Makefile.am): Compile it for test-time-c++.
48365         Reported by John W. Eaton <jwe@gnu.org>.
48367 2010-03-13  Bruno Haible  <bruno@clisp.org>
48369         * gnulib-tool (func_usage): Clarify which options are available for
48370         --create-testdir and --create-megatestdir.
48372 2010-03-13  Bruno Haible  <bruno@clisp.org>
48374         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
48375         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
48376         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
48377         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
48378         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
48379         when appropriate.
48380         Reported by Jim Meyering.
48382 2010-03-12  Simon Josefsson  <simon@josefsson.org>
48384         * gnulib-tool (func_import): Explain origin of code.
48386 2010-03-12  Bruno Haible  <bruno@clisp.org>
48388         Fix problem with automake's definition of CXXLINK.
48389         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
48390         Reported by Simon Josefsson and Ludovic Courtès.
48392 2010-03-12  Bruno Haible  <bruno@clisp.org>
48394         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
48395         stable releases.
48397 2010-03-11  Bruno Haible  <bruno@clisp.org>
48399         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
48400         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
48401         whether the system provides one variant or multiple variants of the
48402         function.
48403         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
48404         C++ compilers.
48405         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
48406         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
48407         Reported by Jim Meyering.
48409 2010-03-09  Simon Josefsson  <simon@josefsson.org>
48411         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
48413 2010-03-08  Bruno Haible  <bruno@clisp.org>
48415         gnulib-tool: Add support for --libtool in --create-testdir.
48416         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
48417         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
48419 2010-03-08  Eric Blake  <eblake@redhat.com>
48421         gnulib-tool.texi: mention possibility of git submodule
48422         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
48423         submodules.
48424         * doc/.gitignore: Ignore another generated file.
48426 2010-03-08  Karl Berry  <karl@gnu.org>
48428         * doc/gnulib-tool.texi (VCS Issues): Mention third option
48429         of committing gnulib files while skipping others.
48431 2010-03-07  Bruno Haible  <bruno@clisp.org>
48433         Tests of module 'wctype' in C++ mode.
48434         * tests/test-wctype-c++.cc: New file.
48435         * modules/wctype-tests (Files): Add it and tests/signature.h.
48436         (Depends-on): Add ansi-c++-opt.
48437         (Makefile.am): Arrange to compile and run test-wctype-c++.
48439         Tests of module 'wchar' in C++ mode.
48440         * tests/test-wchar-c++.cc: New file.
48441         * modules/wchar-tests (Files): Add it and tests/signature.h.
48442         (Depends-on): Add ansi-c++-opt.
48443         (Makefile.am): Arrange to compile and run test-wchar-c++.
48444         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
48445         gl_MODULE_INDICATOR.
48447         Tests of module 'unistd' in C++ mode.
48448         * tests/test-unistd-c++.cc: New file.
48449         * modules/unistd-tests (Files): Add it and tests/signature.h.
48450         (Depends-on): Add ansi-c++-opt.
48451         (Makefile.am): Arrange to compile and run test-unistd-c++.
48452         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
48453         gl_MODULE_INDICATOR.
48455         Tests of module 'time' in C++ mode.
48456         * tests/test-time-c++.cc: New file.
48457         * modules/time-tests (Files): Add it and tests/signature.h.
48458         (Depends-on): Add ansi-c++-opt.
48459         (Makefile.am): Arrange to compile and run test-time-c++.
48460         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
48462         Tests of module 'sys_time' in C++ mode.
48463         * tests/test-sys_time-c++.cc: New file.
48464         * modules/sys_time-tests (Files): Add it and tests/signature.h.
48465         (Depends-on): Add ansi-c++-opt.
48466         (Makefile.am): Arrange to compile and run test-sys_time-c++.
48467         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
48468         gl_MODULE_INDICATOR.
48470         Tests of module 'sys_stat' in C++ mode.
48471         * tests/test-sys_stat-c++.cc: New file.
48472         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
48473         (Depends-on): Add ansi-c++-opt.
48474         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
48475         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
48476         gl_MODULE_INDICATOR.
48478         Tests of module 'sys_socket' in C++ mode.
48479         * tests/test-sys_socket-c++.cc: New file.
48480         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
48481         (Depends-on): Add ansi-c++-opt.
48482         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
48483         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
48484         gl_MODULE_INDICATOR.
48486         Tests of module 'sys_select' in C++ mode.
48487         * tests/test-sys_select-c++.cc: New file.
48488         * modules/sys_select-tests (Files): Add it and tests/signature.h.
48489         (Depends-on): Add ansi-c++-opt.
48490         (Makefile.am): Arrange to compile and run test-sys_select-c++.
48491         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
48492         gl_MODULE_INDICATOR.
48494         Tests of module 'sys_ioctl' in C++ mode.
48495         * tests/test-sys_ioctl-c++.cc: New file.
48496         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
48497         (Depends-on): Add ansi-c++-opt.
48498         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
48499         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
48500         gl_MODULE_INDICATOR.
48502         Tests of module 'string' in C++ mode.
48503         * tests/test-string-c++.cc: New file.
48504         * modules/string-tests (Files): Add it and tests/signature.h.
48505         (Depends-on): Add ansi-c++-opt.
48506         (Makefile.am): Arrange to compile and run test-string-c++.
48507         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
48508         gl_MODULE_INDICATOR.
48510         Tests of module 'stdlib' in C++ mode.
48511         * tests/test-stdlib-c++.cc: New file.
48512         * modules/stdlib-tests (Files): Add it and tests/signature.h.
48513         (Depends-on): Add ansi-c++-opt.
48514         (Makefile.am): Arrange to compile and run test-stdlib-c++.
48515         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
48516         gl_MODULE_INDICATOR.
48518         Tests of module 'stdio' in C++ mode.
48519         * tests/test-stdio-c++.cc: New file.
48520         * modules/stdio-tests (Files): Add it and tests/signature.h.
48521         (Depends-on): Add ansi-c++-opt.
48522         (Makefile.am): Arrange to compile and run test-stdio-c++.
48523         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
48524         gl_MODULE_INDICATOR.
48526         Tests of module 'spawn' in C++ mode.
48527         * tests/test-spawn-c++.cc: New file.
48528         * modules/spawn-tests (Files): Add it and tests/signature.h.
48529         (Depends-on): Add ansi-c++-opt.
48530         (Makefile.am): Arrange to compile and run test-spawn-c++.
48531         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
48532         gl_MODULE_INDICATOR.
48534         Tests of module 'signal' in C++ mode.
48535         * tests/test-signal-c++.cc: New file.
48536         * modules/signal-tests (Files): Add it and tests/signature.h.
48537         (Depends-on): Add ansi-c++-opt.
48538         (Makefile.am): Arrange to compile and run test-signal-c++.
48539         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
48540         gl_MODULE_INDICATOR.
48542         Tests of module 'search' in C++ mode.
48543         * tests/test-search-c++.cc: New file.
48544         * modules/search-tests (Files): Add it and tests/signature.h.
48545         (Depends-on): Add ansi-c++-opt.
48546         (Makefile.am): Arrange to compile and run test-search-c++.
48547         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
48548         gl_MODULE_INDICATOR.
48550         Tests of module 'math' in C++ mode.
48551         * tests/test-math-c++.cc: New file.
48552         * modules/math-tests (Files): Add it and tests/signature.h.
48553         (Depends-on): Add ansi-c++-opt.
48554         (Makefile.am): Arrange to compile and run test-math-c++.
48555         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
48557         Tests of module 'locale' in C++ mode.
48558         * tests/test-locale-c++.cc: New file.
48559         * modules/locale-tests (Files): Add it and tests/signature.h.
48560         (Depends-on): Add ansi-c++-opt.
48561         (Makefile.am): Arrange to compile and run test-locale-c++.
48562         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
48563         gl_MODULE_INDICATOR.
48565         Tests of module 'langinfo' in C++ mode.
48566         * tests/test-langinfo-c++.cc: New file.
48567         * modules/langinfo-tests (Files): Add it and tests/signature.h.
48568         (Depends-on): Add ansi-c++-opt.
48569         (Makefile.am): Arrange to compile and run test-langinfo-c++.
48570         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
48571         gl_MODULE_INDICATOR.
48573         Tests of module 'iconv-h' in C++ mode.
48574         * tests/test-iconv-h-c++.cc: New file.
48575         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
48576         (Depends-on): Add ansi-c++-opt.
48577         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
48579         Tests of module 'glob' in C++ mode.
48580         * tests/test-glob-c++.cc: New file.
48581         * modules/glob-tests (Files): Add it.
48582         (Depends-on): Add ansi-c++-opt.
48583         (Makefile.am): Arrange to compile and run test-glob-c++.
48585         Tests of module 'fcntl-h' in C++ mode.
48586         * tests/test-fcntl-h-c++.cc: New file.
48587         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
48588         (Depends-on): Add ansi-c++-opt.
48589         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
48590         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
48591         gl_MODULE_INDICATOR.
48593         Tests of module 'dirent' in C++ mode.
48594         * tests/test-dirent-c++.cc: New file.
48595         * modules/dirent-tests (Files): Add it and tests/signature.h.
48596         (Depends-on): Add ansi-c++-opt.
48597         (Makefile.am): Arrange to compile and run test-dirent-c++.
48598         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
48599         gl_MODULE_INDICATOR.
48601         New module 'ansi-c++-opt'.
48602         * modules/ansi-c++-opt: New file.
48603         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
48605         Document C++ namespace mode.
48606         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
48608         wctype: Avoid #define replacements in C++ mode.
48609         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
48610         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
48611         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
48612         In C++, define a namespaced alias symbol.
48613         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
48614         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
48615         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
48616         rule.
48618         wchar: Avoid #define replacements in C++ mode.
48619         * lib/wchar.in.h: Include c++defs.h.
48620         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
48621         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
48622         symbol.
48623         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
48624         * modules/wchar (Depends-on): Add c++defs.
48625         (Makefile.am): Update wchar.h rule.
48627         unistd: Avoid #define replacements in C++ mode.
48628         * lib/unistd.in.h: Include c++defs.h.
48629         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
48630         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
48631         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
48632         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
48633         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
48634         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
48635         symbol.
48636         (environ): Update.
48637         * modules/unistd (Depends-on): Add c++defs.
48638         (Makefile.am): Update unistd.h rule.
48640         time: Avoid #define replacements in C++ mode.
48641         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
48642         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
48643         define a namespaced alias symbol.
48644         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
48645         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
48646         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
48647         * modules/time (Depends-on): Add c++defs, warn-on-use.
48648         (Makefile.am): Update time.h rule.
48649         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
48650         * modules/nanosleep (configure.ac): Likewise.
48651         * modules/strptime (configure.ac): Likewise.
48652         * modules/timegm (configure.ac): Likewise.
48654         sys_time: Avoid #define replacements in C++ mode.
48655         * lib/sys_time.in.h: Include c++defs.h.
48656         (gettimeofday): In C++, define a namespaced alias symbol.
48657         * modules/sys_time (Depends-on): Add c++defs.
48658         (Makefile.am): Update sys/time.h rule.
48660         sys_stat: Avoid #define replacements in C++ mode.
48661         * lib/sys_stat.in.h: Include c++defs.h.
48662         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
48663         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
48664         namespaced alias symbol.
48665         In C++, define a namespaced alias symbol.
48666         * modules/sys_stat (Depends-on): Add c++defs.
48667         (Makefile.am): Update sys/stat.h rule.
48669         sys_socket: Avoid #define replacements in C++ mode.
48670         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
48671         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
48672         definitions also when the system has a <sys/socket.h>.
48673         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48674         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
48675         In C++, define a namespaced alias symbol.
48676         * modules/sys_socket (Depends-on): Add c++defs.
48677         (Makefile.am): Update sys/socket.h rule.
48679         sys_select: Avoid #define replacements in C++ mode.
48680         * lib/sys_select.in.h: Include c++defs.h. Enable the function
48681         definitions also when the system has a <sys/select.h>.
48682         (select): In C++, define a namespaced alias symbol.
48683         * modules/sys_select (Depends-on): Add c++defs.
48684         (Makefile.am): Update sys/select.h rule.
48686         sys_ioctl: Avoid #define replacements in C++ mode.
48687         * lib/sys_ioctl.in.h: Include c++defs.h.
48688         (ioctl): In C++, define a namespaced alias symbol.
48689         * modules/sys_ioctl (Depends-on): Add c++defs.
48690         (Makefile.am): Update sys/ioctl.h rule.
48692         string: Avoid #define replacements in C++ mode.
48693         * lib/string.in.h: Include c++defs.h.
48694         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
48695         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
48696         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
48697         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
48698         strsignal, strverscmp): In C++, define a namespaced alias symbol.
48699         * modules/string (Depends-on): Add c++defs.
48700         (Makefile.am): Update string.h rule.
48702         stdlib: Avoid #define replacements in C++ mode.
48703         * lib/stdlib.in.h: Include c++defs.h.
48704         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
48705         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
48706         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
48707         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
48708         symbol.
48709         * modules/stdlib (Depends-on): Add c++defs.
48710         (Makefile.am): Update stdlib.h rule.
48712         stdio: Avoid #define replacements in C++ mode.
48713         * lib/stdio.in.h: Include c++defs.h.
48714         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
48715         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
48716         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
48717         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
48718         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
48719         namespaced alias symbol.
48720         * modules/stdio (Depends-on): Add c++defs.
48721         (Makefile.am): Update stdio.h rule.
48723         spawn: Avoid #define replacements in C++ mode.
48724         * lib/spawn.in.h: Include c++defs.h.
48725         (posix_spawn, posix_spawnp, posix_spawnattr_init,
48726         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
48727         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
48728         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
48729         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
48730         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
48731         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
48732         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
48733         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
48734         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
48735         In C++, define a namespaced alias symbol.
48736         * modules/spawn (Depends-on): Add c++defs.
48737         (Makefile.am): Update spawn.h rule.
48739         signal: Avoid #define replacements in C++ mode.
48740         * lib/signal.in.h: Include c++defs.h.
48741         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
48742         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
48743         namespaced alias symbol.
48744         * modules/signal (Depends-on): Add c++defs.
48745         (Makefile.am): Update signal.h rule.
48747         search: Avoid #define replacements in C++ mode.
48748         * lib/search.in.h: Include c++defs.h.
48749         (_gl_search_compar_fn, _gl_search_action_fn): New types.
48750         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
48751         symbol.
48752         * modules/search (Depends-on): Add c++defs.
48753         (Makefile.am): Update search.h rule.
48755         math: Avoid #define replacements in C++ mode.
48756         * lib/math.in.h: Include c++defs.h.
48757         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
48758         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
48759         trunc, truncl): In C++, define a namespaced alias symbol.
48760         * modules/math (Depends-on): Add c++defs.
48761         (Makefile.am): Update math.h rule.
48763         locale: Avoid #define replacements in C++ mode.
48764         * lib/locale.in.h: Include c++defs.h.
48765         (duplocale): In C++, define a namespaced alias symbol.
48766         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
48767         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
48768         * modules/locale (Depends-on): Add c++defs.
48769         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
48771         langinfo: Avoid #define replacements in C++ mode.
48772         * lib/langinfo.in.h: Include c++defs.h.
48773         (nl_langinfo): In C++, define a namespaced alias symbol.
48774         * modules/langinfo (Depends-on): Add c++defs.
48775         (Makefile.am): Update langinfo.h rule.
48777         iconv-h: Avoid #define replacements in C++ mode.
48778         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
48779         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
48780         symbol.
48781         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48782         whenever iconv is present.
48783         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
48784         (Makefile.am): Update iconv.h rule.
48786         glob: Avoid #define replacements in C++ mode.
48787         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
48788         (_gl_glob_errfunc_fn): New type.
48789         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
48790         symbol.
48791         * modules/glob (Depends-on): Add c++defs, warn-on-use.
48792         (Makefile.am): Update glob.h rule.
48794         fcntl-h: Avoid #define replacements in C++ mode.
48795         * lib/fcntl.in.h: Include c++defs.h.
48796         (fcntl, open, openat): In C++, define a namespaced alias symbol.
48797         * modules/fcntl-h (Depends-on): Add c++defs.
48798         (Makefile.am): Update fcntl.h rule.
48800         dirent: Avoid #define replacements in C++ mode.
48801         * lib/dirent.in.h: Include c++defs.h.
48802         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
48803         namespaced alias symbol.
48804         (dirfd): Update declaration.
48805         * modules/dirent (Depends-on): Add c++defs.
48806         (Makefile.am): Update dirent.h rule.
48808         ctype: Make it usable in C++ code.
48809         * lib/ctype.in.h: Include c++defs.h.
48810         (isblank): Declare as extern "C".
48811         * modules/ctype (Depends-on): Add c++defs.
48812         (Makefile.am): Update ctype.h rule.
48814         New module 'c++defs'.
48815         * modules/c++defs: New file.
48816         * build-aux/c++defs.h: New file.
48817         Reported by John W. Eaton <jwe@gnu.org>.
48819 2010-03-07  Bruno Haible  <bruno@clisp.org>
48821         logb: Provide missing declaration for Cygwin.
48822         * lib/math.in.h (logb): New declaration.
48823         * m4/logb.m4: New file.
48824         * modules/logb (Files): Add m4/logb.m4.
48825         (Depends-on): Add math.
48826         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
48827         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
48828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
48829         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
48830         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
48832 2010-03-07  Bruno Haible  <bruno@clisp.org>
48834         Fix test-cond link error.
48835         * tests/test-cond.c: Include <stdio.h>.
48837 2010-03-07  Bruno Haible  <bruno@clisp.org>
48839         Fix test-dirent-safer link error.
48840         * modules/dirent-safer-tests (Makefile.am): Define
48841         test_dirent_safer_LDADD.
48843 2010-03-07  Bruno Haible  <bruno@clisp.org>
48845         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
48846         among default module list.
48848 2010-03-07  Bruno Haible  <bruno@clisp.org>
48850         Fix link error on platforms with GNU libiconv.
48851         * modules/unistr/u8-strcoll-tests (Makefile): Define
48852         test_u8_strcoll_LDADD.
48853         * modules/unistr/u16-strcoll-tests (Makefile): Define
48854         test_u16_strcoll_LDADD.
48855         * modules/unistr/u32-strcoll-tests (Makefile): Define
48856         test_u32_strcoll_LDADD.
48858 2010-03-07  Bruno Haible  <bruno@clisp.org>
48860         Use POSIX declarations for socket functions.
48861         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
48862         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
48863         rpl_sendto): Change declaration to match POSIX.
48864         * lib/connect.c (rpl_connect): Likewise.
48865         * lib/accept.c (rpl_accept): Likewise.
48866         * lib/bind.c (rpl_bind): Likewise.
48867         * lib/getpeername.c (rpl_getpeername): Likewise.
48868         * lib/getsockname.c (rpl_getsockname): Likewise.
48869         * lib/recv.c (rpl_recv): Likewise.
48870         * lib/send.c (rpl_send): Likewise.
48871         * lib/recvfrom.c (rpl_recvfrom): Likewise.
48872         * lib/sendto.c (rpl_sendto): Likewise.
48874 2010-03-06  Bruno Haible  <bruno@clisp.org>
48876         Clarify access, euidaccess, faccessat.
48877         * doc/posix-functions/faccessat.texi: Mention security problem under
48878         "Other problems", not "Portability problems".
48879         * doc/posix-functions/access.texi: Likewise. Mention a related security
48880         problem.
48881         * doc/glibc-functions/euidaccess.texi: Mention security problems.
48882         * lib/euidaccess.c: Add comments about platforms.
48883         * lib/unistd.in.h (access, euidaccess): Add warnings.
48885 2010-03-07  Bruno Haible  <bruno@clisp.org>
48887         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
48888         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
48889         (POSIX_SPAWN_SETSCHEDULER): Likewise.
48890         (POSIX_SPAWN_USEVFORK): Define in a way that works when
48891         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
48892         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
48893         declare when POSIX_SPAWN_SETSCHEDULER is zero.
48894         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
48895         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
48896         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
48897         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
48898         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
48899         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
48900         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
48901         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
48902         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
48903         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
48904         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
48905         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
48906         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
48907         Likewise.
48908         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
48909         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
48910         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
48911         Likewise.
48912         * tests/test-spawn.c (main): Make it work when
48913         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
48915 2010-03-07  Bruno Haible  <bruno@clisp.org>
48917         Fix incorrect Makefile.am generation in German locale.
48918         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48919         Execute sed command with character range in C locale.
48921 2010-03-06  Bruno Haible  <bruno@clisp.org>
48923         Tests for module 'iconv-h'.
48924         * modules/iconv-h-tests: New file.
48925         * tests/test-iconv-h.c: New file.
48927         New module 'iconv-h'.
48928         * modules/iconv-h: New file.
48929         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
48930         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
48931         (configure.ac): Remove gl_ICONV_H.
48932         (Makefile.am): Remove rule for iconv.h.
48934 2010-03-06  Bruno Haible  <bruno@clisp.org>
48936         More consistent naming of *.m4 files.
48937         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
48938         * modules/wctype (Files): Update.
48940         More consistent naming of *.m4 files.
48941         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
48942         * modules/wchar (Files): Update.
48944 2010-03-06  Jim Meyering  <meyering@redhat.com>
48946         euidaccess: relax license to LGPLv2+
48947         * modules/euidaccess (License): Relax to LGPLv2+.
48949 2010-03-06  Bruno Haible  <bruno@clisp.org>
48951         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
48952         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
48953         (Makefile.am): Augment lib_SOURCES instead.
48955 2010-03-04  Jim Meyering  <meyering@redhat.com>
48957         utime: remove obsolete module
48958         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
48959         unnecessary for years, and has been marked as obsolete for 10 months.
48960         * modules/utime: Remove file.
48961         * lib/utime.c: Remove file.
48962         * m4/utime.m4: Remove file.
48963         * m4/utimes-null.m4: Remove file.
48964         * doc/posix-functions/utime.texi (utime): Remove reference to
48965         the module.  Move the sole "fixed by gnulib" item into the
48966         "problems not fixed by Gnulib" list.
48967         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
48969 2010-03-05  Simon Josefsson  <simon@josefsson.org>
48971         * modules/exit (License): Relax license to LGPLv2+.
48972         (Status): Mark as obsolete.
48973         * NEWS: Mention deprecated 'exit' module.
48974         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
48975         of now obsolete 'exit'.
48977 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48979         fts-lgpl: remove unused module
48980         * modules/fts-lgpl: Remove.
48981         * MODULES.html.sh (func_all_modules): Adjust.
48982         * check-module (find_included_lib_files): Adjust.
48983         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
48985 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
48987         copy-acl: enhance Solaris ACL error handling
48988         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
48989         * lib/set-mode-acl.c (qset_acl): Likewise.
48991 2010-03-02  Bruno Haible  <bruno@clisp.org>
48993         spawn: Don't override the system defined values on FreeBSD 8.
48994         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
48995         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
48996         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
48997         if HAVE_POSIX_SPAWN is 1.
48998         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
49000 2010-03-01  Bruno Haible  <bruno@clisp.org>
49002         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
49003         regarding Automake.
49005 2010-02-25  Bruno Haible  <bruno@clisp.org>
49007         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
49008         * gnulib-tool: Define 'echo' as a function only before the ksh alias
49009         setting, not afterwards.
49010         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
49012 2010-02-24  Eric Blake  <eblake@redhat.com>
49014         bootstrap, git-version-gen: use timestamp
49015         * build-aux/git-version-gen (scriptversion): Force UTC.
49016         * build-aux/bootstrap (scriptversion): New variable.
49018         bootstrap: allow older git
49019         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
49020         older than 1.6.4.  Requested by the libvirt project.
49022 2010-02-23  Eric Blake  <eblake@redhat.com>
49024         warn-on-use: work with old autoconf
49025         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
49026         AS_VAR semantics of autoconf 2.60.
49027         Reported by Bruno Haible.
49029         bootstrap: improve some comments
49030         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
49031         clarification comments.
49033         gettimeofday: provide correct function
49034         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
49035         when replacement is declared, otherwise provide gettimeofday.
49036         Reported by Michael Goffioul.
49038 2010-02-23  Jim Meyering  <meyering@redhat.com>
49040         lib-ignore: relax license to "unlimited", not LGPLv2+
49041         * modules/lib-ignore (License): Relax to "unlimited".
49043 2010-02-23  Jim Meyering  <meyering@redhat.com>
49045         lib-ignore: relax license to LGPLv2+
49046         * modules/lib-ignore (License): Relax to LGPLv2+.
49048 2010-02-22  Eric Blake  <eblake@redhat.com>
49050         lseek: avoid bash 3.2 broken pipe bug
49051         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
49052         warning from bash 3.2.
49053         Reported by Ben Pfaff, with analysis from Bruno Haible.
49055         bootstrap: support non-FSF copyright holder
49056         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
49057         bootstrap.conf override of COPYRIGHT_HOLDER.
49058         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
49060         bootstrap: interoperate with gettext 0.14.1
49061         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
49063         bootstrap: allow for alternate submodule location
49064         * build-aux/bootstrap (gnulib_path): New variable; use instead of
49065         hardcoding submodule location.
49066         (gnulib_mk): Allow direct use of Makefile.am.
49068         bootstrap: use GNULIB_SRCDIR to reduce disk usage
49069         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
49070         rather than reconfiguring where the submodule points.
49072         gettimeofday: restore support for platforms that lack function
49073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
49074         replacement if function is missing.
49075         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
49076         * modules/sys_time (Makefile.am): Substitute it.
49077         * lib/sys_time.in.h (gettimeofday): Check it.
49078         Reported by Michael Goffioul.
49080 2010-02-21  Bruno Haible  <bruno@clisp.org>
49082         * lib/stdio.in.h (obstack_printf): Fix typo.
49084 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
49086         vc-list-files: use bzr ls's -R option
49087         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
49088         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
49090 2010-02-21  Jim Meyering  <meyering@redhat.com>
49092         init.sh: fix EXEEXT shims to work also for names like test-prog
49093         * tests/init.sh: Re-exec a better shell, when needed.
49094         If the current shell lacks support for posix $(...), an init.sh-using
49095         test will now try to find a shell that supports that.  If EXEEXT is
49096         nonempty, we also require support for hyphen-in-alias-name and shell
49097         substitutions like ${var#glob}.  Failure to find such a shell results
49098         in a skipped test.
49100 2010-02-21  Bruno Haible  <bruno@clisp.org>
49102         Really work around "broken pipe" error message from bash 3.2.
49103         * gnulib-tool (func_reset_sigpipe): Remove function.
49104         (echo): In bash 3.2, define to a function that uses printf.
49105         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
49107 2010-02-20  Bruno Haible  <bruno@clisp.org>
49109         Restore support for automake 1.9.6 with autoconf 2.61.
49110         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
49111         Reported by James Youngman <jay@gnu.org>.
49113 2010-02-20  Bruno Haible  <bruno@clisp.org>
49115         Improve *printf warning condition.
49116         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
49117         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
49118         and the function is overridden due to SIGPIPE emulation.
49120 2010-02-20  Bruno Haible  <bruno@clisp.org>
49122         * lib/stdio.in.h: Tweak comments.
49124 2010-02-19  Bruno Haible  <bruno@clisp.org>
49126         Make it easier to find modules. New gnulib-tool option '--find'.
49127         * gnulib-tool: New option --find.
49128         (func_usage): Document it.
49129         (func_sanitize_modulelist): New function, extracted from
49130         func_all_modules.
49131         (func_all_modules): Invoke it.
49132         * doc/gnulib-tool.texi (Which modules?): New node.
49134 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
49136         * lib/sys_select.in.h: Provide select replacement even if
49137         sys/select.h exists on a system, for Interix.
49139 2010-02-18  Jim Meyering  <meyering@redhat.com>
49141         init.sh: don't use $(...) just yet
49142         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
49143         to accommodate e.g., Solaris' /bin/sh.
49145 2010-02-17  Bruno Haible  <bruno@clisp.org>
49147         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
49148         Reported by Ludovic Courtès <ludo@gnu.org>.
49150 2010-02-16  Simon Josefsson  <simon@josefsson.org>
49152         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
49153         linking with -lintl.
49155 2010-02-17  Simon Josefsson  <simon@josefsson.org>
49157         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
49158         if not provided by the system's netdb.h.  Reported by
49159         ludo@gnu.org (Ludovic Courtès).
49161 2010-02-15  Jim Meyering  <meyering@redhat.com>
49163         init.sh: improve portability and efficiency
49164         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
49165         "dummy" in a for loop.
49166         Use '!', not '^' to select the complement of a character set used
49167         in a "case" statement.
49168         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
49169         Suggestions from Eric Blake.
49171         init.sh: automatically accommodate programs with the .exe suffix
49172         Automatically arrange for an invocation of "prog" to execute the
49173         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
49174         may use the simpler "prog", yet still work when built on a system
49175         that requires specifying the added suffix.
49176         Do this by constructing a function named "prog" that invokes
49177         "prog.exe" for each .exe file in selected directories.
49178         * tests/init.sh (find_exe_basenames_): New function.
49179         (create_exe_shim_functions_): New function.
49180         (path_prepend_): Use it.
49182         maint.mk: mark syntax-check sc_*.m rules as .PHONY
49183         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
49184         "make -t syntax-check" doesn't create a ton of sc_*.m files.
49186 2010-02-14  Jim Meyering  <meyering@redhat.com>
49188         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
49189         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
49190         (sc_prohibit_hash_pjw_without_use): New rule.
49192         maint.mk: allow the default upload destination dir to be overridden
49193         * top/maint.mk (upload_dest_dir_): Define with a default that
49194         preserves the status quo.
49195         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
49196         Reported by Peter Simons.
49198         maint.mk: prohibit inclusion of "hash.h" without_use
49199         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
49201 2010-02-10  Jim Meyering  <meyering@redhat.com>
49203         maint.mk: prohibit inclusion of "ignore-value.h" without_use
49204         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
49206 2010-02-09  Eric Blake  <ebb9@byu.net>
49207         and Bruno Haible  <bruno@clisp.org>
49209         obstack-printf-posix: ensure declaration
49210         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
49211         extracted from gl_FUNC_OBSTACK_PRINTF.
49212         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
49213         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49214         Likewise.
49215         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
49216         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
49217         0.
49219 2010-02-08  Bruno Haible  <bruno@clisp.org>
49221         gnulib-tool: Fix typo in 2010-02-07 commit.
49222         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
49223         Reported by Eric Blake.
49225 2010-02-07  Bruno Haible  <bruno@clisp.org>
49227         gnulib-tool: Fix up caching patches.
49228         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
49229         option --no-cache. Use associative arrays when supported by the shell.
49230         (sed_comments): New variable.
49231         (modcache): Renamed from do_cache.
49232         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
49233         abbreviate unnecessarily.
49234         (have_associative): New variable.
49235         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
49236         way also for ksh and zsh.
49237         (func_init_sed_convert_to_cache_statements): New function, extracted
49238         from func_cache_lookup_module. Add support for associative arrays.
49239         Don't set the c_MODULE_cached variable here. Ignore all lines before
49240         the first field header. Remove only the final newline, not all trailing
49241         newlines. Support empty fields correctly. Limit the use of 'eval' to
49242         assignments.
49243         (func_get_description, func_get_status, func_get_notice,
49244         func_get_applicability, func_get_filelist, func_get_dependencies,
49245         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
49246         func_get_automake_snippet, func_get_include_directive,
49247         func_get_link_directive, func_get_license, func_get_maintainer):
49248         Update documentation. List the unoptimized code first. Add support for
49249         associative arrays. Limit the use of 'eval' to assignments.
49250         (func_get_applicability): Undo stylistic pessimisations.
49251         (func_get_automake_snippet, func_get_include_directive): Reduce code
49252         duplication.
49253         (func_modules_transitive_closure, func_modules_add_dummy,
49254         func_modules_notice, func_modules_to_filelist, func_add_file,
49255         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
49256         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
49257         func_create_testdir, func_create_megatestdir): Update documentation.
49259 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49261         * gnulib-tool (func_cache_lookup_module): Store the module name
49262         belonging to the cache variable; error out if two different
49263         module names map to the same cache variable name.
49265 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49267         gnulib-tool: Make caching optional.
49268         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
49269         Update matching short versions of --no-changelog.
49270         (func_usage): Update.
49271         (sed_extract_cache_prog): Renamed from ...
49272         (sed_extract_prog): ... this; revert to old extraction script.
49273         (func_get_description, func_get_status)
49274         (func_get_notice, func_get_applicability, func_get_filelist)
49275         (func_get_dependencies, func_get_autoconf_early_snippet)
49276         (func_get_autoconf_snippet, func_get_automake_snippet)
49277         (func_get_include_directive, func_get_link_directive)
49278         (func_get_license, func_get_maintainer): If $do_cache is false,
49279         use old, non-caching extraction scripts.
49280         Suggestion by Bruno Haible.
49282 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49284         gnulib-tool: cache module metainformation.
49285         * gnulib-tool (sed_extract_prog): Match newline before each
49286         header, and rewrite header to a shell variable suffix.
49287         (func_cache_var, func_cache_lookup_module): New functions,
49288         to turn a module name into a cache variable prefix, and to
49289         look up and cache module metainformation.
49290         (func_get_description, func_get_status)
49291         (func_get_notice, func_get_applicability, func_get_filelist)
49292         (func_get_dependencies, func_get_autoconf_early_snippet)
49293         (func_get_autoconf_snippet, func_get_automake_snippet)
49294         (func_get_include_directive, func_get_link_directive)
49295         (func_get_license, func_get_maintainer): Use
49296         func_cache_lookup_module.
49298 2010-02-07  Bruno Haible  <bruno@clisp.org>
49300         fnctl: Fix missing dependency.
49301         * modules/fcntl (Depends-on): Add getdtablesize.
49302         Reported by John W. Eaton <jwe@gnu.org>.
49304 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49306         Argp: fix recognition of short alias options.
49308         * lib/argp-parse.c (convert_options): Fix improper use of
49309         `|' between character values.
49310         * tests/test-argp.c (group1_option): New alias option
49311         --read (-r).
49312         (group1_parser): Special handling for 'r'.
49313         (test15): New test case.
49314         (test_fun): Add test15.
49315         * tests/test-argp-2.sh: Update expected --help and --usage
49316         outputs.
49318 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49320         * tests/test-argp.c: Fix indentation.
49322 2010-02-04  Eric Blake  <ebb9@byu.net>
49324         gettimeofday: expose type of second argument
49325         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
49326         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
49327         * tests/test-gettimeofday.c: Use it to silence warning.
49328         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
49329         the issue.
49331 2010-02-03  Jim Meyering  <meyering@redhat.com>
49333         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
49334         * lib/regcomp.c (TYPE_SIGNED): Define.
49335         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
49337         regcomp.c: avoid a new -Wshadow warning
49338         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
49340 2010-02-01  Jim Meyering  <meyering@redhat.com>
49342         removing useless parentheses in cpp #define directives
49343         For motivation, see commit c0221df4, "define STREQ(a,b)
49344         consistently, removing useless parentheses"
49345         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
49346         * lib/mountlist.c (MNT_IGNORE): Likewise.
49347         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
49349 2010-02-01  Eric Blake  <ebb9@byu.net>
49351         sys_time: use link-warning
49352         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
49353         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
49354         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
49355         * modules/sys_time (Depends-on): Add warn-on-use.
49356         (Makefile.am): Always build replacement.
49357         (configure.ac): Update substitutions.
49358         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
49359         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
49360         bother with SYS_TIME_H.
49361         * modules/gettimeofday (configure.ac): Declare indicator.
49362         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
49363         in use.
49365         closein-tests: silence compiler warning
49366         * tests/test-closein.c (main): Ignore fread result.
49367         * modules/closein-tests (Depends-on): Add ignore-value.
49369         tests: silence warning about system return
49370         * tests/test-areadlink-with-size.c (main): Ignore system result.
49371         * tests/test-areadlink.c (main): Likewise.
49372         * tests/test-areadlinkat-with-size.c (main): Likewise.
49373         * tests/test-areadlinkat.c (main): Likewise.
49374         * tests/test-canonicalize-lgpl.c (main): Likewise.
49375         * tests/test-canonicalize.c (main): Likewise.
49376         * tests/test-chown.c (main): Likewise.
49377         * tests/test-fchownat.c (main): Likewise.
49378         * tests/test-fdutimensat.c (main): Likewise.
49379         * tests/test-fstatat.c (main): Likewise.
49380         * tests/test-futimens.c (main): Likewise.
49381         * tests/test-lchown.c (main): Likewise.
49382         * tests/test-link.c (main): Likewise.
49383         * tests/test-linkat.c (main): Likewise.
49384         * tests/test-lstat.c (main): Likewise.
49385         * tests/test-mkdir.c (main): Likewise.
49386         * tests/test-mkdirat.c (main): Likewise.
49387         * tests/test-mkfifo.c (main): Likewise.
49388         * tests/test-mkfifoat.c (main): Likewise.
49389         * tests/test-mknod.c (main): Likewise.
49390         * tests/test-readlink.c (main): Likewise.
49391         * tests/test-remove.c (main): Likewise.
49392         * tests/test-rename.c (main): Likewise.
49393         * tests/test-renameat.c (main): Likewise.
49394         * tests/test-rmdir.c (main): Likewise.
49395         * tests/test-symlink.c (main): Likewise.
49396         * tests/test-symlinkat.c (main): Likewise.
49397         * tests/test-unlink.c (main): Likewise.
49398         * tests/test-unlinkat.c (main): Likewise.
49399         * tests/test-utimens.c (main): Likewise.
49400         * tests/test-utimensat.c (main): Likewise.
49401         * modules/areadlink-tests (Depends-on): Add ignore-value.
49402         * modules/areadlink-with-size-tests (Depends-on): Likewise.
49403         * modules/areadlinkat-tests (Depends-on): Likewise.
49404         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
49405         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
49406         * modules/canonicalize-tests (Depends-on): Likewise.
49407         * modules/chown-tests (Depends-on): Likewise.
49408         * modules/fdutimensat-tests (Depends-on): Likewise.
49409         * modules/futimens-tests (Depends-on): Likewise.
49410         * modules/lchown-tests (Depends-on): Likewise.
49411         * modules/link-tests (Depends-on): Likewise.
49412         * modules/linkat-tests (Depends-on): Likewise.
49413         * modules/lstat-tests (Depends-on): Likewise.
49414         * modules/mkdir-tests (Depends-on): Likewise.
49415         * modules/mkfifo-tests (Depends-on): Likewise.
49416         * modules/mkfifoat-tests (Depends-on): Likewise.
49417         * modules/mknod-tests (Depends-on): Likewise.
49418         * modules/openat-tests (Depends-on): Likewise.
49419         * modules/readlink-tests (Depends-on): Likewise.
49420         * modules/remove-tests (Depends-on): Likewise.
49421         * modules/rename-tests (Depends-on): Likewise.
49422         * modules/renameat-tests (Depends-on): Likewise.
49423         * modules/rmdir-tests (Depends-on): Likewise.
49424         * modules/symlink-tests (Depends-on): Likewise.
49425         * modules/symlinkat-tests (Depends-on): Likewise.
49426         * modules/unlink-tests (Depends-on): Likewise.
49427         * modules/utimens-tests (Depends-on): Likewise.
49428         * modules/utimensat-tests (Depends-on): Likewise.
49430 2010-01-31  Bruno Haible  <bruno@clisp.org>
49432         Perform the same test for many <math.h> functions.
49433         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
49434         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
49435         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
49436         of gl_MATHFUNC.
49437         * modules/acos (configure.ac): Likewise.
49438         * modules/asin (configure.ac): Likewise.
49439         * modules/atan (configure.ac): Likewise.
49440         * modules/atan2 (configure.ac): Likewise.
49441         * modules/cbrt (configure.ac): Likewise.
49442         * modules/copysign (configure.ac): Likewise.
49443         * modules/cos (configure.ac): Likewise.
49444         * modules/cosh (configure.ac): Likewise.
49445         * modules/erf (configure.ac): Likewise.
49446         * modules/erfc (configure.ac): Likewise.
49447         * modules/exp (configure.ac): Likewise.
49448         * modules/fmod (configure.ac): Likewise.
49449         * modules/hypot (configure.ac): Likewise.
49450         * modules/j0 (configure.ac): Likewise.
49451         * modules/j1 (configure.ac): Likewise.
49452         * modules/jn (configure.ac): Likewise.
49453         * modules/lgamma (configure.ac): Likewise.
49454         * modules/log (configure.ac): Likewise.
49455         * modules/log10 (configure.ac): Likewise.
49456         * modules/log1p (configure.ac): Likewise.
49457         * modules/pow (configure.ac): Likewise.
49458         * modules/remainder (configure.ac): Likewise.
49459         * modules/sin (configure.ac): Likewise.
49460         * modules/sinh (configure.ac): Likewise.
49461         * modules/tan (configure.ac): Likewise.
49462         * modules/tanh (configure.ac): Likewise.
49463         * modules/y0 (configure.ac): Likewise.
49464         * modules/y1 (configure.ac): Likewise.
49465         * modules/yn (configure.ac): Likewise.
49466         Suggested by Paolo Bonzini.
49468 2010-01-31  Bruno Haible  <bruno@clisp.org>
49470         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
49472 2010-01-31  Bruno Haible  <bruno@clisp.org>
49474         Work around getdelim() bug on FreeBSD 8.0.
49475         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
49476         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
49477         not work.
49478         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
49479         is 1.
49480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
49481         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
49482         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
49483         a non-zero size.
49484         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
49486 2010-01-31  Bruno Haible  <bruno@clisp.org>
49488         Work around getline() bug on FreeBSD 8.0.
49489         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
49490         and a non-zero size.
49491         * tests/test-getline.c (main): Likewise.
49492         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
49493         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
49495 2010-01-28  Eric Blake  <ebb9@byu.net>
49497         regex: fix build failure
49498         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
49499         platforms.
49501 2010-01-28  Jim Meyering  <meyering@redhat.com>
49503         regex: do not ignore memory allocation failure
49504         * lib/regex_internal.c (create_cd_newstate): Detect
49505         re_node_set_init_copy failure.   Extracted from glibc commit
49506         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
49508         regex: sync more white-space changes from libc
49509         * lib/regex_internal.c: White-space only changes.
49510         * lib/regexec.c: Likewise.
49512         regex: add many uses of __attribute_warn_unused_result__
49513         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
49514         * lib/regexec.c: Likewise.
49515         Extracted from a messy glibc commit.
49517         regcomp.c: spelling and merge-artifact from glibc
49518         * lib/regcomp.c: Merge remainder of glibc's
49519         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
49521         regcomp.c: sync white-space changes from glibc
49522         * lib/regcomp.c: Merge to accommodate white space
49523         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
49525         regcomp.c: do not ignore internal return values
49526         * lib/regcomp.c: Do not ignore internal return values.
49527         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
49528         but without its white-space changes and spelling fixes.
49530         regex_internal.h: define __attribute_warn_unused_result__
49531         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
49533         maint: add a syntax-check rule to check for vulnerable Makefile.in
49534         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
49536 2010-01-27  Jim Meyering  <meyering@redhat.com>
49538         ncftpput-ftp: clean up spaces
49539         * build-aux/ncftpput-ftp: Make Copyright line consistent.
49540         Remove trailing blanks.
49542 2010-01-27  Simon Josefsson  <simon@josefsson.org>
49544         * build-aux/git-version-gen: Fix copyright statement.
49545         * build-aux/gnupload: Likewise.
49546         * tests/test-arcfour.c: Likewise.
49547         * tests/test-arctwo.c: Likewise.
49548         * tests/test-count-one-bits.c: Likewise.
49549         * tests/test-crc.c: Likewise.
49550         * tests/test-des.c: Likewise.
49551         * tests/test-gc-arcfour.c: Likewise.
49552         * tests/test-gc-arctwo.c: Likewise.
49553         * tests/test-gc-des.c: Likewise.
49554         * tests/test-gc-hmac-md5.c: Likewise.
49555         * tests/test-gc-hmac-sha1.c: Likewise.
49556         * tests/test-gc-md2.c: Likewise.
49557         * tests/test-gc-md4.c: Likewise.
49558         * tests/test-gc-md5.c: Likewise.
49559         * tests/test-gc-pbkdf2-sha1.c: Likewise.
49560         * tests/test-gc-rijndael.c: Likewise.
49561         * tests/test-gc-sha1.c: Likewise.
49562         * tests/test-gc.c: Likewise.
49563         * tests/test-gethostname.c: Likewise.
49564         * tests/test-gettimeofday.c: Likewise.
49565         * tests/test-hash.c: Likewise.
49566         * tests/test-hmac-md5.c: Likewise.
49567         * tests/test-hmac-sha1.c: Likewise.
49568         * tests/test-md2.c: Likewise.
49569         * tests/test-md4.c: Likewise.
49570         * tests/test-md5.c: Likewise.
49571         * tests/test-memchr.c: Likewise.
49572         * tests/test-memchr2.c: Likewise.
49573         * tests/test-memcmp.c: Likewise.
49574         * tests/test-memmem.c: Likewise.
49575         * tests/test-memrchr.c: Likewise.
49576         * tests/test-rawmemchr.c: Likewise.
49577         * tests/test-read-file.c: Likewise.
49578         * tests/test-rijndael.c: Likewise.
49579         * tests/test-sockets.c: Likewise.
49580         * tests/test-strchrnul.c: Likewise.
49581         * tests/test-strstr.c: Likewise.
49582         * tests/test-strtod.c: Likewise.
49583         * build-aux/ncftpput-ftp: Likewise.
49585 2010-01-26  Eric Blake  <ebb9@byu.net>
49587         ignore-value: update recommended header name
49588         * modules/ignore-value (Include): Only use <> for headers that
49589         exist in glibc.
49591 2010-01-26  Jim Meyering  <meyering@redhat.com>
49593         test-userspec.c: avoid compiler warnings
49594         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
49595         and "initialization discards qualifiers..." warnings.
49596         Put the first "uid" in its own scope, and make char* members "const".
49598 2010-01-25  Bruno Haible  <bruno@clisp.org>
49600         gnulib-tool: Make warning diagnostics consistent.
49601         * gnulib-tool (func_warning): New function.
49602         Use it everywhere where gnulib-tool produces output to stderr and it is
49603         not a fatal error.
49605 2010-01-25  Bruno Haible  <bruno@clisp.org>
49607         Fix test dependencies.
49608         * modules/xstrtol-tests (Depends-on): Add inttypes.
49609         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
49611 2010-01-25  Pádraig Brady  <P@draigBrady.com>
49613         syntax-check: detect incorrect boolean macro values in config.h
49614         * modules/maintainer-makefile (configure.ac): Parameterize the location
49615         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
49616         The logic is from Eric Blake and the location indicated by Jim Meyering.
49617         Note the more natural CONFIG_HEADER name is prohibited by automake
49618         for backwards compatibility reasons.
49619         * top/maint.mk (sc_Wundef_boolean): New rule.
49621 2010-01-25  Jim Meyering  <meyering@redhat.com>
49623         bootstrap: detect MacOS 10.6's shasum, too
49624         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
49625         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
49627 2010-01-23  Jim Meyering  <meyering@redhat.com>
49629         xstrtoll: new module
49630         * modules/xstrtoll: New file.
49631         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
49632         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
49633         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
49634         ./configure fails if you use this module and lack "long long".
49635         * modules/xstrtoll-tests: New module.
49636         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
49637         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
49638         new init.sh-based test framework.
49640 2010-01-24  Bruno Haible  <bruno@clisp.org>
49642         Tests for module 'yn'.
49643         * modules/yn-tests: New file.
49644         * tests/test-yn.c: New file.
49646         Tests for module 'y1'.
49647         * modules/y1-tests: New file.
49648         * tests/test-y1.c: New file.
49650         Tests for module 'y0'.
49651         * modules/y0-tests: New file.
49652         * tests/test-y0.c: New file.
49654         Tests for module 'tanh'.
49655         * modules/tanh-tests: New file.
49656         * tests/test-tanh.c: New file.
49658         Tests for module 'tan'.
49659         * modules/tan-tests: New file.
49660         * tests/test-tan.c: New file.
49662         Tests for module 'sqrt'.
49663         * modules/sqrt-tests: New file.
49664         * tests/test-sqrt.c: New file.
49666         Tests for module 'sinh'.
49667         * modules/sinh-tests: New file.
49668         * tests/test-sinh.c: New file.
49670         Tests for module 'sin'.
49671         * modules/sin-tests: New file.
49672         * tests/test-sin.c: New file.
49674         Tests for module 'rint'.
49675         * modules/rint-tests: New file.
49676         * tests/test-rint.c: New file.
49678         Tests for module 'remainder'.
49679         * modules/remainder-tests: New file.
49680         * tests/test-remainder.c: New file.
49682         Tests for module 'pow'.
49683         * modules/pow-tests: New file.
49684         * tests/test-pow.c: New file.
49686         Tests for module 'nextafter'.
49687         * modules/nextafter-tests: New file.
49688         * tests/test-nextafter.c: New file.
49690         Tests for module 'modf'.
49691         * modules/modf-tests: New file.
49692         * tests/test-modf.c: New file.
49694         Tests for module 'logb'.
49695         * modules/logb-tests: New file.
49696         * tests/test-logb.c: New file.
49698         Tests for module 'log1p'.
49699         * modules/log1p-tests: New file.
49700         * tests/test-log1p.c: New file.
49702         Tests for module 'log10'.
49703         * modules/log10-tests: New file.
49704         * tests/test-log10.c: New file.
49706         Tests for module 'log'.
49707         * modules/log-tests: New file.
49708         * tests/test-log.c: New file.
49710         Tests for module 'lgamma'.
49711         * modules/lgamma-tests: New file.
49712         * tests/test-lgamma.c: New file.
49714         Tests for module 'ldexp'.
49715         * modules/ldexp-tests: New file.
49716         * tests/test-ldexp.c: New file.
49718         Tests for module 'jn'.
49719         * modules/jn-tests: New file.
49720         * tests/test-jn.c: New file.
49722         Tests for module 'j1'.
49723         * modules/j1-tests: New file.
49724         * tests/test-j1.c: New file.
49726         Tests for module 'j0'.
49727         * modules/j0-tests: New file.
49728         * tests/test-j0.c: New file.
49730         Tests for module 'hypot'.
49731         * modules/hypot-tests: New file.
49732         * tests/test-hypot.c: New file.
49734         Tests for module 'fmod'.
49735         * modules/fmod-tests: New file.
49736         * tests/test-fmod.c: New file.
49738         Tests for module 'fabs'.
49739         * modules/fabs-tests: New file.
49740         * tests/test-fabs.c: New file.
49742         Tests for module 'exp'.
49743         * modules/exp-tests: New file.
49744         * tests/test-exp.c: New file.
49746         Tests for module 'erfc'.
49747         * modules/erfc-tests: New file.
49748         * tests/test-erfc.c: New file.
49750         Tests for module 'erf'.
49751         * modules/erf-tests: New file.
49752         * tests/test-erf.c: New file.
49754         Tests for module 'cosh'.
49755         * modules/cosh-tests: New file.
49756         * tests/test-cosh.c: New file.
49758         Tests for module 'cos'.
49759         * modules/cos-tests: New file.
49760         * tests/test-cos.c: New file.
49762         Tests for module 'copysign'.
49763         * modules/copysign-tests: New file.
49764         * tests/test-copysign.c: New file.
49766         Tests for module 'cbrt'.
49767         * modules/cbrt-tests: New file.
49768         * tests/test-cbrt.c: New file.
49770         Tests for module 'atan2'.
49771         * modules/atan2-tests: New file.
49772         * tests/test-atan2.c: New file.
49774         Tests for module 'atan'.
49775         * modules/atan-tests: New file.
49776         * tests/test-atan.c: New file.
49778         Tests for module 'asin'.
49779         * modules/asin-tests: New file.
49780         * tests/test-asin.c: New file.
49782         Tests for module 'acos'.
49783         * modules/acos-tests: New file.
49784         * tests/test-acos.c: New file.
49786 2010-01-24  Bruno Haible  <bruno@clisp.org>
49788         Fix tests for common <math.h> functions.
49789         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
49790         code snippet that references the function pointer, rather than merely
49791         calling the function. Substitute the FUNC_LIBM variable.
49792         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
49793         * modules/acos (configure.ac): Likewise.
49794         * modules/asin (configure.ac): Likewise.
49795         * modules/atan (configure.ac): Likewise.
49796         * modules/atan2 (configure.ac): Likewise.
49797         * modules/cbrt (configure.ac): Likewise.
49798         * modules/copysign (configure.ac): Likewise.
49799         * modules/cos (configure.ac): Likewise.
49800         * modules/cosh (configure.ac): Likewise.
49801         * modules/erf (configure.ac): Likewise.
49802         * modules/erfc (configure.ac): Likewise.
49803         * modules/exp (configure.ac): Likewise.
49804         * modules/fabs (configure.ac): Likewise.
49805         * modules/fmod (configure.ac): Likewise.
49806         * modules/hypot (configure.ac): Likewise.
49807         * modules/j0 (configure.ac): Likewise.
49808         * modules/j1 (configure.ac): Likewise.
49809         * modules/jn (configure.ac): Likewise.
49810         * modules/ldexp (configure.ac): Likewise.
49811         * modules/lgamma (configure.ac): Likewise.
49812         * modules/log (configure.ac): Likewise.
49813         * modules/log10 (configure.ac): Likewise.
49814         * modules/log1p (configure.ac): Likewise.
49815         * modules/logb (configure.ac): Likewise.
49816         * modules/modf (configure.ac): Likewise.
49817         * modules/nextafter (configure.ac): Likewise.
49818         * modules/pow (configure.ac): Likewise.
49819         * modules/remainder (configure.ac): Likewise.
49820         * modules/rint (configure.ac): Likewise.
49821         * modules/sin (configure.ac): Likewise.
49822         * modules/sinh (configure.ac): Likewise.
49823         * modules/tan (configure.ac): Likewise.
49824         * modules/tanh (configure.ac): Likewise.
49825         * modules/y0 (configure.ac): Likewise.
49826         * modules/y1 (configure.ac): Likewise.
49827         * modules/yn (configure.ac): Likewise.
49829 2010-01-24  Bruno Haible  <bruno@clisp.org>
49831         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
49832         * tests/test-acosl.c (x): New variable.
49833         (main): Store argument in x and fetch it from x.
49834         * tests/test-asinl.c (x): New variable.
49835         (main): Store argument in x and fetch it from x.
49836         * tests/test-atanl.c (x): New variable.
49837         (main): Store argument in x and fetch it from x.
49838         * tests/test-cosl.c (x): New variable.
49839         (main): Store argument in x and fetch it from x.
49840         * tests/test-expl.c (x): New variable.
49841         (main): Store argument in x and fetch it from x.
49842         * tests/test-logl.c (x): New variable.
49843         (main): Store argument in x and fetch it from x.
49844         * tests/test-sinl.c (x): New variable.
49845         (main): Store argument in x and fetch it from x.
49846         * tests/test-sqrtl.c (x): New variable.
49847         (main): Store argument in x and fetch it from x.
49848         * tests/test-tanl.c (x): New variable.
49849         (main): Store argument in x and fetch it from x.
49851 2010-01-24  Bruno Haible  <bruno@clisp.org>
49853         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
49854         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
49855         assignments to the initial TESTS_ENVIRONMENT.
49856         * doc/gnulib.texi (Unit test modules): Document it.
49857         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
49858         TESTS_ENVIRONMENT.
49859         * modules/btowc-tests (Makefile.am): Likewise.
49860         * modules/c-stack-tests (Makefile.am): Likewise.
49861         * modules/c-strcase-tests (Makefile.am): Likewise.
49862         * modules/copy-file-tests (Makefile.am): Likewise.
49863         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
49864         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
49865         * modules/mbrtowc-tests (Makefile.am): Likewise.
49866         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49867         * modules/mbscasestr-tests (Makefile.am): Likewise.
49868         * modules/mbschr-tests (Makefile.am): Likewise.
49869         * modules/mbscspn-tests (Makefile.am): Likewise.
49870         * modules/mbsinit-tests (Makefile.am): Likewise.
49871         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49872         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
49873         * modules/mbspbrk-tests (Makefile.am): Likewise.
49874         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49875         * modules/mbsrchr-tests (Makefile.am): Likewise.
49876         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
49877         * modules/mbsspn-tests (Makefile.am): Likewise.
49878         * modules/mbsstr-tests (Makefile.am): Likewise.
49879         * modules/nl_langinfo-tests (Makefile.am): Likewise.
49880         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
49881         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49882         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49883         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49884         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49885         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
49886         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49887         * modules/wcrtomb-tests (Makefile.am): Likewise.
49888         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
49889         * modules/wcsrtombs-tests (Makefile.am): Likewise.
49890         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
49891         assignments from TESTS_ENVIRONMENT.
49892         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
49893         augmentation.
49894         * modules/argp-version-etc-tests (Makefile.am): Likewise.
49895         * modules/atexit-tests (Makefile.am): Likewise.
49896         * modules/binary-io-tests (Makefile.am): Likewise.
49897         * modules/closein-tests (Makefile.am): Likewise.
49898         * modules/dprintf-posix-tests (Makefile.am): Likewise.
49899         * modules/exclude-tests (Makefile.am): Likewise.
49900         * modules/fflush-tests (Makefile.am): Likewise.
49901         * modules/fpending-tests (Makefile.am): Likewise.
49902         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49903         * modules/freadahead-tests (Makefile.am): Likewise.
49904         * modules/freadptr-tests (Makefile.am): Likewise.
49905         * modules/freadseek-tests (Makefile.am): Likewise.
49906         * modules/fseek-tests (Makefile.am): Likewise.
49907         * modules/fseeko-tests (Makefile.am): Likewise.
49908         * modules/ftell-tests (Makefile.am): Likewise.
49909         * modules/ftello-tests (Makefile.am): Likewise.
49910         * modules/idpriv-drop-tests (Makefile.am): Likewise.
49911         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
49912         * modules/lseek-tests (Makefile.am): Likewise.
49913         * modules/parse-duration-tests (Makefile.am): Likewise.
49914         * modules/perror-tests (Makefile.am): Likewise.
49915         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
49916         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
49917         * modules/pipe-tests (Makefile.am): Likewise.
49918         * modules/pread-tests (Makefile.am): Likewise.
49919         * modules/printf-posix-tests (Makefile.am): Likewise.
49920         * modules/select-tests (Makefile.am): Likewise.
49921         * modules/sigpipe-tests (Makefile.am): Likewise.
49922         * modules/tsearch-tests (Makefile.am): Likewise.
49923         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
49924         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
49925         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49926         * modules/uniwidth/width-tests (Makefile.am): Likewise.
49927         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
49928         * modules/version-etc-tests (Makefile.am): Likewise.
49929         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49930         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49931         * modules/xalloc-die-tests (Makefile.am): Likewise.
49932         * modules/xprintf-posix-tests (Makefile.am): Likewise.
49933         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49934         * modules/xstrtol-tests (Makefile.am): Likewise.
49935         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49936         * modules/yesno-tests (Makefile.am): Likewise.
49937         Suggested by Jim Meyering.
49939 2010-01-24  Bruno Haible  <bruno@clisp.org>
49941         More documentation.
49942         * doc/gnulib.texi (Writing modules): New chapter.
49943         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
49944         the new chapter.
49946 2010-01-24  Jim Meyering  <meyering@redhat.com>
49948         maint.mk: do not prepend "./" after filtering
49949         * top/maint.mk (_prepend_srcdir_prefix): New variable
49950         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
49951         "./" when $(srcdir) is ".".
49953         define STREQ(a,b) consistently, removing useless parentheses
49954         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
49955         since the only risk is that "a" or "b" contains an unparenthesized
49956         comma, but if either did that, STREQ would have 3 or more arguments.
49957         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
49958         * lib/fts.c (STREQ): Remove unnecessary parentheses.
49959         * lib/hash-triple.c (STREQ): Likewise.
49960         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
49961         * lib/getugroups.c (STREQ): Likewise.
49963 2010-01-23  Jim Meyering  <meyering@redhat.com>
49965         maint.mk: fix syntax-check in a non-srcdir build directory
49966         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
49967         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
49969 2010-01-22  Jim Meyering  <meyering@redhat.com>
49971         userspec: add unit tests
49972         * tests/test-userspec.c: New file.
49973         * modules/userspec-tests: Likewise.
49975 2010-01-21  Jim Meyering  <meyering@redhat.com>
49977         maint.mk: handle source file names containing "." robustly
49978         * top/maint.mk (_dot_escaped_srcdir): Define.
49979         (VC_LIST): Use it in LHS of sed substitution.
49981 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
49983         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
49984         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
49985         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
49986         from a non-srcdir build.
49988 2010-01-20  Eric Blake  <ebb9@byu.net>
49990         warn-on-use: use instead of link-warning
49991         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
49992         * modules/unistd (Depends-on, Makefile.am): Likewise.
49993         * modules/arpa_inet (Depends-on): Replace link-warning with
49994         warn-on-use.
49995         (Makefile.am): Update rules accordingly.
49996         * modules/ctype (Depends-on, Makefile.am): Likewise.
49997         * modules/dirent (Depends-on, Makefile.am): Likewise.
49998         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
49999         * modules/inttypes (Depends-on, Makefile.am): Likewise.
50000         * modules/langinfo (Depends-on, Makefile.am): Likewise.
50001         * modules/locale (Depends-on, Makefile.am): Likewise.
50002         * modules/math (Depends-on, Makefile.am): Likewise.
50003         * modules/search (Depends-on, Makefile.am): Likewise.
50004         * modules/signal (Depends-on, Makefile.am): Likewise.
50005         * modules/spawn (Depends-on, Makefile.am): Likewise.
50006         * modules/stdlib (Depends-on, Makefile.am): Likewise.
50007         * modules/string (Depends-on, Makefile.am): Likewise.
50008         * modules/strings (Depends-on, Makefile.am): Likewise.
50009         * modules/sys_file (Depends-on, Makefile.am): Likewise.
50010         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
50011         * modules/sys_select (Depends-on, Makefile.am): Likewise.
50012         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
50013         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
50014         * modules/sys_times (Depends-on, Makefile.am): Likewise.
50015         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
50016         * modules/wchar (Depends-on, Makefile.am): Likewise.
50017         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
50018         should be poisoned.
50019         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
50020         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
50021         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
50022         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50023         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
50024         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50025         * m4/math_h.m4 (gl_MATH_H): Likewise.
50026         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50027         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50028         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
50029         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50030         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50031         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50032         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50033         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
50034         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
50035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50036         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50037         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50038         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
50039         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50040         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50041         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50042         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
50043         GL_LINK_WARNING.
50044         * lib/ctype.in.h: Likewise.
50045         * lib/dirent.in.h: Likewise.
50046         * lib/fcntl.in.h: Likewise.
50047         * lib/inttypes.in.h: Likewise.
50048         * lib/langinfo.in.h: Likewise.
50049         * lib/locale.in.h: Likewise.
50050         * lib/math.in.h: Likewise.
50051         * lib/search.in.h: Likewise.
50052         * lib/signal.in.h: Likewise.
50053         * lib/spawn.in.h: Likewise.
50054         * lib/stdio.in.h: Likewise.
50055         * lib/stdlib.in.h: Likewise.
50056         * lib/string.in.h: Likewise.
50057         * lib/strings.in.h: Likewise.
50058         * lib/sys_file.in.h: Likewise.
50059         * lib/sys_ioctl.in.h: Likewise.
50060         * lib/sys_select.in.h: Likewise.
50061         * lib/sys_socket.in.h: Likewise.
50062         * lib/sys_stat.in.h: Likewise.
50063         * lib/sys_times.in.h: Likewise.
50064         * lib/sys_utsname.in.h: Likewise.
50065         * lib/unistd.in.h: Likewise.
50066         * lib/wchar.in.h: Likewise.
50068 2010-01-20  Bruno Haible  <bruno@clisp.org>
50070         Avoid duplicate -lm.
50071         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
50072         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
50073         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
50074         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
50075         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
50076         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
50077         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
50078         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
50079         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
50080         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
50081         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
50082         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
50083         Reported by Paolo Bonzini.
50085 2010-01-19  Bruno Haible  <bruno@clisp.org>
50087         langinfo, nl_langinfo: Relicense under LGPLv2+.
50088         * modules/langinfo (License): Change to LGPLv2+.
50089         * modules/nl_langinfo (License): Likewise.
50090         Patch by David Lutterkort <lutter@redhat.com>.
50092 2010-01-19  Bruno Haible  <bruno@clisp.org>
50094         Avoid compilation error with cc on OSF/1 5.1.
50095         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
50096         statement, not before.
50097         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50099 2010-01-18  Bruno Haible  <bruno@clisp.org>
50101         Avoid a link error due to the __printf__ symbol.
50102         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
50103         and 2.6.x.
50104         (__format__, __printf__): Remove definitions.
50105         * lib/argp-fmtstream.h: Likewise.
50106         * lib/argp.h: Likewise.
50107         * lib/error.h: Likewise.
50108         * lib/vasnprintf.h: Likewise.
50109         * lib/xprintf.h: Likewise.
50110         * lib/xvasprintf.h: Likewise.
50111         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50113 2010-01-18  Bruno Haible  <bruno@clisp.org>
50115         Tests for module 'tanl'.
50116         * modules/tanl-tests: New file.
50117         * tests/test-tanl.c: New file.
50119         Tests for module 'sqrtl'.
50120         * modules/sqrtl-tests: New file.
50121         * tests/test-sqrtl.c: New file.
50123         Tests for module 'sinl'.
50124         * modules/sinl-tests: New file.
50125         * tests/test-sinl.c: New file.
50127         Tests for module 'logl'.
50128         * modules/logl-tests: New file.
50129         * tests/test-logl.c: New file.
50131         Tests for module 'expl'.
50132         * modules/expl-tests: New file.
50133         * tests/test-expl.c: New file.
50135         Tests for module 'cosl'.
50136         * modules/cosl-tests: New file.
50137         * tests/test-cosl.c: New file.
50139         Tests for module 'atanl'.
50140         * modules/atanl-tests: New file.
50141         * tests/test-atanl.c: New file.
50143         Tests for module 'asinl'.
50144         * modules/asinl-tests: New file.
50145         * tests/test-asinl.c: New file.
50147         Tests for module 'acosl'.
50148         * modules/acosl-tests: New file.
50149         * tests/test-acosl.c: New file.
50151         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
50152         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
50153         tanl): Use the standard gnulib idiom.
50154         * lib/cosl.c: Don't include trigl.c and sincosl.c.
50155         * lib/sinl.c: Likewise.
50156         * lib/tanl.c: Don't include trigl.c.
50157         (kernel_tanl): Make static.
50158         * lib/sincosl.c: Include trigl.h first.
50159         * lib/trigl.c: Likewise.
50160         * m4/acosl.m4: New file.
50161         * m4/asinl.m4: New file.
50162         * m4/atanl.m4: New file.
50163         * m4/cosl.m4: New file.
50164         * m4/expl.m4: New file.
50165         * m4/logl.m4: New file.
50166         * m4/sinl.m4: New file.
50167         * m4/sqrtl.m4: New file.
50168         * m4/tanl.m4: New file.
50169         * m4/mathl.m4: Remove file.
50170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
50171         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
50172         Don't initialize GNULIB_MATHL.
50173         * modules/acosl: New file.
50174         * modules/asinl: New file.
50175         * modules/atanl: New file.
50176         * modules/cosl: New file.
50177         * modules/expl: New file.
50178         * modules/logl: New file.
50179         * modules/sinl: New file.
50180         * modules/sqrtl: New file.
50181         * modules/tanl: New file.
50182         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
50183         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
50184         substitute GNULIB_MATHL.
50185         * modules/mathl: Rewritten.
50186         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
50187         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
50188         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
50189         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
50190         * doc/posix-functions/expl.texi: Mention the 'expl' module.
50191         * doc/posix-functions/logl.texi: Mention the 'logl' module.
50192         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
50193         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
50194         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
50196 2010-01-18  Bruno Haible  <bruno@clisp.org>
50198         sqrt: Make gl_FUNC_SQRT requirable.
50199         * m4/sqrt.m4: New file.
50200         * modules/sqrt (Files): Add it.
50201         (configure.ac): Invoke gl_FUNC_SQRT.
50203 2010-01-18  Bruno Haible  <bruno@clisp.org>
50205         New modules for common <math.h> functions.
50206         * m4/mathfunc.m4: New file.
50207         * modules/acos: New file.
50208         * modules/asin: New file.
50209         * modules/atan: New file.
50210         * modules/atan2: New file.
50211         * modules/cbrt: New file.
50212         * modules/copysign: New file.
50213         * modules/cos: New file.
50214         * modules/cosh: New file.
50215         * modules/erf: New file.
50216         * modules/erfc: New file.
50217         * modules/exp: New file.
50218         * modules/fabs: New file.
50219         * modules/fmod: New file.
50220         * modules/hypot: New file.
50221         * modules/j0: New file.
50222         * modules/j1: New file.
50223         * modules/jn: New file.
50224         * modules/ldexp: New file.
50225         * modules/lgamma: New file.
50226         * modules/log: New file.
50227         * modules/log10: New file.
50228         * modules/log1p: New file.
50229         * modules/logb: New file.
50230         * modules/modf: New file.
50231         * modules/nextafter: New file.
50232         * modules/pow: New file.
50233         * modules/remainder: New file.
50234         * modules/rint: New file.
50235         * modules/sin: New file.
50236         * modules/sinh: New file.
50237         * modules/sqrt: New file.
50238         * modules/tan: New file.
50239         * modules/tanh: New file.
50240         * modules/y0: New file.
50241         * modules/y1: New file.
50242         * modules/yn: New file.
50243         * doc/posix-functions/acos.texi: Mention the 'acos' module.
50244         * doc/posix-functions/asin.texi: Mention the 'asin' module.
50245         * doc/posix-functions/atan.texi: Mention the 'atan' module.
50246         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
50247         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
50248         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
50249         * doc/posix-functions/cos.texi: Mention the 'cos' module.
50250         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
50251         * doc/posix-functions/erf.texi: Mention the 'erf' module.
50252         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
50253         * doc/posix-functions/exp.texi: Mention the 'exp' module.
50254         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
50255         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
50256         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
50257         * doc/posix-functions/j0.texi: Mention the 'j0' module.
50258         * doc/posix-functions/j1.texi: Mention the 'j1' module.
50259         * doc/posix-functions/jn.texi: Mention the 'jn' module.
50260         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
50261         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
50262         * doc/posix-functions/log.texi: Mention the 'log' module.
50263         * doc/posix-functions/log10.texi: Mention the 'log10' module.
50264         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
50265         * doc/posix-functions/logb.texi: Mention the 'logb' module.
50266         * doc/posix-functions/modf.texi: Mention the 'modf' module.
50267         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
50268         * doc/posix-functions/pow.texi: Mention the 'pow' module.
50269         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
50270         * doc/posix-functions/rint.texi: Mention the 'rint' module.
50271         * doc/posix-functions/sin.texi: Mention the 'sin' module.
50272         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
50273         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
50274         * doc/posix-functions/tan.texi: Mention the 'tan' module.
50275         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
50276         * doc/posix-functions/y0.texi: Mention the 'y0' module.
50277         * doc/posix-functions/y1.texi: Mention the 'y1' module.
50278         * doc/posix-functions/yn.texi: Mention the 'yn' module.
50280 2010-01-18  Jim Meyering  <meyering@redhat.com>
50282         ignore-value: relax license to LGPLv2+
50283         * modules/ignore-value (License): Relax to LGPLv2+.
50285         getdate: don't leak when TZ contains two or more '"'s
50286         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
50287         double quote in TZ after the first one.
50289         readtokens: do not leak internal token_lengths buffer
50290         * lib/readtokens.c (readtokens): Free the local, lengths,
50291         when the supplied "token_lengths" parameter is NULL.
50293 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50295         Fix a couple of missing LIBTHREAD link failures on AIX.
50296         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
50297         $(LIBTHREAD).
50298         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
50300         Link test-poll against INET_PTON_LIB.
50301         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
50302         for inet_pton on Solaris 10.
50304 2010-01-17  Bruno Haible  <bruno@clisp.org>
50306         unistdio/*-sprintf: Fix typo in module description.
50307         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
50308         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
50309         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
50310         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
50311         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
50312         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
50313         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
50314         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50316 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50318         gnulib-tool: fix filelist for AIX, HP-UX ksh.
50319         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
50320         variables in shell case patterns, for AIX and HP-UX ksh.
50322         Split large sed scripts, for HP-UX sed.
50323         * modules/stdio: Split sed scripts around 50 sed commands,
50324         to avoid HP-UX limit of 99 commands, in the near future.
50325         * modules/string: Likewise.
50326         * modules/unistd: Likewise.
50328         gnulib-tool: avoid writing in the current directory.
50329         * gnulib-tool (func_emit_lib_Makefile_am)
50330         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
50331         not in the current directory, so concurrent gnulib-tool
50332         instances do not interfere.
50334 2010-01-16  Jim Meyering  <meyering@redhat.com>
50336         doc: update users.txt
50337         * users.txt: Add grep.
50338         (diffutils, gzip): Update URLs.
50340 2010-01-12  Bruno Haible  <bruno@clisp.org>
50342         posix_spawn: Avoid test failure on Cygwin.
50343         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
50344         characters.
50345         Reported by Simon Josefsson.
50347 2010-01-12  Bruno Haible  <bruno@clisp.org>
50349         * tests/test-cond.c (main): When skipping the test, show the reason.
50351 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50353         * lib/striconv.c (str_cd_iconv): Avoid if before free.
50355 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50357         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
50358         VC_LIST_ALWAYS_EXCLUDE_REGEX.
50360 2010-01-12  Eric Blake  <ebb9@byu.net>
50362         build: guarantee AS_VAR_IF
50363         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
50364         (gl_AS_VAR_IF): Move...
50365         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
50366         Reported by Simon Josefsson.
50368 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50370         * lib/stdio.in.h: Fix typo.
50372 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50374         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
50375         libgpg-error.
50377 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50379         * tests/test-xalloc-die.sh: Use $EXEEXT.
50381 2010-01-12  Simon Josefsson  <simon@josefsson.org>
50382             Bruno Haible  <bruno@clisp.org>
50384         getlogin, getlogin_r: Avoid test failure.
50385         * tests/test-getlogin.c: Include <stdio.h>.
50386         (main): Skip the test when the function fails because stdin is not a
50387         tty.
50388         * tests/test-getlogin_r.c: Include <stdio.h>.
50389         (main): Skip the test when the function fails because stdin is not a
50390         tty.
50392 2010-01-11  Eric Blake  <ebb9@byu.net>
50394         tests: avoid more large file warnings
50395         * tests/test-fflush.c: Avoid warning about ftell use.
50396         * tests/test-fseek.c: Avoid warning about fseek use.
50398 2010-01-10  Bruno Haible  <bruno@clisp.org>
50400         nproc: Work better on Linux when /proc and /sys are not mounted.
50401         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
50402         as lower bound when, on glibc/Linux systems,
50403         sysconf (_SC_NPROCESSORS_CONF) returns 1.
50404         Suggested by Pádraig Brady <P@draigbrady.com>.
50405         Reported by Dmitry V. Levin <ldv@altlinux.org>.
50407         nproc: Refactor.
50408         * lib/nproc.c (num_processors_via_affinity_mask): New function,
50409         extracted from num_processors.
50410         (num_processors): Call it.
50412 2010-01-11  Jim Meyering  <meyering@redhat.com>
50414         utimecmp: avoid new warning from upcoming gcc-4.5.0
50415         * lib/utimecmp.c (BILLION): Define using #define rather than an
50416         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
50418 2010-01-11  Eric Blake  <ebb9@byu.net>
50420         math: add portability warnings for classification macros
50421         * modules/math (Depends-on): Add warn-on-use.
50422         (Makefile.am): Provide new substitutions.
50423         * m4/math_h.m4 (gl_MATH_H): Require inline.
50424         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
50425         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
50426         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
50427         implement warnings.
50429         unistd: warn on use of environ without module
50430         * modules/unistd (Depends-on): Add warn-on-use.
50431         (Makefile.am): Provide new substitutions.
50432         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
50433         * lib/unistd.in.h (environ): Wrap with a warning helper function.
50435         stdio: warn on suspicious uses
50436         * modules/stdio (Depends-on): Add warn-on-use.
50437         (Makefile.am): Provide new substitutions.
50438         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
50439         fseeko.
50440         * lib/stdio.in.h (gets): Always warn on use.
50441         (fseek, ftell): Adjust when warnings are issued, and honor
50442         _GL_NO_LARGE_FILES as a way to silence the warning.
50443         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
50444         any warning about large file offsets.
50445         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
50446         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
50447         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
50448         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
50449         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
50450         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
50451         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
50452         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
50454         warn-on-use: new module
50455         * modules/warn-on-use: New file.
50456         * build-aux/warn-on-use.h: Likewise.
50457         * m4/warn-on-use.m4: Likewise.
50458         * MODULES.html.sh (Support for building): Mention it.
50460 2010-01-10  Bruno Haible  <bruno@clisp.org>
50462         Tests for module 'unistr/u32-strdup'.
50463         * modules/unistr/u32-strdup-tests: New file.
50464         * tests/unistr/test-u32-strdup.c: New file.
50466         Tests for module 'unistr/u16-strdup'.
50467         * modules/unistr/u16-strdup-tests: New file.
50468         * tests/unistr/test-u16-strdup.c: New file.
50470         Tests for module 'unistr/u8-strdup'.
50471         * modules/unistr/u8-strdup-tests: New file.
50472         * tests/unistr/test-u8-strdup.c: New file.
50473         * tests/unistr/test-strdup.h: New file.
50475         Tests for module 'unistr/u32-strncmp'.
50476         * modules/unistr/u32-strncmp-tests: New file.
50477         * tests/unistr/test-u32-strncmp.c: New file.
50479         Tests for module 'unistr/u16-strncmp'.
50480         * modules/unistr/u16-strncmp-tests: New file.
50481         * tests/unistr/test-u16-strncmp.c: New file.
50483         Tests for module 'unistr/u8-strncmp'.
50484         * modules/unistr/u8-strncmp-tests: New file.
50485         * tests/unistr/test-u8-strncmp.c: New file.
50486         * tests/unistr/test-strncmp.h: New file.
50488         Tests for module 'unistr/u32-strcoll'.
50489         * modules/unistr/u32-strcoll-tests: New file.
50490         * tests/unistr/test-u32-strcoll.c: New file.
50492         Tests for module 'unistr/u16-strcoll'.
50493         * modules/unistr/u16-strcoll-tests: New file.
50494         * tests/unistr/test-u16-strcoll.c: New file.
50496         Tests for module 'unistr/u8-strcoll'.
50497         * modules/unistr/u8-strcoll-tests: New file.
50498         * tests/unistr/test-u8-strcoll.c: New file.
50500         Tests for module 'unistr/u32-strcmp'.
50501         * modules/unistr/u32-strcmp-tests: New file.
50502         * tests/unistr/test-u32-strcmp.c: New file.
50503         * tests/unistr/test-u32-strcmp.h: New file.
50505         Tests for module 'unistr/u16-strcmp'.
50506         * modules/unistr/u16-strcmp-tests: New file.
50507         * tests/unistr/test-u16-strcmp.c: New file.
50508         * tests/unistr/test-u16-strcmp.h: New file.
50510         Tests for module 'unistr/u8-strcmp'.
50511         * modules/unistr/u8-strcmp-tests: New file.
50512         * tests/unistr/test-u8-strcmp.c: New file.
50513         * tests/unistr/test-u8-strcmp.h: New file.
50514         * tests/unistr/test-strcmp.h: New file.
50516         Tests for module 'unistr/u32-strncat'.
50517         * modules/unistr/u32-strncat-tests: New file.
50518         * tests/unistr/test-u32-strncat.c: New file.
50520         Tests for module 'unistr/u16-strncat'.
50521         * modules/unistr/u16-strncat-tests: New file.
50522         * tests/unistr/test-u16-strncat.c: New file.
50524         Tests for module 'unistr/u8-strncat'.
50525         * modules/unistr/u8-strncat-tests: New file.
50526         * tests/unistr/test-u8-strncat.c: New file.
50527         * tests/unistr/test-strncat.h: New file.
50529         Tests for module 'unistr/u32-strcat'.
50530         * modules/unistr/u32-strcat-tests: New file.
50531         * tests/unistr/test-u32-strcat.c: New file.
50533         Tests for module 'unistr/u16-strcat'.
50534         * modules/unistr/u16-strcat-tests: New file.
50535         * tests/unistr/test-u16-strcat.c: New file.
50537         Tests for module 'unistr/u8-strcat'.
50538         * modules/unistr/u8-strcat-tests: New file.
50539         * tests/unistr/test-u8-strcat.c: New file.
50540         * tests/unistr/test-strcat.h: New file.
50542         Tests for module 'unistr/u32-stpncpy'.
50543         * modules/unistr/u32-stpncpy-tests: New file.
50544         * tests/unistr/test-u32-stpncpy.c: New file.
50546         Tests for module 'unistr/u16-stpncpy'.
50547         * modules/unistr/u16-stpncpy-tests: New file.
50548         * tests/unistr/test-u16-stpncpy.c: New file.
50550         Tests for module 'unistr/u8-stpncpy'.
50551         * modules/unistr/u8-stpncpy-tests: New file.
50552         * tests/unistr/test-u8-stpncpy.c: New file.
50553         * tests/unistr/test-stpncpy.h: New file.
50555         Tests for module 'unistr/u32-strncpy'.
50556         * modules/unistr/u32-strncpy-tests: New file.
50557         * tests/unistr/test-u32-strncpy.c: New file.
50559         Tests for module 'unistr/u16-strncpy'.
50560         * modules/unistr/u16-strncpy-tests: New file.
50561         * tests/unistr/test-u16-strncpy.c: New file.
50563         Tests for module 'unistr/u8-strncpy'.
50564         * modules/unistr/u8-strncpy-tests: New file.
50565         * tests/unistr/test-u8-strncpy.c: New file.
50566         * tests/unistr/test-strncpy.h: New file.
50568         Tests for module 'unistr/u32-stpcpy'.
50569         * modules/unistr/u32-stpcpy-tests: New file.
50570         * tests/unistr/test-u32-stpcpy.c: New file.
50572         Tests for module 'unistr/u16-stpcpy'.
50573         * modules/unistr/u16-stpcpy-tests: New file.
50574         * tests/unistr/test-u16-stpcpy.c: New file.
50576         Tests for module 'unistr/u8-stpcpy'.
50577         * modules/unistr/u8-stpcpy-tests: New file.
50578         * tests/unistr/test-u8-stpcpy.c: New file.
50579         * tests/unistr/test-stpcpy.h: New file.
50581         Tests for module 'unistr/u32-strcpy'.
50582         * modules/unistr/u32-strcpy-tests: New file.
50583         * tests/unistr/test-u32-strcpy.c: New file.
50585         Tests for module 'unistr/u16-strcpy'.
50586         * modules/unistr/u16-strcpy-tests: New file.
50587         * tests/unistr/test-u16-strcpy.c: New file.
50589         Tests for module 'unistr/u8-strcpy'.
50590         * modules/unistr/u8-strcpy-tests: New file.
50591         * tests/unistr/test-u8-strcpy.c: New file.
50592         * tests/unistr/test-strcpy.h: New file.
50594         Tests for module 'unistr/u32-strnlen'.
50595         * modules/unistr/u32-strnlen-tests: New file.
50596         * tests/unistr/test-u32-strnlen.c: New file.
50598         Tests for module 'unistr/u16-strnlen'.
50599         * modules/unistr/u16-strnlen-tests: New file.
50600         * tests/unistr/test-u16-strnlen.c: New file.
50602         Tests for module 'unistr/u8-strnlen'.
50603         * modules/unistr/u8-strnlen-tests: New file.
50604         * tests/unistr/test-u8-strnlen.c: New file.
50605         * tests/unistr/test-strnlen.h: New file.
50607         Tests for module 'unistr/u32-strlen'.
50608         * modules/unistr/u32-strlen-tests: New file.
50609         * tests/unistr/test-u32-strlen.c: New file.
50611         Tests for module 'unistr/u16-strlen'.
50612         * modules/unistr/u16-strlen-tests: New file.
50613         * tests/unistr/test-u16-strlen.c: New file.
50615         Tests for module 'unistr/u8-strlen'.
50616         * modules/unistr/u8-strlen-tests: New file.
50617         * tests/unistr/test-u8-strlen.c: New file.
50619         Tests for module 'unistr/u32-prev'.
50620         * modules/unistr/u32-prev-tests: New file.
50621         * tests/unistr/test-u32-prev.c: New file.
50623         Tests for module 'unistr/u16-prev'.
50624         * modules/unistr/u16-prev-tests: New file.
50625         * tests/unistr/test-u16-prev.c: New file.
50627         Tests for module 'unistr/u8-prev'.
50628         * modules/unistr/u8-prev-tests: New file.
50629         * tests/unistr/test-u8-prev.c: New file.
50631         Tests for module 'unistr/u32-next'.
50632         * modules/unistr/u32-next-tests: New file.
50633         * tests/unistr/test-u32-next.c: New file.
50635         Tests for module 'unistr/u16-next'.
50636         * modules/unistr/u16-next-tests: New file.
50637         * tests/unistr/test-u16-next.c: New file.
50639         Tests for module 'unistr/u8-next'.
50640         * modules/unistr/u8-next-tests: New file.
50641         * tests/unistr/test-u8-next.c: New file.
50643         Tests for module 'unistr/u32-strmbtouc'.
50644         * modules/unistr/u32-strmbtouc-tests: New file.
50645         * tests/unistr/test-u32-strmbtouc.c: New file.
50647         Tests for module 'unistr/u16-strmbtouc'.
50648         * modules/unistr/u16-strmbtouc-tests: New file.
50649         * tests/unistr/test-u16-strmbtouc.c: New file.
50651         Tests for module 'unistr/u8-strmbtouc'.
50652         * modules/unistr/u8-strmbtouc-tests: New file.
50653         * tests/unistr/test-u8-strmbtouc.c: New file.
50655         Tests for module 'unistr/u32-strmblen'.
50656         * modules/unistr/u32-strmblen-tests: New file.
50657         * tests/unistr/test-u32-strmblen.c: New file.
50659         Tests for module 'unistr/u16-strmblen'.
50660         * modules/unistr/u16-strmblen-tests: New file.
50661         * tests/unistr/test-u16-strmblen.c: New file.
50663         Tests for module 'unistr/u8-strmblen'.
50664         * modules/unistr/u8-strmblen-tests: New file.
50665         * tests/unistr/test-u8-strmblen.c: New file.
50667         Tests for module 'unistr/u32-cpy-alloc'.
50668         * modules/unistr/u32-cpy-alloc-tests: New file.
50669         * tests/unistr/test-u32-cpy-alloc.c: New file.
50671         Tests for module 'unistr/u16-cpy-alloc'.
50672         * modules/unistr/u16-cpy-alloc-tests: New file.
50673         * tests/unistr/test-u16-cpy-alloc.c: New file.
50675         Tests for module 'unistr/u8-cpy-alloc'.
50676         * modules/unistr/u8-cpy-alloc-tests: New file.
50677         * tests/unistr/test-u8-cpy-alloc.c: New file.
50678         * tests/unistr/test-cpy-alloc.h: New file.
50680         Tests for module 'unistr/u32-mbsnlen'.
50681         * modules/unistr/u32-mbsnlen-tests: New file.
50682         * tests/unistr/test-u32-mbsnlen.c: New file.
50684         Tests for module 'unistr/u16-mbsnlen'.
50685         * modules/unistr/u16-mbsnlen-tests: New file.
50686         * tests/unistr/test-u16-mbsnlen.c: New file.
50688         Tests for module 'unistr/u8-mbsnlen'.
50689         * modules/unistr/u8-mbsnlen-tests: New file.
50690         * tests/unistr/test-u8-mbsnlen.c: New file.
50692         Tests for module 'unistr/u32-chr'.
50693         * modules/unistr/u32-chr-tests: New file.
50694         * tests/unistr/test-u32-chr.c: New file.
50696         Tests for module 'unistr/u16-chr'.
50697         * modules/unistr/u16-chr-tests: New file.
50698         * tests/unistr/test-u16-chr.c: New file.
50700         Tests for module 'unistr/u8-chr'.
50701         * modules/unistr/u8-chr-tests: New file.
50702         * tests/unistr/test-u8-chr.c: New file.
50703         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
50705         Tests for module 'unistr/u32-cmp2'.
50706         * modules/unistr/u32-cmp2-tests: New file.
50707         * tests/unistr/test-u32-cmp2.c: New file.
50709         Tests for module 'unistr/u16-cmp2'.
50710         * modules/unistr/u16-cmp2-tests: New file.
50711         * tests/unistr/test-u16-cmp2.c: New file.
50713         Tests for module 'unistr/u8-cmp2'.
50714         * modules/unistr/u8-cmp2-tests: New file.
50715         * tests/unistr/test-u8-cmp2.c: New file.
50716         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
50718         Tests for module 'unistr/u32-cmp'.
50719         * modules/unistr/u32-cmp-tests: New file.
50720         * tests/unistr/test-u32-cmp.c: New file.
50722         Tests for module 'unistr/u16-cmp'.
50723         * modules/unistr/u16-cmp-tests: New file.
50724         * tests/unistr/test-u16-cmp.c: New file.
50726         Tests for module 'unistr/u8-cmp'.
50727         * modules/unistr/u8-cmp-tests: New file.
50728         * tests/unistr/test-u8-cmp.c: New file.
50729         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
50731         Tests for module 'unistr/u32-set'.
50732         * modules/unistr/u32-set-tests: New file.
50733         * tests/unistr/test-u32-set.c: New file.
50735         Tests for module 'unistr/u16-set'.
50736         * modules/unistr/u16-set-tests: New file.
50737         * tests/unistr/test-u16-set.c: New file.
50739         Tests for module 'unistr/u8-set'.
50740         * modules/unistr/u8-set-tests: New file.
50741         * tests/unistr/test-u8-set.c: New file.
50742         * tests/unistr/test-set.h: New file.
50744         Tests for module 'unistr/u32-move'.
50745         * modules/unistr/u32-move-tests: New file.
50746         * tests/unistr/test-u32-move.c: New file.
50748         Tests for module 'unistr/u16-move'.
50749         * modules/unistr/u16-move-tests: New file.
50750         * tests/unistr/test-u16-move.c: New file.
50752         Tests for module 'unistr/u8-move'.
50753         * modules/unistr/u8-move-tests: New file.
50754         * tests/unistr/test-u8-move.c: New file.
50755         * tests/unistr/test-move.h: New file.
50757         Tests for module 'unistr/u32-cpy'.
50758         * modules/unistr/u32-cpy-tests: New file.
50759         * tests/unistr/test-u32-cpy.c: New file.
50761         Tests for module 'unistr/u16-cpy'.
50762         * modules/unistr/u16-cpy-tests: New file.
50763         * tests/unistr/test-u16-cpy.c: New file.
50765         Tests for module 'unistr/u8-cpy'.
50766         * modules/unistr/u8-cpy-tests: New file.
50767         * tests/unistr/test-u8-cpy.c: New file.
50768         * tests/unistr/test-cpy.h: New file.
50770 2010-01-09  Bruno Haible  <bruno@clisp.org>
50772         Tests for module 'unistr/u32-uctomb'.
50773         * modules/unistr/u32-uctomb-tests: New file.
50774         * tests/unistr/test-u32-uctomb.c: New file.
50776         Tests for module 'unistr/u16-uctomb'.
50777         * modules/unistr/u16-uctomb-tests: New file.
50778         * tests/unistr/test-u16-uctomb.c: New file.
50780         Tests for module 'unistr/u8-uctomb'.
50781         * modules/unistr/u8-uctomb-tests: New file.
50782         * tests/unistr/test-u8-uctomb.c: New file.
50784         Tests for module 'unistr/u32-mbtoucr'.
50785         * modules/unistr/u32-mbtoucr-tests: New file.
50786         * tests/unistr/test-u32-mbtoucr.c: New file.
50788         Tests for module 'unistr/u16-mbtoucr'.
50789         * modules/unistr/u16-mbtoucr-tests: New file.
50790         * tests/unistr/test-u16-mbtoucr.c: New file.
50792         Tests for module 'unistr/u8-mbtoucr'.
50793         * modules/unistr/u8-mbtoucr-tests: New file.
50794         * tests/unistr/test-u8-mbtoucr.c: New file.
50796         Tests for module 'unistr/u32-mbtouc'.
50797         * modules/unistr/u32-mbtouc-tests: New file.
50798         * tests/unistr/test-u32-mbtouc.c: New file.
50800         Tests for module 'unistr/u16-mbtouc'.
50801         * modules/unistr/u16-mbtouc-tests: New file.
50802         * tests/unistr/test-u16-mbtouc.c: New file.
50804         Tests for module 'unistr/u8-mbtouc'.
50805         * modules/unistr/u8-mbtouc-tests: New file.
50806         * tests/unistr/test-u8-mbtouc.c: New file.
50808         Tests for module 'unistr/u32-mbtouc-unsafe'.
50809         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
50810         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
50811         * tests/unistr/test-u32-mbtouc.h: New file.
50813         Tests for module 'unistr/u16-mbtouc-unsafe'.
50814         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
50815         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
50816         * tests/unistr/test-u16-mbtouc.h: New file.
50818         Tests for module 'unistr/u8-mbtouc-unsafe'.
50819         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
50820         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
50821         * tests/unistr/test-u8-mbtouc.h: New file.
50823         Tests for module 'unistr/u32-mblen'.
50824         * modules/unistr/u32-mblen-tests: New file.
50825         * tests/unistr/test-u32-mblen.c: New file.
50827         Tests for module 'unistr/u16-mblen'.
50828         * modules/unistr/u16-mblen-tests: New file.
50829         * tests/unistr/test-u16-mblen.c: New file.
50831         Tests for module 'unistr/u8-mblen'.
50832         * modules/unistr/u8-mblen-tests: New file.
50833         * tests/unistr/test-u8-mblen.c: New file.
50835         Tests for module 'unistr/u32-to-u16'.
50836         * modules/unistr/u32-to-u16-tests: New file.
50837         * tests/unistr/test-u32-to-u16.c: New file.
50839         Tests for module 'unistr/u32-to-u8'.
50840         * modules/unistr/u32-to-u8-tests: New file.
50841         * tests/unistr/test-u32-to-u8.c: New file.
50843         Tests for module 'unistr/u16-to-u32'.
50844         * modules/unistr/u16-to-u32-tests: New file.
50845         * tests/unistr/test-u16-to-u32.c: New file.
50847         Tests for module 'unistr/u16-to-u8'.
50848         * modules/unistr/u16-to-u8-tests: New file.
50849         * tests/unistr/test-u16-to-u8.c: New file.
50851         Tests for module 'unistr/u8-to-u32'.
50852         * modules/unistr/u8-to-u32-tests: New file.
50853         * tests/unistr/test-u8-to-u32.c: New file.
50855         Tests for module 'unistr/u8-to-u16'.
50856         * modules/unistr/u8-to-u16-tests: New file.
50857         * tests/unistr/test-u8-to-u16.c: New file.
50859         Tests for module 'unistr/u32-check'.
50860         * modules/unistr/u32-check-tests: New file.
50861         * tests/unistr/test-u32-check.c: New file.
50863         Tests for module 'unistr/u16-check'.
50864         * modules/unistr/u16-check-tests: New file.
50865         * tests/unistr/test-u16-check.c: New file.
50867         Tests for module 'unistr/u8-check'.
50868         * modules/unistr/u8-check-tests: New file.
50869         * tests/unistr/test-u8-check.c: New file.
50871         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
50872         (category_equals): New function.
50873         (main): Add more tests.
50874         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
50876         * tests/unictype/test-bidi_byname.c (main): Add more tests.
50878 2010-01-10  Bruno Haible  <bruno@clisp.org>
50880         unistr/u*-strcoll: Try harder to distinguish different strings.
50881         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
50882         compare s1 and s2 to see if they are different.
50884 2010-01-10  Bruno Haible  <bruno@clisp.org>
50886         unistr/u*-stpncpy: Fix the return value.
50887         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
50888         description of the return value consistent with stpncpy in glibc.
50889         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
50890         written non-NUL unit.
50892 2010-01-10  Bruno Haible  <bruno@clisp.org>
50894         unistr/u*-next: Add missing dependencies.
50895         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
50896         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
50897         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
50899 2010-01-10  Bruno Haible  <bruno@clisp.org>
50901         unistr/u8-mbsnlen: Fix return value for incomplete character.
50902         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
50903         u8_mblen.
50904         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
50905         Remove unistr/u8-mblen.
50906         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
50907         u16_mblen.
50908         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
50909         Remove unistr/u16-mblen.
50911 2010-01-10  Bruno Haible  <bruno@clisp.org>
50913         wchar: Fix compilation error when <wchar.h> is used from coreutils.
50914         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
50915         Reported by Brian Gough <bjg@gnu.org> and
50916         Chris Clayton <chris2553@googlemail.com> via
50917         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
50919 2010-01-09  Bruno Haible  <bruno@clisp.org>
50921         unistr/u16-to-u32: Reject invalid input.
50922         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
50923         u16_mbtouc.
50924         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
50925         Remove unistr/u16-mbtouc.
50927         unistr/u16-to-u8: Reject invalid input.
50928         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
50929         u16_mbtouc.
50930         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
50931         Remove unistr/u16-mbtouc.
50933         unistr/u8-to-u32: Reject invalid input.
50934         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
50935         u8_mbtouc.
50936         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
50937         Remove unistr/u8-mbtouc.
50939         unistr/u8-to-u16: Reject invalid input.
50940         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
50941         u8_mbtouc.
50942         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
50943         Remove unistr/u8-mbtouc.
50945 2010-01-09  Bruno Haible  <bruno@clisp.org>
50947         Tests for module 'getlogin'.
50948         * modules/getlogin-tests: New file.
50949         * tests/test-getlogin.c: New file.
50951         New module 'getlogin'.
50952         * lib/unistd.in.h (getlogin): New declaration.
50953         * lib/getlogin.c: New file.
50954         * m4/getlogin.m4: New file.
50955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
50956         HAVE_GETLOGIN.
50957         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
50958         HAVE_GETLOGIN.
50959         * modules/getlogin: New file.
50960         * doc/posix-functions/getlogin.texi: Mention the new module.
50961         Reported by John W. Eaton <jwe@gnu.org>.
50963 2010-01-09  Bruno Haible  <bruno@clisp.org>
50965         getlogin_r: Support for native Windows.
50966         * lib/getlogin_r.c: Include <windows.h>
50967         (getlogin_r): Implement for native Windows.
50968         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
50969         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
50970         via John W. Eaton <jwe@gnu.org>.
50972 2010-01-09  Bruno Haible  <bruno@clisp.org>
50974         getlogin_r: Small fixes.
50975         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
50976         succeeds.
50977         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
50978         before testing whether getlogin_r is declared. No need to set
50979         HAVE_DECL_GETLOGIN_R to 1.
50980         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
50982 2010-01-09  Bruno Haible  <bruno@clisp.org>
50984         * lib/unistd.in.h (getlogin_r): Add comment.
50986 2010-01-09  Bruno Haible  <bruno@clisp.org>
50988         Tests for module 'getlogin_r'.
50989         * modules/getlogin_r-tests: New file.
50990         * tests/test-getlogin_r.c: New file.
50992 2010-01-09  Jim Meyering  <meyering@redhat.com>
50994         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
50995         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
50996         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
50998 2010-01-08  Simon Josefsson  <simon@josefsson.org>
51000         * lib/dup2.c (rpl_dup2): Improve comment.
51002 2010-01-08  Eric Blake  <ebb9@byu.net>
51004         maint.mk: allow packages to add makefile @@ exceptions
51005         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
51006         (sc_makefile_check): Rename...
51007         (sc_makefile_at_at_check): ...to this, and use hook.
51009         dup2: work around mingw bug
51010         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
51011         Reported by Simon Josefsson.
51013 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
51015         glob: Fix C++ compilation.
51016         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
51017         C++.
51019 2010-01-07  Bruno Haible  <bruno@clisp.org>
51021         Fix indentation of wctype.in.h, broken since 2007-01-06.
51022         * lib/wctype.in.h: Fix indentation of preprocessor directives.
51024 2010-01-07  Bruno Haible  <bruno@clisp.org>
51026         mbslen: Avoid collision with system function.
51027         * lib/string.in.h [MirBSD]: Include <wchar.h>.
51028         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
51029         * m4/mbslen.m4: New file.
51030         * modules/mbslen (Files): Add it.
51031         (configure.ac): Invoke gl_MBSLEN.
51032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
51033         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
51034         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
51035         via Ian Beckwith <ianb@erislabs.net>.
51037 2010-01-07  Bruno Haible  <bruno@clisp.org>
51039         dirent: Document the last fix.
51040         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
51042 2010-01-07  Bruno Haible  <bruno@clisp.org>
51044         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
51045         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
51046         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
51047         va_list are defined.
51048         * doc/posix-headers/stdio.texi: Document the bug of missing types.
51049         Reported by Eric Blake.
51051 2010-01-07  Bruno Haible  <bruno@clisp.org>
51053         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
51054         * modules/xlist (Depends-on): Add 'list',
51055         * modules/xoset (Depends-on): Add 'oset'.
51056         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51058 2010-01-07  Bruno Haible  <bruno@clisp.org>
51060         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
51061         * doc/posix-functions/strncasecmp.texi: Likewise.
51063 2010-01-07  Bruno Haible  <bruno@clisp.org>
51065         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
51067 2010-01-07  John W. Eaton  <jwe@octave.org>
51069         wctype: allow C++ use
51070         * lib/wctype.in.h: Add extern "C" block for C++.
51072 2010-01-06  Eric Blake  <ebb9@byu.net>
51074         maint.mk: detect incorrect GFDL usage
51075         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
51077 2010-01-06  Jim Meyering  <meyering@redhat.com>
51078         and Eric Blake  <ebb9@byu.net>
51080         maint.mk: ignore multi-line copyright in NEWS
51081         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
51083 2010-01-06  Eric Blake  <ebb9@byu.net>
51085         select: add missing dependency
51086         * modules/select-tests (Depends-on): Move sockets dependency...
51087         * modules/select (Depends-on): ...here.
51088         Reported by Ian Beckwith.
51090         doc: regenerate INSTALL
51091         * doc/INSTALL: Reflect recent autoconf update.
51092         * doc/INSTALL.ISO: Likewise.
51093         * doc/INSTALL.UTF-8: Likewise.
51095         pread: fix compilation on glibc
51096         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
51097         Reported by Ralf Wildenhues.
51099         dirent: fix test failure
51100         * lib/dirent.in.h (includes): Guarantee ino_t.
51101         Reported by Ralf Wildenhues.
51103 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
51105         linkat, renameat: avoid bad free
51106         * lib/at-func2.c (at_func2): Fix typo.
51107         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
51109 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51111         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
51112         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
51113         to avoid failure of symlink test later.
51115 2010-01-06  Eric Blake  <ebb9@byu.net>
51117         stdio, unistd: guarantee ssize_t
51118         * lib/unistd.in.h (includes): Ensure that types required by POSIX
51119         2008 are exposed when needed.
51120         * lib/stdio.in.h (includes): Likewise.
51121         Reported by Ralf Wildenhues.
51123 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
51125         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
51126         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
51127         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
51129 2010-01-06  Jim Meyering  <meyering@redhat.com>
51131         readtokens: this module *does* require xalloc.h
51132         It uses only functions that were omitted by the old syntax-check rule.
51133         * lib/readtokens.c: Include "xalloc.h" once again.
51134         * modules/readtokens (Depends-on): Add xalloc.
51135         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
51137 2010-01-05  Eric Blake  <ebb9@byu.net>
51139         maint: support 'make announcement' from a VPATH build
51140         * top/maint.mk (announcement): Look for correct NEWS file.
51142 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
51144         utimens (fdutimens): ignore a negative FD, per contract
51145         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
51146         when we have a valid file descriptor.  Otherwise, using a brand
51147         new glibc (with just-patched futimens that now fails with EBADF)
51148         would cause this function to fail with ENOSYS.
51149         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
51150         See also http://bugzilla.redhat.com/552320.
51152 2010-01-05  Eric Blake  <ebb9@byu.net>
51154         strcase: document what it provides
51155         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
51156         gnulib module.
51157         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
51158         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
51160 2010-01-05  Jim Meyering  <meyering@redhat.com>
51162         maint: remove useless inclusions of "xalloc.h"
51163         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
51164         * lib/readtokens.c: Likewise.
51165         * lib/same.c: Likewise.
51166         * modules/getloadavg (Depends-on): Remove xalloc.
51167         * modules/readtokens: Likewise.
51168         * modules/same: Likewise.
51170         maint.mk: include 4 more function names in alloca.h-checking regexp
51171         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
51172         regexp.  Before, we would give a false-positive (saying alloca.h
51173         is included unnecessarily) when the only uses involved omitted symbols.
51175         xalloc.h: use consistent formatting
51176         * lib/xalloc.h: Move declarations to start in the first column.
51178 2010-01-05  Eric Blake  <ebb9@byu.net>
51180         mkdir: avoid xalloc
51181         * lib/mkdir.c (includes): Drop unused header.
51182         Reported by John W. Eaton.
51184 2010-01-04  Jim Meyering  <meyering@redhat.com>
51186         nl_langinfo: avoid configure-time syntax error
51187         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
51188         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
51189         the empty string.  Don't let that provoke a shell syntax error.
51191         regcomp, regexec, fnmatch: avoid array bounds read error
51192         * lib/regcomp.c (build_equiv_class): From glibc:
51193         Use only the low 24 bits of a findidx return value as an index
51194         into the weights array.  Patch by Ulrich Drepper:
51195         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
51196         * lib/regexec.c (check_node_accept_bytes): Likewise.
51197         * lib/fnmatch_loop.c (FCT): Likewise.
51199         regcomp: skip collseq lookup when there are no rules
51200         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
51201         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
51203         regcomp: recognize ill-formed { } expressions
51204         * lib/regcomp.c (parse_dup_op): From glibc:
51205         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
51207         regcomp: fix typo in comment
51208         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
51209         s/satisfy/satisfies/.
51211         regcomp: sync from glibc: remove dead store
51212         * lib/regcomp.c (duplicate_node_closure): Remove useless
51213         search_duplicated_node call and dead store.
51215         regcomp: sync from glibc; always use nl_langinfo
51216         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
51217         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
51218         * modules/regex (Depends-on): Add nl_langinfo.
51220 2010-01-04  Eric Blake  <ebb9@byu.net>
51222         fdopendir: fix configure test
51223         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
51225 2010-01-01  Bruno Haible  <bruno@clisp.org>
51227         wchar: Remove unused configure check.
51228         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
51230 2010-01-01  Eric Blake  <ebb9@byu.net>
51232         headers: make check of system header explicit
51233         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
51234         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
51235         ourselves.
51236         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51237         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51238         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51239         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
51240         internals.
51241         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
51242         missing.
51243         Suggested by Bruno Haible.
51245 2010-01-01  Jim Meyering  <meyering@redhat.com>
51247         ChangeLog: tweak to eliminate unnecessary copyright line
51248         * ChangeLog: Remove a copyright line that was mistakenly updated
51249         by today's update-copyright run.  Reported by Eric Blake.
51251         test-update-copyright: don't let envvar setting cause test failure
51252         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
51254 2010-01-01  Bruno Haible  <bruno@clisp.org>
51256         localename: Avoid gcc warning.
51257         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
51258         function if it is not used.
51260 2010-01-01  Jim Meyering  <meyering@redhat.com>
51262         update nearly all FSF copyright year lists to include 2010
51263         Use the same procedure as for 2009, outlined in
51264         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
51266         version-etc: set COPYRIGHT_YEAR to 2010
51267         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
51269 2009-12-31  Eric Blake  <ebb9@byu.net>
51271         doc: correct availability of cygwin 1.5.x getopt
51272         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
51273         variables.
51274         * doc/posix-functions/opterr.texi (opterr): Likewise.
51275         * doc/posix-functions/optind.texi (optind): Likewise.
51276         * doc/posix-functions/optopt.texi (optopt): Likewise.
51277         * doc/posix-functions/tzname.texi (tzname): Likewise.
51279         openat: update maintainer
51280         * modules/openat (Maintainer): Add myself.
51282         utimens: avoid shadowing warning
51283         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
51284         buffers into one, to avoid shadowing, as well as avoiding a
51285         redundant stat.
51286         Reported by Jim Meyering.
51288         test-dup2: avoid compiler warning
51289         * tests/test-dup2.c (is_inheritable): Only define if used.
51291 2010-01-01  Bruno Haible  <bruno@clisp.org>
51293         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
51294         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
51295         defined, use wctomb instead of wcrtomb.
51297 2010-01-01  Bruno Haible  <bruno@clisp.org>
51299         iconv: Reject native Solaris iconv.
51300         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
51301         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
51303 2009-12-31  Bruno Haible  <bruno@clisp.org>
51305         * tests/test-signal.c (main): Remove test of 'SIG'.
51307 2009-12-31  Bruno Haible  <bruno@clisp.org>
51309         spawn: Fix incomplete fix.
51310         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
51311         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
51312         warnings for GNULIB_POSIXCHECK again.
51313         Reported by Eric Blake.
51315 2009-12-31  Bruno Haible  <bruno@clisp.org>
51317         Avoid namespace pollution on glibc systems.
51318         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
51319         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
51320         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
51321         glibc systems.
51323 2009-12-31  Bruno Haible  <bruno@clisp.org>
51325         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
51326         (gl_REPLACE_WCHAR_H): Turn into a no-op.
51327         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
51328         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
51329         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
51330         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
51331         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
51333 2009-12-31  Bruno Haible  <bruno@clisp.org>
51335         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
51336         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
51337         afterwards.
51339 2009-12-31  Bruno Haible  <bruno@clisp.org>
51341         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
51342         SYS_UTSNAME_H.
51344 2009-12-31  Bruno Haible  <bruno@clisp.org>
51346         spawn: Fix misapplied patch.
51347         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
51348         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
51349         warnings for GNULIB_POSIXCHECK.
51351 2009-12-31  Bruno Haible  <bruno@clisp.org>
51353         times: Update after sys_times changed.
51354         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
51355         * modules/times (Files): Add it.
51356         (configure.ac): Invoke gl_FUNC_TIMES.
51358 2009-12-31  Bruno Haible  <bruno@clisp.org>
51360         Use AC_C_INLINE where necessary.
51361         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
51362         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51363         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
51364         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51365         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51366         * m4/mbiter.m4 (gl_MBITER): Likewise.
51367         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51368         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
51369         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
51370         * modules/u64 (configure.ac): Likewise.
51372 2009-12-31  Bruno Haible  <bruno@clisp.org>
51374         Use AC_C_INLINE instead of module 'inline' where possible.
51375         * modules/inline (Description): Clarify purpose.
51376         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
51377         * modules/count-one-bits (Depends-on): Remove inline.
51378         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
51379         * modules/openat (Depends-on): Remove inline.
51380         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
51381         instead of depending on module 'inline'.
51382         * modules/filevercmp (Depends-on, configure.ac): Likewise.
51383         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
51384         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
51385         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
51386         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
51387         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
51388         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
51389         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
51390         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
51391         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
51392         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
51393         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
51394         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
51395         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
51396         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
51397         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
51398         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
51399         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
51400         Likewise.
51401         * modules/unictype/property-ascii-hex-digit (Depends-on,
51402         configure.ac): Likewise.
51403         * modules/unictype/property-bidi-arabic-digit (Depends-on,
51404         configure.ac): Likewise.
51405         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
51406         configure.ac): Likewise.
51407         * modules/unictype/property-bidi-block-separator (Depends-on,
51408         configure.ac): Likewise.
51409         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
51410         configure.ac): Likewise.
51411         * modules/unictype/property-bidi-common-separator (Depends-on,
51412         configure.ac): Likewise.
51413         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
51414         Likewise.
51415         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
51416         configure.ac): Likewise.
51417         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
51418         configure.ac): Likewise.
51419         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
51420         configure.ac): Likewise.
51421         * modules/unictype/property-bidi-european-digit (Depends-on,
51422         configure.ac): Likewise.
51423         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
51424         configure.ac): Likewise.
51425         * modules/unictype/property-bidi-left-to-right (Depends-on,
51426         configure.ac): Likewise.
51427         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
51428         configure.ac): Likewise.
51429         * modules/unictype/property-bidi-other-neutral (Depends-on,
51430         configure.ac): Likewise.
51431         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
51432         Likewise.
51433         * modules/unictype/property-bidi-segment-separator (Depends-on,
51434         configure.ac): Likewise.
51435         * modules/unictype/property-bidi-whitespace (Depends-on,
51436         configure.ac): Likewise.
51437         * modules/unictype/property-combining (Depends-on, configure.ac):
51438         Likewise.
51439         * modules/unictype/property-composite (Depends-on, configure.ac):
51440         Likewise.
51441         * modules/unictype/property-currency-symbol (Depends-on,
51442         configure.ac): Likewise.
51443         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
51444         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
51445         Likewise.
51446         * modules/unictype/property-default-ignorable-code-point (Depends-on,
51447         configure.ac): Likewise.
51448         * modules/unictype/property-deprecated (Depends-on, configure.ac):
51449         Likewise.
51450         * modules/unictype/property-diacritic (Depends-on, configure.ac):
51451         Likewise.
51452         * modules/unictype/property-extender (Depends-on, configure.ac):
51453         Likewise.
51454         * modules/unictype/property-format-control (Depends-on, configure.ac):
51455         Likewise.
51456         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
51457         Likewise.
51458         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
51459         Likewise.
51460         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
51461         Likewise.
51462         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
51463         Likewise.
51464         * modules/unictype/property-hyphen (Depends-on, configure.ac):
51465         Likewise.
51466         * modules/unictype/property-id-continue (Depends-on, configure.ac):
51467         Likewise.
51468         * modules/unictype/property-id-start (Depends-on, configure.ac):
51469         Likewise.
51470         * modules/unictype/property-ideographic (Depends-on, configure.ac):
51471         Likewise.
51472         * modules/unictype/property-ids-binary-operator (Depends-on,
51473         configure.ac): Likewise.
51474         * modules/unictype/property-ids-trinary-operator (Depends-on,
51475         configure.ac): Likewise.
51476         * modules/unictype/property-ignorable-control (Depends-on,
51477         configure.ac): Likewise.
51478         * modules/unictype/property-iso-control (Depends-on, configure.ac):
51479         Likewise.
51480         * modules/unictype/property-join-control (Depends-on, configure.ac):
51481         Likewise.
51482         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
51483         Likewise.
51484         * modules/unictype/property-line-separator (Depends-on, configure.ac):
51485         Likewise.
51486         * modules/unictype/property-logical-order-exception (Depends-on,
51487         configure.ac): Likewise.
51488         * modules/unictype/property-lowercase (Depends-on, configure.ac):
51489         Likewise.
51490         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
51491         * modules/unictype/property-non-break (Depends-on, configure.ac):
51492         Likewise.
51493         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
51494         Likewise.
51495         * modules/unictype/property-numeric (Depends-on, configure.ac):
51496         Likewise.
51497         * modules/unictype/property-other-alphabetic (Depends-on,
51498         configure.ac): Likewise.
51499         * modules/unictype/property-other-default-ignorable-code-point
51500         (Depends-on, configure.ac): Likewise.
51501         * modules/unictype/property-other-grapheme-extend (Depends-on,
51502         configure.ac): Likewise.
51503         * modules/unictype/property-other-id-continue (Depends-on,
51504         configure.ac): Likewise.
51505         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
51506         Likewise.
51507         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
51508         Likewise.
51509         * modules/unictype/property-other-math (Depends-on, configure.ac):
51510         Likewise.
51511         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
51512         Likewise.
51513         * modules/unictype/property-paired-punctuation (Depends-on,
51514         configure.ac): Likewise.
51515         * modules/unictype/property-paragraph-separator (Depends-on,
51516         configure.ac): Likewise.
51517         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
51518         Likewise.
51519         * modules/unictype/property-pattern-white-space (Depends-on,
51520         configure.ac): Likewise.
51521         * modules/unictype/property-private-use (Depends-on, configure.ac):
51522         Likewise.
51523         * modules/unictype/property-punctuation (Depends-on, configure.ac):
51524         Likewise.
51525         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
51526         Likewise.
51527         * modules/unictype/property-radical (Depends-on, configure.ac):
51528         Likewise.
51529         * modules/unictype/property-sentence-terminal (Depends-on,
51530         configure.ac): Likewise.
51531         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
51532         Likewise.
51533         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
51534         * modules/unictype/property-terminal-punctuation (Depends-on,
51535         configure.ac): Likewise.
51536         * modules/unictype/property-titlecase (Depends-on, configure.ac):
51537         Likewise.
51538         * modules/unictype/property-unassigned-code-value (Depends-on,
51539         configure.ac): Likewise.
51540         * modules/unictype/property-unified-ideograph (Depends-on,
51541         configure.ac): Likewise.
51542         * modules/unictype/property-uppercase (Depends-on, configure.ac):
51543         Likewise.
51544         * modules/unictype/property-variation-selector (Depends-on,
51545         configure.ac): Likewise.
51546         * modules/unictype/property-white-space (Depends-on, configure.ac):
51547         Likewise.
51548         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
51549         Likewise.
51550         * modules/unictype/property-xid-start (Depends-on, configure.ac):
51551         Likewise.
51552         * modules/unictype/property-zero-width (Depends-on, configure.ac):
51553         Likewise.
51554         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
51555         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
51556         Likewise.
51558 2009-12-31  Bruno Haible  <bruno@clisp.org>
51560         Remove unnecessary AC_C_INLINE invocation.
51561         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
51562         since 2009-08-21.
51564 2009-12-31  Jim Meyering  <meyering@redhat.com>
51566         maint.mk: don't require explicit gpg_key_ID in cfg.mk
51567         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
51568         With this change, we can all remove the gpg_key_ID = ... definition
51569         from our respective cfg.mk files.
51571         maint.mk: create announcement template in ~/, not in /tmp
51572         * top/maint.mk (emit_upload_commands): Adjust.
51573         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
51574         Remove temporary file, .ci-msg.
51576 2009-12-31  Eric Blake  <ebb9@byu.net>
51578         link-warning: always build headers with link warnings
51579         * modules/arpa_inet (Makefile.am): Always build replacement
51580         header.
51581         * modules/ctype (Makefile.am): Likewise.
51582         * modules/dirent (Makefile.am): Likewise.
51583         * modules/inttypes (Makefile.am): Likewise.
51584         * modules/langinfo (Makefile.am): Likewise.
51585         * modules/locale (Makefile.am): Likewise.
51586         * modules/spawn (Makefile.am): Likewise.
51587         * modules/sys_file (Makefile.am): Likewise.
51588         * modules/sys_ioctl (Makefile.am): Likewise.
51589         * modules/sys_select (Makefile.am): Likewise.
51590         * modules/sys_socket (Makefile.am): Likewise.
51591         * modules/sys_times (Makefile.am): Likewise.
51592         * modules/sys_utsname (Makefile.am): Likewise.
51593         * modules/sys_wait (Makefile.am): Likewise.
51594         * modules/wchar (Makefile.am): Likewise.
51595         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
51596         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
51597         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
51598         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
51599         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
51600         Likewise.
51601         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51602         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
51603         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
51604         Likewise.
51605         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
51606         Likewise.
51607         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
51608         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
51609         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
51610         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51611         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51612         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
51613         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
51614         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
51615         (gl_WCHAR_H_DEFAULTS): Likewise.
51617 2009-12-31  Eric Blake  <ebb9@byu.net>
51619         signal, spawn: use link warnings
51620         * lib/signal.in.h (sigset_t): Make unconditional.
51621         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
51622         (sigpending, sigprocmask, sigaction): Add link warnings.
51623         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
51624         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
51625         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
51626         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
51627         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
51628         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
51629         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
51630         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
51631         (posix_spawn_file_actions_destroy)
51632         (posix_spawn_file_actions_addopen)
51633         (posix_spawn_file_actions_addclose)
51634         (posix_spawn_file_actions_adddup2): Likewise.
51635         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
51636         * tests/test-signal.c (main): Enhance test.
51638         spawn: improve wrapper support
51639         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
51640         (gl_SPAWN_H_DEFAULTS): New defaults.
51641         * modules/spawn (Makefile.am): Substitute them.
51642         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
51643         Only declare if missing or broken.
51645         sys_times, sys_utsname: use include_next
51646         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
51647         header.
51648         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
51649         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
51650         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
51651         * modules/sys_times (Depends-on): Add include_next.
51652         (Makefile.am): Substitute additional values.
51653         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
51654         * lib/sys_times.in.h (includes): Include native header, if
51655         available.
51656         * lib/sys_utsname.in.h (includes): Likewise.
51657         * tests/test-sys_times.c (main): Enhance test.
51659         fdutimensat: revert prior patch
51660         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
51661         utimens.h.
51662         Reported by Bruno Haible.
51664 2009-12-30  Eric Blake  <ebb9@byu.net>
51666         sys_wait: drop link-warning dependency
51667         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
51668         link-warning efforts.
51669         * lib/sys_wait.in.h: Likewise.
51671         fdutimensat: remove bogus dependency
51672         * modules/fdutimensat (Depends-on): Drop inline.
51674         unistd: fix typo
51675         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
51677 2009-12-30  Bruno Haible  <bruno@clisp.org>
51679         Fix compilation error with Solaris cc.
51680         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
51681         * lib/unicase/u16-is-invariant.c: Likewise.
51682         * lib/unicase/u32-is-invariant.c: Likewise.
51683         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51685 2009-12-30  Bruno Haible  <bruno@clisp.org>
51687         Fix test crash.
51688         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
51689         locales.
51690         Reported by Simon Josefsson <simon@josefsson.org>.
51692 2009-12-30  Bruno Haible  <bruno@clisp.org>
51694         Fix compilation error on most platforms.
51695         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
51696         Reported by Simon Josefsson <simon@josefsson.org>
51697         and Nelson H. F. Beebe <beebe@math.utah.edu>.
51699 2009-12-30  Eric Blake  <ebb9@byu.net>
51701         futimens, utimensat: work around ntfs-3g bug
51702         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
51703         a ctime bug is present, and expand workaround to cover ntfs-3g.
51704         * lib/utimens.c (fdutimens, lutimens): Likewise.
51705         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
51706         (validate_timespec): Adjust return value.
51707         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
51708         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
51709         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
51711 2009-12-29  Eric Blake  <ebb9@byu.net>
51713         link-warning: make usage consistent
51714         * modules/ctype (Depends-on): Add link-warning.
51715         (Makefile.am): Update rules accordingly.
51716         * modules/langinfo (Depends-on, Makefile.am): Likewise.
51717         * modules/locale (Depends-on, Makefile.am): Likewise.
51718         * modules/sys_file (Makefile.am): Likewise.
51719         * modules/getopt-posix (Makefile.am): Delete unused link warning
51720         efforts.
51721         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
51722         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
51723         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
51724         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
51726         stdio: remove unused variables
51727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
51728         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
51729         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
51731         tests: test more substitute headers
51732         * modules/ctype-tests: New file.
51733         * modules/dirent-tests: Likewise.
51734         * modules/spawn-tests: Likewise.
51735         * modules/sys_file-tests: Likewise.
51736         * modules/sys_ioctl-tests: Likewise.
51737         * modules/sys_wait-tests: Likewise.
51738         * tests/test-ctype.c: Likewise.
51739         * tests/test-dirent.c: Likewise.
51740         * tests/test-spawn.c: Likewise.
51741         * tests/test-sys_file.c: Likewise.
51742         * tests/test-sys_ioctl.c: Likewise.
51743         * tests/test-sys_wait.c: Likewise.
51744         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
51745         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
51746         whether or not flock is in use.
51748         tests: remove License section from module
51749         * modules/arpa_inet-tests: Remove unneeded section.
51750         * modules/byteswap-tests: Likewise.
51751         * modules/ceilf-tests: Likewise.
51752         * modules/ceill-tests: Likewise.
51753         * modules/crypto/des-tests: Likewise.
51754         * modules/crypto/gc-arcfour-tests: Likewise.
51755         * modules/crypto/gc-arctwo-tests: Likewise.
51756         * modules/crypto/gc-des-tests: Likewise.
51757         * modules/crypto/gc-hmac-md5-tests: Likewise.
51758         * modules/crypto/gc-hmac-sha1-tests: Likewise.
51759         * modules/crypto/gc-md2-tests: Likewise.
51760         * modules/crypto/gc-md4-tests: Likewise.
51761         * modules/crypto/gc-md5-tests: Likewise.
51762         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
51763         * modules/crypto/gc-rijndael-tests: Likewise.
51764         * modules/crypto/gc-sha1-tests: Likewise.
51765         * modules/crypto/gc-tests: Likewise.
51766         * modules/crypto/md2-tests: Likewise.
51767         * modules/crypto/md4-tests: Likewise.
51768         * modules/fcntl-h-tests: Likewise.
51769         * modules/floorf-tests: Likewise.
51770         * modules/floorl-tests: Likewise.
51771         * modules/frexp-nolibm-tests: Likewise.
51772         * modules/frexp-tests: Likewise.
51773         * modules/frexpl-nolibm-tests: Likewise.
51774         * modules/frexpl-tests: Likewise.
51775         * modules/getaddrinfo-tests: Likewise.
51776         * modules/inttypes-tests: Likewise.
51777         * modules/isfinite-tests: Likewise.
51778         * modules/isinf-tests: Likewise.
51779         * modules/ldexpl-tests: Likewise.
51780         * modules/locale-tests: Likewise.
51781         * modules/math-tests: Likewise.
51782         * modules/netdb-tests: Likewise.
51783         * modules/netinet_in-tests: Likewise.
51784         * modules/printf-frexp-tests: Likewise.
51785         * modules/printf-frexpl-tests: Likewise.
51786         * modules/priv-set-tests: Likewise.
51787         * modules/random_r-tests: Likewise.
51788         * modules/round-tests: Likewise.
51789         * modules/roundf-tests: Likewise.
51790         * modules/roundl-tests: Likewise.
51791         * modules/search-tests: Likewise.
51792         * modules/select-tests: Likewise.
51793         * modules/signal-tests: Likewise.
51794         * modules/stdbool-tests: Likewise.
51795         * modules/stddef-tests: Likewise.
51796         * modules/stdint-tests: Likewise.
51797         * modules/stdio-tests: Likewise.
51798         * modules/stdlib-tests: Likewise.
51799         * modules/string-tests: Likewise.
51800         * modules/strings-tests: Likewise.
51801         * modules/sys_select-tests: Likewise.
51802         * modules/sys_socket-tests: Likewise.
51803         * modules/sys_stat-tests: Likewise.
51804         * modules/sys_time-tests: Likewise.
51805         * modules/sys_utsname-tests: Likewise.
51806         * modules/sysexits-tests: Likewise.
51807         * modules/time-tests: Likewise.
51808         * modules/trunc-tests: Likewise.
51809         * modules/truncf-tests: Likewise.
51810         * modules/truncl-tests: Likewise.
51811         * modules/tsearch-tests: Likewise.
51812         * modules/unistd-tests: Likewise.
51813         * modules/wchar-tests: Likewise.
51814         * modules/wctype-tests: Likewise.
51816         tests: fix license on several tests
51817         * tests/test-des.c: Update to GPLv3+.
51818         * tests/test-flock.c: Likewise.
51819         * tests/test-fsync.c: Likewise.
51820         * tests/test-futimens.h: Likewise.
51821         * tests/test-gc-arcfour.c: Likewise.
51822         * tests/test-gc-arctwo.c: Likewise.
51823         * tests/test-gc-des.c: Likewise.
51824         * tests/test-gc-hmac-md5.c: Likewise.
51825         * tests/test-gc-hmac-sha1.c: Likewise.
51826         * tests/test-gc-md2.c: Likewise.
51827         * tests/test-gc-md4.c: Likewise.
51828         * tests/test-gc-md5.c: Likewise.
51829         * tests/test-gc-pbkdf2-sha1.c: Likewise.
51830         * tests/test-gc-rijndael.c: Likewise.
51831         * tests/test-gc-sha1.c: Likewise.
51832         * tests/test-gc.c: Likewise.
51833         * tests/test-getcwd.c: Likewise.
51834         * tests/test-link.c: Likewise.
51835         * tests/test-link.h: Likewise.
51836         * tests/test-lutimens.h: Likewise.
51837         * tests/test-md2.c: Likewise.
51838         * tests/test-md4.c: Likewise.
51839         * tests/test-mkdir.h: Likewise.
51840         * tests/test-rename.c: Likewise.
51841         * tests/test-rename.h: Likewise.
51842         * tests/test-safe-alloc.c: Likewise.
51843         * tests/test-utimens-common.h: Likewise.
51844         * tests/test-utimens.h: Likewise.
51846         maint: sync license texts
51847         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
51848         * doc/gpl-3.0.texi: Revert copyright year update.
51849         * doc/lgpl-3.0.texi: Likewise.
51851 2009-12-29  Jim Meyering  <meyering@redhat.com>
51853         update nearly all FSF copyright year lists to include 2009
51854         The files named by the following are exempted:
51855             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
51856               test -f "$dst" && { echo "$dst"; continue; }
51857               test -d "$dst" || continue
51858               echo "$dst"/$(basename "$src")
51859             done > exempt
51860             git ls-files tests/unictype >> exempt
51861         In the remaining files, convert to all-interval notation if
51862         - there is already at least one year interval like 2000-2003
51863         - the file is maintained by me
51864         - the file is in lib/uni*/, where that style already prevails
51865         Otherwise, use update-copyright's default.
51867 2009-12-29  Simon Josefsson  <simon@josefsson.org>
51868         and Eric Blake  <ebb9@byu.net>
51870         tests: don't require debug system() to pass
51871         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
51872         * tests/test-rmdir.h (test_rmdir_func): Likewise.
51873         * tests/test-unlink.h (test_unlink_func): Likewise.
51874         * tests/test-fstatat.c (main): ...into callers.
51875         * tests/test-lstat.c (main): Likewise.
51876         * tests/test-rmdir.c (main): Likewise.
51877         * tests/test-unlink.c (main): Likewise.
51878         * tests/test-unlinkat.c (main): Likewise.
51879         * tests/test-areadlink-with-size.c (main): Don't require a
51880         debug-only system call to pass, aiding cross-testing to mingw.
51881         * tests/test-areadlink.c (main): Likewise.
51882         * tests/test-areadlinkat-with-size.c (main): Likewise.
51883         * tests/test-areadlinkat.c (main): Likewise.
51884         * tests/test-canonicalize-lgpl.c (main): Likewise.
51885         * tests/test-canonicalize.c (main): Likewise.
51886         * tests/test-chown.c (main): Likewise.
51887         * tests/test-fchownat.c (main): Likewise.
51888         * tests/test-lchown.c (main): Likewise.
51889         * tests/test-fdutimensat.c (main): Likewise.
51890         * tests/test-futimens.c (main): Likewise.
51891         * tests/test-link.c (main): Likewise.
51892         * tests/test-linkat.c (main): Likewise.
51893         * tests/test-mkdir.c (main): Likewise.
51894         * tests/test-mkdirat.c (main): Likewise.
51895         * tests/test-mkfifo.c (main): Likewise.
51896         * tests/test-mkfifoat.c (main): Likewise.
51897         * tests/test-mknod.c (main): Likewise.
51898         * tests/test-readlink.c (main): Likewise.
51899         * tests/test-remove.c (main): Likewise.
51900         * tests/test-rename.c (main): Likewise.
51901         * tests/test-renameat.c (main): Likewise.
51902         * tests/test-symlink.c (main): Likewise.
51903         * tests/test-symlinkat.c (main): Likewise.
51904         * tests/test-utimens.c (main): Likewise.
51905         * tests/test-utimensat.c (main): Likewise.
51907 2009-12-29  Simon Josefsson  <simon@josefsson.org>
51909         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
51910         on $(UNUSED_PARAMETER_H) to avoid build failure.
51912 2009-12-28  Jim Meyering  <meyering@redhat.com>
51914         update-copyright: you may specify a max. line length other than 72
51915         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
51917         maint: use consistent FSF copyright line syntax
51918         * lib/posixtm.c: Add missing comma in FSF copyright line.
51919         * lib/posixtm.h: Likewise.
51920         * lib/getugroups.c: Add missing ", Inc.".
51922         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
51923         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
51924         FSF copyright line.  Remove trailing blanks.
51926 2009-12-28  Eric Blake  <ebb9@byu.net>
51928         test-dup2: reduce dependencies
51929         * modules/cloexec (Configure.ac): Set witness.
51930         * modules/dup2-tests (Depends-on): Drop cloexec.
51931         * tests/test-dup2.c (main): Skip portion of test if cloexec module
51932         not present.
51933         Suggested by Bruno Haible.
51935 2009-12-26  Bruno Haible  <bruno@clisp.org>
51937         Remove an unneeded dependency.
51938         * modules/fseterr (Depends-on): Remove dup2.
51940 2009-12-26  Eric Blake  <ebb9@byu.net>
51942         tests: use macros.h in more places
51943         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
51944         (ASSERT_STREAM): Provide default of stderr.
51945         * tests/test-dirent-safer.c: Include macros.h, using alternate
51946         stream for assertions.
51947         * tests/test-dup-safer.c: Likewise.
51948         * tests/test-freopen-safer.c: Likewise.
51949         * tests/test-getopt.c: Likewise.
51950         * tests/test-openat-safer.c: Likewise.
51951         * tests/test-pipe.c: Likewise.
51952         * tests/test-popen-safer.c: Likewise.
51953         * modules/dirent-safer-tests (Files): Include macros.h.
51954         * modules/unistd-safer-tests (Files): Likewise.
51955         * modules/freopen-safer-tests (Files): Likewise.
51956         * modules/getopt-posix-tests (Files): Likewise.
51957         * modules/openat-safer-tests (Files): Likewise.
51958         * modules/pipe-tests (Files): Likewise.
51960 2009-12-26  Bruno Haible  <bruno@clisp.org>
51962         javacomp: Portability fix.
51963         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
51964         that it also works on Solaris.
51966 2009-12-26  Bruno Haible  <bruno@clisp.org>
51968         localename: Fix storage allocation of gl_locale_name_thread's result.
51969         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
51970         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
51971         all platforms that have 'uselocale'.
51972         (gl_locale_name_thread_unsafe): New function, extracted from
51973         gl_locale_name_thread.
51974         (gl_locale_name_thread): Call struniq on all platforms that have
51975         'uselocale'.
51976         * tests/test-localename.c (test_locale_name_thread): Check that the
51977         resulting strings are permanently allocated.
51978         * modules/localename-tests (Depends-on): Add strdup.
51980 2009-12-26  Bruno Haible  <bruno@clisp.org>
51982         * tests/test-localename.c (categories): Fill in the strings.
51984 2009-12-26  Jim Meyering  <meyering@redhat.com>
51986         isdir: complete the removal of m4/isdir.m4
51987         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
51989         isdir: clean up, since at least grep still uses it
51990         * lib/isdir.c: Include "isdir.h".
51991         (S_ISDIR): Remove now-unneeded definition.
51992         * modules/isdir (Files): Add lib/isdir.h.
51993         * lib/isdir.h: New file, with declaration.
51994         * m4/isdir.m4: Remove file -- unneeded.
51996 2009-12-25  Bruno Haible  <bruno@clisp.org>
51998         selinux-h: Make generated .h files standalone.
51999         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
52000         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
52001         * lib/se-selinux.in.h: Likewise.
52002         * modules/selinux-h (Depends-on): Add unused-parameter.
52003         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
52004         selinux/selinux.h and selinux/context.h.
52005         Suggested by Eric Blake.
52007 2009-12-25  Bruno Haible  <bruno@clisp.org>
52009         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
52010         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
52011         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
52012         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
52013         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
52015 2009-12-24  Bruno Haible  <bruno@clisp.org>
52017         openat: Fix warning.
52018         * lib/openat-proc.c: Include <unistd.h>.
52020 2009-12-24  Bruno Haible  <bruno@clisp.org>
52022         New module 'unused-parameter'.
52023         * build-aux/unused-parameter.h: New file, extracted from earlier
52024         gnulib-common.m4.
52025         * modules/unused-parameter: New file.
52026         * lib/unistr.h: Include unused-parameter.h.
52027         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
52028         _GL_UNUSED.
52029         * modules/unistr/base (Depends-on): Add unused-parameter.
52031 2009-12-24  Bruno Haible  <bruno@clisp.org>
52033         Add missing dependencies to 'extensions' module.
52034         * m4/extensions.m4: Add comment.
52035         * modules/accept4 (Depends-on): Add extensions.
52036         * modules/dup3 (Depends-on): Likewise.
52037         * modules/fcntl (Depends-on): Likewise.
52038         * modules/futimens (Depends-on): Likewise.
52039         * modules/mknod (Depends-on): Likewise.
52040         * modules/pipe2 (Depends-on): Likewise.
52041         * modules/stat-time (Depends-on): Likewise.
52042         * modules/strcasestr-simple (Depends-on): Likewise.
52043         * modules/strsignal (Depends-on): Likewise.
52044         * modules/utimensat (Depends-on): Likewise.
52045         * modules/localcharset (Depends-on): Likewise. Needed because of
52046         gl_FCNTL_O_FLAGS.
52047         * modules/wcrtomb (Depends-on): Likewise. Needed because of
52048         AC_TYPE_MBSTATE_T.
52049         * modules/wcsnrtombs (Depends-on): Likewise.
52050         * modules/wcsrtombs (Depends-on): Likewise.
52052 2009-12-24  Bruno Haible  <bruno@clisp.org>
52054         binary-io: Avoid gcc warning due to SET_BINARY.
52055         * lib/binary-io.h (SET_BINARY): Cast the result to void.
52056         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
52058 2009-12-24  Bruno Haible  <bruno@clisp.org>
52060         Avoid future namespace pollution on glibc systems.
52061         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
52062         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
52063         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
52064         glibc systems.
52066 2009-12-24  Bruno Haible  <bruno@clisp.org>
52068         Refactor common macros used in tests.
52069         * tests/macros.h: New file.
52070         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
52071         and/or <stdlib.h>, if appropriate.
52072         (ASSERT, SIZEOF): Remove macros.
52073         * tests/test-areadlink-with-size.c: Likewise.
52074         * tests/test-areadlinkat.c: Likewise.
52075         * tests/test-areadlinkat-with-size.c: Likewise.
52076         * tests/test-argmatch.c: Likewise.
52077         * tests/test-argv-iter.c: Likewise.
52078         * tests/test-array-mergesort.c: Likewise.
52079         * tests/test-array_list.c: Likewise.
52080         * tests/test-array_oset.c: Likewise.
52081         * tests/test-avltree_list.c: Likewise.
52082         * tests/test-avltree_oset.c: Likewise.
52083         * tests/test-avltreehash_list.c: Likewise.
52084         * tests/test-base64.c: Likewise.
52085         * tests/test-binary-io.c: Likewise.
52086         * tests/test-bitrotate.c: Likewise.
52087         * tests/test-btowc.c: Likewise.
52088         * tests/test-byteswap.c: Likewise.
52089         * tests/test-c-ctype.c: Likewise.
52090         * tests/test-c-stack.c: Likewise.
52091         * tests/test-c-strcasecmp.c: Likewise.
52092         * tests/test-c-strcasestr.c: Likewise.
52093         * tests/test-c-strncasecmp.c: Likewise.
52094         * tests/test-c-strstr.c: Likewise.
52095         * tests/test-canonicalize-lgpl.c: Likewise.
52096         * tests/test-canonicalize.c: Likewise.
52097         * tests/test-carray_list.c: Likewise.
52098         * tests/test-ceilf1.c: Likewise.
52099         * tests/test-ceilf2.c: Likewise.
52100         * tests/test-ceill.c: Likewise.
52101         * tests/test-chown.c: Likewise.
52102         * tests/test-cloexec.c: Likewise.
52103         * tests/test-copy-acl.c: Likewise.
52104         * tests/test-copy-file.c: Likewise.
52105         * tests/test-count-one-bits.c: Likewise.
52106         * tests/test-dprintf-posix.c: Likewise.
52107         * tests/test-dup2.c: Likewise.
52108         * tests/test-dup3.c: Likewise.
52109         * tests/test-duplocale.c: Likewise.
52110         * tests/test-fbufmode.c: Likewise.
52111         * tests/test-fchdir.c: Likewise.
52112         * tests/test-fchownat.c: Likewise.
52113         * tests/test-fcntl-safer.c: Likewise.
52114         * tests/test-fcntl.c: Likewise.
52115         * tests/test-fdopendir.c: Likewise.
52116         * tests/test-fdutimensat.c: Likewise.
52117         * tests/test-fflush2.c: Likewise.
52118         * tests/test-file-has-acl.c: Likewise.
52119         * tests/test-filevercmp.c: Likewise.
52120         * tests/test-flock.c: Likewise.
52121         * tests/test-floorf1.c: Likewise.
52122         * tests/test-floorf2.c: Likewise.
52123         * tests/test-floorl.c: Likewise.
52124         * tests/test-fnmatch.c: Likewise.
52125         * tests/test-fopen.h: Likewise.
52126         * tests/test-fpending.c: Likewise.
52127         * tests/test-fprintf-posix.c: Likewise.
52128         * tests/test-fpurge.c: Likewise.
52129         * tests/test-freadable.c: Likewise.
52130         * tests/test-freadahead.c: Likewise.
52131         * tests/test-freading.c: Likewise.
52132         * tests/test-freadptr.c: Likewise.
52133         * tests/test-freadptr2.c: Likewise.
52134         * tests/test-freadseek.c: Likewise.
52135         * tests/test-freopen.c: Likewise.
52136         * tests/test-frexp.c: Likewise.
52137         * tests/test-frexpl.c: Likewise.
52138         * tests/test-fseek.c: Likewise.
52139         * tests/test-fseeko.c: Likewise.
52140         * tests/test-fstatat.c: Likewise.
52141         * tests/test-fstrcmp.c: Likewise.
52142         * tests/test-fsync.c: Likewise.
52143         * tests/test-ftell.c: Likewise.
52144         * tests/test-ftello.c: Likewise.
52145         * tests/test-func.c: Likewise.
52146         * tests/test-futimens.c: Likewise.
52147         * tests/test-fwritable.c: Likewise.
52148         * tests/test-fwriting.c: Likewise.
52149         * tests/test-getcwd.c: Likewise.
52150         * tests/test-getdate.c: Likewise.
52151         * tests/test-getdelim.c: Likewise.
52152         * tests/test-getdtablesize.c: Likewise.
52153         * tests/test-getgroups.c: Likewise.
52154         * tests/test-getline.c: Likewise.
52155         * tests/test-getndelim2.c: Likewise.
52156         * tests/test-glob.c: Likewise.
52157         * tests/test-hash.c: Likewise.
52158         * tests/test-i-ring.c: Likewise.
52159         * tests/test-iconv-utf.c: Likewise.
52160         * tests/test-iconv.c: Likewise.
52161         * tests/test-idpriv-drop.c: Likewise.
52162         * tests/test-idpriv-droptemp.c: Likewise.
52163         * tests/test-inet_ntop.c: Likewise.
52164         * tests/test-inet_pton.c: Likewise.
52165         * tests/test-isblank.c: Likewise.
52166         * tests/test-isfinite.c: Likewise.
52167         * tests/test-isinf.c: Likewise.
52168         * tests/test-isnan.c: Likewise.
52169         * tests/test-isnand.h: Likewise.
52170         * tests/test-isnanf.h: Likewise.
52171         * tests/test-isnanl.h: Likewise.
52172         * tests/test-lchown.c: Likewise.
52173         * tests/test-ldexpl.c: Likewise.
52174         * tests/test-link.c: Likewise.
52175         * tests/test-linkat.c: Likewise.
52176         * tests/test-linked_list.c: Likewise.
52177         * tests/test-linkedhash_list.c: Likewise.
52178         * tests/test-localename.c: Likewise.
52179         * tests/test-lseek.c: Likewise.
52180         * tests/test-lstat.c: Likewise.
52181         * tests/test-mbmemcasecmp.c: Likewise.
52182         * tests/test-mbmemcasecoll.c: Likewise.
52183         * tests/test-mbrtowc.c: Likewise.
52184         * tests/test-mbscasecmp.c: Likewise.
52185         * tests/test-mbscasestr1.c: Likewise.
52186         * tests/test-mbscasestr2.c: Likewise.
52187         * tests/test-mbscasestr3.c: Likewise.
52188         * tests/test-mbscasestr4.c: Likewise.
52189         * tests/test-mbschr.c: Likewise.
52190         * tests/test-mbscspn.c: Likewise.
52191         * tests/test-mbsinit.c: Likewise.
52192         * tests/test-mbsncasecmp.c: Likewise.
52193         * tests/test-mbsnrtowcs.c: Likewise.
52194         * tests/test-mbspbrk.c: Likewise.
52195         * tests/test-mbspcasecmp.c: Likewise.
52196         * tests/test-mbsrchr.c: Likewise.
52197         * tests/test-mbsrtowcs.c: Likewise.
52198         * tests/test-mbsspn.c: Likewise.
52199         * tests/test-mbsstr1.c: Likewise.
52200         * tests/test-mbsstr2.c: Likewise.
52201         * tests/test-mbsstr3.c: Likewise.
52202         * tests/test-memchr.c: Likewise.
52203         * tests/test-memchr2.c: Likewise.
52204         * tests/test-memcmp.c: Likewise.
52205         * tests/test-memmem.c: Likewise.
52206         * tests/test-memrchr.c: Likewise.
52207         * tests/test-mkdir.c: Likewise.
52208         * tests/test-mkdirat.c: Likewise.
52209         * tests/test-mkfifo.c: Likewise.
52210         * tests/test-mkfifoat.c: Likewise.
52211         * tests/test-mknod.c: Likewise.
52212         * tests/test-nanosleep.c: Likewise.
52213         * tests/test-nl_langinfo.c: Likewise.
52214         * tests/test-obstack-printf.c: Likewise.
52215         * tests/test-open.c: Likewise.
52216         * tests/test-openat.c: Likewise.
52217         * tests/test-pipe-filter-gi1.c: Likewise.
52218         * tests/test-pipe-filter-gi2-main.c: Likewise.
52219         * tests/test-pipe-filter-ii1.c: Likewise.
52220         * tests/test-pipe-filter-ii2-main.c: Likewise.
52221         * tests/test-pipe2.c: Likewise.
52222         * tests/test-popen.h: Likewise.
52223         * tests/test-posixtm.c: Likewise.
52224         * tests/test-pread.c: Likewise.
52225         * tests/test-printf-frexp.c: Likewise.
52226         * tests/test-printf-frexpl.c: Likewise.
52227         * tests/test-printf-posix.c: Likewise.
52228         * tests/test-priv-set.c: Likewise.
52229         * tests/test-quotearg.c: Likewise.
52230         * tests/test-random_r.c: Likewise.
52231         * tests/test-rawmemchr.c: Likewise.
52232         * tests/test-rbtree_list.c: Likewise.
52233         * tests/test-rbtree_oset.c: Likewise.
52234         * tests/test-rbtreehash_list.c: Likewise.
52235         * tests/test-readlink.c: Likewise.
52236         * tests/test-remove.c: Likewise.
52237         * tests/test-rename.c: Likewise.
52238         * tests/test-renameat.c: Likewise.
52239         * tests/test-rmdir.c: Likewise.
52240         * tests/test-round1.c: Likewise.
52241         * tests/test-roundf1.c: Likewise.
52242         * tests/test-roundl.c: Likewise.
52243         * tests/test-safe-alloc.c: Likewise.
52244         * tests/test-sameacls.c: Likewise.
52245         * tests/test-set-mode-acl.c: Likewise.
52246         * tests/test-setenv.c: Likewise.
52247         * tests/test-sigaction.c: Likewise.
52248         * tests/test-signbit.c: Likewise.
52249         * tests/test-sleep.c: Likewise.
52250         * tests/test-snprintf-posix.c: Likewise.
52251         * tests/test-snprintf.c: Likewise.
52252         * tests/test-sprintf-posix.c: Likewise.
52253         * tests/test-stat-time.c: Likewise.
52254         * tests/test-stat.c: Likewise.
52255         * tests/test-strcasestr.c: Likewise.
52256         * tests/test-strchrnul.c: Likewise.
52257         * tests/test-strerror.c: Likewise.
52258         * tests/test-striconv.c: Likewise.
52259         * tests/test-striconveh.c: Likewise.
52260         * tests/test-striconveha.c: Likewise.
52261         * tests/test-strsignal.c: Likewise.
52262         * tests/test-strstr.c: Likewise.
52263         * tests/test-strtod.c: Likewise.
52264         * tests/test-strverscmp.c: Likewise.
52265         * tests/test-symlink.c: Likewise.
52266         * tests/test-symlinkat.c: Likewise.
52267         * tests/test-trunc1.c: Likewise.
52268         * tests/test-trunc2.c: Likewise.
52269         * tests/test-truncf1.c: Likewise.
52270         * tests/test-truncf2.c: Likewise.
52271         * tests/test-truncl.c: Likewise.
52272         * tests/test-uname.c: Likewise.
52273         * tests/test-unlink.c: Likewise.
52274         * tests/test-unlinkat.c: Likewise.
52275         * tests/test-unsetenv.c: Likewise.
52276         * tests/test-usleep.c: Likewise.
52277         * tests/test-utimens.c: Likewise.
52278         * tests/test-utimensat.c: Likewise.
52279         * tests/test-vasnprintf-posix.c: Likewise.
52280         * tests/test-vasnprintf-posix2.c: Likewise.
52281         * tests/test-vasnprintf.c: Likewise.
52282         * tests/test-vasprintf-posix.c: Likewise.
52283         * tests/test-vasprintf.c: Likewise.
52284         * tests/test-vdprintf-posix.c: Likewise.
52285         * tests/test-vfprintf-posix.c: Likewise.
52286         * tests/test-vprintf-posix.c: Likewise.
52287         * tests/test-vsnprintf-posix.c: Likewise.
52288         * tests/test-vsnprintf.c: Likewise.
52289         * tests/test-vsprintf-posix.c: Likewise.
52290         * tests/test-wcrtomb.c: Likewise.
52291         * tests/test-wcsnrtombs.c: Likewise.
52292         * tests/test-wcsrtombs.c: Likewise.
52293         * tests/test-wctype.c: Likewise.
52294         * tests/test-wcwidth.c: Likewise.
52295         * tests/test-xfprintf-posix.c: Likewise.
52296         * tests/test-xmemdup0.c: Likewise.
52297         * tests/test-xprintf-posix.c: Likewise.
52298         * tests/test-xvasprintf.c: Likewise.
52299         * tests/unicase/test-locale-language.c: Likewise.
52300         * tests/unicase/test-mapping-part1.h: Likewise.
52301         * tests/unicase/test-predicate-part1.h: Likewise.
52302         * tests/unicase/test-u8-casecmp.c: Likewise.
52303         * tests/unicase/test-u8-casecoll.c: Likewise.
52304         * tests/unicase/test-u8-casefold.c: Likewise.
52305         * tests/unicase/test-u8-is-cased.c: Likewise.
52306         * tests/unicase/test-u8-is-casefolded.c: Likewise.
52307         * tests/unicase/test-u8-is-lowercase.c: Likewise.
52308         * tests/unicase/test-u8-is-titlecase.c: Likewise.
52309         * tests/unicase/test-u8-is-uppercase.c: Likewise.
52310         * tests/unicase/test-u8-tolower.c: Likewise.
52311         * tests/unicase/test-u8-totitle.c: Likewise.
52312         * tests/unicase/test-u8-toupper.c: Likewise.
52313         * tests/unicase/test-u16-casecmp.c: Likewise.
52314         * tests/unicase/test-u16-casecoll.c: Likewise.
52315         * tests/unicase/test-u16-casefold.c: Likewise.
52316         * tests/unicase/test-u16-is-cased.c: Likewise.
52317         * tests/unicase/test-u16-is-casefolded.c: Likewise.
52318         * tests/unicase/test-u16-is-lowercase.c: Likewise.
52319         * tests/unicase/test-u16-is-titlecase.c: Likewise.
52320         * tests/unicase/test-u16-is-uppercase.c: Likewise.
52321         * tests/unicase/test-u16-tolower.c: Likewise.
52322         * tests/unicase/test-u16-totitle.c: Likewise.
52323         * tests/unicase/test-u16-toupper.c: Likewise.
52324         * tests/unicase/test-u32-casecmp.c: Likewise.
52325         * tests/unicase/test-u32-casecoll.c: Likewise.
52326         * tests/unicase/test-u32-casefold.c: Likewise.
52327         * tests/unicase/test-u32-is-cased.c: Likewise.
52328         * tests/unicase/test-u32-is-casefolded.c: Likewise.
52329         * tests/unicase/test-u32-is-lowercase.c: Likewise.
52330         * tests/unicase/test-u32-is-titlecase.c: Likewise.
52331         * tests/unicase/test-u32-is-uppercase.c: Likewise.
52332         * tests/unicase/test-u32-tolower.c: Likewise.
52333         * tests/unicase/test-u32-totitle.c: Likewise.
52334         * tests/unicase/test-u32-toupper.c: Likewise.
52335         * tests/unicase/test-ulc-casecmp.c: Likewise.
52336         * tests/unicase/test-ulc-casecoll.c: Likewise.
52337         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52338         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52339         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52340         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52341         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52342         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52343         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52344         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52345         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52346         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52347         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52348         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52349         * tests/unictype/test-bidi_byname.c: Likewise.
52350         * tests/unictype/test-bidi_name.c: Likewise.
52351         * tests/unictype/test-bidi_of.c: Likewise.
52352         * tests/unictype/test-bidi_test.c: Likewise.
52353         * tests/unictype/test-block_list.c: Likewise.
52354         * tests/unictype/test-block_of.c: Likewise.
52355         * tests/unictype/test-block_test.c: Likewise.
52356         * tests/unictype/test-categ_and.c: Likewise.
52357         * tests/unictype/test-categ_and_not.c: Likewise.
52358         * tests/unictype/test-categ_byname.c: Likewise.
52359         * tests/unictype/test-categ_name.c: Likewise.
52360         * tests/unictype/test-categ_none.c: Likewise.
52361         * tests/unictype/test-categ_of.c: Likewise.
52362         * tests/unictype/test-categ_or.c: Likewise.
52363         * tests/unictype/test-categ_test_withtable.c: Likewise.
52364         * tests/unictype/test-combining.c: Likewise.
52365         * tests/unictype/test-decdigit.c: Likewise.
52366         * tests/unictype/test-digit.c: Likewise.
52367         * tests/unictype/test-mirror.c: Likewise.
52368         * tests/unictype/test-numeric.c: Likewise.
52369         * tests/unictype/test-pr_byname.c: Likewise.
52370         * tests/unictype/test-pr_test.c: Likewise.
52371         * tests/unictype/test-predicate-part1.h: Likewise.
52372         * tests/unictype/test-scripts.c: Likewise.
52373         * tests/unictype/test-sy_c_ident.c: Likewise.
52374         * tests/unictype/test-sy_java_ident.c: Likewise.
52375         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
52376         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
52377         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
52378         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
52379         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
52380         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
52381         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
52382         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
52383         * tests/uninorm/test-canonical-decomposition.c: Likewise.
52384         * tests/uninorm/test-compat-decomposition.c: Likewise.
52385         * tests/uninorm/test-composition.c: Likewise.
52386         * tests/uninorm/test-decomposing-form.c: Likewise.
52387         * tests/uninorm/test-decomposition.c: Likewise.
52388         * tests/uninorm/test-u8-nfc.c: Likewise.
52389         * tests/uninorm/test-u8-nfd.c: Likewise.
52390         * tests/uninorm/test-u8-nfkc.c: Likewise.
52391         * tests/uninorm/test-u8-nfkd.c: Likewise.
52392         * tests/uninorm/test-u8-normcmp.c: Likewise.
52393         * tests/uninorm/test-u8-normcoll.c: Likewise.
52394         * tests/uninorm/test-u16-nfc.c: Likewise.
52395         * tests/uninorm/test-u16-nfd.c: Likewise.
52396         * tests/uninorm/test-u16-nfkc.c: Likewise.
52397         * tests/uninorm/test-u16-nfkd.c: Likewise.
52398         * tests/uninorm/test-u16-normcmp.c: Likewise.
52399         * tests/uninorm/test-u16-normcoll.c: Likewise.
52400         * tests/uninorm/test-u32-nfc.c: Likewise.
52401         * tests/uninorm/test-u32-nfd.c: Likewise.
52402         * tests/uninorm/test-u32-nfkc.c: Likewise.
52403         * tests/uninorm/test-u32-nfkd.c: Likewise.
52404         * tests/uninorm/test-u32-normalize-big.c: Likewise.
52405         * tests/uninorm/test-u32-normcmp.c: Likewise.
52406         * tests/uninorm/test-u32-normcoll.c: Likewise.
52407         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
52408         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52409         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52410         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52411         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52412         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52413         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52414         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52415         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52416         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52417         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52418         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52419         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52420         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52421         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52422         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52423         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52424         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52425         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52426         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52427         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52428         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52429         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52430         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52431         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52432         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52433         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52434         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52435         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52436         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
52437         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
52438         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
52439         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
52440         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52441         * tests/uniwidth/test-u8-width.c: Likewise.
52442         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52443         * tests/uniwidth/test-u16-width.c: Likewise.
52444         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52445         * tests/uniwidth/test-u32-width.c: Likewise.
52446         * tests/uniwidth/test-uc_width.c: Likewise.
52447         * tests/uniwidth/test-uc_width2.c: Likewise.
52448         * modules/acl-tests (Files): Add tests/macros.h.
52449         * modules/areadlink-tests (Files): Likewise.
52450         * modules/areadlink-with-size-tests (Files): Likewise.
52451         * modules/areadlinkat-tests (Files): Likewise.
52452         * modules/areadlinkat-with-size-tests (Files): Likewise.
52453         * modules/argmatch-tests (Files): Likewise.
52454         * modules/argv-iter-tests (Files): Likewise.
52455         * modules/array-list-tests (Files): Likewise.
52456         * modules/array-mergesort-tests (Files): Likewise.
52457         * modules/array-oset-tests (Files): Likewise.
52458         * modules/avltree-list-tests (Files): Likewise.
52459         * modules/avltree-oset-tests (Files): Likewise.
52460         * modules/avltreehash-list-tests (Files): Likewise.
52461         * modules/base64-tests (Files): Likewise.
52462         * modules/binary-io-tests (Files): Likewise.
52463         * modules/bitrotate-tests (Files): Likewise.
52464         * modules/btowc-tests (Files): Likewise.
52465         * modules/byteswap-tests (Files): Likewise.
52466         * modules/c-ctype-tests (Files): Likewise.
52467         * modules/c-stack-tests (Files): Likewise.
52468         * modules/c-strcase-tests (Files): Likewise.
52469         * modules/c-strcasestr-tests (Files): Likewise.
52470         * modules/c-strstr-tests (Files): Likewise.
52471         * modules/canonicalize-lgpl-tests (Files): Likewise.
52472         * modules/canonicalize-tests (Files): Likewise.
52473         * modules/carray-list-tests (Files): Likewise.
52474         * modules/ceilf-tests (Files): Likewise.
52475         * modules/ceill-tests (Files): Likewise.
52476         * modules/chown-tests (Files): Likewise.
52477         * modules/cloexec-tests (Files): Likewise.
52478         * modules/copy-file-tests (Files): Likewise.
52479         * modules/count-one-bits-tests (Files): Likewise.
52480         * modules/dprintf-posix-tests (Files): Likewise.
52481         * modules/dup2-tests (Files): Likewise.
52482         * modules/dup3-tests (Files): Likewise.
52483         * modules/duplocale-tests (Files): Likewise.
52484         * modules/fbufmode-tests (Files): Likewise.
52485         * modules/fchdir-tests (Files): Likewise.
52486         * modules/fcntl-safer-tests (Files): Likewise.
52487         * modules/fcntl-tests (Files): Likewise.
52488         * modules/fdopendir-tests (Files): Likewise.
52489         * modules/fdutimensat-tests (Files): Likewise.
52490         * modules/fflush-tests (Files): Likewise.
52491         * modules/filevercmp-tests (Files): Likewise.
52492         * modules/flock-tests (Files): Likewise.
52493         * modules/floorf-tests (Files): Likewise.
52494         * modules/floorl-tests (Files): Likewise.
52495         * modules/fnmatch-tests (Files): Likewise.
52496         * modules/fopen-safer-tests (Files): Likewise.
52497         * modules/fopen-tests (Files): Likewise.
52498         * modules/fpending-tests (Files): Likewise.
52499         * modules/fprintf-posix-tests (Files): Likewise.
52500         * modules/fpurge-tests (Files): Likewise.
52501         * modules/freadable-tests (Files): Likewise.
52502         * modules/freadahead-tests (Files): Likewise.
52503         * modules/freading-tests (Files): Likewise.
52504         * modules/freadptr-tests (Files): Likewise.
52505         * modules/freadseek-tests (Files): Likewise.
52506         * modules/freopen-tests (Files): Likewise.
52507         * modules/frexp-nolibm-tests (Files): Likewise.
52508         * modules/frexp-tests (Files): Likewise.
52509         * modules/frexpl-nolibm-tests (Files): Likewise.
52510         * modules/frexpl-tests (Files): Likewise.
52511         * modules/fseek-tests (Files): Likewise.
52512         * modules/fseeko-tests (Files): Likewise.
52513         * modules/fstrcmp-tests (Files): Likewise.
52514         * modules/fsync-tests (Files): Likewise.
52515         * modules/ftell-tests (Files): Likewise.
52516         * modules/ftello-tests (Files): Likewise.
52517         * modules/func-tests (Files): Likewise.
52518         * modules/futimens-tests (Files): Likewise.
52519         * modules/fwritable-tests (Files): Likewise.
52520         * modules/fwriting-tests (Files): Likewise.
52521         * modules/getcwd-tests (Files): Likewise.
52522         * modules/getdate-tests (Files): Likewise.
52523         * modules/getdelim-tests (Files): Likewise.
52524         * modules/getdtablesize-tests (Files): Likewise.
52525         * modules/getgroups-tests (Files): Likewise.
52526         * modules/getline-tests (Files): Likewise.
52527         * modules/getndelim2-tests (Files): Likewise.
52528         * modules/glob-tests (Files): Likewise.
52529         * modules/hash-tests (Files): Likewise.
52530         * modules/i-ring-tests (Files): Likewise.
52531         * modules/iconv-tests (Files): Likewise.
52532         * modules/iconv_open-utf-tests (Files): Likewise.
52533         * modules/idpriv-drop-tests (Files): Likewise.
52534         * modules/idpriv-droptemp-tests (Files): Likewise.
52535         * modules/inet_ntop-tests (Files): Likewise.
52536         * modules/inet_pton-tests (Files): Likewise.
52537         * modules/isblank-tests (Files): Likewise.
52538         * modules/isfinite-tests (Files): Likewise.
52539         * modules/isinf-tests (Files): Likewise.
52540         * modules/isnan-tests (Files): Likewise.
52541         * modules/isnand-nolibm-tests (Files): Likewise.
52542         * modules/isnand-tests (Files): Likewise.
52543         * modules/isnanf-nolibm-tests (Files): Likewise.
52544         * modules/isnanf-tests (Files): Likewise.
52545         * modules/isnanl-nolibm-tests (Files): Likewise.
52546         * modules/isnanl-tests (Files): Likewise.
52547         * modules/lchown-tests (Files): Likewise.
52548         * modules/ldexpl-tests (Files): Likewise.
52549         * modules/link-tests (Files): Likewise.
52550         * modules/linkat-tests (Files): Likewise.
52551         * modules/linked-list-tests (Files): Likewise.
52552         * modules/linkedhash-list-tests (Files): Likewise.
52553         * modules/localename-tests (Files): Likewise.
52554         * modules/lseek-tests (Files): Likewise.
52555         * modules/lstat-tests (Files): Likewise.
52556         * modules/mbmemcasecmp-tests (Files): Likewise.
52557         * modules/mbmemcasecoll-tests (Files): Likewise.
52558         * modules/mbrtowc-tests (Files): Likewise.
52559         * modules/mbscasecmp-tests (Files): Likewise.
52560         * modules/mbscasestr-tests (Files): Likewise.
52561         * modules/mbschr-tests (Files): Likewise.
52562         * modules/mbscspn-tests (Files): Likewise.
52563         * modules/mbsinit-tests (Files): Likewise.
52564         * modules/mbsncasecmp-tests (Files): Likewise.
52565         * modules/mbsnrtowcs-tests (Files): Likewise.
52566         * modules/mbspbrk-tests (Files): Likewise.
52567         * modules/mbspcasecmp-tests (Files): Likewise.
52568         * modules/mbsrchr-tests (Files): Likewise.
52569         * modules/mbsrtowcs-tests (Files): Likewise.
52570         * modules/mbsspn-tests (Files): Likewise.
52571         * modules/mbsstr-tests (Files): Likewise.
52572         * modules/memchr-tests (Files): Likewise.
52573         * modules/memchr2-tests (Files): Likewise.
52574         * modules/memcmp-tests (Files): Likewise.
52575         * modules/memmem-tests (Files): Likewise.
52576         * modules/memrchr-tests (Files): Likewise.
52577         * modules/mkdir-tests (Files): Likewise.
52578         * modules/mkfifo-tests (Files): Likewise.
52579         * modules/mkfifoat-tests (Files): Likewise.
52580         * modules/mknod-tests (Files): Likewise.
52581         * modules/nanosleep-tests (Files): Likewise.
52582         * modules/nl_langinfo-tests (Files): Likewise.
52583         * modules/obstack-printf-tests (Files): Likewise.
52584         * modules/open-tests (Files): Likewise.
52585         * modules/openat-tests (Files): Likewise.
52586         * modules/pipe-filter-gi-tests (Files): Likewise.
52587         * modules/pipe-filter-ii-tests (Files): Likewise.
52588         * modules/pipe2-tests (Files): Likewise.
52589         * modules/popen-safer-tests (Files): Likewise.
52590         * modules/popen-tests (Files): Likewise.
52591         * modules/posixtm-tests (Files): Likewise.
52592         * modules/pread-tests (Files): Likewise.
52593         * modules/printf-frexp-tests (Files): Likewise.
52594         * modules/printf-frexpl-tests (Files): Likewise.
52595         * modules/printf-posix-tests (Files): Likewise.
52596         * modules/priv-set-tests (Files): Likewise.
52597         * modules/quotearg-tests (Files): Likewise.
52598         * modules/random_r-tests (Files): Likewise.
52599         * modules/rawmemchr-tests (Files): Likewise.
52600         * modules/rbtree-list-tests (Files): Likewise.
52601         * modules/rbtree-oset-tests (Files): Likewise.
52602         * modules/rbtreehash-list-tests (Files): Likewise.
52603         * modules/readlink-tests (Files): Likewise.
52604         * modules/remove-tests (Files): Likewise.
52605         * modules/rename-tests (Files): Likewise.
52606         * modules/renameat-tests (Files): Likewise.
52607         * modules/rmdir-tests (Files): Likewise.
52608         * modules/round-tests (Files): Likewise.
52609         * modules/roundf-tests (Files): Likewise.
52610         * modules/roundl-tests (Files): Likewise.
52611         * modules/safe-alloc-tests (Files): Likewise.
52612         * modules/setenv-tests (Files): Likewise.
52613         * modules/sigaction-tests (Files): Likewise.
52614         * modules/signbit-tests (Files): Likewise.
52615         * modules/sleep-tests (Files): Likewise.
52616         * modules/snprintf-posix-tests (Files): Likewise.
52617         * modules/snprintf-tests (Files): Likewise.
52618         * modules/sprintf-posix-tests (Files): Likewise.
52619         * modules/stat-tests (Files): Likewise.
52620         * modules/stat-time-tests (Files): Likewise.
52621         * modules/strcasestr-tests (Files): Likewise.
52622         * modules/strchrnul-tests (Files): Likewise.
52623         * modules/strerror-tests (Files): Likewise.
52624         * modules/striconv-tests (Files): Likewise.
52625         * modules/striconveh-tests (Files): Likewise.
52626         * modules/striconveha-tests (Files): Likewise.
52627         * modules/strsignal-tests (Files): Likewise.
52628         * modules/strstr-tests (Files): Likewise.
52629         * modules/strtod-tests (Files): Likewise.
52630         * modules/strverscmp-tests (Files): Likewise.
52631         * modules/symlink-tests (Files): Likewise.
52632         * modules/symlinkat-tests (Files): Likewise.
52633         * modules/trunc-tests (Files): Likewise.
52634         * modules/truncf-tests (Files): Likewise.
52635         * modules/truncl-tests (Files): Likewise.
52636         * modules/uname-tests (Files): Likewise.
52637         * modules/unicase/cased-tests (Files): Likewise.
52638         * modules/unicase/ignorable-tests (Files): Likewise.
52639         * modules/unicase/locale-language-tests (Files): Likewise.
52640         * modules/unicase/tolower-tests (Files): Likewise.
52641         * modules/unicase/totitle-tests (Files): Likewise.
52642         * modules/unicase/toupper-tests (Files): Likewise.
52643         * modules/unicase/u8-casecmp-tests (Files): Likewise.
52644         * modules/unicase/u8-casecoll-tests (Files): Likewise.
52645         * modules/unicase/u8-casefold-tests (Files): Likewise.
52646         * modules/unicase/u8-is-cased-tests (Files): Likewise.
52647         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
52648         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
52649         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
52650         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
52651         * modules/unicase/u8-tolower-tests (Files): Likewise.
52652         * modules/unicase/u8-totitle-tests (Files): Likewise.
52653         * modules/unicase/u8-toupper-tests (Files): Likewise.
52654         * modules/unicase/u16-casecmp-tests (Files): Likewise.
52655         * modules/unicase/u16-casecoll-tests (Files): Likewise.
52656         * modules/unicase/u16-casefold-tests (Files): Likewise.
52657         * modules/unicase/u16-is-cased-tests (Files): Likewise.
52658         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
52659         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
52660         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
52661         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
52662         * modules/unicase/u16-tolower-tests (Files): Likewise.
52663         * modules/unicase/u16-totitle-tests (Files): Likewise.
52664         * modules/unicase/u16-toupper-tests (Files): Likewise.
52665         * modules/unicase/u32-casecmp-tests (Files): Likewise.
52666         * modules/unicase/u32-casecoll-tests (Files): Likewise.
52667         * modules/unicase/u32-casefold-tests (Files): Likewise.
52668         * modules/unicase/u32-is-cased-tests (Files): Likewise.
52669         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
52670         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
52671         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
52672         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
52673         * modules/unicase/u32-tolower-tests (Files): Likewise.
52674         * modules/unicase/u32-totitle-tests (Files): Likewise.
52675         * modules/unicase/u32-toupper-tests (Files): Likewise.
52676         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
52677         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
52678         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
52679         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
52680         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
52681         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
52682         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
52683         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
52684         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
52685         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
52686         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
52687         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
52688         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
52689         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
52690         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
52691         * modules/unictype/bidicategory-name-tests (Files): Likewise.
52692         * modules/unictype/bidicategory-of-tests (Files): Likewise.
52693         * modules/unictype/bidicategory-test-tests (Files): Likewise.
52694         * modules/unictype/block-list-tests (Files): Likewise.
52695         * modules/unictype/block-of-tests (Files): Likewise.
52696         * modules/unictype/block-test-tests (Files): Likewise.
52697         * modules/unictype/category-C-tests (Files): Likewise.
52698         * modules/unictype/category-Cc-tests (Files): Likewise.
52699         * modules/unictype/category-Cf-tests (Files): Likewise.
52700         * modules/unictype/category-Cn-tests (Files): Likewise.
52701         * modules/unictype/category-Co-tests (Files): Likewise.
52702         * modules/unictype/category-Cs-tests (Files): Likewise.
52703         * modules/unictype/category-L-tests (Files): Likewise.
52704         * modules/unictype/category-Ll-tests (Files): Likewise.
52705         * modules/unictype/category-Lm-tests (Files): Likewise.
52706         * modules/unictype/category-Lo-tests (Files): Likewise.
52707         * modules/unictype/category-Lt-tests (Files): Likewise.
52708         * modules/unictype/category-Lu-tests (Files): Likewise.
52709         * modules/unictype/category-M-tests (Files): Likewise.
52710         * modules/unictype/category-Mc-tests (Files): Likewise.
52711         * modules/unictype/category-Me-tests (Files): Likewise.
52712         * modules/unictype/category-Mn-tests (Files): Likewise.
52713         * modules/unictype/category-N-tests (Files): Likewise.
52714         * modules/unictype/category-Nd-tests (Files): Likewise.
52715         * modules/unictype/category-Nl-tests (Files): Likewise.
52716         * modules/unictype/category-No-tests (Files): Likewise.
52717         * modules/unictype/category-P-tests (Files): Likewise.
52718         * modules/unictype/category-Pc-tests (Files): Likewise.
52719         * modules/unictype/category-Pd-tests (Files): Likewise.
52720         * modules/unictype/category-Pe-tests (Files): Likewise.
52721         * modules/unictype/category-Pf-tests (Files): Likewise.
52722         * modules/unictype/category-Pi-tests (Files): Likewise.
52723         * modules/unictype/category-Po-tests (Files): Likewise.
52724         * modules/unictype/category-Ps-tests (Files): Likewise.
52725         * modules/unictype/category-S-tests (Files): Likewise.
52726         * modules/unictype/category-Sc-tests (Files): Likewise.
52727         * modules/unictype/category-Sk-tests (Files): Likewise.
52728         * modules/unictype/category-Sm-tests (Files): Likewise.
52729         * modules/unictype/category-So-tests (Files): Likewise.
52730         * modules/unictype/category-Z-tests (Files): Likewise.
52731         * modules/unictype/category-Zl-tests (Files): Likewise.
52732         * modules/unictype/category-Zp-tests (Files): Likewise.
52733         * modules/unictype/category-Zs-tests (Files): Likewise.
52734         * modules/unictype/category-and-not-tests (Files): Likewise.
52735         * modules/unictype/category-and-tests (Files): Likewise.
52736         * modules/unictype/category-byname-tests (Files): Likewise.
52737         * modules/unictype/category-name-tests (Files): Likewise.
52738         * modules/unictype/category-none-tests (Files): Likewise.
52739         * modules/unictype/category-of-tests (Files): Likewise.
52740         * modules/unictype/category-or-tests (Files): Likewise.
52741         * modules/unictype/category-test-withtable-tests (Files): Likewise.
52742         * modules/unictype/combining-class-tests (Files): Likewise.
52743         * modules/unictype/ctype-alnum-tests (Files): Likewise.
52744         * modules/unictype/ctype-alpha-tests (Files): Likewise.
52745         * modules/unictype/ctype-blank-tests (Files): Likewise.
52746         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
52747         * modules/unictype/ctype-digit-tests (Files): Likewise.
52748         * modules/unictype/ctype-graph-tests (Files): Likewise.
52749         * modules/unictype/ctype-lower-tests (Files): Likewise.
52750         * modules/unictype/ctype-print-tests (Files): Likewise.
52751         * modules/unictype/ctype-punct-tests (Files): Likewise.
52752         * modules/unictype/ctype-space-tests (Files): Likewise.
52753         * modules/unictype/ctype-upper-tests (Files): Likewise.
52754         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
52755         * modules/unictype/decimal-digit-tests (Files): Likewise.
52756         * modules/unictype/digit-tests (Files): Likewise.
52757         * modules/unictype/mirror-tests (Files): Likewise.
52758         * modules/unictype/numeric-tests (Files): Likewise.
52759         * modules/unictype/property-alphabetic-tests (Files): Likewise.
52760         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
52761         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
52762         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
52763         Likewise.
52764         * modules/unictype/property-bidi-block-separator-tests (Files):
52765         Likewise.
52766         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
52767         Likewise.
52768         * modules/unictype/property-bidi-common-separator-tests (Files):
52769         Likewise.
52770         * modules/unictype/property-bidi-control-tests (Files): Likewise.
52771         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
52772         Likewise.
52773         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
52774         Likewise.
52775         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
52776         Likewise.
52777         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
52778         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
52779         Likewise.
52780         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
52781         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
52782         Likewise.
52783         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
52784         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
52785         * modules/unictype/property-bidi-segment-separator-tests (Files):
52786         Likewise.
52787         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
52788         * modules/unictype/property-byname-tests (Files): Likewise.
52789         * modules/unictype/property-combining-tests (Files): Likewise.
52790         * modules/unictype/property-composite-tests (Files): Likewise.
52791         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
52792         * modules/unictype/property-dash-tests (Files): Likewise.
52793         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
52794         * modules/unictype/property-default-ignorable-code-point-tests (Files):
52795         Likewise.
52796         * modules/unictype/property-deprecated-tests (Files): Likewise.
52797         * modules/unictype/property-diacritic-tests (Files): Likewise.
52798         * modules/unictype/property-extender-tests (Files): Likewise.
52799         * modules/unictype/property-format-control-tests (Files): Likewise.
52800         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
52801         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
52802         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
52803         * modules/unictype/property-hex-digit-tests (Files): Likewise.
52804         * modules/unictype/property-hyphen-tests (Files): Likewise.
52805         * modules/unictype/property-id-continue-tests (Files): Likewise.
52806         * modules/unictype/property-id-start-tests (Files): Likewise.
52807         * modules/unictype/property-ideographic-tests (Files): Likewise.
52808         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
52809         * modules/unictype/property-ids-trinary-operator-tests (Files):
52810         Likewise.
52811         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
52812         * modules/unictype/property-iso-control-tests (Files): Likewise.
52813         * modules/unictype/property-join-control-tests (Files): Likewise.
52814         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
52815         * modules/unictype/property-line-separator-tests (Files): Likewise.
52816         * modules/unictype/property-logical-order-exception-tests (Files):
52817         Likewise.
52818         * modules/unictype/property-lowercase-tests (Files): Likewise.
52819         * modules/unictype/property-math-tests (Files): Likewise.
52820         * modules/unictype/property-non-break-tests (Files): Likewise.
52821         * modules/unictype/property-not-a-character-tests (Files): Likewise.
52822         * modules/unictype/property-numeric-tests (Files): Likewise.
52823         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
52824         * modules/unictype/property-other-default-ignorable-code-point-tests
52825         (Files): Likewise.
52826         * modules/unictype/property-other-grapheme-extend-tests (Files):
52827         Likewise.
52828         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
52829         * modules/unictype/property-other-id-start-tests (Files): Likewise.
52830         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
52831         * modules/unictype/property-other-math-tests (Files): Likewise.
52832         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
52833         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
52834         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
52835         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
52836         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
52837         * modules/unictype/property-private-use-tests (Files): Likewise.
52838         * modules/unictype/property-punctuation-tests (Files): Likewise.
52839         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
52840         * modules/unictype/property-radical-tests (Files): Likewise.
52841         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
52842         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
52843         * modules/unictype/property-space-tests (Files): Likewise.
52844         * modules/unictype/property-terminal-punctuation-tests (Files):
52845         Likewise.
52846         * modules/unictype/property-test-tests (Files): Likewise.
52847         * modules/unictype/property-titlecase-tests (Files): Likewise.
52848         * modules/unictype/property-unassigned-code-value-tests (Files):
52849         Likewise.
52850         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
52851         * modules/unictype/property-uppercase-tests (Files): Likewise.
52852         * modules/unictype/property-variation-selector-tests (Files): Likewise.
52853         * modules/unictype/property-white-space-tests (Files): Likewise.
52854         * modules/unictype/property-xid-continue-tests (Files): Likewise.
52855         * modules/unictype/property-xid-start-tests (Files): Likewise.
52856         * modules/unictype/property-zero-width-tests (Files): Likewise.
52857         * modules/unictype/scripts-tests (Files): Likewise.
52858         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
52859         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
52860         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
52861         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
52862         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
52863         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
52864         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
52865         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
52866         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
52867         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
52868         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
52869         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
52870         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
52871         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
52872         * modules/uninorm/composition-tests (Files): Likewise.
52873         * modules/uninorm/decomposing-form-tests (Files): Likewise.
52874         * modules/uninorm/decomposition-tests (Files): Likewise.
52875         * modules/uninorm/filter-tests (Files): Likewise.
52876         * modules/uninorm/nfc-tests (Files): Likewise.
52877         * modules/uninorm/nfd-tests (Files): Likewise.
52878         * modules/uninorm/nfkc-tests (Files): Likewise.
52879         * modules/uninorm/nfkd-tests (Files): Likewise.
52880         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
52881         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
52882         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
52883         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
52884         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
52885         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
52886         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
52887         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52888         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
52889         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
52890         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
52891         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
52892         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52893         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
52894         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
52895         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
52896         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
52897         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52898         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
52899         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
52900         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
52901         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
52902         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52903         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
52904         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
52905         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
52906         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
52907         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
52908         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
52909         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
52910         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
52911         * modules/uniwidth/u8-width-tests (Files): Likewise.
52912         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
52913         * modules/uniwidth/u16-width-tests (Files): Likewise.
52914         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
52915         * modules/uniwidth/u32-width-tests (Files): Likewise.
52916         * modules/uniwidth/width-tests (Files): Likewise.
52917         * modules/unlink-tests (Files): Likewise.
52918         * modules/unsetenv-tests (Files): Likewise.
52919         * modules/usleep-tests (Files): Likewise.
52920         * modules/utimens-tests (Files): Likewise.
52921         * modules/utimensat-tests (Files): Likewise.
52922         * modules/vasnprintf-posix-tests (Files): Likewise.
52923         * modules/vasnprintf-tests (Files): Likewise.
52924         * modules/vasprintf-posix-tests (Files): Likewise.
52925         * modules/vasprintf-tests (Files): Likewise.
52926         * modules/vdprintf-posix-tests (Files): Likewise.
52927         * modules/vfprintf-posix-tests (Files): Likewise.
52928         * modules/vprintf-posix-tests (Files): Likewise.
52929         * modules/vsnprintf-posix-tests (Files): Likewise.
52930         * modules/vsnprintf-tests (Files): Likewise.
52931         * modules/vsprintf-posix-tests (Files): Likewise.
52932         * modules/wcrtomb-tests (Files): Likewise.
52933         * modules/wcsnrtombs-tests (Files): Likewise.
52934         * modules/wcsrtombs-tests (Files): Likewise.
52935         * modules/wctype-tests (Files): Likewise.
52936         * modules/wcwidth-tests (Files): Likewise.
52937         * modules/xmemdup0-tests (Files): Likewise.
52938         * modules/xprintf-posix-tests (Files): Likewise.
52939         * modules/xvasprintf-tests (Files): Likewise.
52941 2009-12-24  Eric Blake  <ebb9@byu.net>
52943         test-nanosleep: fix typo
52944         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
52945         patch.
52946         Reported by Bruno Haible.
52948 2009-12-24  Bruno Haible  <bruno@clisp.org>
52950         Reduce namespace pollution on glibc systems.
52951         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
52952         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
52953         systems.
52954         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
52955         <getopt.h> on glibc systems.
52956         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
52957         systems.
52958         * lib/fcntl.c: Include <unistd.h> here instead.
52960 2009-12-24  Bruno Haible  <bruno@clisp.org>
52962         * lib/stdlib.in.h (includes): Fix typo in today's commit.
52964 2009-12-24  Eric Blake  <ebb9@byu.net>
52966         tests: add signature checks
52967         * tests/signature.h (SIGNATURE_CHECK): New file.
52968         * modules/atexit-tests (Files): Use it.
52969         * modules/btowc-tests (Files): Likewise.
52970         * modules/canonicalize-lgpl-tests (Files): Likewise.
52971         * modules/ceilf-tests (Files): Likewise.
52972         * modules/ceill-tests (Files): Likewise.
52973         * modules/chown-tests (Files): Likewise.
52974         * modules/dprintf-posix-tests (Files): Likewise.
52975         * modules/dup2-tests (Files): Likewise.
52976         * modules/dup3-tests (Files): Likewise.
52977         * modules/duplocale-tests (Files): Likewise.
52978         * modules/fchdir-tests (Files): Likewise.
52979         * modules/fcntl-tests (Files): Likewise.
52980         * modules/fdopendir-tests (Files): Likewise.
52981         * modules/fflush-tests (Files): Likewise.
52982         * modules/flock-tests (Files): Likewise.
52983         * modules/floorf-tests (Files): Likewise.
52984         * modules/floorl-tests (Files): Likewise.
52985         * modules/fnmatch-tests (Files): Likewise.
52986         * modules/fopen-tests (Files): Likewise.
52987         * modules/fprintf-posix-tests (Files): Likewise.
52988         * modules/freopen-tests (Files): Likewise.
52989         * modules/frexp-nolibm-tests (Files): Likewise.
52990         * modules/frexp-tests (Files): Likewise.
52991         * modules/frexpl-nolibm-tests (Files): Likewise.
52992         * modules/frexpl-tests (Files): Likewise.
52993         * modules/fseek-tests (Files): Likewise.
52994         * modules/fseeko-tests (Files): Likewise.
52995         * modules/fsync-tests (Files): Likewise.
52996         * modules/ftell-tests (Files): Likewise.
52997         * modules/ftello-tests (Files): Likewise.
52998         * modules/futimens-tests (Files): Likewise.
52999         * modules/getaddrinfo-tests (Files): Likewise.
53000         * modules/getcwd-tests (Files): Likewise.
53001         * modules/getdelim-tests (Files): Likewise.
53002         * modules/getdtablesize-tests (Files): Likewise.
53003         * modules/getgroups-tests (Files): Likewise.
53004         * modules/gethostname-tests (Files): Likewise.
53005         * modules/getline-tests (Files): Likewise.
53006         * modules/getopt-posix-tests (Files): Likewise.
53007         * modules/gettimeofday-tests (Files): Likewise.
53008         * modules/glob-tests (Files): Likewise.
53009         * modules/iconv-tests (Files): Likewise.
53010         * modules/inet_ntop-tests (Files): Likewise.
53011         * modules/inet_pton-tests (Files): Likewise.
53012         * modules/isblank-tests (Files): Likewise.
53013         * modules/lchown-tests (Files): Likewise.
53014         * modules/ldexpl-tests (Files): Likewise.
53015         * modules/link-tests (Files): Likewise.
53016         * modules/linkat-tests (Files): Likewise.
53017         * modules/lseek-tests (Files): Likewise.
53018         * modules/lstat-tests (Files): Likewise.
53019         * modules/mbrtowc-tests (Files): Likewise.
53020         * modules/mbsinit-tests (Files): Likewise.
53021         * modules/mbsnrtowcs-tests (Files): Likewise.
53022         * modules/mbsrtowcs-tests (Files): Likewise.
53023         * modules/memchr-tests (Files): Likewise.
53024         * modules/memcmp-tests (Files): Likewise.
53025         * modules/memmem-tests (Files): Likewise.
53026         * modules/memrchr-tests (Files): Likewise.
53027         * modules/mkdir-tests (Files): Likewise.
53028         * modules/mkfifo-tests (Files): Likewise.
53029         * modules/mkfifoat-tests (Files): Likewise.
53030         * modules/mknod-tests (Files): Likewise.
53031         * modules/nanosleep-tests (Files): Likewise.
53032         * modules/nl_langinfo-tests (Files): Likewise.
53033         * modules/obstack-printf-tests (Files): Likewise.
53034         * modules/open-tests (Files): Likewise.
53035         * modules/openat-tests (Files): Likewise.
53036         * modules/perror-tests (Files): Likewise.
53037         * modules/pipe2-tests (Files): Likewise.
53038         * modules/poll-tests (Files): Likewise.
53039         * modules/popen-tests (Files): Likewise.
53040         * modules/posix_spawn-tests (Files): Likewise.
53041         * modules/posix_spawnp-tests (Files): Likewise.
53042         * modules/pread-tests (Files): Likewise.
53043         * modules/printf-posix-tests (Files): Likewise.
53044         * modules/pty-tests (Files): Likewise.
53045         * modules/random_r-tests (Files): Likewise.
53046         * modules/rawmemchr-tests (Files): Likewise.
53047         * modules/readlink-tests (Files): Likewise.
53048         * modules/remove-tests (Files): Likewise.
53049         * modules/rename-tests (Files): Likewise.
53050         * modules/renameat-tests (Files): Likewise.
53051         * modules/rmdir-tests (Files): Likewise.
53052         * modules/round-tests (Files): Likewise.
53053         * modules/roundf-tests (Files): Likewise.
53054         * modules/roundl-tests (Files): Likewise.
53055         * modules/select-tests (Files): Likewise.
53056         * modules/setenv-tests (Files): Likewise.
53057         * modules/sigaction-tests (Files): Likewise.
53058         * modules/sleep-tests (Files): Likewise.
53059         * modules/snprintf-posix-tests (Files): Likewise.
53060         * modules/snprintf-tests (Files): Likewise.
53061         * modules/sprintf-posix-tests (Files): Likewise.
53062         * modules/stat-tests (Files): Likewise.
53063         * modules/strcasestr-tests (Files): Likewise.
53064         * modules/strchrnul-tests (Files): Likewise.
53065         * modules/strerror-tests (Files): Likewise.
53066         * modules/strsignal-tests (Files): Likewise.
53067         * modules/strstr-tests (Files): Likewise.
53068         * modules/strtod-tests (Files): Likewise.
53069         * modules/strverscmp-tests (Files): Likewise.
53070         * modules/symlink-tests (Files): Likewise.
53071         * modules/symlinkat-tests (Files): Likewise.
53072         * modules/times-tests (Files): Likewise.
53073         * modules/trunc-tests (Files): Likewise.
53074         * modules/truncf-tests (Files): Likewise.
53075         * modules/truncl-tests (Files): Likewise.
53076         * modules/tsearch-tests (Files): Likewise.
53077         * modules/uname-tests (Files): Likewise.
53078         * modules/unlink-tests (Files): Likewise.
53079         * modules/unsetenv-tests (Files): Likewise.
53080         * modules/usleep-tests (Files): Likewise.
53081         * modules/utimensat-tests (Files): Likewise.
53082         * modules/vasprintf-tests (Files): Likewise.
53083         * modules/vdprintf-posix-tests (Files): Likewise.
53084         * modules/vfprintf-posix-tests (Files): Likewise.
53085         * modules/vprintf-posix-tests (Files): Likewise.
53086         * modules/vsnprintf-posix-tests (Files): Likewise.
53087         * modules/vsnprintf-tests (Files): Likewise.
53088         * modules/vsprintf-posix-tests (Files): Likewise.
53089         * modules/wcrtomb-tests (Files): Likewise.
53090         * modules/wcsnrtombs-tests (Files): Likewise.
53091         * modules/wcsrtombs-tests (Files): Likewise.
53092         * modules/wcwidth-tests (Files): Likewise.
53093         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
53094         * tests/test-isinf.c (isinf): Likewise.
53095         * tests/test-isnan.c (isnan): Likewise.
53096         * tests/test-signbit.c (signbit): Likewise.
53097         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
53098         declaration, either as macro or with correct signature.
53099         (select): Ensure function under test is declared with correct
53100         signature in correct header.
53101         * tests/test-atexit.c (atexit): Likewise.
53102         * tests/test-btowc.c (btowc): Likewise.
53103         * tests/test-canonicalize-lgpl.c (realpath)
53104         (canonicalize_file_name): Likewise.
53105         * tests/test-ceilf1.c (ceilf): Likewise.
53106         * tests/test-ceill.c (ceill): Likewise.
53107         * tests/test-chown.c (chown): Likewise.
53108         * tests/test-dprintf-posix.c (dprintf): Likewise.
53109         * tests/test-dup2.c (dup2): Likewise.
53110         * tests/test-dup3.c (dup3): Likewise.
53111         * tests/test-duplocale.c (duplocale): Likewise.
53112         * tests/test-fchdir.c (fchdir): Likewise.
53113         * tests/test-fchownat.c (fchownat): Likewise.
53114         * tests/test-fcntl.c (fcntl): Likewise.
53115         * tests/test-fdopendir.c (fdopendir): Likewise.
53116         * tests/test-fflush.c (fflush): Likewise.
53117         * tests/test-flock.c (flock): Likewise.
53118         * tests/test-floorf1.c (floorf): Likewise.
53119         * tests/test-floorl.c (floorl): Likewise.
53120         * tests/test-fnmatch.c (fnmatch): Likewise.
53121         * tests/test-fopen.c (fopen): Likewise.
53122         * tests/test-fprintf-posix.c (fprintf): Likewise.
53123         * tests/test-freopen.c (freopen): Likewise.
53124         * tests/test-frexp.c (frexp): Likewise.
53125         * tests/test-frexpl.c (frexpl): Likewise.
53126         * tests/test-fseek.c (fseek): Likewise.
53127         * tests/test-fseeko.c (fseeko): Likewise.
53128         * tests/test-fstatat.c (fstatat): Likewise.
53129         * tests/test-fsync.c (fsync): Likewise.
53130         * tests/test-ftell.c (ftell): Likewise.
53131         * tests/test-ftello.c (ftello): Likewise.
53132         * tests/test-futimens.c (futimens): Likewise.
53133         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
53134         (gai_strerror): Likewise.
53135         * tests/test-getcwd.c (getcwd): Likewise.
53136         * tests/test-getdelim.c (getdelim): Likewise.
53137         * tests/test-getdtablesize.c (getdtablesize): Likewise.
53138         * tests/test-getgroups.c (getgroups): Likewise.
53139         * tests/test-gethostname.c (gethostname): Likewise.
53140         * tests/test-getline.c (getline): Likewise.
53141         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
53142         Likewise.
53143         * tests/test-gettimeofday.c (gettimeofday): Likewise.
53144         * tests/test-glob.c (glob, globfree): Likewise.
53145         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
53146         * tests/test-inet_ntop.c (inet_ntop): Likewise.
53147         * tests/test-inet_pton.c (inet_pton): Likewise.
53148         * tests/test-isblank.c (isblank): Likewise.
53149         * tests/test-lchown.c (lchown): Likewise.
53150         * tests/test-ldexpl.c (ldexpl): Likewise.
53151         * tests/test-link.c (link): Likewise.
53152         * tests/test-linkat.c (linkat): Likewise.
53153         * tests/test-lseek.c (lseek): Likewise.
53154         * tests/test-lstat.c (lstat): Likewise.
53155         * tests/test-mbrtowc.c (mbrtowc): Likewise.
53156         * tests/test-mbsinit.c (mbsinit): Likewise.
53157         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
53158         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
53159         * tests/test-memchr.c (memchr): Likewise.
53160         * tests/test-memcmp.c (memcmp): Likewise.
53161         * tests/test-memmem.c (memmem): Likewise.
53162         * tests/test-memrchr.c (memrchr): Likewise.
53163         * tests/test-mkdir.c (mkdir): Likewise.
53164         * tests/test-mkdirat.c (mkdirat): Likewise.
53165         * tests/test-mkfifo.c (mkfifo): Likewise.
53166         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
53167         * tests/test-mknod.c (mknod): Likewise.
53168         * tests/test-nanosleep.c (nanosleep): Likewise.
53169         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
53170         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
53171         Likewise.
53172         * tests/test-open.c (open): Likewise.
53173         * tests/test-openat.c (openat): Likewise.
53174         * tests/test-perror.c (perror): Likewise.
53175         * tests/test-pipe2.c (pipe2): Likewise.
53176         * tests/test-poll.c (poll): Likewise.
53177         * tests/test-popen.c (popen, pclose): Likewise.
53178         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
53179         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
53180         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
53181         (posix_spawn_file_actions_destroy)
53182         (posix_spawn_file_actions_addclose)
53183         (posix_spawn_file_actions_addopen)
53184         (posix_spawn_file_actions_adddup2): Likewise.
53185         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
53186         * tests/test-pread.c (pread): Likewise.
53187         * tests/test-printf-posix.c (printf): Likewise.
53188         * tests/test-pty.c (openpty, forkpty): Likewise.
53189         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
53190         (random_r): Likewise.
53191         * tests/test-rawmemchr.c (rawmemchr): Likewise.
53192         * tests/test-readlink.c (readlink): Likewise.
53193         * tests/test-remove.c (remove): Likewise.
53194         * tests/test-rename.c (rename): Likewise.
53195         * tests/test-renameat.c (renameat): Likewise.
53196         * tests/test-rmdir.c (rmdir): Likewise.
53197         * tests/test-round1.c (round): Likewise.
53198         * tests/test-roundf1.c (roundf): Likewise.
53199         * tests/test-roundl.c (roundl): Likewise.
53200         * tests/test-setenv.c (setenv): Likewise.
53201         * tests/test-sigaction.c (sigaction): Likewise.
53202         * tests/test-sleep.c (sleep): Likewise.
53203         * tests/test-snprintf.c (snprintf): Likewise.
53204         * tests/test-sprintf-posix.c (sprintf): Likewise.
53205         * tests/test-stat.c (stat): Likewise.
53206         * tests/test-stpncpy.c (stpncpy): Likewise.
53207         * tests/test-strcasestr.c (strcasestr): Likewise.
53208         * tests/test-strchrnul.c (strchrnul): Likewise.
53209         * tests/test-strerror.c (strerror): Likewise.
53210         * tests/test-strsignal.c (strsignal): Likewise.
53211         * tests/test-strstr.c (strstr): Likewise.
53212         * tests/test-strtod.c (strtod): Likewise.
53213         * tests/test-strverscmp.c (strverscmp): Likewise.
53214         * tests/test-symlink.c (symlink): Likewise.
53215         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
53216         * tests/test-times.c (times): Likewise.
53217         * tests/test-trunc1.c (trunc): Likewise.
53218         * tests/test-truncf1.c (truncf): Likewise.
53219         * tests/test-truncl.c (truncl): Likewise.
53220         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
53221         Likewise.
53222         * tests/test-uname.c (uname): Likewise.
53223         * tests/test-unlink.c (unlink): Likewise.
53224         * tests/test-unlinkat.c (unlinkat): Likewise.
53225         * tests/test-unsetenv.c (unsetenv): Likewise.
53226         * tests/test-usleep.c (usleep): Likewise.
53227         * tests/test-utimensat.c (utimensat): Likewise.
53228         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
53229         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
53230         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
53231         * tests/test-vprintf-posix.c (vprintf): Likewise.
53232         * tests/test-vsnprintf.c (vsnprintf): Likewise.
53233         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
53234         * tests/test-wcrtomb.c (wcrtomb): Likewise.
53235         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
53236         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
53237         * tests/test-wcwidth.c (wcwidth): Likewise.
53239         build: pull in conditional headers during GNULIB_POSIXCHECK
53240         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
53241         definitions from any conditionally-included headers.
53242         * lib/stdlib.in.h (includes): Likewise.
53243         * lib/unistd.in.h (includes): Likewise.
53245 2009-12-24  Bruno Haible  <bruno@clisp.org>
53247         * tests/test-argv-iter.c: Include header file being tested immediately
53248         after config.h.
53249         * tests/test-base64.c: Likewise.
53250         * tests/test-flock.c: Likewise.
53251         * tests/test-fsync.c: Likewise.
53252         * tests/test-getdate.c: Likewise.
53253         * tests/test-getndelim2.c: Likewise.
53254         * tests/test-isfinite.c: Likewise.
53255         * tests/test-isinf.c: Likewise.
53256         * tests/test-strerror.c: Likewise.
53257         * tests/test-strsignal.c: Likewise.
53259 2009-12-23  Eric Blake  <ebb9@byu.net>
53261         unistd: work around cygwin bug
53262         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
53263         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
53264         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
53266 2009-12-23  Bruno Haible  <bruno@clisp.org>
53268         localename: More tests.
53269         * tests/test-localename.c (SIZEOF): New macro.
53270         (categories): New variable.
53271         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
53272         test_locale_name_default): Add test w.r.t. thread locale.
53273         (test_locale_name_thread): New function.
53274         (main): Invoke it.
53276         localename: Make aware of thread locale.
53277         * lib/localename.h (gl_locale_name_thread): New declaration.
53278         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
53279         behaviour with respect to thread locale.
53280         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
53281         <langinfo.h>, glthread/lock.h.
53282         (SIZE_BITS): New macro.
53283         (string_hash): New function.
53284         (struct hash_node): New type.
53285         (HASH_TABLE_SIZE): New macro.
53286         (struniq_hash_table, struniq_lock): New variables.
53287         (struniq): New function.
53288         (gl_locale_name_thread): New function.
53289         (gl_locale_name): Invoke it.
53290         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
53291         * modules/localename (Depends-on): Add lock.
53292         Reported by Mike Gran <spk121@yahoo.com>.
53294 2009-12-23  Eric Blake  <ebb9@byu.net>
53296         va-args: new module
53297         * modules/va-args: New file.
53298         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
53299         * MODULES.html.sh (Core language properties): Mention it.
53301         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
53302         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
53303         named alias for __attribute__((__unused__)).
53304         * lib/chown.c: Update client.
53305         * lib/fchmodat.c: Likewise.
53306         * lib/fts.c: Likewise.
53307         * lib/getdate.y: Likewise.
53308         * lib/getgroups.c: Likewise.
53309         * lib/getopt.c: Likewise.
53310         * lib/getugroups.c: Likewise.
53311         * lib/mkdir.c: Likewise.
53312         * lib/mkfifo.c: Likewise.
53313         * lib/mkfifoat.c: Likewise.
53314         * lib/mknod.c: Likewise.
53315         * lib/mknodat.c: Likewise.
53316         * lib/readlink.c: Likewise.
53317         * lib/se-context.in.h: Likewise.
53318         * lib/se-selinux.in.h: Likewise.
53319         * lib/sockets.c: Likewise.
53320         * lib/symlink.c: Likewise.
53321         * lib/symlinkat.c: Likewise.
53322         * lib/unicodeio.c: Likewise.
53323         * lib/unistr.h: Likewise.
53324         * tests/test-areadlink.c: Likewise.
53325         * tests/test-areadlinkat.c: Likewise.
53326         * tests/test-filenamecat.c: Likewise.
53327         * tests/test-fseeko.c: Likewise.
53328         * tests/test-ftello.c: Likewise.
53329         * tests/test-getdate.c: Likewise.
53330         * tests/test-getgroups.c: Likewise.
53331         * tests/test-gethostname.c: Likewise.
53332         * tests/test-quotearg.c: Likewise.
53333         * tests/test-version-etc.c: Likewise.
53334         * tests/test-xalloc-die.c: Likewise.
53335         * tests/test-xfprintf-posix.c: Likewise.
53336         * tests/test-xprintf-posix.c: Likewise.
53337         * tests/test-xvasprintf.c: Likewise.
53339         tests: avoid compiler warnings
53340         * tests/test-fcntl.c (main): Delete unused parameters.
53341         * tests/test-freopen-safer.c (main): Likewise.
53342         * tests/test-xalloc-die.c (main): Mark unused parameters.
53343         * tests/test-fseeko.c (main): Likewise.
53344         * tests/test-ftello.c (main): Likewise.
53345         * tests/test-nanosleep.c (main): Avoid declaration warning.
53346         * tests/test-sleep.c (main): Likewise.
53347         * tests/test-unsetenv.c (main): Silence warning about string
53348         literal.
53349         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
53351 2009-12-23  Bruno Haible  <bruno@clisp.org>
53353         * tests/test-localename.c (test_locale_name): New function, extracted
53354         from main. Also test mixed situations.
53355         (test_locale_name_posix, test_locale_name_environ,
53356         test_locale_name_default): New functions.
53357         (main): Invoke them all.
53358         * modules/localename-tests (configure.ac): Test for newlocale.
53360 2009-12-23  Bruno Haible  <bruno@clisp.org>
53362         unistd: Ensure getcwd gets declared before being overridden.
53363         * lib/unistd.in.h: Conditionally include <io.h>.
53365 2009-12-22  Bruno Haible  <bruno@clisp.org>
53367         wchar: Diagnose broken combination of glibc and gcc versions and flags.
53368         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
53369         (gl_WCHAR_H): Invoke it.
53370         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
53371         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
53372         Reported by Karl Berry <karl@freefriends.org>.
53374 2009-12-22  Eric Blake  <ebb9@byu.net>
53376         math, unistd: avoid redundant includes
53377         * lib/math.in.h (isnan): No need to re-include <math.h>.
53378         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
53380         getsubopt: work around cygwin bug
53381         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
53382         avoid conflicting with system getsubopt.
53383         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
53384         bug.
53386         getopt: synchronize from glibc
53387         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
53388         parameter order.  Adjust all callers.
53389         (_getopt_internal_r, main): Adjust quoting in error messages.
53390         Drop considerations for outdated POSIX 1003.2 error message.
53391         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
53392         callers.
53393         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
53395         test-getopt: test stderr behavior
53396         * modules/getopt-posix-tests (Depends-on): Add dup2.
53397         * tests/test-getopt.c (ASSERT): Avoid stderr.
53398         (main): Move stderr to a temporary file.
53399         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
53400         Instead, add parameter to inform caller if output occurred.
53401         (test_getopt): Adjust all existing tests to expect silence, and
53402         add new tests of leading ":".
53403         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
53404         glibc shortcomings with leading "-:" or "+:" in optstring.
53405         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53406         Likewise.
53407         * doc/posix-functions/getopt.texi (getopt): Likewise.
53409         test-getopt: enhance test
53410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
53411         supports optind=0.
53412         * tests/test-getopt.c (OPTIND_MIN): Move...
53413         * tests/test-getopt.h (OPTIND_MIN): ...here.
53414         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
53415         Require that optind=0 works, since modern BSD supports it in
53416         addition to optreset, and since coreutils expects it.
53417         (test_getopt_long_only): New test.
53418         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
53419         glibc shortcomings with 'W;', and enforcement of optind=0.
53420         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53421         Likewise.
53423 2009-12-21  Bruno Haible  <bruno@clisp.org>
53425         localename: Improvements for MacOS X and Cygwin.
53426         * lib/localename.h (gl_locale_name_environ): New declaration.
53427         * lib/localename.c (gl_locale_name_environ): New function, extracted from
53428         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
53429         (gl_locale_name_posix): Invoke it.
53430         (gl_locale_name_default): Add comments. Use Windows native API also on
53431         Cygwin.
53433 2009-12-21  Bruno Haible  <bruno@clisp.org>
53435         Update list of Win32 locale ids.
53436         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
53437         (LANG_SAMI): Renamed from LANG_SAAMI.
53438         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
53439         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
53440         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
53441         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
53442         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
53443         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
53444         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
53445         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
53446         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
53447         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
53448         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
53449         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
53450         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
53451         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
53452         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
53453         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
53454         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
53455         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
53456         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
53457         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
53458         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
53459         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
53460         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
53461         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
53462         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
53463         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
53464         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
53465         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
53466         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
53467         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
53468         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
53469         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
53470         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
53471         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
53472         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
53473         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
53474         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
53475         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
53476         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
53477         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
53478         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
53479         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
53480         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
53481         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
53482         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
53483         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
53484         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
53485         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
53486         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
53487         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
53488         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
53489         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
53490         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
53491         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
53492         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
53493         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
53494         Add more languages and countries for Sami, Sorbian. Add more countries
53495         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
53496         for Pashto. Change country for Syriac, Tswana.
53498 2009-12-21  Eric Blake  <ebb9@byu.net>
53500         test-utimens: avoid spurious failure
53501         * tests/test-chown.h (nap): Factor...
53502         * tests/nap.h: ...into new file.
53503         * tests/test-lchown.h (nap): Avoid duplication.
53504         * tests/test-utimens-common.h (nap): Use shared implementation,
53505         necessary on file systems with 1-second resolution.
53506         * modules/chown-tests (Files): Include new file.
53507         * modules/fdutimensat-tests (Files): Likewise.
53508         * modules/futimens-tests (Files): Likewise.
53509         * modules/lchown-tests (Files): Likewise.
53510         * modules/openat-tests (Files): Likewise.
53511         * modules/utimens-tests (Files): Likewise.
53512         * modules/utimensat-tests (Files): Likewise.
53514 2009-12-19  Eric Blake  <ebb9@byu.net>
53516         futimens, utimensat: work around Linux bug
53517         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
53518         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
53519         * lib/utimensat.c (rpl_utimensat): Work around it.
53520         * lib/futimens.c (rpl_futimens): Adjust comment.
53522         utimens: work around Linux ctime bug
53523         * lib/utimens.c (detect_ctime_bug): New helper function.
53524         (update_timespec): Differentiate between workaround needed for
53525         this bug vs. what is needed for systems that lack utimensat.
53526         (fdutimens, lutimens): Work around bug.
53528         utimens: check for ctime update
53529         * tests/test-utimens-common.h (check_ctime): Define.
53530         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
53531         * tests/test-futimens.h (test_futimens): Likewise.
53532         * tests/test-lutimens.h (test_lutimens): Likewise.
53533         * doc/posix-functions/futimens.texi (futimens): Document the bug.
53534         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
53536 2009-12-19  Bruno Haible  <bruno@clisp.org>
53538         dprintf-posix: Check against memory leak fixed on 2009-12-15.
53539         * tests/test-dprintf-posix2.sh: New file.
53540         * tests/test-dprintf-posix2.c: New file.
53541         * modules/dprintf-posix-tests (Files): Add them.
53542         (configure.ac): Check for getrlimit and setrlimit.
53543         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
53545 2009-12-19  Bruno Haible  <bruno@clisp.org>
53547         fprintf-posix: Check against memory leak fixed on 2009-12-15.
53548         * tests/test-fprintf-posix3.sh: New file.
53549         * tests/test-fprintf-posix3.c: New file.
53550         * modules/fprintf-posix-tests (Files): Add them.
53551         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
53553 2009-12-19  Eric Blake  <ebb9@byu.net>
53555         dirfd: fix prototype
53556         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
53557         * lib/dirfd.c (dirfd): Likewise.
53559         canonicalize: reduce memory usage
53560         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
53561         allocation to size.
53562         Reported by Solar Designer <solar@openwall.com>.
53564 2009-12-19  Bruno Haible  <bruno@clisp.org>
53566         New module attribute 'Applicability'.
53567         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
53568         * gnulib-tool: New option --extract-applicability.
53569         (func_usage): Document it.
53570         (sed_extract_prog): Recognize it.
53571         (func_get_applicability): New function.
53572         (func_import): Generalize handling of 'link-warning' module.
53573         * modules/link-warning (Applicability): New section.
53574         * modules/arg-nonnull (Applicability): New section.
53575         Repoted by Simon Josefsson <simon@josefsson.org>.
53577 2009-12-19  Bruno Haible  <bruno@clisp.org>
53579         fflush: tweak
53580         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
53581         * lib/fseeko.c (rpl_fseeko): Likewise.
53583 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
53585         * lib/gl_list.h: Fix typo in comment.
53587 2009-12-16  Eric Blake  <ebb9@byu.net>
53589         fcntl: use to simplify other modules
53590         * modules/cloexec (Depends-on): Add fcntl.
53591         * modules/fchdir (Depends-on): Likewise.
53592         * modules/fd-safer-flag (Depends-on): Likewise.
53593         * modules/unistd-safer (Depends-on): Likewise.
53594         * modules/dup3 (configure.ac): Set module indicator.
53595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
53596         missing.
53597         * lib/fchdir.c (_gl_register_dup): Fix comment.
53598         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
53599         * lib/dup-safer.c (dup_safer): Likewise.
53600         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
53601         * lib/dup3.c (dup3): Likewise.
53602         * tests/test-fchdir.c (main): Enhance test.
53603         Fixes a dup_cloexec bug reported by Ondřej Vašík.
53605         fcntl: port portions of fcntl to mingw
53606         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
53607         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
53608         replacement for mingw.
53609         * modules/fcntl (Description): Update.
53610         (Depends-on): Add dup2.
53611         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
53612         * modules/fcntl-h (Makefile.am): Substitute it.
53613         * lib/fcntl.in.h (fcntl): Update declaration.
53614         (F_DUPFD, F_GETFD): New macros, when needed.
53615         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
53616         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
53617         * tests/test-fcntl.c (check_flags, main): Enhance test for items
53618         we now guarantee.
53620         fcntl: work around cygwin bug in F_DUPFD
53621         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
53622         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
53623         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
53624         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
53625         * doc/posix-functions/fcntl.texi (fcntl): Document it.
53627         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
53628         * modules/fcntl (Files): List new files.
53629         (configure.ac): Run a test.
53630         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
53631         * lib/fcntl.c (rpl_fcntl): Likewise.
53632         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
53633         (gl_FCNTL_H): Always replace fcntl.h.
53634         * modules/fcntl-h (Makefile.am): Substitute witnesses.
53635         * lib/fcntl.in.h (fcntl): Declare replacement.
53636         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
53637         needed, plus a witness.
53638         * doc/posix-functions/fcntl.texi (fcntl): Document this.
53639         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
53640         * tests/test-fcntl.c: New file.
53641         * modules/fcntl-tests: Likewise.
53643         binary-io: avoid potential compilation warning
53644         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
53645         directives.
53647         fflush: avoid compilation error on NetBSD
53648         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
53649         between off_t and fpos_t, since the latter is sometimes a struct.
53650         * lib/fseeko.c (rpl_fseeko): Likewise.
53651         Reported by Alexander Nasonov <alnsn@yandex.ru>.
53653 2009-12-15  Eric Blake  <ebb9@byu.net>
53655         fcntl-h, stdio, sys_ioctl: fix declarations
53656         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
53657         function must not take arguments.
53658         * lib/sys_ioctl.in.h (ioctl): Likewise.
53659         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
53660         (open): Add a link warning.
53662 2009-12-15  Jim Meyering  <meyering@redhat.com>
53664         areadlink, areadlink-with-size: relax license to LGPLv2+
53665         * modules/areadlink (License): Relax to LGPLv2+.
53666         * modules/areadlink-with-size (License): Likewise.
53668 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
53669             Bruno Haible  <bruno@clisp.org>
53671         *printf: Fix memory leak.
53672         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
53673         * lib/vfprintf.c (vfprintf): Likewise.
53674         * lib/dprintf.c (dprintf): Likewise.
53675         * lib/vdprintf.c (vdprintf): Likewise.
53677 2009-12-14  Eric Blake  <ebb9@byu.net>
53679         accept4: adjust module dependencies
53680         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
53682         utimens: one more try at avoiding compiler warning
53683         * lib/utimens.c (lutimens): Lower scope of result.
53685 2009-12-13  Bruno Haible  <bruno@clisp.org>
53687         Move the malloc checking from module 'list' to new module 'xlist'.
53688         * modules/xlist: New file.
53689         * lib/gl_xlist.h: New file.
53690         * lib/gl_xlist.c: New file.
53691         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
53692         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
53693         gl_list_add_last, gl_list_add_before, gl_list_add_after,
53694         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
53695         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
53696         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
53697         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
53698         gl_sortedlist_nx_add): New declarations.
53699         (struct gl_list_implementation): Rename and change methods accordingly.
53700         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
53701         (gl_list_nx_create): Renamed from gl_list_create.
53702         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
53703         (gl_list_nx_set_at): Renamed from gl_list_set_at.
53704         (gl_list_nx_add_first): Renamed from gl_list_add_first.
53705         (gl_list_nx_add_last): Renamed from gl_list_add_last.
53706         (gl_list_nx_add_before): Renamed from gl_list_add_before.
53707         (gl_list_nx_add_after): Renamed from gl_list_add_after.
53708         (gl_list_nx_add_at): Renamed from gl_list_add_at.
53709         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
53710         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
53711         gl_list_create_empty.
53712         (gl_list_nx_create): Renamed from gl_list_create.
53713         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
53714         (gl_list_nx_set_at): Renamed from gl_list_set_at.
53715         (gl_list_nx_add_first): Renamed from gl_list_add_first.
53716         (gl_list_nx_add_last): Renamed from gl_list_add_last.
53717         (gl_list_nx_add_before): Renamed from gl_list_add_before.
53718         (gl_list_nx_add_after): Renamed from gl_list_add_after.
53719         (gl_list_nx_add_at): Renamed from gl_list_add_at.
53720         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
53721         * lib/gl_array_list.c: Don't include xalloc.h.
53722         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
53723         NULL upon out-of-memory.
53724         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
53725         out-of-memory.
53726         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
53727         Change return type to 'int'.
53728         (gl_array_nx_set_at): Renamed from gl_array_set_at.
53729         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
53730         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
53731         upon out-of-memory.
53732         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
53733         upon out-of-memory.
53734         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
53735         upon out-of-memory.
53736         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
53737         upon out-of-memory.
53738         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
53739         out-of-memory.
53740         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
53741         Update.
53742         (gl_array_list_implementation): Update.
53743         * lib/gl_carray_list.c: Don't include xalloc.h.
53744         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
53745         Return NULL upon out-of-memory.
53746         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
53747         out-of-memory.
53748         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
53749         Change return type to 'int'.
53750         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
53751         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
53752         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
53753         upon out-of-memory.
53754         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
53755         upon out-of-memory.
53756         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
53757         out-of-memory.
53758         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
53759         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
53760         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
53761         Update.
53762         (gl_carray_list_implementation): Update.
53763         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
53764         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
53765         gl_linked_create_empty. Return NULL upon out-of-memory.
53766         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
53767         out-of-memory.
53768         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
53769         Change return type to 'int'. Return -1 upon out-of-memory.
53770         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
53771         out-of-memory.
53772         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
53773         upon out-of-memory.
53774         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
53775         upon out-of-memory.
53776         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
53777         NULL upon out-of-memory.
53778         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
53779         upon out-of-memory.
53780         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
53781         out-of-memory.
53782         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
53783         Update.
53784         * lib/gl_linked_list.c: Don't include xalloc.h.
53785         (gl_linked_list_implementation): Update.
53786         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
53787         (add_to_bucket): Change return type to 'int'.
53788         (gl_linkedhash_list_implementation): Update.
53789         * lib/gl_anytree_list1.h (free_subtree): New function.
53790         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
53791         gl_tree_create_empty. Return NULL upon out-of-memory.
53792         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
53793         Change return type to 'int'. Return -1 upon out-of-memory.
53794         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
53795         out-of-memory.
53796         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
53797         (gl_tree_remove_node): New function, moved here from
53798         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
53799         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
53800         Update.
53801         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
53802         malloc, not xmalloc. Return NULL upon out-of-memory.
53803         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
53804         out-of-memory.
53805         (gl_tree_remove_node_from_tree): New function, extracted from
53806         gl_tree_remove_node.
53807         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
53808         upon out-of-memory.
53809         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
53810         out-of-memory.
53811         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
53812         upon out-of-memory.
53813         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
53814         upon out-of-memory.
53815         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
53816         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
53817         not xmalloc. Return NULL upon out-of-memory.
53818         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
53819         out-of-memory.
53820         (gl_tree_remove_node_from_tree): New function, extracted from
53821         gl_tree_remove_node.
53822         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
53823         upon out-of-memory.
53824         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
53825         out-of-memory.
53826         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
53827         upon out-of-memory.
53828         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
53829         upon out-of-memory.
53830         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
53831         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
53832         gl_anytree_list1.h before gl_anyavltree_list2.h.
53833         (gl_avltree_list_implementation): Update.
53834         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
53835         gl_anytree_list1.h before gl_anyavltree_list2.h.
53836         (gl_rbtree_list_implementation): Update.
53837         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
53838         Change return type to 'int'. Return -1 upon out-of-memory. Use
53839         __builtin_expect.
53840         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
53841         (gl_avltreehash_list_implementation): Update.
53842         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
53843         (gl_rbtreehash_list_implementation): Update.
53844         * modules/array-list (Depends-on): Remove xalloc.
53845         * modules/carray-list (Depends-on): Likewise.
53846         * modules/linked-list (Depends-on): Likewise.
53847         * modules/linkedhash-list (Depends-on): Likewise.
53848         * modules/avltree-list (Depends-on): Likewise.
53849         * modules/rbtree-list (Depends-on): Likewise.
53850         * modules/avltreehash-list (Depends-on): Likewise.
53851         * modules/rbtreehash-list (Depends-on): Likewise.
53853         * modules/xsublist: New file.
53854         * lib/gl_xsublist.h: New file.
53855         * lib/gl_xsublist.c: New file.
53856         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
53857         (gl_sublist_nx_create): New declaration.
53858         * lib/gl_sublist.c: Don't include xalloc.h.
53859         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
53860         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
53861         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
53862         Change return type to 'int'. Return -1 upon out-of-memory.
53863         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
53864         upon out-of-memory.
53865         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
53866         NULL upon out-of-memory.
53867         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
53868         upon out-of-memory.
53869         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
53870         NULL upon out-of-memory.
53871         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
53872         NULL upon out-of-memory.
53873         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
53874         upon out-of-memory.
53875         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
53876         (gl_sublist_list_implementation): Update.
53877         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
53878         upon out-of-memory.
53879         * modules/sublist (Depends-on): Remove xalloc.
53881         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
53882         * tests/test-carray_list.c: Likewise.
53883         * tests/test-linked_list.c: Likewise.
53884         * tests/test-linkedhash_list.c: Likewise.
53885         * tests/test-avltree_list.c: Likewise.
53886         * tests/test-rbtree_list.c: Likewise.
53887         * tests/test-avltreehash_list.c: Likewise.
53888         * tests/test-rbtreehash_list.c: Likewise.
53889         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
53890         * modules/carray-list-tests (Makefile.am): Likewise.
53891         * modules/linked-list-tests (Makefile.am): Likewise.
53892         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53893         * modules/avltree-list-tests (Makefile.am): Likewise.
53894         * modules/rbtree-list-tests (Makefile.am): Likewise.
53895         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53896         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53898         * NEWS: Mention the changes.
53900         * lib/clean-temp.c: Include gl_xlist.h.
53901         * modules/clean-temp (Depends-on): Add xlist.
53903         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
53904         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
53906         * tests/test-array_oset.c: Include gl_xlist.h.
53907         * modules/array-oset-tests (Depends-on): Add xlist.
53909         Reported by José E. Marchesi <jemarch@gnu.org>.
53911 2009-12-13  Bruno Haible  <bruno@clisp.org>
53913         Move the malloc checking from module 'oset' to new module 'xoset'.
53914         * modules/xoset: New file.
53915         * lib/gl_xoset.h: New file.
53916         * lib/gl_xoset.c: New file.
53917         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
53918         declarations.
53919         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
53920         (struct gl_oset_implementation): Rename and change methods accordingly.
53921         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
53922         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
53923         'int'. Mark as __warn_unused_result__.
53924         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
53925         gl_oset_create_empty.
53926         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
53927         'int'.
53928         * lib/gl_array_oset.c: Don't include xalloc.h.
53929         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
53930         malloc, not xmalloc.
53931         (grow): Change return type to 'int'. Don't call xalloc_die.
53932         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
53933         to 'int'.
53934         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
53935         'int'.
53936         (gl_array_oset_implementation): Update.
53937         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
53938         gl_tree_create_empty.
53939         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
53940         'int'.
53941         * lib/gl_avltree_oset.c: Don't include xalloc.h.
53942         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
53943         xmalloc.
53944         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
53945         not xmalloc.
53946         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
53947         xmalloc.
53948         (gl_avltree_oset_implementation): Update.
53949         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
53950         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
53951         xmalloc.
53952         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
53953         not xmalloc.
53954         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
53955         xmalloc.
53956         (gl_rbtree_oset_implementation): Update.
53957         * modules/array-oset (Depends-on): Remove xalloc.
53958         * modules/avltree-oset (Depends-on): Likewise.
53959         * modules/rbtree-oset (Depends-on): Likewise.
53960         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
53961         * tests/test-avltree_oset.c: Likewise.
53962         * tests/test-rbtree_oset.c: Likewise.
53963         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
53964         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
53965         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53966         * NEWS: Mention the change.
53968 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
53970         maint.mk: allow a project to override release-prep commands
53971         * top/maint.mk (alpha, beta, stable): Move release-preparatory
53972         commands into a new rule.
53973         (release-prep): New rule.
53974         (release-prep-hook): New overridable variable.
53976 2009-12-13  Bruno Haible  <bruno@clisp.org>
53978         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
53980 2009-12-13  Jim Meyering  <meyering@redhat.com>
53982         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
53983         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
53985 2009-12-12  Bruno Haible  <bruno@clisp.org>
53987         duplocale: Tweak.
53988         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
53990 2009-12-12  Karl Berry  <karl@gnu.org>
53992         * config/srclist.txt (strtoll.c): tab changes, no more sync.
53994 2009-12-12  Bruno Haible  <bruno@clisp.org>
53996         * m4/po.m4: Undo incorrect untabification.
53998 2009-12-12  Bruno Haible  <bruno@clisp.org>
54000         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
54001         * modules/c-strtod (Depends-on): Add locale.
54002         * modules/c-strtold (Depends-on): Likewise.
54004 2009-12-12  Bruno Haible  <bruno@clisp.org>
54006         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
54008 2009-12-11  Eric Blake  <ebb9@byu.net>
54010         setenv: relax requirement in light of POSIX ruling
54011         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
54012         not NULL.
54013         * tests/test-setenv.c (main): Relax test.
54014         * tests/test-unsetenv.c (main): Likewise.
54015         * doc/posix-functions/setenv.texi (setenv): Document this.
54016         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
54018 2009-12-11  Bruno Haible  <bruno@clisp.org>
54020         New module 'fd-safer-flag'.
54021         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
54022         * lib/dup-safer.c (dup_safer_flag): Remove function.
54023         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
54024         * lib/fd-safer.c (fd_safer_flag): Remove function.
54025         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
54026         * modules/cloexec (configure.ac): Drop indicator macro.
54027         * modules/fd-safer-flag: New file.
54028         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
54029         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
54030         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
54032 2009-12-11  Bruno Haible  <bruno@clisp.org>
54034         Tests for module 'nl_langinfo'.
54035         * modules/nl_langinfo-tests: New file.
54036         * tests/test-nl_langinfo.sh: New file.
54037         * tests/test-nl_langinfo.c: New file.
54039         New module 'nl_langinfo'.
54040         * lib/nl_langinfo.c: New file.
54041         * m4/nl_langinfo.m4: New file.
54042         * modules/nl_langinfo: New file.
54043         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
54045 2009-12-11  Bruno Haible  <bruno@clisp.org>
54047         Tests for module 'langinfo'.
54048         * modules/langinfo-tests: New file.
54049         * tests/test-langinfo.c: New file.
54051         New module 'langinfo'.
54052         * lib/langinfo.in.h: New file.
54053         * m4/langinfo_h.m4: New file.
54054         * modules/langinfo: New file.
54055         * doc/posix-headers/langinfo.texi: Mention the new module.
54057 2009-12-11  Bruno Haible  <bruno@clisp.org>
54059         * lib/config.charset: Untabify.
54061 2009-12-11  Bruno Haible  <bruno@clisp.org>
54063         * modules/unistd-safer (configure.ac): Drop indicator macro.
54065 2009-12-11  Bruno Haible  <bruno@clisp.org>
54067         Move pipe2-safer code to its own file.
54068         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
54069         * lib/pipe-safer.c (pipe2_safer): Remove function.
54070         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
54071         (Makefile.am): Add it to lib_SOURCES.
54073 2009-12-10  Bruno Haible  <bruno@clisp.org>
54075         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
54077 2009-12-10  Bruno Haible  <bruno@clisp.org>
54079         Declare which arguments expect non-NULL values, for GCC and clang.
54080         * build-aux/arg-nonnull.h: New file.
54081         * modules/arg-nonnull: New file.
54082         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
54083         (inet_ntop, inet_pton): Use it.
54084         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
54085         (closedir, dirfd, opendir, scandir, alphasort): Use it.
54086         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
54087         (open, openat): Use it.
54088         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
54089         (fnmatch): Use it.
54090         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
54091         (getopt, getopt_long, getopt_long_only): Use it.
54092         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
54093         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
54094         Use it.
54095         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
54096         (iconv_open): Use it.
54097         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
54098         (strtoimax, strtoumax): Use it.
54099         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
54100         (duplocale): Use it.
54101         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
54102         (frexp, frexpl): Use it.
54103         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
54104         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
54105         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
54106         (tsearch, tfind, tdelete, twalk): Use it.
54107         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
54108         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
54109         sigpending): Use it.
54110         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
54111         (posix_spawn, posix_spawnp, posix_spawnattr_init,
54112         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
54113         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
54114         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
54115         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
54116         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
54117         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
54118         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
54119         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
54120         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
54121         Use it.
54122         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
54123         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
54124         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
54125         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
54126         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
54127         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
54128         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
54129         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
54130         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
54131         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
54132         strtoull, unsetenv): Use it.
54133         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
54134         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
54135         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
54136         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
54137         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
54138         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
54139         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
54140         (strcasecmp, strncasecmp): Use it.
54141         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
54142         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
54143         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
54144         rpl_setsockopt): Use it.
54145         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
54146         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
54147         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
54148         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
54149         (gettimeofday): Use it.
54150         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
54151         (times): Use it.
54152         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
54153         (uname): Use it.
54154         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
54155         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
54156         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
54157         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
54158         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
54159         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
54160         unlinkat, write): Use it.
54161         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
54162         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
54163         * lib/argv-iter.h: Include arg-nonnull.h.
54164         (_ATTRIBUTE_NONNULL_): Remove macro.
54165         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
54166         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
54167         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
54168         optimization.
54169         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
54170         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
54171         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
54172         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
54173         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
54174         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
54175         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
54176         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
54177         * modules/arpa_inet (Depends-on): Add arg-nonnull.
54178         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
54179         * modules/dirent (Depends-on): Add arg-nonnull.
54180         (Makefile.am): Insert arg-nonnull.h into dirent.h.
54181         * modules/fcntl-h (Depends-on): Add arg-nonnull.
54182         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
54183         * modules/fnmatch (Depends-on): Add arg-nonnull.
54184         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
54185         * modules/getopt-posix (Depends-on): Add arg-nonnull.
54186         (Makefile.am): Insert arg-nonnull.h into getopt.h.
54187         * modules/glob (Depends-on): Add arg-nonnull.
54188         (Makefile.am): Insert arg-nonnull.h into glob.h.
54189         * modules/iconv_open (Depends-on): Add arg-nonnull.
54190         (Makefile.am): Insert arg-nonnull.h into iconv.h.
54191         * modules/inttypes (Depends-on): Add arg-nonnull.
54192         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
54193         * modules/locale (Depends-on): Add arg-nonnull.
54194         (Makefile.am): Insert arg-nonnull.h into locale.h.
54195         * modules/math (Depends-on): Add arg-nonnull.
54196         (Makefile.am): Insert arg-nonnull.h into math.h.
54197         * modules/netdb (Depends-on): Add arg-nonnull.
54198         (Makefile.am): Insert arg-nonnull.h into netdb.h.
54199         * modules/search (Depends-on): Add arg-nonnull.
54200         (Makefile.am): Insert arg-nonnull.h into search.h.
54201         * modules/signal (Depends-on): Add arg-nonnull.
54202         (Makefile.am): Insert arg-nonnull.h into signal.h.
54203         * modules/spawn (Depends-on): Add arg-nonnull.
54204         (Makefile.am): Insert arg-nonnull.h into spawn.h.
54205         * modules/stdio (Depends-on): Add arg-nonnull.
54206         (Makefile.am): Insert arg-nonnull.h into stdio.h.
54207         * modules/stdlib (Depends-on): Add arg-nonnull.
54208         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
54209         * modules/string (Depends-on): Add arg-nonnull.
54210         (Makefile.am): Insert arg-nonnull.h into string.h.
54211         * modules/strings (Depends-on): Add arg-nonnull.
54212         (Makefile.am): Insert arg-nonnull.h into strings.h.
54213         * modules/sys_socket (Depends-on): Add arg-nonnull.
54214         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
54215         * modules/sys_stat (Depends-on): Add arg-nonnull.
54216         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
54217         * modules/sys_time (Depends-on): Add arg-nonnull.
54218         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
54219         * modules/sys_times (Depends-on): Add arg-nonnull.
54220         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
54221         * modules/sys_utsname (Depends-on): Add arg-nonnull.
54222         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
54223         * modules/time (Depends-on): Add arg-nonnull.
54224         (Makefile.am): Insert arg-nonnull.h into time.h.
54225         * modules/unistd (Depends-on): Add arg-nonnull.
54226         (Makefile.am): Insert arg-nonnull.h into unistd.h.
54227         * modules/wchar (Depends-on): Add arg-nonnull.
54228         (Makefile.am): Insert arg-nonnull.h into wchar.h.
54229         * modules/argv-iter (Depends-on): Add arg-nonnull.
54230         * tests/test-canonicalize.c (null_ptr): New function.
54231         (main): Use it.
54232         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
54233         (main): Use it.
54234         * tests/test-memmem.c (null_ptr): New function.
54235         (main): Use it.
54236         Reported by Jim Meyering.
54238 2009-12-10  Bruno Haible  <bruno@clisp.org>
54240         Use spaces for indentation, not tabs.
54241         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
54242         * m4/*.m4: Untabify.
54243         * build-aux/*.h: Untabify.
54244         * tests/**/*.[hc]: Untabify.
54245         * README: New section "Indent with spaces, not TABs", based on
54246         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
54247         * NEWS: Mention the change.
54249 2009-12-10  Bruno Haible  <bruno@clisp.org>
54251         pty test: Fix link error.
54252         * modules/pty-tests (Makefile.am): Add the default LDADD value to
54253         test_pty_LDADD.
54255 2009-12-07  Simon Josefsson  <simon@josefsson.org>
54257         * modules/pty: New file.
54258         * modules/pty-tests: New file.
54259         * m4/pty.m4: New file.
54260         * tests/test-pty.c: New file.
54261         * doc/glibc-headers/pty.texi: Modified.
54262         * doc/glibc-functions/forkpty.texi: Modified.
54263         * doc/glibc-functions/openpty.texi: Modified.
54265 2009-12-10  Bruno Haible  <bruno@clisp.org>
54267         Avoid syntax error in C++ mode.
54268         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
54270 2009-12-10  Bruno Haible  <bruno@clisp.org>
54272         Use sed with option -e.
54273         * gnulib-tool (func_version, func_emit_copyright_notice,
54274         func_emit_initmacro_end, func_import, func_create_testdir): Pass
54275         option -e to sed.
54276         * modules/link-warning (Makefile.am): Likewise.
54278 2009-12-10  Jim Meyering  <meyering@redhat.com>
54280         mgetgroups: do not write bytes beyond end of malloc'd buffer
54281         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
54282         username, we call getgroups with a one-element-shorter buffer,
54283         but still told it the length was original, max_n_groups.
54285 2009-12-09  Eric Blake  <ebb9@byu.net>
54287         cloexec: relax license
54288         * modules/cloexec (Maintainer): Add myself.
54289         (License): Use LGPL, not GPL.
54291         link-warning: optimize generation
54292         * modules/link-warning (Makefile.am): Reduce process usage.
54294 2009-12-09  Bruno Haible  <bruno@clisp.org>
54296         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
54297         workaround was added on 2009-11-17.
54299 2009-12-09  Jim Meyering  <meyering@redhat.com>
54300             Bruno Haible  <bruno@clisp.org>
54302         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
54303         * modules/link-warning (Makefile.am): Make the comment-removing sed
54304         command more robust in the face of bootstrap-prepended comment lines.
54306 2009-12-09  Bruno Haible  <bruno@clisp.org>
54308         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
54309         most one group.
54311 2009-12-09  Simon Josefsson  <simon@josefsson.org>
54312             Bruno Haible  <bruno@clisp.org>
54314         * build-aux/link-warning.h: Add copyright notice.
54315         * modules/link-warning (Makefile.am): Generate link-warning.h from
54316         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
54317         * NEWS: Mention change in link-warning module.
54318         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
54319         * modules/dirent (Makefile.am): Add dependency to dirent.h.
54320         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
54321         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
54322         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
54323         * modules/math (Makefile.am): Add dependency to math.h.
54324         * modules/search (Makefile.am): Add dependency to search.h.
54325         * modules/signal (Makefile.am): Add dependency to signal.h.
54326         * modules/spawn (Makefile.am): Add dependency to spawn.h.
54327         * modules/stdio (Makefile.am): Add dependency to stdio.h.
54328         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
54329         * modules/string (Makefile.am): Add dependency to string.h.
54330         * modules/strings (Makefile.am): Add dependency to strings.h.
54331         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
54332         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
54333         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
54334         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
54335         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
54336         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
54337         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
54338         * modules/unistd (Makefile.am): Add dependency to unistd.h.
54339         * modules/wchar (Makefile.am): Add dependency to wchar.h.
54341 2009-12-09  Bruno Haible  <bruno@clisp.org>
54343         fchdir: Optimize away rpl_fstat when possible.
54344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
54345         REPLACE_OPEN_DIRECTORY.
54346         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
54348 2009-12-09  Bruno Haible  <bruno@clisp.org>
54350         * lib/fchdir.c: Update comment.
54352 2009-12-09  Bruno Haible  <bruno@clisp.org>
54354         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
54356 2009-12-08  Eric Blake  <ebb9@byu.net>
54358         fchdir: avoid memory leak on re-registration.
54359         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
54361 2009-12-08  Jim Meyering  <meyering@redhat.com>
54363         init.sh: avoid Solaris 10 /bin/sh portability problem
54364         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
54365         sourced script:
54366           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
54367           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
54368           bar
54369         tests/init.sh relied on that, accepting a --set-path=DIR argument,
54370         and two tests used that idiom.
54371         * tests/init.sh: Update suggested usage comments.
54372         (path_prepend_): New function, to be used in place
54373         of the --src-path=DIR option.
54374         (setup_): Move PATH-prepending code into path_prepend_.
54375         * tests/test-pread.sh: Adapt to new usage.
54376         * tests/test-xalloc-die.sh: Likewise.
54378 2009-12-08  Simon Josefsson  <simon@josefsson.org>
54380         * doc/gnulib.texi (Glibc pty.h): Add.
54381         * doc/glibc-functions/forkpty.texi: Add.
54382         * doc/glibc-functions/openpty.texi: Add.
54383         Suggested by Bruno Haible.
54385 2009-12-08  Eric Blake  <ebb9@byu.net>
54387         fchdir: fix logic bugs
54388         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
54389         * tests/test-fchdir.c (main): Enhance test.
54390         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
54391         is in use.
54393         dup2: fix logic bugs
54394         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
54395         REPLACE_DUP2 to decide when rpl_dup2 is needed.
54396         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
54397         exists.
54398         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
54400 2009-12-07  Eric Blake  <ebb9@byu.net>
54402         unlink: fix m4 detection
54403         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
54405         unistd-safer: add unit test
54406         * modules/unistd-safer-tests: New file.
54407         * tests/test-dup-safer.c: Likewise.
54408         * tests/test-cloexec.c (setmode): Avoid compiler warning.
54409         * tests/test-dup2.c (setmode): Likewise.
54410         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
54412         cloexec: preserve text vs. binary across dup_cloexec
54413         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
54414         mode.
54415         * modules/dup2-tests (Depends-on): Add binary-io.
54416         * modules/cloexec-tests (Depends-on): Likewise.
54417         * tests/test-dup2.c (setmode, is_mode): New helpers.
54418         (main): Add tests that translation mode is preserved.
54419         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
54420         Reported by Bruno Haible.
54422         mgetgroups: reduce duplicate listings
54423         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
54424         resulting array.
54425         * tests/test-chown.h (test_chown): Simplify client.
54426         * tests/test-lchown.h (test_lchown): Likewise.
54428 2009-12-06  Bruno Haible  <bruno@clisp.org>
54430         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
54431         value.
54433 2009-12-06  Bruno Haible  <bruno@clisp.org>
54435         * lib/progname.c: Include stdio.h, stdlib.h.
54436         (set_program_name): Reject a NULL argument.
54438 2009-12-05  Eric Blake  <ebb9@byu.net>
54440         pipe2-safer: new module
54441         * modules/pipe2-safer: New file.
54442         * lib/unistd-safer.h (pipe2_safer): New prototype.
54443         * lib/unistd--.h (pipe2): New wrapper.
54444         * lib/pipe-safer.c (pipe2_safer): New function.
54445         * modules/pipe (Depends-on): Add pipe2-safer.
54446         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
54448         stdlib-safer: preserve cloexec flag for mkostemp[s]
54449         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
54450         fd_safer_flag.
54452         unistd-safer: allow preservation of cloexec status via flag
54453         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
54454         prototypes.
54455         * lib/dup-safer.c (dup_safer_flag): New function.
54456         * lib/fd-safer.c (fd_safer_flag): Likewise.
54457         * modules/cloexec (configure.ac): Set witness.
54459         test-dup2: enhance test
54460         * modules/dup2-tests (Depends-on): Add cloexec.
54461         * tests/test-dup2.c (main): Enhance test.
54463         cloexec: add dup_cloexec
54464         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
54465         header and comments.
54466         * lib/cloexec.c (set_cloexec_flag): Add comments.
54467         (dup_cloexec): New function, with mingw implementation borrowed
54468         from...
54469         * lib/w32spawn.h (dup_noinherit): ...here.
54470         * modules/execute (Depends-on): Add cloexec.
54471         * modules/pipe (Depends-on): Likewise.
54472         * modules/cloexec (Depends-on): Add dup2.
54473         * modules/cloexec-tests (Files): New file.
54474         * tests/test-cloexec.c: Likewise.
54476         test-xalloc-die: fix test for mingw
54477         * modules/xalloc-die-tests (Files): Add tests/init.sh.
54478         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
54479         directory and .exe suffix off argv[0] output.
54481         test-fseeko: fix test for mingw
54482         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
54483         than undefining fseek, so test will pass on mingw.
54485 2009-12-05  Bruno Haible  <bruno@clisp.org>
54487         * lib/progname.h (set_program_name): Clarify specification.
54488         * lib/progname.c (set_program_name): Likewise.
54489         Reported by Jim Meyering.
54491 2009-12-05  Jim Meyering  <meyering@redhat.com>
54493         maint.mk: backslash-escape parens in default regexp
54494         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
54495         backslash-escape the literal parentheses.
54497         maint.mk: news-date-check: use grep -E
54498         * top/maint.mk (today): Define a Make variable, not a...
54499         (news-date-check): ...shell variable.
54500         (news-date-regexp): Use the Make variable.
54501         Use grep's -E option.  Change the failing diagnostic to mention
54502         the variable, $(news-date-regexp).
54504 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
54506         maintainer-makefile: allow customization of NEWS entry format
54507         * top/maint.mk (news-date-regexp): New overridable variable.
54508         (news-date-check): Use it.
54510 2009-12-04  Eric Blake  <ebb9@byu.net>
54512         mgetgroups: add xgetgroups, and avoid ENOSYS failures
54513         * lib/mgetgroups.h (xgetgroups): New prototype.
54514         * lib/mgetgroups.c (xgetgroups): New wrapper.
54515         (mgetgroups): Handle ENOSYS.
54516         * modules/mgetgroups (Depends-on): Add realloc.
54517         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
54519         mgetgroups: avoid argument promotion issues with -1
54520         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
54521         for invalid gid_t.
54522         * tests/test-chown.h (getegid, test_chown): Likewise.
54523         * tests/test-lchown.h (getegid, test_lchown): Likewise.
54525 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
54527         exclude: Fix header file problems.
54528         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
54530 2009-12-01  Jim Meyering  <meyering@redhat.com>
54532         fts: fts_open: do not let an empty string cause immediate failure
54533         This is required in support of GNU rm, for which the command
54534         "rm A '' B" must process and remove both A and B, in spite of
54535         the empty string argument.
54536         * lib/fts.c (fts_open): Do not let the presence of an empty string
54537         cause fts_open to fail immediately.  Most fts-using tools must be
54538         able to process all arguments, in order, and can be expected to
54539         diagnose such arguments themselves.
54541 2009-11-30  Eric Blake  <ebb9@byu.net>
54543         utimens: fix compilation error
54544         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
54545         Declare variable at right scope.
54547 2009-11-29  Jim Meyering  <meyering@redhat.com>
54549         bootstrap: handle perl-5.11's changed --version output
54550         * build-aux/bootstrap (get_version): Handle perl separately,
54551         since perl-5.11's --version output is different.
54553 2009-11-28  Jim Meyering  <meyering@redhat.com>
54555         userspec: depend on the inttostr module, too
54556         * modules/userspec (Depends-on): Add inttostr.
54558         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
54559         * lib/userspec.c (parse_with_separator): Do not accept a user ID
54560         number of MAXUID when it evaluates to (uid_t) -1.
54561         Likewise for group ID.  Reported by Matt McCutchen in
54562         <http://savannah.gnu.org/bugs/?28113>
54564         userspec: reformat to use spaces, not TABs
54565         * lib/userspec.c: Expand TABs to spaces.
54566         Add Emacs' "indent-tabs-mode: nil" hint.
54568 2009-11-27  Eric Blake  <ebb9@byu.net>
54570         getopt-gnu: flush out another BSD bug
54571         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
54572         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
54573         flush out BSD bug.
54574         * tests/test-getopt.h (test_getopt): End lists with NULL.
54575         * tests/test-getopt_long.h (test_getopt_long): Likewise.
54576         (test_getopt_long_posix): Enhance test.
54577         * modules/getopt-posix-tests (Depends-on): Add stdbool.
54578         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
54579         getopt-gnu.
54580         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
54581         Likewise.
54583 2009-11-27  Simon Josefsson  <simon@josefsson.org>
54585         * modules/idpriv-droptemp-tests (Notice): Fix text.
54587 2009-11-27  Jim Meyering  <meyering@redhat.com>
54589         test-xalloc-die: avoid spurious failure due to libtool argv difference
54590         In a libtool-enabled project, this test would fail due to a difference
54591         in the emitted program name, e.g.,
54592         -test-xalloc-die: memory exhausted
54593         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
54594         Use program to avoid that.
54595         * modules/xalloc-die-tests (Depends-on): Add progname.
54596         * tests/test-xalloc-die.c: Include progname.h".
54597         (program_name): Remove decl.
54598         (main): Call set_program_name.
54599         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
54601 2009-11-26  Richard Jones  <rjones@redhat.com>
54603         w32sock: leave win32 error in place.
54604         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
54606 2009-11-26  Eric Blake  <ebb9@byu.net>
54608         init.sh: suggest to use skip_ and fail_ functions in comments
54609         * tests/init.sh: Add a sentence.
54611 2009-11-25  Bruno Haible  <bruno@clisp.org>
54613         init.sh: add documentation in comments
54614         * tests/init.sh: Add some developer and user documentation.
54616 2009-11-26  Jim Meyering  <meyering@redhat.com>
54618         init.sh: accommodate even those who specify bogus srcdir manually
54619         * tests/init.sh: Normally, srcdir is guaranteed by automake and
54620         configure-time tests to be sanitized, so that there is no need to
54621         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
54622         (with no double quotes) suffices.  However, since tests may be
54623         invoked manually, and since you may explicitly set srcdir to the
54624         name of a directory containing spaces, do quote its uses here.
54625         * tests/test-pread.sh: Likewise.
54626         Suggested by Bruno Haible.
54628         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
54629         * tests/test-pread.sh: Write no data into the pipe, because
54630         test-pread actually reads none.  This avoids a diagnostic,
54631         "bash: echo: write error: Broken pipe", that arises in the unusual
54632         event something is ignoring SIGPIPE, and might be interpreted
54633         as some sort of failure.  Reported by Bruno Haible.
54635 2009-11-25  Jim Meyering  <meyering@redhat.com>
54637         test-pread: cover failure with ESPIPE and EINVAL
54638         * tests/test-pread.c (main): Test for failure, too.
54639         * tests/test-pread.sh: Invoke with stdin on a pipe.
54640         Suggested by Eric Blake.
54642         pread: improvement and fix
54643         * modules/pread (Depends-on): Depend on lseek, for portability to
54644         e.g., mingw.  Suggested by Eric Blake.
54645         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
54647         unistd.in.h: correct declaration of pread
54648         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
54649         Reported by Richard W.M. Jones.
54651         test-pread.sh: distribute the test script
54652         * modules/pread-tests (Files): Include test-pread.sh.
54654         test-pread.sh: clean up
54655         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
54656         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
54657         That is unnecessary, since it's always ".".
54658         Suggestion from Eric Blake.
54660         test-pread.sh: make executable
54661         * tests/test-pread.sh: Set executable bit.
54662         Reported by Eric Blake.
54664         correct typo in test-pread.sh
54665         * tests/test-pread.sh: Add #! line.
54667         test pread
54668         * tests/test-pread.c: New file.
54669         * tests/test-pread.sh: Likewise.
54670         * modules/pread-tests: Likewise.
54672         pread: new module
54673         * modules/pread: New file.
54674         * lib/unistd.in.h (pread): Define/declare.
54675         * lib/pread.c (pread): New file.
54676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
54677         * modules/unistd (Makefile.am): Substitute witnesses.
54678         * doc/posix-functions/pread.texi (pread): Update.
54679         * MODULES.html.sh: Add pread.
54681 2009-11-25  Jim Meyering  <meyering@redhat.com>
54683         tests/init.sh: new file to be used via most *.sh tests
54684         * tests/init.sh: New file.
54686 2009-11-25  Eric Blake  <ebb9@byu.net>
54688         utimens: work around older Linux failure with symlinks
54689         * lib/utimens.c (lutimensat_works_really): New variable.
54690         (fdutimens, lutimens): Use it to manage kernels that support
54691         nanosecond times on files, but not on symlinks.
54692         Reported by Ondřej Vašík.
54694         utimes: fix configure grammar
54695         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
54697 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
54699         regex: Fix fastmap for multibyte character ranges.
54700         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
54701         characters when a multibyte character range is included.
54703 2009-11-22  Andy Wingo  <wingo@pobox.com>
54705         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
54706         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
54708 2009-11-24  Bruno Haible  <bruno@clisp.org>
54710         doc: Most *_l functions exist in MacOS X 10.5.
54711         * doc/posix-functions/duplocale.texi: Update platforms list.
54712         * doc/posix-functions/freelocale.texi: Likewise.
54713         * doc/posix-functions/newlocale.texi: Likewise.
54714         * doc/posix-functions/uselocale.texi: Likewise.
54715         * doc/posix-functions/isalnum_l.texi: Likewise.
54716         * doc/posix-functions/isalpha_l.texi: Likewise.
54717         * doc/posix-functions/isblank_l.texi: Likewise.
54718         * doc/posix-functions/iscntrl_l.texi: Likewise.
54719         * doc/posix-functions/isdigit_l.texi: Likewise.
54720         * doc/posix-functions/isgraph_l.texi: Likewise.
54721         * doc/posix-functions/islower_l.texi: Likewise.
54722         * doc/posix-functions/isprint_l.texi: Likewise.
54723         * doc/posix-functions/ispunct_l.texi: Likewise.
54724         * doc/posix-functions/isspace_l.texi: Likewise.
54725         * doc/posix-functions/isupper_l.texi: Likewise.
54726         * doc/posix-functions/iswalnum_l.texi: Likewise.
54727         * doc/posix-functions/iswalpha_l.texi: Likewise.
54728         * doc/posix-functions/iswblank_l.texi: Likewise.
54729         * doc/posix-functions/iswcntrl_l.texi: Likewise.
54730         * doc/posix-functions/iswctype_l.texi: Likewise.
54731         * doc/posix-functions/iswdigit_l.texi: Likewise.
54732         * doc/posix-functions/iswgraph_l.texi: Likewise.
54733         * doc/posix-functions/iswlower_l.texi: Likewise.
54734         * doc/posix-functions/iswprint_l.texi: Likewise.
54735         * doc/posix-functions/iswpunct_l.texi: Likewise.
54736         * doc/posix-functions/iswspace_l.texi: Likewise.
54737         * doc/posix-functions/iswupper_l.texi: Likewise.
54738         * doc/posix-functions/iswxdigit_l.texi: Likewise.
54739         * doc/posix-functions/isxdigit_l.texi: Likewise.
54740         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
54741         * doc/posix-functions/strcasecmp_l.texi: Likewise.
54742         * doc/posix-functions/strcoll_l.texi: Likewise.
54743         * doc/posix-functions/strfmon_l.texi: Likewise.
54744         * doc/posix-functions/strftime_l.texi: Likewise.
54745         * doc/posix-functions/strncasecmp_l.texi: Likewise.
54746         * doc/posix-functions/strxfrm_l.texi: Likewise.
54747         * doc/posix-functions/tolower_l.texi: Likewise.
54748         * doc/posix-functions/toupper_l.texi: Likewise.
54749         * doc/posix-functions/towctrans_l.texi: Likewise.
54750         * doc/posix-functions/towlower_l.texi: Likewise.
54751         * doc/posix-functions/towupper_l.texi: Likewise.
54752         * doc/posix-functions/wcscoll_l.texi: Likewise.
54753         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
54754         * doc/posix-functions/wctrans_l.texi: Likewise.
54755         * doc/posix-functions/wctype_l.texi: Likewise.
54756         * doc/glibc-functions/strptime_l.texi: Likewise.
54757         * doc/glibc-functions/strtod_l.texi: Likewise.
54758         * doc/glibc-functions/strtof_l.texi: Likewise.
54759         * doc/glibc-functions/strtol_l.texi: Likewise.
54760         * doc/glibc-functions/strtold_l.texi: Likewise.
54761         * doc/glibc-functions/strtoll_l.texi: Likewise.
54762         * doc/glibc-functions/strtoul_l.texi: Likewise.
54763         * doc/glibc-functions/strtoull_l.texi: Likewise.
54764         * doc/glibc-functions/wcsftime_l.texi: Likewise.
54765         * doc/glibc-functions/wcstod_l.texi: Likewise.
54766         * doc/glibc-functions/wcstof_l.texi: Likewise.
54767         * doc/glibc-functions/wcstol_l.texi: Likewise.
54768         * doc/glibc-functions/wcstold_l.texi: Likewise.
54769         * doc/glibc-functions/wcstoll_l.texi: Likewise.
54770         * doc/glibc-functions/wcstoul_l.texi: Likewise.
54771         * doc/glibc-functions/wcstoull_l.texi: Likewise.
54773 2009-11-24  Bruno Haible  <bruno@clisp.org>
54775         duplocale: Fix logic bug.
54776         * lib/duplocale.c: Don't include <langinfo.h>.
54777         (_NL_LOCALE_NAME): Remove macro.
54778         (rpl_duplocale): Use setlocale instead of nl_langinfo.
54779         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
54781 2009-11-23  Jim Meyering  <meyering@redhat.com>
54783         test-update-copyright: don't hard-code /usr/bin/perl
54784         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
54785         perl to print the current year.  Gilles Espinasse reported that
54786         the replaced use of perl was hard-coded as /usr/bin/perl.
54788 2009-11-23  Bruno Haible  <bruno@clisp.org>
54790         duplocale: Add support for glibc 2.3.x.
54791         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
54793 2009-11-22  Bruno Haible  <bruno@clisp.org>
54795         vasnprintf: Tiny optimization.
54796         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
54797         MacOS X.
54799 2009-11-22  Bruno Haible  <bruno@clisp.org>
54801         Tests for module 'duplocale'.
54802         * modules/duplocale-tests: New file.
54803         * tests/test-duplocale.c: New file.
54805         New module 'duplocale'.
54806         * m4/duplocale.m4: New file.
54807         * lib/locale.in.h (duplocale): New declaration.
54808         * lib/duplocale.c: New file.
54809         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
54810         gl_LOCALE_H_DEFAULTS): New macros.
54811         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
54812         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
54813         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
54814         REPLACE_DUPLOCALE.
54815         * modules/duplocale: New file.
54816         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
54818 2009-11-22  Bruno Haible  <bruno@clisp.org>
54820         * modules/locale-tests (configure.ac): Test for newlocale function.
54821         * tests/test-locale.c: When the system has extended locale functions,
54822         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
54824         locale: Make locale_t available when possible.
54825         * lib/locale.in.h: Include <xlocale.h> when it exists.
54826         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
54827         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
54828         * modules/locale (Depends-on): Add extensions.
54829         (Makefile.am): Also substitute HAVE_XLOCALE_H.
54830         * doc/posix-headers/locale.texi: Document the problem with locale_t.
54832 2009-11-22  Bruno Haible  <bruno@clisp.org>
54834         Add comments.
54835         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
54836         invocation.
54837         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54838         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
54839         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54841 2009-11-22  Bruno Haible  <bruno@clisp.org>
54843         error: account for the possibility of freopen (stdout).
54844         * lib/error.c: Include <unistd.h>.
54845         (flush_stdout): New function, extracted from error and error_at_line.
54846         Determine stdout's fd dynamically.
54847         (error, error_at_line): Invoke flush_stdout.
54848         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
54849         * modules/error (Depends-on): Add unistd.
54851 2009-11-22  Bruno Haible  <bruno@clisp.org>
54853         diffseq: Add comment.
54854         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
54856 2009-11-22  Jim Meyering  <meyering@redhat.com>
54858         c-stack: avoid defining an unused static function
54859         * lib/c-stack.c (find_stack_direction): Do not define this function
54860         when it will not be used.
54862         diffseq: avoid spurious gcc warnings
54863         * lib/diffseq.h (IF_LINT2): Define.
54864         (compareseq): Use it to initialize two members of "part".
54865         This avoids two used-uninitialized warnings.
54867 2009-11-21  Jim Meyering  <meyering@redhat.com>
54869         c-stack: avoid "ignoring return value of `write'" warning
54870         * lib/c-stack.c: Include "ignore-value.h".
54871         (die): Explicitly ignore each write return value.
54872         * modules/c-stack (Depends-on): Add ignore-value.
54874 2009-11-21  Bruno Haible  <bruno@clisp.org>
54876         diffseq: reduce scope of variable 'best'.
54877         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
54878         variable, earlier used for two different purposes.
54880 2009-11-21  Jim Meyering  <meyering@redhat.com>
54882         diffseq: remove useless assignment to "best"
54883         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
54884         assignment.  At that point "best" is already guaranteed to be zero.
54886 2009-11-20  Eric Blake  <ebb9@byu.net>
54888         build: mention ftp redirector in release announcements
54889         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
54890         values that used to come from cfg.mk; mention FTP redirect URL.
54891         * build-aux/announce-gen: Mention the mirror list.
54892         Suggested by Karl Berry.
54894         nanosleep: improve port to mingw
54895         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
54896         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
54897         LIB_NANOSLEEP, but only when needed.
54898         * modules/select (Link): Document LIBSOCKET.
54899         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
54900         enough.
54902         nanosleep: work around cygwin bug
54903         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
54904         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
54905         bug.
54906         (getnow): Delete, not needed.
54907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
54908         LIB_CLOCK_GETTIME.
54909         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
54910         clock-time, gettime.
54911         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
54912         bug.
54913         * modules/nanosleep-tests: New test.
54914         * tests/test-nanosleep.c: New file.
54916         sleep: work around cygwin bug
54917         * lib/sleep.c (rpl_sleep): Work around the bug.
54918         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
54919         (gl_PREREQ_SLEEP): Delete unused macro.
54920         * modules/sleep (Depends-on): Add verify.
54921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
54922         * modules/unistd (Makefile.am): Substitute witness.
54923         * lib/unistd.in.h (sleep): Update prototype.
54924         * doc/posix-functions/sleep.texi (sleep): Document the bug.
54925         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
54926         * modules/sleep-tests (Depends-on): Check for alarm.
54928 2009-11-20  Jim Meyering  <meyering@redhat.com>
54930         maint.mk: improve sc_prohibit_magic_number_exit
54931         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
54932         so it does not match uses like System.exit(1).
54933         Add comments showing how to correct all offenders.
54935 2009-11-19  Eric Blake  <ebb9@byu.net>
54937         xalloc-die-tests: add missing library
54938         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
54940         test-xvasprintf: silence compiler warnings
54941         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
54942         empty string from gcc.
54944 2009-11-19  Jim Meyering  <meyering@redhat.com>
54946         xfreopen: new module, from coreutils
54947         * modules/xfreopen: New module.
54948         * lib/xfreopen.c: New file.
54949         * lib/xfreopen.h: New file.
54950         * MODULES.html.sh (File stream based Input/Output"): Add it.
54952 2009-11-19  Eric Blake  <ebb9@byu.net>
54954         manywarnings: depend on warnings
54955         * modules/manywarnings (Depends-on): Add warnings.
54957         build: avoid compiler warnings
54958         * lib/select.c (rpl_select): Delete unused variable.
54959         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
54961 2009-11-18  Eric Blake  <ebb9@byu.net>
54963         tests: avoid false negative with --with-packager
54964         * tests/test-version-etc.sh: Discard packager information.
54965         * tests/test-argp-version-etc-1.sh: Likewise.
54966         Reported by Mike Frysinger.
54968         utimens: fix regression on Solaris
54969         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
54970         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
54971         can only change fd timestamps via futimesat.  Instead, use an
54972         additional witness macro to avoid BSD bug.
54973         Reported by Jim Meyering.
54975 2009-11-17  Eric Blake  <ebb9@byu.net>
54977         usleep: use it to simplify tests
54978         * modules/stat-time-tests (Depends-on): Add usleep.
54979         (configure.ac): Drop usleep check.
54980         * modules/chown-tests (Depends-on, configure.ac): Likewise.
54981         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
54982         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
54983         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
54984         * modules/openat-tests (Depends-on, configure.ac): Likewise.
54985         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
54986         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
54987         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
54988         Likewise.
54989         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
54990         * tests/test-lchown.h (nap): Likewise.
54991         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
54992         * tests/test-stat-time.c (nap): Likewise.
54993         * tests/test-utimens-common.h (nap): Update comments.
54995         usleep: new module
54996         * modules/usleep: New file.
54997         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
54998         * lib/usleep.c (usleep): Likewise.
54999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
55000         * modules/unistd (Makefile.am): Substitute witnesses.
55001         * lib/unistd.in.h (usleep): Add declaration.
55002         * doc/pastposix-functions/usleep.texi (usleep): Document this.
55003         * MODULES.html.sh (Date and time): Likewise.
55004         * modules/usleep-tests (Depends-on): New test.
55005         * tests/test-usleep.c: New file.
55007         chown: work around OpenBSD bug
55008         * lib/chown.c (rpl_chown): Work around the bug.
55009         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
55010         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
55011         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
55012         * modules/chown (Depends-on): Add stdbool.
55013         * modules/lchown (Depends-on): Likewise.
55014         * doc/posix-functions/chown.texi (chown): Document the bug.
55015         * doc/posix-functions/lchown.texi (lchown): Likewise.
55016         * tests/test-lchown.h (test_chown): Relax test.
55018         mkstemp: avoid conflict with C++ keyword template
55019         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
55020         * lib/mkostemp.c (mkostemp): Likewise.
55021         * lib/mkostemps.c (mkostemps): Likewise.
55022         * lib/mkstemp.c (mkstemp): Likewise.
55023         * lib/mkstemps.c (mkstemps): Likewise.
55025         xalloc-die-tests: optimize
55026         * tests/test-xalloc-die.sh: Reduce number of processes.
55028 2009-11-17  Simon Josefsson  <simon@josefsson.org>
55030         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
55031         patch from ludo@gnu.org (Ludovic Courtès).
55033 2009-11-17  Jim Meyering  <meyering@redhat.com>
55035         version-etc: use proper license string
55036         * modules/version-etc (License): Use LGPL, not LGPLv3+.
55037         * modules/version-etc-fsf: Likewise.
55039 2009-11-17  Simon Josefsson  <simon@josefsson.org>
55041         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
55042         printed to stdout.  Deal with EOL differences.
55044 2009-11-17  Eric Blake  <ebb9@byu.net>
55046         unsetenv: work around Solaris bug
55047         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
55048         * lib/unsetenv.c (rpl_unsetenv): Work around it.
55049         Reported by Jim Meyering.
55051         vasnprintf: avoid compiler warnings
55052         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
55053         variables.
55054         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
55056 2009-11-17  Simon Josefsson  <simon@josefsson.org>
55058         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
55059         settings since xalloc-die is no longer the self test,
55060         xalloc-die.sh is.
55062 2009-11-17  Jim Meyering  <meyering@redhat.com>
55064         test-xalloc-die.sh: make the code agree with the commit log
55065         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
55066         at the end, just in case you happen to have a test-xalloc-die
55067         program in some other PATH directory.
55069         test-xalloc-die.sh: fix a portability bug
55070         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
55071         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
55072         Otherwise, argv[0] (as often seen in diagnostics) would be too
55073         system-dependent, sometimes with, and sometimes without the leading "./".
55075         version-etc-fsf: relax license to LGPLv3+
55076         * modules/version-etc-fsf (License): Relax license.
55078 2009-11-16  Eric Blake  <ebb9@byu.net>
55080         xalloc-die-tests: avoid printing null pointer
55081         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
55082         shell script.
55083         * tests/test-xalloc-die.c (program_name): Declare.
55084         * tests/test-xalloc-die.sh (tmpfiles): New file.
55086         setenv, unsetenv: work around various bugs
55087         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
55088         (setenv) [HAVE_SETENV]: Work around bugs.
55089         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
55090         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
55091         for bugs.
55092         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
55093         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
55094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
55095         * modules/stdlib (Makefile.am): Update substitutions.
55096         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
55097         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
55098         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
55099         * modules/setenv-tests: New test.
55100         * modules/unsetenv-tests: Likewise.
55101         * tests/test-setenv.c: New file.
55102         * tests/test-unsetenv.c: Likewise.
55104 2009-11-16  Jim Meyering  <meyering@redhat.com>
55106         version-etc: relax license to LGPLv3+
55107         * modules/version-etc (License): Relax license.
55109         better AC_REQUIRE expanded-before-required-warning avoidance
55110         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
55111         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
55112         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
55113         which is no longer needed.
55115 2009-11-16  Eric Blake  <ebb9@byu.net>
55117         test-freading: clean up temporary file
55118         * tests/test-freading.c (main): Remove file on success, and use
55119         ASSERT more liberally.
55120         Reported by Jim Meyering.
55122 2009-11-16  Jim Meyering  <meyering@redhat.com>
55124         avoid new AC_REQUIRE expanded-before-required warnings
55125         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
55126         merely using it.
55127         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
55128         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
55130 2009-11-15  Simon Josefsson  <simon@josefsson.org>
55132         * tests/test-xalloc-die.c: New file.
55133         * modules/xalloc-die-tests: New file.
55134         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
55135         XFAIL_TESTS so it can be appended by modules.
55137 2009-11-15  Simon Josefsson  <simon@josefsson.org>
55139         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
55140         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
55142 2009-11-14  Eric Blake  <ebb9@byu.net>
55144         fnmatch: avoid compiler warning
55145         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
55146         to silence compiler warning about mismatch signedness in ?:.
55147         Reported by Robert Millan.
55149         intprops: add double-inclusion guard
55150         * lib/intprops.h: Allow idempotent includes.
55151         Suggested by Bruce Korb.
55153         openat: detect Solaris fchownat bug
55154         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
55155         penalizing glibc chownat when only lchownat is broken.
55156         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
55157         trailing slash bugs.
55158         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
55159         * modules/openat-tests (Files): Include more files.
55160         (Depends-on): Add mgetgroups, sleep, stat-time.
55161         (configure.ac): Add additional checks.
55162         (Makefile.am): Build new test.
55163         * tests/test-fchownat.c: New file.
55165         lchown: detect Solaris and FreeBSD bug
55166         * lib/lchown.c (rpl_lchown): Work around bug.
55167         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
55168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
55169         * modules/unistd (Makefile.am): Populate it.
55170         * lib/unistd.in.h (lchown): Update declaration.
55171         * doc/posix-functions/lchown.texi (lchown): Document the bug.
55172         * modules/lchown-tests: New file.
55173         * tests/test-lchown.h (test_lchown): Likewise.
55174         * tests/test-lchown.c (main): Likewise.
55176         chown: detect Solaris and FreeBSD bug
55177         * lib/chown.c (rpl_chown): Work around bug.
55178         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
55179         (gl_PREREQ_CHOWN): Delete.
55180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
55181         * modules/unistd (Makefile.am): Populate it.
55182         * lib/unistd.in.h (chown): Update declaration.
55183         * lib/lchown.c (chown): Update client.
55184         * modules/lchown (Depends-on): Add lstat.
55185         * doc/posix-functions/chown.texi (chown): Document the bug.
55186         * doc/posix-functions/getgroups.texi (getgroups): Document
55187         getgroups pitfall.
55188         * modules/chown-tests: New file.
55189         * tests/test-chown.h (test_chown): Likewise.
55190         * tests/test-chown.c (main): Likewise.
55192 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
55194         gnulib-tool: correctly detect absence of m4 directories
55195         * gnulib-tool: Avoid extra newline on data passed to wc -l.
55197 2009-11-14  Jim Meyering  <meyering@redhat.com>
55199         maint.mk: Prohibit inclusion of "xalloc.h" without use.
55200         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
55202 2009-11-14  John W. Eaton  <jwe@gnu.org>
55204         strftime.h: wrap function declaration in extern "C" block
55205         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
55207 2009-11-13  Eric Blake  <ebb9@byu.net>
55209         getgroups: avoid compiler warning
55210         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
55212         getgroups: work around FreeBSD bug
55213         * lib/getgroups.c (rpl_getgroups): Work around the bug.
55214         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
55215         * doc/posix-functions/getgroups.texi (getgroups): Document it.
55216         * tests/test-getgroups.c (main): Fix buffer overrun.
55218         getgroups: avoid compilation failure
55219         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
55220         * modules/getgroups (Depends-on): Add stdint.
55222 2009-11-13  Jim Meyering  <meyering@redhat.com>
55224         test-getgroups: avoid compilation failure
55225         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
55227 2009-11-13  Eric Blake  <ebb9@byu.net>
55229         mgetgroups: new module, taken from coreutils
55230         * modules/mgetgroups: New file.
55231         * lib/mgetgroups.h: Likewise.
55232         * lib/mgetgroups.c (mgetgroups): Likewise.
55233         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
55234         * MODULES.html.sh (Users and groups): Mention it.
55236         getgroups: don't expose GETGROUPS_T to user
55237         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
55238         an element at a time if GETGROUPS_T is wrong size.
55239         * lib/getugroups.h (getugroups): Change signature.
55240         * lib/unistd.in.h (getgroups): Likewise.
55241         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
55242         signature needs fixing.
55243         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
55244         AC_TYPE_GETGROUPS.
55245         * modules/group-member (Depends-on): Add getgroups.
55246         * lib/group-member.c (group_info, get_group_info): Use gid_t.
55247         (group_member): Rely on getgroups replacement.
55248         * lib/getugroups.c (getugroups): Use gid_t.
55249         * tests/test-getgroups.c (main): Likewise.
55250         * NEWS: Mention the signature change.
55251         * doc/posix-functions/getgroups.texi (getgroups): Mention the
55252         problem with signature.
55253         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
55254         GETGROUPS_T is still useful for setgroups.
55256         getgroups, getugroups: provide stubs for mingw
55257         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
55258         * lib/getugroups.c (getugroups): Likewise.
55259         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
55260         function.  Modernize replacement scheme.
55261         (gl_PREREQ_GETGROUPS): Delete.
55262         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
55263         * modules/getgroups (configure.ac): Declare witness.
55264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
55265         * modules/unistd (Depends-on): Substitute witness.
55266         * lib/unistd.in.h (getgroups): Declare replacement.
55268         getgroups: avoid calling exit
55269         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
55270         drop xalloc.
55271         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
55272         dependencies.
55273         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
55274         exiting, in the rare case of malloc failure.
55276         getgroups: fix logic error
55277         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
55278         has more than 20 groups.
55279         * modules/getgroups-tests: New test.
55280         * tests/test-getgroups.c: New file.
55282 2009-11-13  Simon Josefsson  <simon@josefsson.org>
55284         * tests/test-base64.c: Improve.
55286 2009-11-13  Simon Josefsson  <simon@josefsson.org>
55288         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
55289         Blake <ebb9@byu.net>.
55291 2009-11-13  Simon Josefsson  <simon@josefsson.org>
55293         * tests/test-xvasprintf.c: Add %s%s related checks.
55295 2009-11-12  Eric Blake  <ebb9@byu.net>
55297         version-etc: match standards.texi style
55298         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
55299         and use <> only for URLs.
55301 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
55303         fts: do not fail on a submount during traversal
55304         * lib/fts.c (fts_build): Read the stat info again after opening
55305         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
55306         Original report at http://bugzilla.redhat.com/501848.
55308 2009-11-12  Jim Meyering  <meyering@redhat.com>
55310         bootstrap: sync from coreutils
55311         * build-aux/bootstrap (bootstrap_epilogue): New function.
55312         Use git_modules_config in one more place.  This make bootstrap's
55313         --gnulib-srcdir option more useful for testing.
55315         bootstrap: generalize autoheader check
55316         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
55317         AC_CONFIG_HEADERS.
55319 2009-11-11  Eric Blake  <ebb9@byu.net>
55321         mkfifoat: use new modules for Solaris and BSD bugs
55322         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
55323         * lib/mkfifoat.c (mknodat): Split...
55324         * lib/mknodat.c (mknodat): ...into new file.
55325         * modules/mkfifoat (Files): Ship new file.
55326         (Depends-on): Add mkfifo, mknod.
55327         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
55328         (Depends-on): Add symlink.
55329         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
55330         redundant with test_mkfifo.h.
55331         (do_mkfifoat, do_mknodat): New helpers.
55333         mknod: new module
55334         * modules/mknod: New file.
55335         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
55336         * lib/mknod.c (mknod): Likewise.
55337         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
55338         defaults.
55339         * modules/sys_stat (Makefile.am): Substitute them.
55340         * lib/sys_stat.in.h (mknod): Declare replacement.
55341         * MODULES.html.sh (Support for systems lacking POSIX:2008):
55342         Document it.
55343         * doc/posix-functions/mknod.texi (mknod): Likewise.
55344         * modules/mknod-tests: New test.
55345         * tests/test-mknod.c: Likewise.
55347         mkfifo: new module
55348         * modules/mkfifo: New file.
55349         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
55350         * lib/mkfifo.c (mkfifo): Likewise.
55351         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
55352         defaults.
55353         * modules/sys_stat (Makefile.am): Substitute them.
55354         * lib/sys_stat.in.h (mkfifo): Declare replacement.
55355         * MODULES.html.sh (Support for systems lacking POSIX:2008):
55356         Document it.
55357         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
55358         * modules/mkfifo-tests: New test.
55359         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
55360         from test-mkfifoat.c.
55361         * tests/test-mkfifo.c: New file.
55363         readlink: detect FreeBSD bug
55364         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
55365         slash on symlink.
55366         * doc/posix-functions/readlink.texi (readlink): Document the bug.
55367         * tests/test-readlink.h (test_readlink): Enhance test.
55369         symlink: detect FreeBSD bug
55370         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
55371         slash on symlink.
55372         * doc/posix-functions/symlink.texi (symlink): Document the bug.
55373         * tests/test-symlink.h (test_symlink): Enhance test.
55375 2009-11-10  Eric Blake  <ebb9@byu.net>
55377         link: detect FreeBSD bug
55378         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
55379         symlink.
55380         * doc/posix-functions/link.texi (link): Document the bug.
55381         * tests/test-link.h (test_link): Enhance test.
55382         * tests/test-linkat.c (main): Update caller.
55384         unlink, remove: detect FreeBSD bug
55385         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
55386         slash on symlink.
55387         * doc/posix-functions/unlink.texi (unlink): Document the bug.
55388         * doc/posix-functions/remove.texi (remove): Likewise.
55389         * tests/test-unlink.h (test_unlink): Enhance test.
55390         * tests/test-remove.c (main): Likewise.
55392 2009-11-09  Eric Blake  <ebb9@byu.net>
55394         rename: detect FreeBSD bug
55395         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
55396         slash on symlink.
55397         * modules/renameat-tests (Depends-on): Add filenamecat.
55398         * tests/test-rename.h (test_rename): Allow one more errno.
55399         * tests/test-renameat.c (main): Likewise.
55400         * doc/posix-functions/rename.texi (rename): Document the bug.
55402         open: detect FreeBSD bug
55403         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
55404         symlink.
55405         * doc/posix-functions/open.texi (open): Document the bug.
55406         * doc/posix-functions/utimes.texi (utimes): Likewise.
55407         * tests/test-open.h (test_open): Add parameters, and test symlink
55408         handling.
55409         * tests/test-open.c (main): Adjust caller.
55410         * tests/test-fcntl-safer.c (main): Likewise.
55411         * modules/open-tests (Depends-on): Add stdbool, symlink.
55412         * modules/fcntl-safer-tests (Depends-on): Likewise.
55413         * tests/test-openat.c (main): Add test-open tests.
55415         stat: detect FreeBSD bug
55416         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
55417         symlink.
55418         * doc/posix-functions/stat.texi (stat): Document the bug.
55419         * tests/test-stat.h (test_stat_func): Add argument.
55420         * tests/test-stat.c (main): Adjust caller.
55421         * tests/test-fstatat.c (main): Likewise.
55422         * modules/stat-tests (Depends-on): Add stdbool, symlink.
55423         Reported by Jim Meyering.
55425 2009-11-09  James Youngman  <jay@gnu.org>
55427         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
55428         * lib/strftime.c: Correct placement of #include "ignore-value.h".
55430 2009-11-08  Jim Meyering  <meyering@redhat.com>
55432         utimens: remove invalid futimesat call
55433         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
55434         It used the file descriptor of the target file as the DIR_FD
55435         parameter and NULL as the file name.  That caused failure with
55436         errno == EFAULT on FreeBSD-8.0-rc2
55438 2009-11-07  Eric Blake  <ebb9@byu.net>
55440         fflush, freadseek: use fseeko, not fseek
55441         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
55442         (clear_ungetc_buffer): Avoid potential problems on large files.
55443         * lib/freadseek.c (freadseek): Likewise.
55444         * modules/freadseek (Depends-on): Add fseeko.
55445         * modules/fseek (configure.ac): Set a witness.
55446         * tests/test-fflush.c (main): Use fseeko.
55447         * tests/test-fpurge.c (fseek): Disable link warning.
55448         * tests/test-freadable.c (fseek): Likewise.
55449         * tests/test-freading.c (fseek): Likewise.
55450         * tests/test-fseeko.c (fseek): Likewise.
55451         * tests/test-ftell.c (fseek): Likewise.
55452         * tests/test-ftello.c (fseek): Likewise.
55453         * tests/test-fwritable.c (fseek): Likewise.
55454         * tests/test-fwriting.c (fseek): Likewise.
55456 2009-11-06  Simon Josefsson  <simon@josefsson.org>
55458         * modules/memchr (Depends-on): Drop getpagesize dependency.
55460 2009-11-06  Simon Josefsson  <simon@josefsson.org>
55462         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
55463         Reported by Ludovic Courtès.
55464         * build-aux/pmccabe2html: Improve example usage.
55465         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
55467 2009-11-06  Jim Meyering  <meyering@redhat.com>
55469         do-release-commit-and-tag: New module.
55470         Automate the release-commit and tag process.
55471         * build-aux/do-release-commit-and-tag: New script, from coreutils.
55472         * modules/do-release-commit-and-tag: New file.
55473         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55475 2009-11-06  Simon Josefsson  <simon@josefsson.org>
55477         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
55478         because test-select.c uses inet_pton.
55480 2009-11-06  Simon Josefsson  <simon@josefsson.org>
55482         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
55483         GETADDRINFO_LIB.  Bump serial number.
55484         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
55485         Suggested by Eric Blake <ebb9@byu.net>.
55487 2009-11-05  Eric Blake  <ebb9@byu.net>
55489         strtod: detect darwin bug
55490         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
55491         Reported by Leo Davis.
55493         freopen-safer: new module
55494         * modules/freopen-safer: New module.
55495         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
55496         * lib/freopen-safer.c (freopen_safer): New file.
55497         * lib/stdio-safer.h (freopen_safer): New declaration.
55498         * lib/stdio--.h (freopen): New override.
55499         * MODULES.html.sh (File stream based Input/Output): Mention it.
55500         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
55501         freopen-safer module.
55502         * doc/posix-functions/stderr.texi (stderr): Likewise.
55503         * doc/posix-functions/stdin.texi (stdin): Likewise.
55504         * doc/posix-functions/stdout.texi (stdout): Likewise.
55505         * modules/freopen-safer-tests: New test.
55506         * tests/test-reopen-safer.c: New file.
55508 2009-11-05  Jim Meyering  <meyering@redhat.com>
55510         maint.mk: Prohibit inclusion of "close-stream.h" without use.
55511         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
55513 2009-11-05  Simon Josefsson  <simon@josefsson.org>
55515         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
55517 2009-11-05  Simon Josefsson  <simon@josefsson.org>
55519         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
55521 2009-11-05  Simon Josefsson  <simon@josefsson.org>
55523         Fix link error.
55524         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
55525         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55527 2009-11-05  Simon Josefsson  <simon@josefsson.org>
55529         * tests/test-func.c: Also test value of __func__.
55531 2009-11-05  Simon Josefsson  <simon@josefsson.org>
55533         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
55534         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
55536 2009-11-05  Bruno Haible  <bruno@clisp.org>
55538         Fix link error.
55539         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
55540         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55541         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
55543 2009-11-05  Bruno Haible  <bruno@clisp.org>
55545         Tests for module 'inet_pton'.
55546         * modules/inet_pton-tests: New file.
55547         * tests/test-inet_pton.c: New file.
55549 2009-11-05  Bruno Haible  <bruno@clisp.org>
55551         Tests for module 'inet_ntop'.
55552         * modules/inet_ntop-tests: New file.
55553         * tests/test-inet_ntop.c: New file.
55555 2009-11-04  Eric Blake  <ebb9@byu.net>
55557         stdlib-safer: wrap all mkstemp variants
55558         * modules/mkostemp (configure.ac): Set witness.
55559         * modules/mkostemps (configure.ac): Likewise.
55560         * modules/mkstemps (configure.ac): Likewise.
55561         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
55562         (mkstemps_safer): Wrap more functions.
55563         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
55564         wrapping.
55565         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
55566         (mkstemps_safer): Implement the wrappers.
55568         mkstemps, mkostemps: new modules
55569         * modules/mkostemps: New module.
55570         * modules/mkstemps: Likewise.
55571         * lib/mkostemps.c (mkostemps): New file.
55572         * lib/mkstemps.c (mkstemps): Likewise.
55573         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
55574         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
55575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
55576         * modules/stdlib (Makefile.am): Substitute them.
55577         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
55578         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
55579         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
55580         * doc/gnulib.texi (Glibc stdlib.h): Include them.
55581         * MODULES.html.sh (File system functions): Mention them.
55583         tempname: resync from glibc
55584         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
55585         same values for __GT_FILE as glibc.  Abort even when assertions
55586         are disabled.
55587         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
55588         match its value otherwise.  Allow idempotent inclusion.
55589         * lib/mkdtemp.c (mkdtemp): Adjust caller.
55590         * lib/mkostemp.c (mkostemp): Likewise.
55591         * lib/mkstemp.c (mkstemp): Likewise.
55592         * lib/tmpfile.c (tmpfile): Likewise.
55593         * NEWS: Document this.
55595         utimens: fix use of futimens on older Linux
55596         * lib/utimens.c (fdutimens): Use updated, rather than original,
55597         timespec to avoid bug in older Linux kernel.
55598         Reported by Simon Josefsson.
55600 2009-11-04  Bruno Haible  <bruno@clisp.org>
55602         Make num_processors more flexible and consistent.
55603         * lib/nproc.h (enum nproc_query): New type.
55604         (num_processors): Add a 'query' argument.
55605         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
55606         (num_processors): Add a 'query' argument. Test the value of the
55607         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
55608         mingw, count the number of CPUs available for the current process.
55609         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
55610         Check for sched_getaffinity and sched_getaffinity_np.
55611         * modules/nproc (Depends-on): Add c-ctype, extensions.
55612         * NEWS: Mention the change.
55614 2009-11-03  Bruno Haible  <bruno@clisp.org>
55616         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
55618 2009-11-03  Jim Meyering  <meyering@redhat.com>
55620         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
55621         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
55622         if it is defined.
55624 2009-11-02  Eric Blake  <ebb9@byu.net>
55626         mktime, timegm: share common declaration
55627         * lib/mktime-internal.h: New file.
55628         * lib/mktime.c: Use it rather than open-coding a declaration.
55629         * lib/timegm.c: Likewise.
55630         * modules/mktime (Files): Ship it.
55631         * modules/timegm (Files): Likewise.
55632         Suggested by Bruno Haible.
55634         test-update-copyright: update test to match script changes
55635         * tests/test-update-copyright.sh: Avoid hard-coding perl
55636         location.  Don't update *.bak created by earlier runs.
55638 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55639             Simon Josefsson  <simon@josefsson.org>
55640             Bruno Haible  <bruno@clisp.org>
55642         Fix link error on Solaris 8.
55643         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
55644         also in libnsl. Define also INET_PTON_LIB.
55645         * modules/inet_pton (Link): New section.
55647 2009-11-02  Simon Josefsson  <simon@josefsson.org>
55648             Bruno Haible  <bruno@clisp.org>
55650         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
55651         * modules/inet_ntop (Link): New section.
55652         Reported by Boyan Kasarov <bkasarov@gmail.com>.
55654 2009-11-02  Eric Blake  <ebb9@byu.net>
55656         maint: avoid compiler warnings in m4 macros
55657         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
55658         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
55660 2009-11-02  Simon Josefsson  <simon@josefsson.org>
55662         * m4/pmccabe2html.m4: Remove file.
55663         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
55664         function.  Change maintainer.
55665         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
55666         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
55667         Courtès).
55669 2009-10-31  Eric Blake  <ebb9@byu.net>
55671         fseeko: fix m4 regression
55672         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
55673         regression from 2009-10-27.
55674         Reported by Ralf Wildenhues.
55676 2009-10-31  Jim Meyering  <meyering@redhat.com>
55678         inttostr: aesthetics and improved (compile-time) safety
55679         Define inttype_is_signed rather than inttype_is_unsigned,
55680         since the sole use is via "#if inttype_is_signed".
55681         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
55682         inttype_is_unsigned.
55683         * lib/offtostr.c (inttype_is_signed): Likewise.
55684         * lib/uinttostr.c (inttype_is_signed): Likewise.
55685         * lib/umaxtostr.c (inttype_is_signed): Likewise.
55686         * lib/inttostr.c (inttostr): Use verify to cross-check the
55687         inttype_is_signed value and the signedness of the actual type.
55688         * modules/inttostr (Depends-on): Add verify.
55690 2009-10-30  Eric Blake  <ebb9@byu.net>
55692         build: avoid compiler warnings
55693         * lib/fchmodat.c (lchmod): Mark unused variables.
55694         * lib/getopt.c (_getopt_initialize): Likewise.
55695         * lib/mktime.c (__mktime_internal): Provide prototype.
55696         * lib/inttostr.c (inttostr): Avoid compiler warning even with
55697         older gcc that do not understand #pragma GCC diagnostic.
55698         * lib/uinttostr.c (inttype_is_unsigned): Define.
55699         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
55701 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
55703         stat: fix compilation on AIX
55704         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
55705         only see struct stat64.
55707 2009-10-30  Eric Blake  <ebb9@byu.net>
55709         exclude: make more robust
55710         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
55711         rather than masking a coding bug.
55712         Suggested by Bruno Haible.
55714 2009-10-30  Jim Meyering  <meyering@redhat.com>
55716         perl scripts: remove #!/usr/bin/perl in favor of more portable...
55717         Rather than putting #!/usr/bin/perl on the first line,
55718         start with a variant of what's recommended by "man perlrun" that
55719         invokes the first "perl" program from your shell's search path.
55720         * build-aux/gitlog-to-changelog: Replace #!... as above.
55721         Add a "Local Variables" perl mode setting.
55722         Prompted by a patch from Ludovic Courtès.
55723         Improved by Eric Blake.
55724         * build-aux/useless-if-before-free: Likewise.
55725         * build-aux/announce-gen: Likewise.
55726         * build-aux/update-copyright: Likewise.
55728 2009-10-29  Eric Blake  <ebb9@byu.net>
55730         filenamecat-lgpl: adjust clients
55731         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
55732         filenamecat.
55733         * modules/renameat (Depends-on): Likewise.
55735         filenamecat: split into filenamecat-lgpl
55736         * modules/filenamecat-lgpl: New module.
55737         * modules/filenamecat (Files): Move library-safe files into
55738         filenamecat-lgpl.
55739         (Depends-on): Add filenamecat-lgpl.
55740         (configure.ac): Declare witness.
55741         * lib/filenamecat.h (file_name_concat): Only declare when using
55742         GPL module.
55743         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
55744         Move...
55745         * lib/filenamecat-lgpl.c: ...into new file.
55746         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
55747         (gl_FILE_NAME_CONCAT): Use it.
55748         * MODULES.html.sh (File system functions): Mention new module.
55750         argp: avoid memory leak
55751         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
55752         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
55753         base_name, since the latter malloc()s and can call exit().
55754         Leak introduced 2006-07-03.
55756         dirname-lgpl: adjust clients that don't need full dirname
55757         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
55758         * modules/filenamecat (Depends-on): Likewise.
55759         * modules/linkat (Depends-on): Likewise.
55760         * modules/mkancesdirs (Depends-on): Likewise.
55761         * modules/mkdir (Depends-on): Likewise.
55762         * modules/openat (Depends-on): Likewise.
55763         * modules/savewd (Depends-on): Likewise.
55764         * modules/rename (Depends-on): Likewise.
55765         (License): Relax license.
55766         * modules/mkdir-tests (Depends-on): Drop progname.
55767         (Makefile.am): Delete unneeded LDADD.
55768         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
55770         dirname: split into dirname-lgpl
55771         * modules/dirname-lgpl: New module.
55772         * modules/dirname (Files): Move library-safe files into
55773         dirname-lgpl.
55774         (Depends-on): Add dirname-lgpl.
55775         (configure.ac): Declare witness.
55776         * modules/double-slash-root (License): Relax license.
55777         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
55778         module.
55779         * lib/dirname.c (dir_len, mdir_name): Move...
55780         * lib/dirname-lgpl.c: ...into new file.
55781         * lib/basename.c (last_component, base_len): Move...
55782         * lib/basename-lgpl.c: ...into new file.
55783         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
55784         (gl_DIRNAME): Use it.
55785         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
55786         Mention new module.
55787         * modules/dirname-tests (Depends-on): Add progname.
55788         * tests/test-dirname.c (program_name): Delete.
55790         mkdir: make safe for libraries
55791         * modules/mkdir (Depends-on): Drop xalloc.
55792         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
55793         exit.
55795         tests: avoid some compiler warnings
55796         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
55797         literals.
55798         * tests/test-memchr.c (main): Avoid type mismatch.
55799         * tests/test-arpa_inet.c (main): Avoid unused parameters.
55800         * tests/test-base64.c (main): Likewise.
55801         * tests/test-getdelim.c (main): Likewise.
55802         * tests/test-gethostname.c (main): Likewise.
55803         * tests/test-getline.c (main): Likewise.
55804         * tests/test-netinet_in.c (main): Likewise.
55805         * tests/test-select.c (open_server_socket, main): Likewise.
55806         * tests/test-select-stdin.c (main): Likewise.
55807         * tests/test-sockets.c (main): Likewise.
55808         * tests/test-strsignal.c (main): Likewise.
55809         * tests/test-sys_select.c (main): Likewise.
55810         * tests/test-sys_socket.c (main): Likewise.
55811         * tests/test-u64.c (main): Likewise.
55812         * tests/test-xfprintf-posix.c (main): Likewise.
55813         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
55815         sockets: avoid compiler warning
55816         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
55818         maint: detect usage(1) and other suspicious exits
55819         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
55821 2009-10-29  Jim Meyering  <meyering@redhat.com>
55823         timespec: long-to-int truncation could make timespec_cmp malfunction
55824         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
55825         a multiple of 2^32 nanoseconds as no difference.
55827 2009-10-28  Jim Meyering  <meyering@redhat.com>
55829         fprintftime: wrap macro code argument in "do {...} while(0)"
55830         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
55831         cpy macro must be a statement that can be followed by a semicolon.
55832         Now that the else clause contains a comment and is hence longer
55833         than one line, I require curly braces.  That in turn requires
55834         that we wrap this code block in the standard do...while(0).
55836         fprintftime: remove stray semicolon from previous change
55837         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
55839         fprintftime: avoid a warning about ignored fwrite return value
55840         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
55841         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
55842         that is unsafe.
55843         * modules/fprintftime (Depends-on): Add ignore-value.
55845         exclude: avoid an unwarranted warning
55846         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
55848 2009-10-27  Eric Blake  <ebb9@byu.net>
55850         fseek: avoid compilation failure when fflush is replaced
55851         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
55852         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
55853         module is in use.
55854         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
55855         module is not in use; since REPLACE_FSEEK worked otherwise.
55856         (GNULIB_FTELLO): Likewise for ftell.
55857         Reported by Ian Beckwith and others.
55859 2009-10-27  Bruno Haible  <bruno@clisp.org>
55861         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
55862         Reported by Jim Meyering.
55864 2009-10-27  Jim Meyering  <jim@meyering.net>
55865             Bruno Haible  <bruno@clisp.org>
55867         Avoid warning despite dropping the return value of fwrite.
55868         * lib/unicodeio.c: Include ignore-value.h.
55869         (fwrite_success_callback): Explicitly ignore fwrite's return value.
55870         * modules/unicodeio (Depends-on): Add ignore-value.
55872 2009-10-26  Eric Blake  <ebb9@byu.net>
55874         areadlinkat: fix fallback path
55875         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
55876         pointer and zero.
55878 2009-10-22  Pádraig Brady  <P@draigBrady.com>
55880         Use a better IO block size for modern systems
55881         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
55882         * lib/md2.c: Likewise.
55883         * lib/md4.c: Likewise.
55884         * lib/md5.c: Likewise.
55885         * lib/sha1.c: Likewise.
55886         * lib/sha256.c: Likewise.
55887         * lib/sha512.c: Likewise.
55889 2009-10-22  Eric Blake  <ebb9@byu.net>
55891         tests: avoid several compiler warnings
55892         * tests/test-getcwd.c (main): Avoid buffer underflow.
55893         * tests/test-getdate.c (main): String literals are not safe with
55894         putenv, so use setenv.  Declare unused argument.
55895         * modules/getdate-tests (Depends-on): Add setenv.
55896         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
55897         problems with string literals in char *.
55898         * tests/test-hash.c (main): Avoid shadowing declaration.
55899         (insert_new): Treat string literals as char const *.
55900         * tests/test-getopt.h (test_getopt): Likewise.
55901         (getopt_loop): Alter types to minimize casting elsewhere.
55902         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
55903         (test_getopt_long_posix): Likewise.
55904         (do_getopt_long): Add wrapper to minimize casting.
55905         * tests/test-atexit.c (clear_temp_file): Use void.
55906         * tests/test-areadlink-with-size.c (main): Declare unused
55907         arguments.
55908         * tests/test-areadlink.c (main): Likewise.
55909         * tests/test-areadlinkat-with-size.c (main): Likewise.
55910         * tests/test-areadlinkat.c (main): Likewise.
55911         * tests/test-canonicalize-lgpl.c (main): Likewise.
55912         * tests/test-canonicalize.c (main): Likewise.
55913         * tests/test-dirent-safer.c (main): Likewise.
55914         * tests/test-dirname.c (main): Likewise.
55915         * tests/test-dup2.c (main): Likewise.
55916         * tests/test-fchdir.c (main): Likewise.
55917         * tests/test-fcntl-h.c (main): Likewise.
55918         * tests/test-fcntl-safer.c (main): Likewise.
55919         * tests/test-fdopendir.c (main): Likewise.
55920         * tests/test-fdutimensat.c (main): Likewise.
55921         * tests/test-fflush.c (main): Likewise.
55922         * tests/test-filenamecat.c (main): Likewise.
55923         * tests/test-filevercmp.c (main): Likewise.
55924         * tests/test-fopen-safer.c (main): Likewise.
55925         * tests/test-fopen.c (main): Likewise.
55926         * tests/test-fpending.c (main): Likewise.
55927         * tests/test-fpurge.c (main): Likewise.
55928         * tests/test-freading.c (main): Likewise.
55929         * tests/test-fstatat.c (main): Likewise.
55930         * tests/test-fsync.c (main): Likewise.
55931         * tests/test-futimens.c (main): Likewise.
55932         * tests/test-getndelim2.c (main): Likewise.
55933         * tests/test-gettimeofday.c (main): Likewise.
55934         * tests/test-getopt.c (main): Likewise.
55935         * tests/test-i-ring.c (main): Likewise.
55936         * tests/test-inttypes.c (main): Likewise.
55937         * tests/test-link.c (main): Likewise.
55938         * tests/test-lstat.c (main): Likewise.
55939         * tests/test-math.c (main): Likewise.
55940         * tests/test-md5.c (main): Likewise.
55941         * tests/test-memchr2.c (main): Likewise.
55942         * tests/test-memrchr.c (main): Likewise.
55943         * tests/test-mkdir.c (main): Likewise.
55944         * tests/test-mkdirat.c (main): Likewise.
55945         * tests/test-mkfifoat.c (main): Likewise.
55946         * tests/test-open.c (main): Likewise.
55947         * tests/test-openat-safer.c (main): Likewise.
55948         * tests/test-openat.c (main): Likewise.
55949         * tests/test-quotearg.c (main): Likewise.
55950         * tests/test-rawmemchr.c (main): Likewise.
55951         * tests/test-readlink.c (main): Likewise.
55952         * tests/test-remove.c (main): Likewise.
55953         * tests/test-rename.c (main): Likewise.
55954         * tests/test-renameat.c (main): Likewise.
55955         * tests/test-rmdir.c (main): Likewise.
55956         * tests/test-sha1.c (main): Likewise.
55957         * tests/test-signal.c (main): Likewise.
55958         * tests/test-sigaction.c (main): Likewise.
55959         * tests/test-stat.c (main): Likewise.
55960         * tests/test-stat-time.c (main): Likewise.
55961         * tests/test-stddef.c (main): Likewise.
55962         * tests/test-stdint.c (main): Likewise.
55963         * tests/test-stdio.c (main): Likewise.
55964         * tests/test-stdlib.c (main): Likewise.
55965         * tests/test-strchrnul.c (main): Likewise.
55966         * tests/test-strerror.c (main): Likewise.
55967         * tests/test-string.c (main): Likewise.
55968         * tests/test-strtod.c (main): Likewise.
55969         * tests/test-strverscmp.c (main): Likewise.
55970         * tests/test-symlink.c (main): Likewise.
55971         * tests/test-symlinkat.c (main): Likewise.
55972         * tests/test-sys_stat.c (main): Likewise.
55973         * tests/test-sys_time.c (main): Likewise.
55974         * tests/test-time.c (main): Likewise.
55975         * tests/test-unistd.c (main): Likewise.
55976         * tests/test-unlink.c (main): Likewise.
55977         * tests/test-unlinkat.c (main): Likewise.
55978         * tests/test-utimens.c (main): Likewise.
55979         * tests/test-utimensat.c (main): Likewise.
55980         * tests/test-version-etc.c (main): Likewise.
55981         * tests/test-wchar.c (main): Likewise.
55982         * tests/test-wctype.c (main): Likewise.
55983         * tests/test-xprintf-posix.c (main): Likewise.
55984         * tests/test-posixtm.c (main): Likewise.
55985         (STREQ): Delete unused macro.
55986         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
55987         shadowed variables.
55988         * tests/test-memchr.c (main): Likewise.
55990 2009-10-21  Eric Blake  <ebb9@byu.net>
55992         areadlinkat: avoid failure on older glibc
55993         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
55994         rather than mis-comparing 0 against FUNC_RESULT of char*.
55996 2009-10-21  Bruno Haible  <bruno@clisp.org>
55998         * modules/stpncpy (License): Relicense under LGPLv2+.
55999         Reported by David Lutterkort <lutter@redhat.com>.
56001 2009-10-20  Eric Blake  <ebb9@byu.net>
56003         utimensat: work around Solaris 9 bug
56004         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
56005         has trailing slash bugs.
56006         * tests/test-lutimens.h (test_lutimens): Enhance test.
56007         * tests/test-utimens.h (test_utimens): Likewise.
56008         * doc/posix-functions/utime.texi (utime): Enhance documentation.
56009         * doc/posix-functions/utimes.texi (utimes): Likewise.
56010         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
56011         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
56012         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
56013         * doc/posix-functions/futimens.texi (futimens): Likewise.
56015         fdutimensat: new module
56016         * modules/fdutimensat: New file.
56017         * lib/fdutimensat.c (fdutimensat): Likewise.
56018         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
56019         * MODULES.html.sh (File system functions): Mention module.
56020         * modules/fdutimensat-tests: New test.
56021         * tests/test-fdutimensat.c: Likewise.
56023         doc: regenerate INSTALL
56024         * doc/INSTALL: Reflect recent autoconf update.
56025         * doc/INSTALL.ISO: Likewise.
56026         * doc/INSTALL.UTF-8: Likewise.
56028 2009-10-20  Pádraig Brady  <P@draigBrady.com>
56030         acl: warn if ACL support is not detected
56031         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
56033 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
56035         * lib/nproc.h: Add extern "C" block for C++.
56037 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
56038             Bruno Haible  <bruno@clisp.org>
56040         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
56041         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
56042         * doc/posix-functions/isalpha.texi: Likewise.
56043         * doc/posix-functions/isblank.texi: Likewise.
56044         * doc/posix-functions/iscntrl.texi: Likewise.
56045         * doc/posix-functions/isdigit.texi: Likewise.
56046         * doc/posix-functions/isgraph.texi: Likewise.
56047         * doc/posix-functions/islower.texi: Likewise.
56048         * doc/posix-functions/isprint.texi: Likewise.
56049         * doc/posix-functions/ispunct.texi: Likewise.
56050         * doc/posix-functions/isspace.texi: Likewise.
56051         * doc/posix-functions/isupper.texi: Likewise.
56052         * doc/posix-functions/isxdigit.texi: Likewise.
56054 2009-10-18  Bruno Haible  <bruno@clisp.org>
56056         Tests for module 'isblank'.
56057         * modules/isblank-tests: New file.
56058         * tests/test-isblank.c: New file.
56060         New module 'isblank'.
56061         * lib/isblank.c: New file.
56062         * m4/isblank.m4: New file.
56063         * modules/isblank: New file.
56064         * doc/posix-functions/isblank.texi: Mention the new module.
56066 2009-10-18  Bruno Haible  <bruno@clisp.org>
56068         New module 'ctype'.
56069         * lib/ctype.in.h: New file.
56070         * m4/ctype.m4: New file.
56071         * modules/ctype: New file.
56072         * doc/posix-headers/ctype.texi: Mention the new module.
56074 2009-10-18  Jim Meyering  <meyering@redhat.com>
56076         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
56077         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
56078         right after its initialization, rather than farther down.
56079         Keeping these in close proximity makes it easier to ensure
56080         that each such variable is initialized.  E.g.,
56082             LIB_CLOCK_GETTIME=
56083             AC_SUBST([LIB_CLOCK_GETTIME])
56085         This change also increments these serial numbers.
56086         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
56087         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56088         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56090 2009-10-18  Bruno Haible  <bruno@clisp.org>
56092         Don't let environment variables perturb build.
56093         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
56094         (gl_PREREQ_GETHRXTIME): ... not here.
56096 2009-10-18  Bruno Haible  <bruno@clisp.org>
56098         Avoid symlink attack in localcharset module.
56099         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
56100         (O_NOFOLLOW): Define fallback.
56101         (get_charset_aliases): Don't open the file if it is a symbolic link.
56102         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
56103         gl_FCNTL_H.
56104         (gl_FCNTL_H): Require it.
56105         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
56106         * modules/localcharset (Files): Add m4/fcntl_h.m4.
56107         Reported by Fergal Glynn <fglynn@veracode.com>.
56109 2009-10-18  Bruno Haible  <bruno@clisp.org>
56111         Implement nproc for mingw.
56112         * lib/nproc.c: Include <windows.h>
56113         (num_processors): On native Windows platforms, try GetSystemInfo.
56115 2009-10-18  Bruno Haible  <bruno@clisp.org>
56117         Implement nproc for IRIX.
56118         * lib/nproc.c: Include <sys/sysmp.h>.
56119         (num_processors): On IRIX systems, try sysmp.
56120         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
56122 2009-10-18  Bruno Haible  <bruno@clisp.org>
56124         Implement nproc for HP-UX.
56125         * lib/nproc.c: Include <sys/pstat.h>
56126         (num_processors): On HP-UX systems, try pstat_getdynamic.
56127         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
56128         pstat_getdynamic.
56130 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
56131             Bruno Haible  <bruno@clisp.org>
56133         Implement nproc for NetBSD, OpenBSD.
56134         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
56135         (ARRAY_SIZE): New macro.
56136         (num_processors): On BSD systems, try sysctl of HW_NCPU.
56137         * m4/nproc.m4: New file.
56138         * modules/nproc (Files): Add m4/nproc.m4.
56139         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
56140         (Makefile.am): Instead, augment lib_SOURCES.
56142 2009-10-18  Bruno Haible  <bruno@clisp.org>
56144         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
56145         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
56146         sys/param.h.
56148 2009-10-16  Eric Blake  <ebb9@byu.net>
56150         utimensat: new module
56151         * modules/utimensat: New file.
56152         * lib/utimensat.c (utimensat): Likewise.
56153         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
56154         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
56155         so we can work around Linux bugs.
56156         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
56157         * modules/sys_stat (Makefile.am): Substitute them.
56158         * lib/sys_stat.in.h (utimensat): Declare it.
56159         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56160         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
56161         * modules/utimensat-tests: New test.
56162         * tests/test-utimensat.c: Likewise.
56164         utimens: let lutimens work on non-symlinks
56165         * lib/utimens.c (lutimens): Fall back to utimens rather than
56166         failing with ENOSYS, when file is not a symlink.
56167         (utimens): Reduce redirection.
56168         * tests/test-lutimens.h (test_lutimens): Update test to cover
56169         non-symlinks.
56170         * tests/test-utimens.h (test_utimens): Update test to cover
56171         symlinks.
56172         * tests/test-utimens.c (main): Update caller.
56174         utimens: cache whether utimensat syscall works
56175         * lib/utimens.c (utimensat_works_really): New cache variable.
56176         (fdutimens, lutimens): Use it to avoid failing syscall.
56178         test-stat-time, test-utimens: improve portability
56179         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
56180         ext4 on alpha, and for cygwin.
56181         * tests/test-utimens-common.h: New file.
56182         (nap): Factor delays into single function.
56183         * tests/test-lutimens.h (test_lutimens): Use new header.
56184         * tests/test-futimens.h (test_futimens): Likewise.
56185         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
56186         timestamps to occur from same machine, as was done previously for
56187         test_utimens.
56188         * modules/utimens-tests (Files): Ship new file.
56189         * modules/futimens-tests (Files): Likewise.
56190         Reported in part by Jim Meyering.
56192         sys_stat: sort replacement declarations
56193         * lib/sys_stat.in.h: Sort declarations.
56194         * lib/futimens.c (futimens): Fix typo.
56196 2009-10-15  Jim Meyering  <meyering@redhat.com>
56198         don't let environment settings perturb build
56199         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
56200         could cause a configure-time and/or build-time malfunction.
56201         Typically, a configure-time function-in-library test is performed
56202         via code like this:
56204           LIB_VAR=
56205           AC_SUBST([LIB_VAR])
56206           prefix_saved_LIBS=$LIBS
56207             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
56208                        [test "$ac_cv_search_FUNC" = "none required" ||
56209                         LIB_VAR=$ac_cv_search_FUNC])
56210           LIBS=$prefix_saved_LIBS
56212         However, in each of the files affected by this change, the LIB_VAR=
56213         initialization was omitted.  Thus, when set in the environment, its
56214         value would propagate into generated Makefiles when FUNC is not found
56215         in LIB_NAME.
56216         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
56217         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56220 2009-10-14  Eric Blake  <ebb9@byu.net>
56222         fchdir: avoid infinite recursion in mingw
56223         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
56224         recursing.
56226         test-stat-time: port to mingw
56227         * tests/test-stat-time.c (force_unlink): Return a value.
56228         (test_ctime) [W32]: Fix compilation error.
56229         (nap): Don't call usleep with too large an argument.  Use
56230         force_unlink.
56231         * doc/pastposix-functions/usleep.texi (usleep): Document the
56232         portability issue.
56234 2009-10-13  Jim Meyering  <meyering@redhat.com>
56236         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
56237         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
56238         * modules/pipe-filter-ii: Likewise.
56239         * modules/sys_socket-tests: Likewise.
56240         * modules/tsearch-tests: Likewise.
56241         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
56242         (check): Depend on it.
56244 2009-10-12  Eric Blake  <ebb9@byu.net>
56246         utimens-tests: port to NFS file systems
56247         * tests/test-utimens.h (test_utimens): Refactor utimecmp
56248         comparisons to avoid spurious failures from timestamp drift
56249         between NFS machines.
56251 2009-10-12  Eric Blake  <ebb9@byu.net>
56253         stat-time-tests: minor cleanups
56254         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
56255         * tests/test-stat-time.c (nap): Separate assignment from call.
56256         Suggested by Paolo Bonzini and Bruno Haible.
56258         sys_stat: guarantee struct timespec
56259         * lib/sys_stat.in.h (includes): Always include <time.h>
56260         * modules/sys_stat (Depends-on): Add time.
56261         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
56262         mode_t permission values.
56263         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
56264         get at subsecond timestamps.
56266 2009-10-10  Eric Blake  <ebb9@byu.net>
56268         futimens: new module
56269         * modules/futimens: New file.
56270         * lib/futimens.c (futimens): Likewise.
56271         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
56272         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
56273         we can work around Linux bugs.
56274         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
56275         * modules/sys_stat (Makefile.am): Substitute them.
56276         * lib/sys_stat.in.h (futimens): Declare it.
56277         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56278         * doc/posix-functions/futimens.texi (futimens): Likewise.
56279         * modules/futimens-tests: New test.
56280         * tests/test-futimens.c: Likewise.
56282         utimens: introduce fdutimens
56283         * lib/utimens.h (fdutimens): New prototype.
56284         * lib/utimens.c (gl_futimens): Move guts...
56285         (fdutimens): ...to new interface.
56286         * tests/test-utimens.c (do_fdutimens): Use it.
56288         utimens: add UTIME_NOW and UTIME_OMIT support
56289         * lib/utimens.c (validate_timespec, update_timespec): New helper
56290         functions.
56291         (gl_futimens, lutimens): Use them.
56292         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
56293         stdbool, sys_stat.
56294         (Link): Mention resulting library dependency.
56295         * modules/utimecmp (Link): Likewise.
56296         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
56297         (Makefile.am): Pick up library dependency.
56298         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
56299         definition.
56300         * tests/test-sys_stat.c: Test the definitions.
56301         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
56302         * NEWS: Document library dependency.
56304         utimecmp: support symlink timestamps
56305         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
56306         hashing when possible.  Use pathconf when available.
56307         (SYSCALL_RESOLUTION): Recognize tighter resolution.
56308         * modules/utimecmp (Depends-on): Add lstat.
56310         utimens: add lutimens interface
56311         * lib/utimens.c (lutimens): New function.
56312         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
56313         * lib/utimens.h (lutimens): Declare new interface.
56314         * tests/test-utimens.c (main): Enhance test.
56315         * tests/test-lutimens.h (test_lutimens): New file.
56316         * modules/utimens-tests (Files): Distribute it.
56317         (Depends-on): Add symlink.
56318         (configure.ac): Check for usleep.
56320         utimens: validate futimens usage
56321         * lib/utimens.c (gl_futimens): Require valid fd up front, using
56322         fewer syscalls on failure later on.  Avoid compiler warning on
56323         mingw.
56324         * modules/utimens (Depends-on): Add dup2.
56326         utimens: add test
56327         * modules/utimens-tests: New test.
56328         * tests/test-utimens.h: New file.
56329         * tests/test-futimens.h: Likewise.
56330         * tests/test-utimens.c: Likewise.
56332         doc: mention timestamp portability issues
56333         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
56334         instead.
56335         * doc/posix-functions/utime.texi (utime): Likewise.
56336         * doc/posix-functions/utimes.texi (utimes): Likewise.
56337         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
56338         instead.
56339         * doc/posix-functions/futimens.texi (futimens): Mention utimens
56340         module.
56341         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
56342         Mention weakness with symlink timestamps.
56343         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
56344         to utimensat/futimens instead.
56345         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
56347         test-dup2: enhance test
56348         * tests/test-dup2.c (main): Also check AT_FDCWD.
56350         test-stat-time: avoid more spurious failures
56351         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
56352         xfs; and avoid race if the two timestamps cross quantization edge.
56354         relocatable: prefer 'file system' over 'filesystem'
56355         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
56356         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
56357         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
56358         * doc/relocatable.texi (Enabling Relocatability): Likewise.
56359         * lib/relocatable.c (compute_curr_prefix): Likewise.
56361 2009-10-10  Jim Meyering  <meyering@redhat.com>
56363         stat-time-tests: check for the usleep function
56364         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
56366 2009-10-10  Bruno Haible  <bruno@clisp.org>
56368         * modules/xnanosleep: Put the Link section after the Include section.
56370 2009-10-09  Eric Blake  <ebb9@byu.net>
56372         dup2: work around FreeBSD 6.1 bug
56373         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
56374         * doc/posix-functions/dup2.texi (dup2): Document it.
56375         Reported by Nelson H. F. Beebe and Jim Meyering.
56377         test-stat-time: port to buggy NFS clients
56378         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
56379         (test_ctime): Also skip test if mtime and ctime are skewed.
56381         maint: prefer 'file system' over 'filesystem'
56382         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
56383         * doc/posix-functions/lstat.texi (lstat): Likewise.
56384         * lib/file-has-acl.c (file_has_acl): Likewise.
56385         * lib/fwriteerror.c [TEST]: Likewise.
56386         * tests/test-areadlink.h (test_areadlink): Likewise.
56387         * tests/test-areadlinkat-with-size.c (main): Likewise.
56388         * tests/test-areadlinkat.c (main): Likewise.
56389         * tests/test-canonicalize-lgpl.c (main): Likewise.
56390         * tests/test-canonicalize.c (main): Likewise.
56391         * tests/test-fstatat.c (main): Likewise.
56392         * tests/test-linkat.c (main): Likewise.
56393         * tests/test-lstat.h (test_lstat_func): Likewise.
56394         * tests/test-mkdir.h (test_mkdir): Likewise.
56395         * tests/test-readlink.h (test_readlink): Likewise.
56396         * tests/test-remove.c (main): Likewise.
56397         * tests/test-rename.h (test_rename): Likewise.
56398         * tests/test-renameat.c (main): Likewise.
56399         * tests/test-rmdir.h (test_rmdir_func): Likewise.
56400         * tests/test-symlink.h (test_symlink): Likewise.
56401         * tests/test-symlinkat.c (main): Likewise.
56402         * tests/test-unlink.h (test_unlink_func): Likewise.
56403         * tests/test-unlinkat.c (main): Likewise.
56405         maint: make realtime library usage explicit
56406         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
56407         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
56408         * modules/settime (Link): Likewise.
56409         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
56411         test-stat-time: speed up execution
56412         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
56413         warning on mingw.
56414         (nap): New helper function.
56415         (prepare_test): Use it to reduce sleep time.
56416         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
56417         execution.
56418         * modules/stat-time-tests (configure.ac): Check for usleep.
56420 2009-10-09  Jim Meyering  <meyering@redhat.com>
56422         selinux-h: always use getfilecon wrappers
56423         * lib/getfilecon.c: New file.
56424         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
56425         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
56426         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
56427         (fgetfilecon): Provide a stub.
56428         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
56429         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
56430         file unconditionally.
56431         When <selinux/selinux.h> is found, arrange to use wrappers.
56432         * modules/selinux-h (Files): Add getfilecon.c.
56433         (Makefile.am): Substitute include-next-related bits
56434         into the now-always-generated selinux/selinux.h file.
56435         * doc/glibc-functions/lgetfilecon.texi: New file.
56436         * doc/glibc-functions/fgetfilecon.texi: New file.
56437         * doc/glibc-functions/getfilecon.texi: New file.
56438         * doc/glibc-functions/getfilecon-desc.texi: New file.
56439         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
56440         which to pull in the new files.
56441         * MODULES.html.sh (Misc): Add selinux-h.
56443 2009-10-08  Jim Meyering  <meyering@redhat.com>
56445         unistd: fix comment typo
56446         * lib/unistd.in.h (euidaccess): Fix a comment typo.
56448 2009-10-08  Eric Blake  <ebb9@byu.net>
56450         areadlink: use SIZE_MAX consistently
56451         * modules/areadlink (Depends-on): Add stdint.
56452         * modules/areadlink-with-size (Depends-on): Likewise.
56453         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
56454         gives NULL; drop sys/types, since unistd gives size_t; and add
56455         stdint for SIZE_MAX.
56456         (SIZE_MAX): Rely on headers.
56457         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
56458         and add stdint.
56459         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
56460         (SIZE_MAX): Likewise.
56461         (INITIAL_BUF_SIZE): Turn into enum.
56462         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
56464 2009-10-08  Jim Meyering  <meyering@redhat.com>
56466         areadlinkat: avoid compilation failure
56467         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
56468         Fix typo in comment.
56470 2009-10-07  Eric Blake  <ebb9@byu.net>
56472         areadlinkat-with-size: new module
56473         * modules/areadlinkat-with-size: New module.
56474         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
56475         * lib/areadlink.h (areadlinkat): Declare it.
56476         * MODULES.html.sh (File system functions): Mention it.
56477         * modules/areadlinkat-with-size-tests: New test.
56478         * tests/test-areadlinkat-with-size.c: New file.
56480         xreadlinkat: new module
56481         * modules/xreadlinkat: New module.
56482         * lib/xreadlinkat.c (xreadlinkat): New file.
56483         * lib/xreadlink.h (xreadlinkat): Declare it.
56484         * MODULES.html.sh (File system functions): Mention it.
56486         areadlinkat: new module
56487         * lib/at-func.c (FUNC_FAIL): New define.
56488         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
56489         * modules/areadlinkat: New module.
56490         * lib/linkat.c (areadlinkat): Move...
56491         * lib/areadlinkat.c (areadlinkat): ...to new file.
56492         * lib/areadlink.h (areadlinkat): Declare it.
56493         * modules/linkat (Depends-on): Add areadlinkat.
56494         * MODULES.html.sh (File system functions): Mention it.
56495         * modules/areadlinkat-tests: New test.
56496         * tests/test-areadlinkat.c: New file.
56498         areadlink, areadlink-with-size: add tests
56499         * modules/areadlink-tests: New test.
56500         * modules/areadlink-with-size-tests: Likewise.
56501         * tests/test-areadlink.h: New file.
56502         * tests/test-areadlink.c: Likewise.
56503         * tests/test-areadlink-with-size.c: Likewise.
56505         maint: minor cleanups
56506         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
56507         _UNUSED_PARAMETER_ instead.
56508         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
56509         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
56510         * modules/linkat-tests (Files): Distribute test-link.h.
56512         openat, utimens: whitespace cleanup
56513         * lib/openat.c: Prefer space throughout, rather than mix of 8
56514         spaces vs. tabs.
56515         * lib/at-func.c: Likewise.
56516         * lib/utimens.c: Likewise.
56518         openat: avoid using wrong fd
56519         * lib/openat.c (openat_permissive): Reject user's fd if saving the
56520         working directory chooses same fd.
56521         * lib/at-func.c (AT_FUNC_NAME): Likewise.
56523         mkdir, mkdirat: fix cygwin 1.5.x bug
56524         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
56525         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
56526         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
56527         bug.
56528         (gl_PREREQ_MKDIR): Delete unused macro.
56529         * modules/mkdir (Files): Track file rename.
56530         (configure.ac): Update macro name.
56531         * modules/openat (Depends-on): Add mkdir.
56532         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
56534         mkdir, mkdirat: add tests
56535         * modules/mkdir-tests: New test.
56536         * tests/test-mkdir.h: New file.
56537         * tests/test-mkdir.c: Likewise.
56538         * tests/test-mkdirat.c: Likewise.
56539         * modules/openat-tests (Files): Add new files.
56540         (Makefile.am): Run new test.
56542 2009-10-06  Eric Blake  <ebb9@byu.net>
56544         doc: tweak *at function documentation
56545         * doc/posix-functions/faccessat.texi (faccessat): Mention
56546         known issue with replacement.
56547         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
56548         * doc/posix-functions/linkat.texi (linkat): Likewise.
56549         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
56550         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
56551         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
56552         * doc/posix-functions/renameat.texi (renameat): Likewise.
56553         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
56555         openat: fix GNU/Hurd bug in unlinkat
56556         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
56557         broken.
56558         * doc/posix-functions/unlink.texi (unlink): Document this.
56559         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
56561         fdopendir: fix GNU/Hurd bug
56562         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
56563         allowing non-directory fds.
56564         * lib/fdopendir.c (rpl_fdopendir): Work around it.
56565         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
56566         * modules/dirent (Makefile.am): Substitute it.
56567         * lib/dirent.in.h (fdopendir): Declare replacement.
56568         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
56569         * tests/test-fdopendir.c (main): Test something other than
56570         /dev/null, since on Hurd that behaves like a directory.
56572         test-symlink: port to GNU/Hurd
56573         * tests/test-symlink.h (test_symlink): Relax expected errno.
56575         doc: tweak more cygwin information
56576         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
56577         now compatible with glibc.
56578         * doc/posix-functions/getopt.texi (getopt): Likewise.
56580         getopt-gnu: add another test
56581         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
56582         guarantee behavior relied on by m4.
56583         * tests/test-getopt.c (main): Use it.
56584         * modules/getopt-posix-tests (Depends-on): Add setenv.
56585         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
56587         getopt: fix compilation on darwin
56588         * lib/getopt.in.h (includes): Leave breadcrumbs during system
56589         include.
56590         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
56591         Reported by Ludovic Courtès.
56593 2009-10-06  Bruno Haible  <bruno@clisp.org>
56595         * modules/size_max (Description): Discourage its use.
56596         Reported by Simon Josefsson.
56598 2009-10-06  Jim Meyering  <meyering@redhat.com>
56600         linkat: avoid compilation failure
56601         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
56603 2009-10-05  Eric Blake  <ebb9@byu.net>
56605         linkat: support Linux 2.6.17
56606         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
56607         linkat on Linux, but allow cache variable override.
56608         * lib/linkat.c (rpl_linkat): Define override.
56609         * modules/linkat (Depends-on): Add symlinkat.
56610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
56611         * modules/unistd (Makefile.am): Substitute it.
56612         * lib/unistd.in.h (linkat): Declare replacement.
56613         Reported by Pádraig Brady.
56615         quotearg: port test to systems with C.UTF-8 locale
56616         * tests/test-quotearg.c (struct result_strings): Add another
56617         member, differentiating between C.ASCII and C.UTF-8 handling.
56618         (compare_strings): Add parameter.
56619         (main): Adjust all callers.
56621         getopt: avoid clash with FreeBSD _getopt_internal
56622         * lib/getopt.in.h (_getopt_internal): Override the name.
56623         * lib/getopt_int.h (includes): Pick up any overrides.
56624         Reported by Reuben Thomas.
56626         hash: allow C89 compilation
56627         * lib/hash.c (check_tuning): Move declaration before statement.
56628         Reported by Reuben Thomas.
56630 2009-10-05  Karl Berry  <karl@gnu.org>
56632         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
56634 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
56635             Bruno Haible  <bruno@clisp.org>
56637         * lib/uname.c (uname): Use a table-driven algorithm to compute
56638         Windows NT versions.
56640 2009-10-04  Bruno Haible  <bruno@clisp.org>
56642         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
56643         program_invocation_short_name.
56644         * modules/progname (configure.ac): Test for presence of
56645         program_invocation_short_name.
56646         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
56648 2009-10-04  Bruno Haible  <bruno@clisp.org>
56650         * lib/progname.c (set_program_name): Fix comment.
56651         Reported by Jim Meyering.
56653 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
56654             Bruno Haible  <bruno@clisp.org>
56656         * lib/uname.c: Include <string.h>.
56657         (uname): Do only one call to GetVersionEx in the common case.
56659 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
56660             Bruno Haible  <bruno@clisp.org>
56662         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
56663         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
56664         (uname): Add support for Windows CE and various non-x86 CPU types.
56666 2009-10-03  Bruno Haible  <bruno@clisp.org>
56668         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
56669         invocation to tests/configure.ac.
56670         Reported by Ian Beckwith <ianb@erislabs.net>.
56672 2009-10-02  Eric Blake  <ebb9@byu.net>
56674         fchdir: avoid compiler warning
56675         * lib/fchdir.c (canonicalize_file_name)
56676         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
56678         test-open: support mingw errno values
56679         * tests/test-open.h (test_open): Relax test.
56680         * tests/test-fopen.h (test_fopen): Likewise.
56681         * tests/test-openat-safer.c (main): Likewise.
56683         open: fix opening directory on mingw
56684         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
56686         test-open: on GNU/Hurd, /dev/null is a directory
56687         * tests/test-fopen.h (main): Rename...
56688         (test_fopen): ...to this.  Use a guaranteed non-directory when
56689         confirming open behavior on trailing slash.
56690         * tests/test-openat-safer.c (main): Likewise.
56691         * tests/test-open.h (main): Likewise....
56692         (test_open): ...to this.
56693         * tests/test-fopen.c (main): Adjust caller.
56694         * tests/test-fopen-safer.c (main): Likewise.
56695         * tests/test-open.c (main): Likewise.
56696         * tests/test-fcntl-safer.c (main): Likewise.
56697         Reported by Samuel Thibault.
56699         rename, fchdir: don't ignore chdir failure
56700         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
56701         * lib/rename.c (rpl_rename) [W32]: Likewise.
56702         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
56703         an empty destination directory if source cannot be renamed,
56704         although there is still possibility for failure.
56705         * doc/posix-functions/rename.texi (rename): Document the race.
56706         Reported by Jim Meyering.
56708         maint: cleanup whitespace in recent commits
56709         * lib/rename.c (rpl_rename): Remove tabs.
56710         * tests/test-link.h (test_link): Likewise.
56711         * lib/fchdir.c (get_name): Likewise.
56712         Reported by Jim Meyering.
56714 2009-10-02  Ben Pfaff  <blp@gnu.org>
56716         relocatable-prog-wrapper: Add missing dependency on
56717         double-slash-root.
56718         * modules/relocatable-prog-wrapper: Add dependency.
56719         Reported by Ian Beckwith <ianb@erislabs.net>.
56721 2009-10-02  Eric Blake  <ebb9@byu.net>
56723         renameat: fix Solaris bugs
56724         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
56725         needed fixing.
56726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
56727         * modules/stdio (Makefile.am): Substitute it.
56728         * lib/stdio.in.h (renameat): Declare replacement.
56729         * lib/renameat.c (rpl_renameat): Implement fix.
56731         renameat: new module
56732         * modules/renameat: New file.
56733         * lib/renameat.c (renameat): Likewise.
56734         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
56735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
56736         * modules/stdio (Makefile.am): Substitute them.
56737         * lib/stdio.in.h (renameat): Declare it.
56738         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56739         * doc/posix-functions/renameat.texi (renameat): Likewise.
56740         * modules/renameat-tests: New test.
56741         * tests/test-renameat.c: Likewise.
56743         rename: fix mingw bugs
56744         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
56745         directory overwrite bugs.
56747         rename: fix another cygwin 1.5 bug
56748         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
56749         checks.
56750         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
56751         unnecessary cygwin workarounds.  Also work around bug with moving
56752         full directory onto an empty one.
56753         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
56755         rename-dest-slash: merge into rename module
56756         * modules/rename-dest-slash (Status): Mark obsolete.
56757         (Depends-on): Add rename.
56758         (Files): Let rename do it all.
56759         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
56760         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
56761         * m4/rename-dest-slash.m4: ...so this file can be deleted.
56762         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
56763         * lib/rename.c (rpl_rename): Update comments.
56765         rename: fix cygwin 1.5.x bugs
56766         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
56767         * lib/rename.c (rpl_rename): Work around them.
56768         * modules/rename (Depends-on): Add same-inode.
56770         rename: fix Solaris 10 bug
56771         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
56772         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
56773         was the only bug.
56775         rename: fix Solaris 9 bug
56776         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
56777         on non-directory.  Avoid calling exit.
56778         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
56779         strdup.
56780         * modules/rename-tests (Depends-on): Drop lstat.
56781         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
56782         (gl_PREREQ_RENAME): Delete unused macro.
56784         rename-dest-slash: fix NetBSD bug
56785         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
56786         links.
56787         * modules/rename-dest-slash (Depends-on): Add same-inode.
56789         rename-tests: new test, exposes several platform bugs
56790         * modules/rename-tests: New file.
56791         * tests/test-rename.h: Likewise.
56792         * tests/test-rename.c: Likewise.
56793         * doc/posix-functions/rename.texi (rename): Improve documentation,
56794         including bugs that will eventually be fixed in gnulib.
56796 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
56798         * lib/uname.c: Include <stdlib.h>
56799         (uname): Assume version info is available.
56801 2009-10-02  Jim Meyering  <meyering@redhat.com>
56803         gnu-web-doc-update: correct --help output
56804         * build-aux/gnu-web-doc-update: Make --help output relevant.
56806         gnu-web-doc-update: add standard options
56807         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
56809         gnu-web-doc-update: New module.
56810         Use this script to automatically update the on-line web documentation
56811         for your GNU project at http://www.gnu.org/software/$pkg/manual/
56812         * modules/gnu-web-doc-update: New file, from coreutils.
56813         * build-aux/gnu-web-doc-update: New script.
56815 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
56817         link: LoadLibrary is not needed.
56818         * lib/link.c: Use GetModuleHandle.
56820 2009-10-01  Eric Blake  <ebb9@byu.net>
56822         getopt: bump serial number
56823         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
56824         change.
56826         tests: tighten link, rmdir, and remove tests
56827         * tests/test-link.h (includes): No need to use <config.h> here.
56828         Clean up if directory hard link was created, otherwise test for
56829         trailing '.'.
56830         * tests/test-linkat.c (main): Simplify.
56831         * tests/test-remove.c (main): Enhance test for trailing '.'.
56832         * tests/test-rmdir.h (test_rmdir_func): Likewise.
56834 2009-10-01  Jim Meyering  <meyering@redhat.com>
56836         maint.mk: requiring "make major" was annoying, for a "minor" release.
56837         What is intended is "stable", to contrast with alpha and beta,
56838         so require "make stable", not "make major".
56839         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
56840         (get_tool_versions): Likewise.
56841         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
56843 2009-09-30  Ben Pfaff  <blp@gnu.org>
56845         Fix broken build of replacement for Windows tmpfile().
56846         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
56847         flags argument added along with the 'mkostemp' module.
56849 2009-09-28  Bruno Haible  <bruno@clisp.org>
56851         Avoid identifier clash with POSIX function 'remove' defined as a macro.
56852         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
56853         to 'remove_elt'.
56854         (gl_list_remove): Update.
56855         * lib/gl_list.c (gl_list_remove): Update.
56856         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
56857         to 'remove_elt'.
56858         (gl_oset_remove): Update.
56859         * lib/gl_list.c (gl_oset_remove): Update.
56860         Reported by Eric Blake.
56862 2009-09-28  Eric Blake  <ebb9@byu.net>
56864         doc: mention yet more cygwin 1.7 status
56865         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
56866         cygwin.
56867         * doc/glibc-functions/execvpe.texi (execvpe): New file.
56868         * doc/gnulib.texi (Glibc unistd.h): Mention it.
56870         argp: fix test failure
56871         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
56872         that are not upper-case.  Pass correct range to tolower.
56874 2009-09-27  Jim Meyering  <meyering@redhat.com>
56876         test-yesno: work around sparc-dash here-document infelicity
56877         Without this change, the literal \177 byte in a here document
56878         would make dash 0.5.5.1-3 access uninitialized memory.
56879         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
56880         Instead, use a marker, "@", and filter through tr to create the desired
56881         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
56883 2009-09-27  Bruno Haible  <bruno@clisp.org>
56885         Disable untested support for new flavours of ACLs on AIX.
56886         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
56887         progress.
56888         * lib/set-mode-acl.c (qset_acl): Likewise.
56890 2008-12-07  Bruno Haible  <bruno@clisp.org>
56892         Add support for new flavours of ACLs on AIX. (Untested.)
56893         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
56894         (file_has_acl): Add support for newer AIX.
56895         * lib/set-mode-acl.c (qset_acl): Likewise.
56896         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
56897         Rainer Tammer <tammer@tammer.net>.
56899 2009-09-26  Eric Blake  <ebb9@byu.net>
56901         argp: fix compilation of getopt
56902         * lib/getopt.in.h (includes): Use different guard than glibc.
56903         Reported by Sergey Poznyakoff.
56905         doc: mention more cygwin 1.7 status
56906         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
56907         bug.
56908         * doc/posix-functions/execl.texi (execl): Likewise.
56909         * doc/posix-functions/execle.texi (execle): Likewise.
56910         * doc/posix-functions/execlp.texi (execlp): Likewise.
56911         * doc/posix-functions/execv.texi (execv): Likewise.
56912         * doc/posix-functions/execve.texi (execve): Likewise.
56913         * doc/posix-functions/execvp.texi (execvp): Likewise.
56914         * doc/glibc-functions/canonicalize_file_name.texi
56915         (canonicalize_file_name): Cygwin 1.7 now provides this.
56916         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
56917         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
56918         on AT_SYMLINK_NOFOLLOW.
56920 2009-09-24  Eric Blake  <ebb9@byu.net>
56922         test-linkat: make test more robust
56923         * tests/test-linkat.c (main): Avoid collision with EEXIST.
56925         getopt: fix inclusion guards for cygwin
56926         * modules/getopt-posix (Depends-on): Add include-next.
56927         (Makefile.am): Substitute more items in replacement header.
56928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
56929         <getopt.h>.
56930         * lib/getopt.in.h (includes): Use split inclusion guard, and
56931         prefer <getopt.h> over include <unistd.h> when one is present.
56932         (option): Also override name of 'struct option'.
56934         same-inode: revert prior change; it is not yet ready
56935         * NEWS: Undo mention of this change.
56936         * lib/same-inode.h (same-inode.h): Undo tri-state change.
56937         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
56938         * lib/cycle-check.c (cycle_check): Likewise.
56939         * lib/same.c (same_name): Likewise.
56940         * lib/at-func2.c (at_func2): Likewise.
56942 2009-09-23  Eric Blake  <ebb9@byu.net>
56944         linkat: new module
56945         * modules/linkat: New file.
56946         * lib/at-func2.c (at_func2): Likewise.
56947         * lib/linkat.c (linkat): Likewise.
56948         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
56949         * lib/openat-priv.h (at_func2): Add declaration.
56950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
56951         * modules/unistd (Makefile.am): Substitute them.
56952         * lib/unistd.in.h (linkat): Declare it.
56953         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
56954         * doc/posix-functions/linkat.texi (linkat): Likewise.
56955         * doc/posix-functions/link.texi (link): Tweak wording.
56956         * tests/test-link.c (main): Move guts...
56957         * tests/test-link.h (test_link): ...into new file.
56958         * modules/linkat-tests: New test.
56959         * tests/test-linkat.c: Likewise.
56960         * modules/link-tests (Files): Ship new file.
56961         (Depends-on): Add stdbool.
56963         dirname: add library-safe mdir_name
56964         * lib/dirname.h (mdir_name): New prototype.
56965         * lib/dirname.c (dir_name): Move guts...
56966         (mdir_name): ...to new function that avoids xalloc_die.
56968         fchdir: another mingw fix
56969         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
56970         * lib/fchdir.c (get_name): New helper method; skips canonicalize
56971         on mingw (where it has not yet been ported), and make it optional
56972         elsewhere.
56973         (_gl_register_fd): Use it.
56975         same-inode: make SAME_INODE tri-state, to port to mingw
56976         * NEWS: Mention this change.
56977         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
56978         st_ino always being 0.
56979         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
56980         * lib/cycle-check.c (cycle_check): Likewise.
56981         * lib/same.c (same_name): Likewise.
56983         lstat: avoid mingw compilation error
56984         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
56985         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
56986         lstat ourselves.
56987         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
56988         was adequate.
56989         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
56990         the checks for lstat.
56991         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
56993         link: fix test failure on Solaris 9
56994         * lib/link.c (rpl_link): Don't assume link will catch bogus
56995         trailing slash on source.
56997         test-symlinkat: enhance test
56998         * tests/test-readlink.c (main): Move guts...
56999         * tests/test-readlink.h (test_readlink): ...into new file.
57000         * tests/test-symlink.c (main): Move guts...
57001         * tests/test-symlink.h (test_symlink): ...into new file.
57002         * tests/test-symlinkat.c (main): Use new files for further
57003         coverage.
57004         (do_symlink, do_readlink): New helper functions.
57005         * modules/symlink-tests (Files): Ship new file.
57006         (Depends-on): Add stdbool.
57007         * modules/readlink-tests (Files): Ship new file.
57008         (Depends-on): Add stdbool.
57009         * modules/symlinkat-tests (Files): Use new files.
57011 2009-09-23  Eric Blake  <ebb9@byu.net>
57013         readlink: document portability issue with symlink length
57014         * doc/posix-functions/lstat.texi (lstat): Mention that some file
57015         systems have bogus st_size on symlinks, and mention the
57016         areadlink-with-size module.
57017         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
57018         * doc/posix-functions/readlink.texi (readlink): Mention the
57019         areadlink module, and ERANGE failure.
57020         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
57021         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
57023         readlink: fix Solaris 9 bug with trailing slash
57024         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
57025         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
57026         * doc/posix-functions/readlink.texi (readlink): Document this.
57027         * modules/readlink-tests: New test.
57028         * tests/test-readlink.c: Likewise.
57030         readlink: fix cygwin 1.5.x bug with return type
57031         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
57032         * lib/unistd.in.h (readlink): Use ssize_t.
57033         * lib/readlink.c (readlink): Likewise.
57034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57035         * modules/unistd (Makefile.am): Substitute it.
57036         * lib/unistd.in.h (readlink): Declare replacement.
57037         * doc/posix-functions/readlink.texi (readlink): Document this.
57039         symlink: use throughout gnulib
57040         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
57041         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
57042         symlink is not used.
57043         * modules/symlinkat (Depends-on): Add symlink.
57044         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
57045         * modules/canonicalize-tests (Depends-on): Likewise.
57046         * modules/lstat-tests (Depends-on): Likewise.
57047         * modules/openat-tests (Depends-on): Likewise.
57048         * modules/remove-tests (Depends-on): Likewise.
57049         * modules/rmdir-tests (Depends-on): Likewise.
57050         * modules/unlink-tests (Depends-on): Likewise.
57051         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
57052         * tests/test-canonicalize.c (symlink): Likewise.
57053         * tests/test-fstatat.c (symlink): Likewise.
57054         * tests/test-lstat.c (symlink): Likewise.
57055         * tests/test-remove.c (symlink): Likewise.
57056         * tests/test-rmdir.c (symlink): Likewise.
57057         * tests/test-unlink.c (symlink): Likewise.
57058         * tests/test-unlinkat.c (symlink): Likewise.
57060         symlink: new module, for Solaris 9 bug
57061         * modules/symlink: New file.
57062         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
57063         * lib/symlink.c: Likewise.
57064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
57065         * modules/unistd (Makefile.am): Substitute them.
57066         * lib/unistd.in.h (symlink): Declare replacement.
57067         * MODULES.html.sh (File system functions): Mention it.
57068         * doc/posix-functions/symlink.texi (symlink): Likewise.
57069         * modules/symlink-tests: New test.
57070         * tests/test-symlink.c: Likewise.
57072 2009-09-23  Bruno Haible  <bruno@clisp.org>
57074         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
57075         when needed.
57076         Test case: gnulib-tool --import --with-tests atexit inttypes.
57077         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
57079 2009-09-23  Bruno Haible  <bruno@clisp.org>
57081         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
57082         subcommand, not in a subshell.
57084 2009-09-22  Eric Blake  <ebb9@byu.net>
57086         unistd: sort replacement declarations
57087         * lib/unistd.in.h: Sort declarations.
57089         open, openat: minor optimization
57090         * lib/open.c (open): If open succeeded, len is non-zero.
57091         * lib/openat.c (rpl_openat): Likewise.
57093         link-follow: ensure correct result
57094         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
57095         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
57096         distinguish between possible failures.
57098 2009-09-21  Eric Blake  <ebb9@byu.net>
57100         fts: avoid compiler warning
57101         * lib/fts.c (dirent_inode_sort_may_be_useful)
57102         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
57104 2009-09-19  Bruno Haible  <bruno@clisp.org>
57106         * lib/progreloc.c (canonicalize_file_name): New declaration.
57108 2009-09-19  Eric Blake  <ebb9@byu.net>
57110         link: fix quoting
57111         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
57113         openat: fix openat bugs on Solaris 9
57114         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
57115         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
57116         * modules/openat (Depends-on): Add open.
57117         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
57118         * modules/fcntl-h (Makefile.am): Substitute it.
57119         * lib/fcntl.in.h (openat): Declare replacement.
57120         * doc/posix-functions/openat.texi (openat): Document this.
57122         openat: move fstatat and unlinkat into correct files
57123         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
57124         compiled.
57125         * lib/openat.c (fstatat, unlinkat): Move...
57126         * lib/fstatat.c (fstatat): ...into correct files.
57127         * lib/unlinkat.c (unlinkat): Likewise.
57129         openat: fix unlinkat bugs on Solaris 9
57130         * lib/unlinkat.c (unlinkat): New file.
57131         * modules/openat (Depends-on): Add unlink.
57132         (Files): Distribute it.
57133         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
57134         trailing slash behavior is broken.
57135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57136         * modules/unistd (Makefile.am): Substitute it.
57137         * lib/unistd.in.h (unlinkat): Declare replacement.
57138         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
57140         openat: fix fstatat bugs on Solaris 9
57141         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
57142         stat.
57143         * doc/posix-functions/fstatat.texi (fstatat): Document this.
57145         test-unlinkat: enhance test, to expose Solaris 9 bug
57146         * tests/test-unlink.c (main): Factor guts...
57147         * tests/test-unlink.h (test_rmdir_func): ...into new file.
57148         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
57149         * tests/test-rmdir.c (main): Adjust caller.
57150         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
57151         (unlinker): New helper function.
57152         (rmdirat): Enhance check.
57153         * modules/rmdir-tests (Depends-on): Add stdbool.
57154         * modules/unlink-tests (Depends-on): Likewise.
57155         (Files): Add test-unlink.h.
57156         * modules/openat-tests (Files): Likewise.
57157         (Depends-on): Add unlinkdir.
57159         test-fstatat: new test, to expose Solaris 9 bugs
57160         * tests/test-stat.c (main): Factor guts...
57161         * tests/test-stat.h (test_stat_func): ...into new file.
57162         * tests/test-lstat.c (main): Factor guts...
57163         * tests/test-lstat.h (test_lstat_func): ...into new file.
57164         * tests/test-fstatat.c: New file.
57165         * modules/stat-tests (Files): Add test-stat.h.
57166         * modules/lstat-tests (Files): Add test-lstat.h.
57167         (Depends-on): Add stdbool.
57168         * modules/openat-tests (Depends-on): Add pathmax.
57169         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
57170         (Makefile.am): Run new test.
57172         remove: new module, for mingw and Solaris 9 bugs
57173         * modules/remove: New file.
57174         * lib/remove.c: Likewise.
57175         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
57176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
57177         * modules/stdio (Makefile.am): Use them.
57178         * lib/stdio.in.h (remove): Declare replacement.
57179         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57180         * doc/posix-functions/remove.texi (remove): Likewise.
57181         * modules/remove-tests: New test.
57182         * tests/test-remove.c: Likewise.
57184         unlink: new module, for Solaris 9 bug
57185         * modules/unlink: New file.
57186         * lib/unlink.c: Likewise.
57187         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
57189         * modules/unistd (Makefile.am): Use them.
57190         * lib/unistd.in.h (stat): Declare replacement.
57191         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57192         * doc/posix-functions/unlink.texi (unlink): Likewise.
57193         * modules/unlink-tests: New test.
57194         * tests/test-unlink.c: Likewise.
57196         lstat: fix Solaris 9 bug
57197         * lib/lstat.c (lstat): Also check for trailing slash on
57198         non-symlink, non-directories.  Use stat module to simplify logic.
57199         * doc/posix-functions/lstat.texi (lstat): Document it.
57200         * modules/lstat-tests (Depends-on): Add errno, same-inode.
57201         (configure.ac): Check for symlink.
57202         * tests/test-lstat.c (main): Add more tests.
57204         stat: add as dependency to other modules
57205         * modules/chown (Depends-on): Add stat.
57206         * modules/euidaccess (Depends-on): Likewise.
57207         * modules/fchdir (Depends-on): Likewise.
57208         * modules/isdir (Depends-on): Likewise.
57209         * modules/link (Depends-on): Likewise.
57210         * modules/lstat (Depends-on): Likewise.
57211         * modules/mkdir-p (Depends-on): Likewise.
57212         * modules/modechange (Depends-on): Likewise.
57213         * modules/open (Depends-on): Likewise.
57214         * modules/readlink (Depends-on): Likewise.
57215         * modules/same (Depends-on): Likewise.
57217         stat: fix Solaris 9 bug
57218         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
57219         slash.
57220         * lib/stat.c (rpl_stat): Work around it.
57221         * doc/posix-functions/stat.texi (stat): Update documentation.
57223         stat: new module, for mingw bug
57224         * modules/stat: New file.
57225         * lib/stat.c: Likewise.
57226         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
57228         * modules/sys_stat (Makefile.am): Use them.
57229         * lib/sys_stat.in.h (stat): Declare replacement.
57230         * lib/openat.c (fstatat): Deal with lstat and stat being function
57231         macros.
57232         * modules/openat (Depends-on): Add inline.
57233         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57234         * doc/posix-functions/stat.texi (stat): Likewise.
57235         * modules/stat-tests: New test.
57236         * tests/test-stat.c: Likewise.
57238 2009-09-19  Jim Meyering  <meyering@redhat.com>
57240         syntax-check: detect unnecessary inclusion of canonicalize.h
57241         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
57243 2009-09-19  Eric Blake  <ebb9@byu.net>
57245         canonicalize-lgpl: adjust clients to use correct header
57246         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
57247         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
57248         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
57249         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
57250         * lib/progreloc.c (includes): Likewise.
57252 2009-09-19  Jim Meyering  <meyering@redhat.com>
57254         test-posixtm.c: correct a comment
57255         * tests/test-posixtm.c: Correct first-line comment.
57256         Spotted by Eric Blake.
57258 2009-09-16  Jim Meyering  <meyering@redhat.com>
57260         posixtm-tests: make T const-correct; add a test case
57261         * tests/test-posixtm.c (T): Declare const.
57262         Add a test for -(2^31+1).
57263         Remove useless can-succeed-only-in-2002 test.
57265         posixtm-tests: adjust the sole failing test
57266         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
57267         expected output matches what mktime now produces.  Cross-checked via
57268         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
57270         posixtm: move #ifdef'd tests into a new module
57271         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
57272         * tests/test-posixtm.c: ... this new file.
57273         * modules/posixtm-tests: New module.
57275 2009-09-19  Eric Blake  <ebb9@byu.net>
57277         openat: simplify use of at-func.c
57278         * lib/at-func.c (includes): Include prerequisites here, to
57279         simplify requirements on client files.
57280         * lib/openat-priv.h: Add double-inclusion guard.
57281         * lib/faccessat.c (includes): Simplify.
57282         * lib/fchmodat.c (includes): Likewise.
57283         * lib/fchownat.c (includes): Likewise.
57284         * lib/mkdirat.c (includes): Likewise.
57285         * lib/mkfifoat.c (includes): Likewise.
57286         * lib/symlinkat.c (includes): Likewise.
57288         openat: allow return of fd 0
57289         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
57290         * modules/save-cwd (Depends-on): Replace fcntl-safer with
57291         unistd-safer.
57292         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
57293         <fcntl.h>; this module does not leak fds.
57294         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
57295         must be allowed to return 0, leaving openat_safer to add the
57296         safety.
57297         (openat_permissive): Avoid writing to just-opened fd 2 if
57298         restoring the current directory fails.
57299         * lib/openat-die.c (openat_restore_fail): Add comment.
57300         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
57301         (save_cwd): Guarantee safe fd, but without use of open_safer.
57302         * tests/test-openat.c: New test.
57303         * modules/openat-tests (Files, Makefile.am): Distribute and build
57304         new file.
57306         relocatable-prog-wrapper: fix build
57307         * modules/relocatable-prog-wrapper (Files): Update name of
57308         canonicalize m4 file, broken on 2009-09-17.
57309         Reported by emad hajjar <aleppos@hotmail.com>.
57311 2009-09-19  Bruno Haible  <bruno@clisp.org>
57313         * lib/safe-alloc.h: Use the standard header with GPL copyright.
57314         * lib/safe-alloc.c: Likewise.
57315         Reported by Ian Beckwith <ianb@erislabs.net>.
57317 2009-09-18  Bruno Haible  <bruno@clisp.org>
57319         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
57320         Reported by <erobles@sensacd.com.mx>.
57322 2009-09-17  Eric Blake  <ebb9@byu.net>
57324         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
57325         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
57326         slashes when checking if last component is missing.
57327         * tests/test-canonicalize.c (main): Test this.
57329         canonicalize, canonicalize-lgpl: honor // if distinct from /
57330         * modules/canonicalize (Files): Add double-slash-root.m4.
57331         * modules/canonicalize-lgpl (Files): Likewise.
57332         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
57333         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
57334         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
57335         fallback definition.
57336         (canonicalize_filename_mode): Use it to protect //.
57337         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
57338         (__realpath): Likewise.
57339         * tests/test-canonicalize.c (main): Test this.
57340         * tests/test-canonicalize-lgpl.c (main): Likewise.
57341         * modules/canonicalize-tests (Depends-on): Add same-inode.
57342         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
57344         canonicalize-lgpl: fix glibc bug with trailing slash
57345         * m4/canonicalize-lgpl.m4: Move contents...
57346         * m4/canonicalize.m4: ...here.
57347         (gl_CANONICALIZE_LGPL): Factor realpath check...
57348         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
57349         glibc 2.3.5 bug, fixed 2005-04-27.
57350         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
57351         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
57352         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
57353         * modules/canonicalize-lgpl (Files): Manage file rename.
57354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
57355         * modules/stdlib (Makefile.am): Substitute witness.
57356         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
57357         is needed.
57358         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
57359         replacement is required.
57360         * lib/canonicalize.c (canonicalize_file_name): Likewise.
57361         * doc/glibc-functions/canonicalize_file_name.texi
57362         (canonicalize_file_name): Document this.
57363         * doc/posix-functions/realpath.texi (realpath): Likewise.
57365         canonicalize-lgpl: reject non-directory with trailing slash
57366         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
57367         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
57368         catches failures in glibc 2.3.5.
57369         * tests/test-canonicalize.c (main): Likewise.
57371         canonicalize-lgpl: use native realpath if it works
57372         * lib/canonicalize-lgpl.c (realpath): Guard with
57373         FUNC_REALPATH_WORKS.
57374         * lib/stdlib.in.h (realpath): Make declaration optional based on
57375         HAVE_REALPATH.
57376         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
57377         native realpath works.
57378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
57379         * modules/stdlib (Makefile.am): Substitute witness.
57381         canonicalize, canonicalize-lgpl: use <stdlib.h>
57382         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
57383         (Include): Mention <stdlib.h>.
57384         (configure.ac): Mention functions we provide.
57385         * modules/canonicalize (configure.ac): Likewise.
57386         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
57387         realpath if canonicalize_file_name is missing.
57388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
57389         * modules/stdlib (Makefile.am): Substitute witnesses.
57390         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
57391         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
57392         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
57393         * NEWS: Document this.
57394         * doc/glibc-functions/canonicalize_file_name.texi
57395         (canonicalize_file_name): Likewise.
57396         * doc/posix-functions/realpath.texi (realpath): Likewise.
57397         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
57399         test-canonicalize: consolidate into single C program
57400         * tests/test-canonicalize.sh: Delete; move setup into...
57401         * tests/test-canonicalize.c (main): ...the program, making it
57402         easier to run in debugger.  Add some tests.
57403         * modules/canonicalize-tests (Files): Remove unused file.
57404         (Depends-on): Add progname.
57405         (configure.ac, Makefile.am): Simplify.
57407         test-canonicalize-lgpl: consolidate into single C program
57408         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
57409         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
57410         easier to run in debugger.  Add some tests.
57411         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
57412         (configure.ac, Makefile.am): Simplify.
57414         canonicalize: avoid resolvepath
57415         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
57416         unnecessary checks.
57417         * lib/canonicalize.c (includes): Simplify.
57418         (canonicalize_file_name): Drop resolvepath implementation.
57419         * modules/canonicalize (Depends-on): Drop filenamecat.
57421         canonicalize: don't lose errno
57422         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
57423         over calls to free.
57425         canonicalize: simplify errno handling
57426         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
57427         assignment.
57429         canonicalize, canonicalize-lgpl: update module dependencies
57430         * modules/canonicalize (Depends-on): Add extensions, lstat,
57431         pathmax, stdlib.
57432         (Files): Drop pathmax.h.
57433         (configure.ac): Adjust macro name.
57434         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
57435         lstat, stdlib, sys_stat.
57436         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
57437         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
57438         extensions.
57439         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
57440         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
57441         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
57442         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
57443         declaration, if available.
57444         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
57445         we can rely on the readlink module.
57446         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
57447         (includes): Use <unistd.h> unconditionally.
57449 2009-09-17  Eric Blake  <ebb9@byu.net>
57451         maint: make Include sections of modules consistent
57452         * modules/alloca: Use only header name; no need to list #include.
57453         * modules/alloca-opt: Likewise.
57454         * modules/arpa_inet: Likewise.
57455         * modules/canon-host: Likewise.
57456         * modules/configmake: Likewise.
57457         * modules/dirent: Likewise.
57458         * modules/eealloc: Likewise.
57459         * modules/environ: Likewise.
57460         * modules/fchdir: Likewise.
57461         * modules/fcntl: Likewise.
57462         * modules/fcntl-h: Likewise.
57463         * modules/gethrxtime: Likewise.
57464         * modules/gettime: Likewise.
57465         * modules/ignore-value: Likewise.
57466         * modules/inet_ntop: Likewise.
57467         * modules/inet_pton: Likewise.
57468         * modules/inttypes: Likewise.
57469         * modules/isnand-nolibm: Likewise.
57470         * modules/isnanf-nolibm: Likewise.
57471         * modules/mbchar: Likewise.
57472         * modules/mbfile: Likewise.
57473         * modules/mbiter: Likewise.
57474         * modules/mbuiter: Likewise.
57475         * modules/netdb: Likewise.
57476         * modules/netinet_in: Likewise.
57477         * modules/nproc: Likewise.
57478         * modules/pagealign_alloc: Likewise.
57479         * modules/poll: Likewise.
57480         * modules/printf-frexp: Likewise.
57481         * modules/pthread: Likewise.
57482         * modules/putenv: Likewise.
57483         * modules/random_r: Likewise.
57484         * modules/relocatable-prog: Likewise.
57485         * modules/search: Likewise.
57486         * modules/select: Likewise.
57487         * modules/selinux-h: Likewise.
57488         * modules/settime: Likewise.
57489         * modules/signal: Likewise.
57490         * modules/size_max: Likewise.
57491         * modules/socklen: Likewise.
57492         * modules/ssize_t: Likewise.
57493         * modules/stdarg: Likewise.
57494         * modules/stdbool: Likewise.
57495         * modules/stddef: Likewise.
57496         * modules/stdint: Likewise.
57497         * modules/stdio: Likewise.
57498         * modules/stdlib: Likewise.
57499         * modules/string: Likewise.
57500         * modules/strings: Likewise.
57501         * modules/sys_file: Likewise.
57502         * modules/sys_ioctl: Likewise.
57503         * modules/sys_select: Likewise.
57504         * modules/sys_socket: Likewise.
57505         * modules/sys_stat: Likewise.
57506         * modules/sys_time: Likewise.
57507         * modules/sys_times: Likewise.
57508         * modules/sys_utsname: Likewise.
57509         * modules/sys_wait: Likewise.
57510         * modules/sysexits: Likewise.
57511         * modules/time: Likewise.
57512         * modules/times: Likewise.
57513         * modules/tmpfile: Likewise.
57514         * modules/trim: Likewise.
57515         * modules/unistd: Likewise.
57516         * modules/wchar: Likewise.
57517         * modules/wctype: Likewise.
57519 2009-09-17  Bruno Haible  <bruno@clisp.org>
57521         Make getdate.y compile on QNX and NetBSD 5 / i386.
57522         * m4/getdate.m4 (gl_GETDATE): Conditionally define
57523         TIME_T_FITS_IN_LONG_INT.
57524         * lib/getdate.y (long_time_t): New type.
57525         (relative_time): Change type of 'seconds' field to long_time_t.
57526         (get_date): Update types of local variables. Check against overflow
57527         during conversion from long_time_t to time_t.
57528         Reported by Matt Kraai <kraai@ftbfs.org>
57529         and Hasso Tepper <hasso@netbsd.org>.
57531 2009-09-17  Bruno Haible  <bruno@clisp.org>
57533         * modules/COPYING: Update copyright years.
57534         * modules/README: Likeiwse.
57535         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
57536         Reported by Ian Beckwith <ianb@erislabs.net>.
57538 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
57540         * users.txt: Update references for gnuit package.
57542 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
57544         * m4/getdelim.m4: Fix typo in copyright line.
57546 2009-09-17  Bruno Haible  <bruno@clisp.org>
57548         * lib/atoll.c: Use the standard header with GPL copyright.
57549         * lib/argz.in.h: Likewise.
57550         * lib/glob.c: Likewise.
57551         * lib/glob-libc.h: Likewise.
57552         * lib/random_r.c: Likewise.
57553         * lib/siglist.h: Likewise.
57554         * lib/strsignal.c: Likewise.
57555         Reported by Ian Beckwith <ianb@erislabs.net>.
57557 2009-09-17  Eric Blake  <ebb9@byu.net>
57559         rmdir: ensure correct dependency order
57560         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
57562 2009-09-17  Bruno Haible  <bruno@clisp.org>
57564         Disable assertion that fails on NetBSD 5 / i386.
57565         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
57566         Reported by Sam Steingold <sds@gnu.org>
57567         and Hasso Tepper <hasso@netbsd.org>.
57569 2009-09-16  Eric Blake  <ebb9@byu.net>
57571         unlinkdir: port to mingw
57572         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
57573         on which no one can unlink a directory.
57575         stdlib: sort witness names
57576         * modules/stdlib (Makefile.am): Sort replacements.
57577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57578         * lib/stdlib.in.h: Likewise.
57580         parse-duration-tests: avoid link failure
57581         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
57582         LIBINTL.
57583         Reported by Tom G. Christensen.
57585         openat-tests: ensure unlinkat behaves like rmdir
57586         * tests/test-rmdir.c (main): Factor guts...
57587         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
57588         * modules/rmdir-tests (Files): Ship new file.
57589         * modules/openat-tests: New test.
57590         * tests/test-unlinkat.c: Likewise.
57592         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
57593         * modules/rmdir-errno (Status, Notice): Now obsolete.
57595         rmdir: work around cygwin 1.5.x and mingw bugs
57596         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
57597         * lib/rmdir.c (rmdir): Work around it.
57598         * modules/rmdir (Status, Notice): No longer obsolete.
57599         (Files): Add dos.m4.
57600         (Depends-on): Add unistd.
57601         (configure.ac): Set witnesses.
57602         (License): Relax to LGPLv2+.
57603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
57604         * modules/unistd (Makefile.am): Substitute witnesses.
57605         * lib/unistd.in.h (rmdir): Declare replacement.
57606         * doc/posix-functions/rmdir.texi (rmdir): Document this.
57607         * modules/rmdir-tests: New tests.
57608         * tests/test-rmdir.c: Likewise.
57610 2009-09-15  Eric Blake  <ebb9@byu.net>
57612         fchdir: improve use of replacement functions
57613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
57614         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
57615         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
57616         REPLACE_CLOSEDIR.
57617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
57618         * modules/sys_stat (Makefile.am): Substitute correct witness.
57619         * modules/dirent (Makefile.am): Likewise.
57620         * modules/unistd (Makefile.am): Likewise.
57621         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
57622         * lib/unistd.in.h (dup): Likewise.
57623         * lib/sys_stat.in.h (fstat): Likewise.
57625         maint: ignore gnulib-tool temp files
57626         * .gitignore: Ignore files created during gnulib-tool --test.
57628 2009-09-13  Jim Meyering  <meyering@redhat.com>
57630         posixtm: don't reject a time that specify "60" as the number of seconds
57631         * lib/posixtm.c (posixtime): The code to reject invalid dates
57632         would also reject a time specified with the .60 suffix.
57633         But POSIX allows that, in order to accommodate leap seconds.
57634         So don't reject it.
57635         (main): Adjust tests accordingly.
57636         * modules/posixtm (Depends-on): Add stpcpy.
57638 2009-09-11  Jim Meyering  <meyering@redhat.com>
57640         announce-gen: include [$release_type] in emitted Subject:
57641         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
57642         e.g., [stable] in the emitted Subject: line.
57644 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57646         Remove obsolete macros from several modules.
57647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
57648         obsolete Autoconf macros with their modern counterparts.
57649         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
57650         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
57651         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
57652         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57653         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
57654         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57655         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57656         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
57657         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
57658         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
57659         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
57660         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
57661         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
57662         * m4/sockets.m4 (gl_SOCKETS): Likewise.
57663         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
57664         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
57665         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57666         * m4/time_r.m4 (gl_TIME_R): Likewise.
57667         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
57668         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
57669         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57671         Fix copyright header in build-aux scripts.
57672         * build-aux/git-version-gen: Fix copyright header to match GPLv3
57673         recommendation.
57674         * build-aux/ncftpput-ftp: Likewise.
57675         * build-aux/update-copyright: Likewise.
57677 2009-09-09  Eric Blake  <ebb9@byu.net>
57679         test-link: allow Linux choice of errno
57680         * tests/test-link.c (main): Relax test for alternate error.
57682         strndup: fix improper m4 caching
57683         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
57684         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
57685         (gl_PREREQ_STRNDUP): Delete.
57686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
57687         * modules/string (Makefile.am): Substitute it.
57688         * lib/string.in.h (strndup): Modernize prototype.
57690         getcwd: port to mingw
57691         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
57692         different from the POSIX assumptions made throughout the getcwd
57693         module; fortunately, the mingw getcwd does not need replacement.
57694         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
57695         * modules/getcwd-tests: New test.
57696         * tests/test-getcwd.c: Likewise.
57698         link: fix platform bugs
57699         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
57700         * lib/link.c (link): Work around them.  Fix related mingw bug.
57701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
57702         * modules/unistd (Makefile.am): Substitute it.
57703         * lib/unistd.in.h (link): Declare replacement.
57704         * doc/posix-functions/link.texi (link): Document this.
57705         * modules/link (Depends-on): Add strdup-posix, sys_stat.
57707         test-link: consolidate into single C program, test more cases
57708         * tests/test-link.sh: Delete.
57709         * tests/test-link.c: Test more error conditions.  Exposes bugs on
57710         at least Cygwin and Solaris.
57711         * modules/link-tests (Files): Remove unused file.
57712         (Depends-on): Add errno, sys_stat.
57713         (Makefile.am): Simplify.
57715 2009-09-08  Bruno Haible  <bruno@clisp.org>
57717         Work around towlower, towupper bug on mingw.
57718         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
57719         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
57720         * doc/posix-functions/towlower.texi: Mention the mingw bug.
57721         * doc/posix-functions/towupper.texi: Likewise.
57722         Reported by Eric Blake.
57724 2009-09-08  Jim Meyering  <meyering@redhat.com>
57726         build: don't try to run autoheader if we don't use it
57727         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
57728         is not used in configure.ac.
57730 2009-09-08  Eric Blake  <ebb9@byu.net>
57732         euidaccess: fix compilation error
57733         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
57735         rawmemchr: relax license
57736         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
57737         okay.
57738         Reported by Jim Meyering.
57740         mkfifoat: new module
57741         * modules/mkfifoat: New file.
57742         * lib/mkfifoat.c: Likewise.
57743         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
57744         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
57745         * modules/sys_stat (Makefile.am): Use them.
57746         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
57747         * MODULES.html.sh (File system functions): Mention module.
57748         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
57749         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
57750         * modules/mkfifoat-tests: New test.
57751         * tests/test-mkfifoat.c: Likewise.
57753         strchrnul: relax license
57754         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
57755         okay.
57756         Reported by Jim Meyering.
57758 2009-09-08  Eric Blake  <ebb9@byu.net>
57760         fstatat: fix compilation on Solaris
57761         * lib/fstatat.c (includes): Add fcntl.h.
57762         Reported by Pádraig Brady.
57764 2009-09-07  Eric Blake  <ebb9@byu.net>
57766         rename: modernize replacement
57767         * modules/rename (Depends-on): Add stdio.
57768         (configure.ac): Declare witness.
57769         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
57770         stdio take care of replacement.
57771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57772         * modules/stdio (Makefile.am): Substitute them.
57773         * lib/stdio.in.h (rename): Declare replacement.
57774         * lib/rename.c (includes): Allow cross-compilation to non-windows
57775         machines.
57776         * doc/posix-functions/rename.texi (rename): Improve
57777         documentation.
57779         stdio: sort witness names
57780         * modules/stdio (Makefile.am): Sort replacements.
57781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57782         * lib/stdio.in.h: Likewise.
57784         getcwd: minor cleanups
57785         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
57786         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
57788         openat: provide more convenience names
57789         * modules/faccessat (configure.ac): Add C witness.
57790         * lib/unistd.in.h (readlinkat): Fix typo.
57791         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
57792         convenience wrappers.
57793         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
57794         wrappers in syntax checks.
57796 2009-09-06  Eric Blake  <ebb9@byu.net>
57798         doc: fix comments in recent patches
57799         * lib/faccessat.c: Mention correct function.
57800         * lib/fchmodat.c: Likewise.
57801         * lib/fchownat.c: Likewise.
57802         * lib/symlinkat.c: Likewise.
57803         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
57804         constants.
57806         faccessat, symlinkat: continue cleanup of previous patch
57807         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
57808         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
57809         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
57810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
57811         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
57812         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
57813         set.
57815 2009-09-06  Bruno Haible  <bruno@clisp.org>
57817         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
57818         (fstatat): Declare if GNULIB_FSTATAT is set.
57819         (mkdirat): Declare if GNULIB_MKDIRAT is set.
57820         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
57821         (unlinkat): Declare if GNULIB_UNLINKAT is set.
57822         * modules/fcntl-h (Files): Remove m4/openat.m4.
57823         * modules/sys_stat (Files): Remove m4/openat.m4.
57824         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
57825         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
57826         * modules/unistd (Files): Remove m4/openat.m4.
57827         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
57828         GNULIB_OPENAT.
57829         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
57830         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
57831         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
57832         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
57833         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
57834         gl_OPENAT_DEFAULTS.
57835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
57836         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
57837         Don't require gl_OPENAT_DEFAULTS.
57838         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
57839         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
57840         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
57841         (gl_OPENAT_DEFAULTS): Remove macro.
57843 2009-09-06  Bruno Haible  <bruno@clisp.org>
57845         * modules/openat (configure.ac): Remove unneeded witness.
57847 2009-09-06  Bruno Haible  <bruno@clisp.org>
57849         Set errno to ENOSYS when a function is entirely unsupported.
57850         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
57851         EOPNOTSUPP.
57852         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
57853         * modules/chown (Depends-on): Remove errno.
57855 2009-09-06  Bruno Haible  <bruno@clisp.org>
57857         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
57859 2009-09-06  Bruno Haible  <bruno@clisp.org>
57861         * lib/sys_stat.in.h: Fix preprocessor command indentation.
57863 2009-09-06  Ben Pfaff  <blp@gnu.org>
57864             Bruno Haible  <bruno@clisp.org>
57866         Work around a glibc bug in strtok_r.
57867         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
57868         Undefine if UNDEFINE_STRTOK_R is set.
57869         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
57870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57871         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
57872         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
57873         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
57874         UNDEFINE_STRTOK_R.
57875         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
57877 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
57879         exclude: minor fix
57880         * lib/exclude.c: Include wctype.h
57882 2009-09-06  Akim Demaille  <demaille@gostai.com>
57884         bootstrap: improve error message
57885         * build-aux/bootstrap (find_tool): Upon failure, report the list
57886         of candidates.
57887         Honor the initial value of the envvar.
57889 2009-09-05  Eric Blake  <ebb9@byu.net>
57891         symlinkat: new module
57892         * modules/symlinkat: New file.
57893         * lib/symlinkat.c: Likewise.
57894         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
57895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
57896         * modules/unistd (Makefile.am): Use them.
57897         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
57898         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
57899         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
57900         * MODULES.html.sh (File system functions): Mention module.
57901         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
57902         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
57903         * modules/symlinkat-tests: New test.
57904         * tests/test-symlinkat.c: Likewise.
57906         test-openat-safer: add more checks
57907         * tests/test-openat-safer.c (main): Check more code paths.
57909 2009-09-05  Jim Meyering  <meyering@redhat.com>
57911         syntax-check: detect unnecessary inclusion of openat.h
57912         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
57914 2009-09-05  Bruno Haible  <bruno@clisp.org>
57916         Support towlower, towupper.
57917         * doc/posix-functions/towlower.texi: Mention module wctype.
57918         * doc/posix-functions/towupper.texi: Likewise.
57919         * lib/wctype.in.h (towlower, towupper): New functions.
57920         * tests/test-wctype.c: Include stdio.h, stdlib.h.
57921         (ASSERT): New macro.
57922         (e): New variable.
57923         (main): Test also towlower, towupper. Test WEOF argument.
57924         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
57926 2009-09-05  Bruno Haible  <bruno@clisp.org>
57928         Fix conversion behaviour when the input is invalid.
57929         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
57930         mark occurring in first pass of indirect conversion.
57931         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
57932         input.
57933         Found by clang's static analyzer.
57935 2009-09-05  Bruno Haible  <bruno@clisp.org>
57937         * tests/test-striconveh.c (main): Test indirect conversion on platforms
57938         where direct conversion is possible.
57940 2009-09-04  Eric Blake  <ebb9@byu.net>
57942         openat: fail with ENOENT on empty name
57943         * lib/openat-proc.c (openat_proc_name): Special-case the empty
57944         buffer.
57946         link-follow: fix logic bug in prior patch
57947         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
57948         reversed sense of yes and no in prior patch.  Avoid confusing
57949         compilation failure with desired semantics.
57951         link-follow: accommodate mingw and cross-compilation
57952         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
57953         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
57954         cross-compilation results to -1, to make linkat easier to
57955         implement when cross-compiling.  Trivially support mingw.
57956         * modules/link-follow (configure.ac): Call new name.
57957         * NEWS: Mention this.
57959 2009-09-03  Eric Blake  <ebb9@byu.net>
57961         faccessat: compile replacement
57962         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
57963         needed.
57965         fts: fix compilation error
57966         * lib/fts.c (includes): Re-add "openat.h", for
57967         openat_needs_fchdir.
57969         faccessat: new module
57970         * modules/faccessat: New file.
57971         * lib/faccessat.c: Likewise.
57972         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
57973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57974         * modules/unistd (Makefile.am): Use it.
57975         * lib/unistd.in.h (faccessat): Declare it.
57976         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
57977         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
57978         * MODULES.html.sh (File system functions): Mention it.
57979         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
57980         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
57982         euidaccess: prefer POSIX over non-standard implementation
57983         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
57984         * lib/euidaccess.c (euidaccess): Use it if available.
57986         openat: make template easier to use
57987         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
57988         AT_FUNC_F2 to be undefined.
57989         (VALIDATE_FLAG): New macro; use it to reject bad flags.
57990         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
57991         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
57992         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
57993         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
57994         Likewise.
57995         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
57996         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
57997         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
57998         Likewise.
58000         openat: declare in POSIX headers
58001         * NEWS: Mention this.
58002         * modules/openat (configure.ac): Declare witnesses.
58003         (Depends-on): Add fcntl-h, sys_stat, unistd.
58004         (Include): Mention correct headers.
58005         * modules/fcntl-h (Depends-on): Add link-warning.
58006         (Files): Add openat.m4.
58007         (Makefile.am): Substitute witnesses.
58008         * modules/sys_stat (Files, Makefile.am): Likewise.
58009         * modules/unistd (Files, Makefile.am): Likewise.
58010         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
58011         (gl_OPENAT_DEFAULTS): New macro.
58012         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
58013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
58014         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
58015         (SYS_STAT_H): Remove unused variable.
58016         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
58017         * lib/fcntl--.h (includes): Remove unneeded header.
58018         * lib/openat-safer.c (includes): Likewise.
58019         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
58020         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
58021         appropriate headers.
58022         (__OPENAT_PREFIX): Delete.
58023         * lib/fcntl.in.h (openat): Provide declaration.
58024         (AT_FDCWD): Fix Solaris bug.
58025         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
58026         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
58027         * lib/fchmodat.c (includes):  Adjust to find declaration.
58028         * lib/fchownat.c (includes): Likewise.
58029         * lib/mkdirat.c (includes): Likewise.
58030         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
58031         still visible.
58033 2009-09-02  Eric Blake  <ebb9@byu.net>
58035         errno: use consistently
58036         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
58037         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
58038         * lib/canonicalize.c (ELOOP): Likewise.
58039         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
58040         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
58041         * lib/lchown.c (EOPNOTSUPP): Likewise.
58042         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
58043         * lib/savewd.c (ESTALE): Likewise.
58044         * lib/settime.c (ENOSYS): Likewise.
58045         * lib/utimens.c (ENOSYS): Likewise.
58046         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
58047         * lib/chdir-safer.c (ELOOP): Likewise.
58048         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
58049         * modules/c-stack (Depends-on): Add errno.
58050         * modules/canonicalize (Depends-on): Likewise.
58051         * modules/chdir-safer (Depends-on): Likewise.
58052         * modules/fdopendir (Depends-on): Likewise.
58053         * modules/inet_ntop (Depends-on): Likewise.
58054         * modules/inet_pton (Depends-on): Likewise.
58055         * modules/lchown (Depends-on): Likewise.
58056         * modules/openat (Depends-on): Likewise.
58057         * modules/savewd (Depends-on): Likewise.
58058         * modules/settime (Depends-on): Likewise.
58059         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
58061         fts: avoid leaking fds
58062         * modules/fts (Depends-on): Add cloexec.
58063         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
58064         flag.
58066         fts: make directory fds more robust
58067         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
58068         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
58070         backupfile, chdir-long, fts, savedir: make safer
58071         * lib/backupfile.c (includes): Use "dirent--.h", since
58072         numbered_backup can write to stderr during readdir.
58073         * lib/savedir.c (includes): Likewise.
58074         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
58075         emulation can write to stderr on failure.
58076         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
58077         * lib/getcwd.c: Document why opendir_safer is unused.
58078         * lib/glob.c: Likewise.
58079         * lib/scandir.c: Likewise.
58080         * lib/openat-proc.c: Likewise, for open_safer.
58081         * modules/backupfile (Depends-on): Add dirent-safer.
58082         * modules/savedir (Depends-on): Likewise.
58083         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
58084         * modules/chdir-long (Depends-on): Add openat-safer.
58086         openat-safer: new module
58087         * modules/openat-safer: New file.
58088         * lib/openat-safer.c: Likewise.
58089         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
58090         * lib/fcntl-safer.h (openat_safer): Declare.
58091         * lib/fcntl--.h (openat): Override.
58092         * MODULES.html.sh (File descriptor based I/O): Mention it.
58093         * lib/openat.h: Add double-inclusion guards.
58094         * lib/openat.c (includes): Only include "fcntl-safer.h", not
58095         "fcntl--.h", so we can implement openat.
58096         * modules/openat-safer-tests: New test.
58097         * tests/test-openat-safer.c: New file.
58099         dirent-safer: new module
58100         * modules/dirent-safer: New file.
58101         * lib/dirent--.h: Likewise.
58102         * lib/dirent-safer.h: Likewise.
58103         * lib/opendir-safer.c: Likewise.
58104         * m4/dirent-safer.m4: Likewise.
58105         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
58106         * modules/dirent-safer-tests: New test.
58107         * tests/test-dirent-safer.c: New file.
58108         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
58110         fdopendir: optimize on mingw
58111         * lib/unistd.in.h (_gl_directory_name): New prototype.
58112         * lib/fchdir.c (_gl_directory_name): Implement it.
58113         (fchdir): Use it to simplify implementation.
58114         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
58115         fchdir, when available, to avoid calling [f]chdir().
58117         fdopendir: split into its own module
58118         * lib/openat.c (fdopendir): Move...
58119         * lib/fdopendir.c: ...into new file.
58120         * modules/fdopendir: New module.
58121         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
58122         * modules/openat (Depends-on): Add fdopendir.
58123         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
58124         fdopendir here.
58125         * modules/savedir (Depends-on): Only need fdopendir, not full
58126         openat.
58127         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
58128         * lib/openat.h (fdopendir): Drop prototype.
58129         * lib/dirent.in.h (fdopendir): Provide prototype.
58130         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
58131         * modules/dirent (Makefile.am): Substitute them.
58132         * MODULES.html.sh (File system functions): Mention it.
58133         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
58134         * modules/fdopendir-tests: New file.
58135         * tests/test-fdopendir.c: Likewise.
58137         fchdir: use more consistent macro convention
58138         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
58139         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
58140         REPLACE_FCHDIR, rather than relying on config.h macros.
58141         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
58142         inside a single make-time REPLACE_FCHDIR block, rather than using
58143         the config.h FCHDIR_REPLACEMENT.
58144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
58145         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
58146         Manage fstat replacement.
58147         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
58148         REPLACE_FCHDIR.
58149         * modules/sys_stat (Files): Add m4/unistd_h.m4.
58150         (Makefile.am): Substitute REPLACE_FCHDIR.
58151         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
58152         FCHDIR_REPLACEMENT.
58153         * lib/dup-safer.c (dup_safer): Likewise.
58154         * lib/dup2.c (rpl_dup2): Likewise.
58155         * lib/dup3.c (rpl_dup3): Likewise.
58156         * lib/open.c (rpl_open): Likewise.
58158         fchdir: simplify error handling, and support dup3
58159         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
58160         stdbool, malloc-posix, realloc-posix.
58161         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
58162         (ensure_dirs_slot): Return false on allocation failure.
58163         (rpl_dup2): Delete.
58164         (_gl_register_dup): New function.
58165         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
58166         (_gl_register_fd): Close fd on allocation failure.
58167         * lib/fcntl.in.h (_gl_register_fd): Update signature.
58168         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
58169         prototype.
58170         (rpl_dup2_fchdir): Delete prototype.
58171         * lib/open.c (open): Update caller.
58172         * lib/dup2.c (dup2): Track fchdir metadata.
58173         * lib/dup3.c (dup3): Likewise.
58174         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
58175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
58177 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58179         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
58180         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
58181         don't pass arguments to AC_OUTPUT.
58183 2009-09-02  Bruno Haible  <bruno@clisp.org>
58185         * modules/mkdtemp (License): Relicense under LGPLv2+.
58186         Reported by Paolo Bonzini.
58188 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58190         Replace uses of obsolete autoconf macros in Jim's modules.
58191         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
58192         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
58193         can evoke a warning from autoconf when run with -Wobsolete
58194         enabled.  They were declared obsolete for good reasons (see
58195         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
58196         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
58197         should not continue using the deprecated macros.
58198         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
58199         obsolete Autoconf macros with modern counterparts.
58200         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
58201         * m4/dos.m4 (gl_AC_DOS): Likewise.
58202         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
58203         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
58204         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
58205         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
58206         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
58207         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
58208         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
58209         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
58210         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58211         Likewise.
58212         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
58213         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
58214         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
58215         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
58216         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58217         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
58219 2009-09-01  Eric Blake  <ebb9@byu.net>
58221         fchdir: fix off-by-one bug in previous patch
58222         * lib/fchdir.c (rpl_fstat): Use correct bounds.
58223         (_gl_unregister_fd): Delete useless if.
58225 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
58227         maint.mk: sort the list of syntax-check rules
58228         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
58229         easier to get a sense of progress when the rules are run sequentially
58230         and take a long time.
58232 2009-09-01  Simon Josefsson  <simon@josefsson.org>
58234         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
58235         * modules/netinet_in: Likewise.
58236         * modules/sys_file: Likewise.
58237         * modules/sys_ioctl: Likewise.
58238         * modules/sys_select: Likewise.
58239         * modules/sys_socket: Likewise.
58240         * modules/sys_stat: Likewise.
58241         * modules/sys_time: Likewise.
58242         * modules/sys_times: Likewise.
58243         * modules/sys_utsname: Likewise.
58244         * modules/sys_wait: Likewise.
58246 2009-09-01  Jim Meyering  <meyering@redhat.com>
58248         fts: help ensure that return values are not ignored
58249         * lib/fts_.h (__GNUC_PREREQ): Define.
58250         (__attribute_warn_unused_result__): Define.
58251         (fts_children, fts_close, fts_open, fts_read): Declare with
58252         __attribute_warn_unused_result__.
58254         fts: fts_close now fails also when closing a dir file descriptor fails
58255         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
58256         and propagate to caller, along with errno.
58258         announce-gen: correct formatting in --help output
58259         * build-aux/announce-gen (usage): Move the one-line description in
58260         --help output "up", to where it belongs, just after Usage:.
58262 2009-08-31  Eric Blake  <ebb9@byu.net>
58264         fchdir: port to mingw
58265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
58266         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
58267         opened, then use a substitute.
58268         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
58269         replacement.
58270         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
58271         (_gl_register_fd): No need to check stat if open already filters
58272         all directories.
58273         (fchdir): Fix error condition to match POSIX.
58274         * modules/fchdir (Depends-on): Add sys_stat.
58275         * doc/posix-functions/open.texi (open): Document the limitation.
58276         * modules/fchdir-tests: New file.
58277         * tests/test-fchdir.c: Likewise.
58279         canonicalize: allow cross-testing from cygwin to mingw
58280         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
58281         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
58282         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
58283         Likewise.
58284         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
58285         target does not support symlinks.
58286         * tests/test-canonicalize-lgpl.sh: Likewise.
58288         chown: avoid compilation warning on mingw
58289         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
58290         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
58291         mingw.
58292         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
58293         * modules/chown (Depends-on): Add errno.
58295 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
58297         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
58298         command.
58300 2009-08-31  Jim Meyering  <meyering@redhat.com>
58302         canonicalize: remove useless initialization
58303         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
58304         initialization of local, "end".
58306 2009-08-30  Bruno Haible  <bruno@clisp.org>
58308         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
58309         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
58310         ENOSYS.
58312 2009-08-30  Bruno Haible  <bruno@clisp.org>
58314         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
58315         /usr/xpg4/bin/tr when it exists.
58316         * tests/test-pipe-filter-gi1.sh: Likewise.
58318 2009-08-30  Bruno Haible  <bruno@clisp.org>
58320         Work around deficient /usr/bin/id program on Solaris.
58321         * tests/test-file-has-acl.sh (ID): New variable.
58322         * tests/test-set-mode-acl.sh (ID): Likewise.
58323         * tests/test-copy-acl.sh (ID): Likewise.
58324         * tests/test-copy-file.sh (ID): Likewise.
58326 2009-08-30  Bruno Haible  <bruno@clisp.org>
58328         New module 'xstriconveh'.
58329         * lib/xstriconveh.h: New file.
58330         * lib/xstriconveh.c: New file.
58331         * modules/xstriconveh: New file.
58333 2009-08-30  Bruno Haible  <bruno@clisp.org>
58335         Make it easier to use mem_cd_iconveh.
58336         * lib/striconveh.h (iconveh_t): New type.
58337         (iconveh_open, iconveh_close): New declarations.
58338         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
58339         with a single 'const iconveh_t *' argument.
58340         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
58341         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
58342         with a single 'const iconveh_t *' argument.
58343         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
58344         * tests/test-striconveh.c (main): Update.
58345         * NEWS: Mention the change.
58347 2009-08-30  Bruno Haible  <bruno@clisp.org>
58349         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
58350         problem.
58352 2009-08-30  Bruno Haible  <bruno@clisp.org>
58354         Work around iconv_open problem on Solaris.
58355         * lib/iconv_open-solaris.gperf: New file.
58356         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
58357         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
58358         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
58359         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
58360         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
58361         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
58363 2009-08-29  Jim Meyering  <meyering@redhat.com>
58365         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
58366         * top/maint.mk (cvs-check): Remove target; it was just an alias
58367         to the better-named vc-diff-check.
58368         (maintainer-distcheck): Remove rule.  It was used only from
58369         the (alpha/beta/major) target, and all of its commands but one
58370         were coreutils-specific.
58371         (vc-dist): Remove rule.
58372         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
58373         Run vc-diff-check, not vc-dist.
58374         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
58376 2009-08-27  Bruno Haible  <bruno@clisp.org>
58378         * tests/test-bitrotate.c (main): Remove test that uses a shift count
58379         of 0.
58381 2009-08-27  Bruno Haible  <bruno@clisp.org>
58383         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
58384         compilers.
58385         * doc/func.texi: Document the SunPRO C bug.
58387 2009-08-27  Bruno Haible  <bruno@clisp.org>
58389         Fix link error on Solaris.
58390         * tests/test-parse-duration.c (xstrdup): Remove function.
58392 2009-08-26  Pádraig Brady  <P@draigbrady.com>
58394         ignore-value: handle pointer types, too
58395         * lib/ignore-value.h (__attribute__): Remove definition.
58396         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
58397         of a more concise and more-often effective "(void) i" statement.
58398         (ignore_ptr): New function to suppress warnings from functions that
58399         return pointers, and to make it explicit that one function doesn't
58400         handle all cases.
58402 2009-08-25  Bruno Haible  <bruno@clisp.org>
58404         dup2: work around a Linux bug.
58405         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
58406         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
58407         * doc/posix-functions/dup2.texi: Mention the Linux bug.
58408         Reported by Simon Josefsson.
58410 2009-08-25  Jim Meyering  <meyering@redhat.com>
58412         libguestfs uses gnulib
58413         * users.txt: Add libguestfs.
58415 2009-08-24  Eric Blake  <ebb9@byu.net>
58417         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
58418         * lib/pipe2.c (includes): Add binary-io.h.
58419         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
58421 2009-08-24  Bruno Haible  <bruno@clisp.org>
58423         Tolerate declared but missing accept4 syscall.
58424         * lib/accept4.c (accept4): Invoke original accept4 function first, if
58425         available.
58426         * lib/sys_socket.in.h (accept4): If the function is already present,
58427         override it.
58428         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
58429         * modules/accept4 (Makefile.am): Compile accept4.c always.
58430         Reported by Paolo Bonzini and Eric Blake.
58432 2009-08-23  Bruno Haible  <bruno@clisp.org>
58434         New module 'accept4'.
58435         * lib/sys_socket.in.h (accept4): New declaration.
58436         * lib/accept4.c: New file.
58437         * m4/accept4.m4: New file.
58438         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
58439         GNULIB_ACCEPT4, HAVE_ACCEPT4.
58440         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
58441         HAVE_ACCEPT4.
58442         * modules/accept4: New file.
58443         * doc/glibc-functions/accept4.texi: Mention the new module.
58445 2009-08-24  Jim Meyering  <meyering@redhat.com>
58447         progname: also set global program_invocation_name, when possible
58448         Before this change, a libtool-enabled program that calls glibc's
58449         error function would report the program name as
58450         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
58451         * modules/progname (configure.ac): Check for a declaration of
58452         program_invocation_name.
58453         * lib/progname.c:  Include <errno.h>.
58454         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
58455         Set program_invocation_name.
58457 2009-08-23  Bruno Haible  <bruno@clisp.org>
58459         * lib/dup3.c: Include <string.h>.
58461 2009-08-23  Bruno Haible  <bruno@clisp.org>
58463         * lib/dup3.c (dup3): Test only once whether the system actually exists.
58464         * lib/pipe2.c (pipe2): Likewise.
58465         Suggested by Eric Blake.
58467 2009-08-23  Bruno Haible  <bruno@clisp.org>
58469         Tolerate declared but missing dup3 syscall.
58470         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
58471         * lib/unistd.in.h (dup3): If the function is already present,
58472         override it.
58473         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
58474         * modules/dup3 (Makefile.am): Compile dup3.c always.
58475         Reported by Paolo Bonzini.
58477 2009-08-23  Bruno Haible  <bruno@clisp.org>
58479         Tolerate declared but missing pipe2 syscall.
58480         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
58481         available.
58482         * lib/unistd.in.h (pipe2): If the function is already present,
58483         override it.
58484         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
58485         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
58486         Reported by Paolo Bonzini.
58488 2009-08-23  Bruno Haible  <bruno@clisp.org>
58490         * lib/pipe2.c (pipe2): Move #ifs inside function.
58492 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
58494         quotearg: document limitations of quote_these_too
58495         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
58496         those limitations are created.
58497         * lib/quotearg.h (set_char_quoting): Document that digits and
58498         letters that are special after backslash are not permitted.
58499         (quotearg_char): Cross-reference set_char_quoting documentation.
58501 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
58503         quotearg: implement custom_quoting_style
58504         * lib/quotearg.c: (struct quoting_options): Add left_quote and
58505         right_quote fields.
58506         (set_custom_quoting): New public function.
58507         (quotearg_buffer_restyled): Add left_quote and right_quote
58508         arguments, handle them very much like locale quoting, and update
58509         all uses.
58510         (quotearg_n_custom): New public function.
58511         (quotearg_n_custom_mem): New public function.
58512         (quotearg_custom): New public function.
58513         (quotearg_custom_mem): New public function.
58514         * lib/quotearg.h: Prototype and document new public functions.
58515         (enum quoting_style): For escape_quoting_style and
58516         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
58517         ignored even though they're otherwise like c_quoting_style.
58518         Add custom_quoting_style member and document with comparison to
58519         clocale_quoting_style.
58520         * tests/test-quotearg.c (custom_quotes): New array.
58521         (custom_results): New array.
58522         (main): Extend to test custom quoting.
58524 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
58526         quotearg: fix right quote escaping when it's in quote_these_too
58527         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
58528         quote, be sure to prepend only one backslash.
58529         * tests/test-quotearg.c (use_quote_double_quotes): New function.
58530         (main): Test it.
58532 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
58534         quotearg-tests: test escaping of embedded locale quotes
58535         * tests/test-quotearg.c (struct result_strings): Add member for
58536         new input.
58537         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
58538         (inputs): Add new input.
58539         (results_g): Add expected results.
58540         (flag_results): Likewise.
58541         (locale_results): Likewise.
58542         (compare_strings): Check those.
58544 2009-08-23  Bruno Haible  <bruno@clisp.org>
58546         Tests for module 'dup3'.
58547         * modules/dup3-tests: New file.
58548         * tests/test-dup3.c: New file.
58550         New module 'dup3'.
58551         * lib/unistd.in.h (dup3): New declaration.
58552         * lib/dup3.c: New file.
58553         * m4/dup3.m4: New file.
58554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
58555         HAVE_DUP3.
58556         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
58557         * modules/dup3: New file.
58558         * doc/glibc-functions/dup3.texi: Mention the new module.
58560 2009-08-23  Bruno Haible  <bruno@clisp.org>
58562         Tweak the dup2 test.
58563         * tests/test-dup2.c (main): Create the test file empty. Verify that an
58564         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
58565         the test file is still empty. Fix argument order of lseek.
58567 2009-08-23  Bruno Haible  <bruno@clisp.org>
58569         Avoid test link errors when the modules getopt-gnu, gettext are used.
58570         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
58571         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58573 2009-08-23  Bruno Haible  <bruno@clisp.org>
58575         Fix getdtablesize() on mingw.
58576         * lib/getdtablesize.c (getdtablesize): Implement differently.
58577         * lib/unistd.in.h (getdtablesize): Improve comment.
58579 2009-08-23  Bruno Haible  <bruno@clisp.org>
58581         New module 'mkostemp'.
58582         Based on Ulrich Drepper's 2007-08-10 change in glibc.
58583         * lib/stdlib.in.h (mksotemp): New declaration.
58584         * lib/mkostemp.c: New file, from glibc with modifications.
58585         * lib/tempname.h (GT_FILE): Remove outdated comment.
58586         (gen_tempname): Add flags argument.
58587         * lib/tempname.c (__GT_BIGFILE): Remove macro.
58588         (__GT_FILE): Map to 1.
58589         (small_open, large_open): Remove macros.
58590         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
58591         * lib/mkstemp.c (mkstemp): Update.
58592         * lib/mkdtemp.c (mkdtemp): Likewise.
58593         * m4/mkostemp.m4: New file.
58594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
58595         HAVE_MKOSTEMP.
58596         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
58597         HAVE_MKOSTEMP.
58598         * modules/mkostemp: New file, based on modules/mkstemp.
58599         * doc/glibc-functions/mkostemp.texi: Mention the new module.
58600         * NEWS: Mention the change.
58602 2009-08-23  Bruno Haible  <bruno@clisp.org>
58604         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
58605         Reported by Eric Blake.
58607 2009-08-23  Bruno Haible  <bruno@clisp.org>
58609         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
58610         Reported by Eric Blake.
58612 2009-08-23  Bruno Haible  <bruno@clisp.org>
58614         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
58615         * modules/pipe2 (Depends-on): Likewise.
58617 2009-08-23  Eric Blake  <ebb9@byu.net>
58619         fcntl-h: add O_TTY_INIT support
58620         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
58621         * tests/test-fcntl-h.c (o): Test it.
58622         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
58624         fcntl-h: rename from fcntl, in preparation for fcntl(2)
58625         * modules/fcntl: Move <fcntl.h> header replacement...
58626         * modules/fcntl-h: ...to new name, so as not to collide with
58627         like-named function.
58628         * tests/test-fcntl.c: Rename...
58629         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
58630         * modules/fcntl-tests: Rename...
58631         * modules/fcntl-h-tests: ...to this.  Update test file name.
58632         * modules/chdir-long (Depends-on): Update clients.
58633         * modules/chdir-safer (Depends-on): Likewise.
58634         * modules/fcntl-safer (Depends-on): Likewise.
58635         * modules/fts (Depends-on): Likewise.
58636         * modules/mkancesdirs (Depends-on): Likewise.
58637         * modules/mkdir-p (Depends-on): Likewise.
58638         * modules/open (Depends-on): Likewise.
58639         * modules/savewd (Depends-on): Likewise.
58640         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
58641         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
58643 2009-08-22  Bruno Haible  <bruno@clisp.org>
58645         * modules/binary-io (License): Relicense under LGPL.
58646         * modules/pipe2 (License): Likewise.
58648 2009-08-22  Bruno Haible  <bruno@clisp.org>
58650         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
58651         return value.
58652         * lib/pipe-filter-gi.c (filter_init): Likewise.
58653         Reported by Eric Blake.
58655 2009-08-22  Bruno Haible  <bruno@clisp.org>
58657         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
58658         * modules/pipe (Depends-on): Add pipe2.
58660 2009-08-22  Bruno Haible  <bruno@clisp.org>
58662         Tests for module 'pipe2'.
58663         * modules/pipe2-tests: New file.
58664         * tests/test-pipe2.c: New file.
58666         New module 'pipe2'.
58667         * lib/unistd.in.h (pipe2): New declaration.
58668         * lib/pipe2.c: New file.
58669         * m4/pipe2.m4: New file.
58670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
58671         HAVE_PIPE2.
58672         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
58673         * modules/pipe2: New file.
58674         * doc/glibc-functions/pipe2.texi: Mention the new module.
58676 2009-08-22  Bruno Haible  <bruno@clisp.org>
58678         Reference some new glibc functions.
58679         * doc/glibc-functions/accept4.texi: New file.
58680         * doc/glibc-functions/dup3.texi: New file.
58681         * doc/glibc-functions/mkostemp.texi: New file.
58682         * doc/glibc-functions/pipe2.texi: New file.
58683         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
58684         (Glibc sys/socket.h): Refer to accept4.
58685         (Glibc unistd.h): Refer to dup3, pipe2.
58686         Reported by Eric Blake.
58688 2009-08-22  Jim Meyering  <meyering@redhat.com>
58689             Bruno Haible  <bruno@clisp.org>
58691         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
58692         This makes it so packages using automake-1.11's silent-rules option
58693         can print e.g., a single "GEN    configmake.h" line, rather than
58694         the 30+ statements that perform the job.  If you want to see the
58695         actual commands, you can still run "make V=1".
58696         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
58697         so that make output is abbreviated when those variables are defined
58698         appropriately.
58699         * modules/argz: Likewise.
58700         * modules/arpa_inet: Likewise.
58701         * modules/byteswap: Likewise.
58702         * modules/configmake: Likewise.
58703         * modules/dirent: Likewise.
58704         * modules/errno: Likewise.
58705         * modules/fcntl: Likewise.
58706         * modules/float: Likewise.
58707         * modules/fnmatch: Likewise.
58708         * modules/getopt-posix: Likewise.
58709         * modules/glob: Likewise.
58710         * modules/iconv_open: Likewise.
58711         * modules/inttypes: Likewise.
58712         * modules/localcharset: Likewise.
58713         * modules/locale: Likewise.
58714         * modules/math: Likewise.
58715         * modules/netdb: Likewise.
58716         * modules/netinet_in: Likewise.
58717         * modules/poll: Likewise.
58718         * modules/posix_spawnp-tests: Likewise.
58719         * modules/sched: Likewise.
58720         * modules/search: Likewise.
58721         * modules/selinux-h: Likewise.
58722         * modules/signal: Likewise.
58723         * modules/spawn: Likewise.
58724         * modules/stdarg: Likewise.
58725         * modules/stdbool: Likewise.
58726         * modules/stddef: Likewise.
58727         * modules/stdint: Likewise.
58728         * modules/stdio: Likewise.
58729         * modules/stdlib: Likewise.
58730         * modules/string: Likewise.
58731         * modules/strings: Likewise.
58732         * modules/sys_file: Likewise.
58733         * modules/sys_ioctl: Likewise.
58734         * modules/sys_select: Likewise.
58735         * modules/sys_socket: Likewise.
58736         * modules/sys_stat: Likewise.
58737         * modules/sys_time: Likewise.
58738         * modules/sys_times: Likewise.
58739         * modules/sys_utsname: Likewise.
58740         * modules/sys_wait: Likewise.
58741         * modules/sysexits: Likewise.
58742         * modules/time: Likewise.
58743         * modules/unistd: Likewise.
58744         * modules/wchar: Likewise.
58745         * modules/wctype: Likewise.
58747 2009-08-22  Jim Meyering  <meyering@redhat.com>
58749         announce-gen: detect write failure
58750         * build-aux/announce-gen: Add Coda at end.
58751         Remove equivalent-but-more-verbose block at top.
58753 2009-08-19  Akim Demaille  <demaille@gostai.com>
58755         bootstrap: --help to stdout.
58756         * bootstrap (usage): Don't send --help to stderr.
58757         Use a here doc instead of a long string.
58759 2009-08-21  Eric Blake  <ebb9@byu.net>
58761         test-popen-safer: split from test-popen
58762         * tests/test-popen.c (main): Move...
58763         * tests/test-popen.h: ...into new file.
58764         * tests/test-popen-safer2.c: New file.
58765         * modules/popen-tests (Files): Add test-popen.h.
58766         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
58767         Suggested by Bruno Haible.
58769         test-fcntl-safer: split from test-open
58770         * tests/test-open.c (main): Move...
58771         * tests/test-open.h: ...into new file.
58772         * tests/test-fcntl-safer.c: New file.
58773         * modules/open-tests (Files): Add test-open.h.
58774         * modules/fcntl-safer-tests: New file.
58775         Suggested by Bruno Haible.
58777         test-fopen-safer: split from test-fopen
58778         * tests/test-fopen.c (main): Move...
58779         * tests/test-fopen.h: ...into new file.
58780         * tests/test-fopen-safer.c: New file.
58781         * modules/fopen-tests (Files): Add test-fopen.h.
58782         * modules/fopen-safer-tests: New file.
58783         Suggested by Bruno Haible.
58785 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
58787         popen-safer: test O_CLOEXEC at run-time.
58788         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
58790 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
58792         fcntl: move more flags to the header
58793         * lib/cloexec.c: Do not define FD_CLOEXEC here.
58794         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
58795         * lib/fcntl.in.h: Do both things here.
58797 2009-08-21  Jim Meyering  <meyering@redhat.com>
58799         consistently remove $@-t before redirecting to it
58800         * modules/argz: Remove $@-t and $@ before redirecting to the former.
58801         * modules/alloca-opt: Likewise.
58802         * modules/byteswap: Likewise.
58803         * modules/fnmatch: Likewise.
58804         * modules/getopt-posix: Likewise.
58805         * modules/glob: Likewise.
58806         * modules/poll: Likewise.
58807         * modules/posix_spawnp-tests: Likewise.
58808         * modules/sys_socket: Likewise.
58809         * modules/sysexits: Likewise.
58811 2009-08-21  Eric Blake  <ebb9@byu.net>
58813         popen: simplify access to original popen
58814         * lib/popen.c (rpl_popen): No need to worry about popen being a
58815         macro.
58816         Reported by Bruno Haible.
58818 2009-08-20  Eric Blake  <ebb9@byu.net>
58820         build: avoid some compiler warnings
58821         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
58822         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
58823         type.
58824         (new_exclude_segment, excluded_file_pattern_p)
58825         (excluded_file_name_p): Reduce scope.
58826         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
58827         old-style declaration.
58829 2009-08-20  Simon Josefsson  <simon@josefsson.org>
58831         * tests/test-exclude1.sh: Handle Windows EOL.
58832         * tests/test-exclude2.sh: Likewise.
58833         * tests/test-exclude3.sh: Likewise.
58834         * tests/test-exclude4.sh: Likewise.
58835         * tests/test-exclude5.sh: Likewise.
58836         * tests/test-exclude6.sh: Likewise.
58837         * tests/test-exclude7.sh: Likewise.
58839 2009-08-19  Akim Demaille  <demaille@gostai.com>
58841         bootstrap: find sha1sum when named gsha1sum.
58842         * bootstrap (find_tool): New.
58843         ($SHA1SUM): New.
58844         Use it.
58846 2009-08-20  Jim Meyering  <meyering@redhat.com>
58848         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
58849         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
58850         expression that converts "." in a file name to "\." in the resulting
58851         regexp.  Start with a dummy statement, so that prior shell variable
58852         definitions are expanded portably.  Reported by Simon Josefsson.
58854 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
58856         Fix polling for writeability of a screen buffer.
58857         * lib/poll.c: Distinguish input and screen buffers for the
58858         Win32 implementation.
58859         * lib/select.c: Likewise.
58861 2009-08-19  Eric Blake  <ebb9@byu.net>
58863         popen-safer: prevent popen from clobbering std descriptors
58864         * modules/popen-safer: New file.
58865         * lib/popen-safer.c: Likewise.
58866         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
58867         * lib/stdio--.h (popen): Provide override.
58868         * lib/stdio-safer.h (popen_safer): Provide declaration.
58869         * tests/test-popen.c (includes): Partially test this.
58870         * modules/popen-safer-tests: New file, for more tests.
58871         * tests/test-popen-safer.c: Likewise.
58872         * MODULES.html.sh (file stream based Input/Output): Mention it.
58874         tests: test some of the *-safer modules
58875         * modules/fopen-safer (Depends-on): Add fopen.
58876         * modules/fcntl-safer (Depends-on): Add fcntl.
58877         * modules/stdlib-safer (Depends-on): Add stdlib.
58878         (configure.ac): Set indicator.
58879         * modules/unistd-safer (configure.ac): Likewise.
58880         * modules/tmpfile-safer (configure.ac): Likewise.
58881         (Depends-on): Add tmpfile.
58882         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
58883         active.
58884         * tests/test-fopen.c (includes): Test safer versions when they are
58885         in use.
58886         * tests/test-open.c (includes): Likewise.
58888         popen: fix cygwin 1.5 bug when stdin closed
58889         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
58890         * modules/popen: New file.
58891         * modules/popen-tests: Likewise.
58892         * tests/test-popen.c: Likewise.
58893         * m4/popen.m4: Likewise.
58894         * lib/popen.c: Likewise.
58895         * lib/stdio.in.h (popen): New declaration.
58896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
58897         * modules/stdio (Makefile.am): Likewise.
58898         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
58900 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
58902         maint.mk: give full control over update-copyright exclusions
58903         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
58904         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
58905         (update-copyright): Don't force inclusion of top-level
58906         ChangeLog.  Don't force exclusion of all COPYING files, but make
58907         them the default exclusion instead.
58909 2009-08-16  Bruno Haible  <bruno@clisp.org>
58911         Fix test failures on Solaris 10.
58912         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
58913         tests when Solaris iconv() is used.
58914         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58915         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58916         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58917         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58918         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58920 2009-08-16  Bruno Haible  <bruno@clisp.org>
58922         Fix test failures on Solaris 10.
58923         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
58924         'tr' program and pass it as first argument.
58925         * tests/test-pipe-filter-gi1.sh: Likewise.
58926         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
58927         program as first argument.
58928         * tests/test-pipe-filter-gi1.c (main): Likewise.
58930 2009-08-16  Eric Blake  <ebb9@byu.net>
58932         fpurge: fix previous commits
58933         * modules/fpurge (Makefile.am): Make replacement conditional,
58934         partially reverting 2007-04-29 change; missed in previous
58935         attempt.
58936         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
58937         is missing.
58939 2009-08-16  Bruno Haible  <bruno@clisp.org>
58941         Clarify fpurge's effect on the file position.
58942         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
58943         * tests/test-fpurge.c (main): Make a second pass for checking the file
58944         position.
58946 2009-08-16  Bruno Haible  <bruno@clisp.org>
58948         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
58949         declaration of fpurge is missing.
58950         * tests/test-fpurge.c (main): Check that the file has not more contents
58951         than expected. Close the file before removing it.
58953 2009-08-15  Eric Blake  <ebb9@byu.net>
58955         fpurge: don't wrap working cygwin implementation
58956         * lib/fpurge.c (fpurge): Fix comment typo.
58957         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
58958         1.7 to avoid replacement.
58959         * tests/test-fpurge.c (main): Enhance test.
58961 2009-08-15  Eric Blake  <ebb9@byu.net>
58962         and Jim Meyering  <meyering@redhat.com>
58964         test-update-copyright: skip if perl is insufficient
58965         * tests/test-update-copyright.sh: Failure to run maintainer tool
58966         should not cause testsuite failure on cygwin 1.5.
58968 2009-08-14  Eric Blake  <ebb9@byu.net>
58970         doc: mention more functions added in cygwin 1.7.0
58971         * doc/posix-headers/limits.texi (limits.h): Update for recent
58972         cygwin additions.
58973         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
58974         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
58975         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
58976         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
58977         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
58979 2009-08-14  Eric Blake  <ebb9@byu.net>
58981         maint.mk: simplify update-copyright rule
58982         * top/maint.mk (update-copyright-local): Delete, and document how
58983         to do it in cfg.mk instead.
58984         (update-copyright-exclude-regexp): Delete, and document how to do
58985         it in .x-update-copyright instead.
58986         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
58987         exclude ChangeLog.
58989 2009-08-14  Bruno Haible  <bruno@clisp.org>
58991         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
58993 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
58995         maint.mk: support update-copyright-env
58996         * top/maint.mk (update-copyright-env): Define place-holder.
58997         (update-copyright): Expand $(update-copyright-env) before
58998         invoking update-copyright.
59000 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
59002         update-copyright: implement forced reformatting
59003         * build-aux/update-copyright: Implement and document
59004         UPDATE_COPYRIGHT_FORCE.
59005         * tests/test-update-copyright.sh: Test it.
59007 2009-08-14  Eric Blake  <ebb9@byu.net>
59008         and Bruno Haible  <bruno@clisp.org>
59010         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
59011         * tests/test-locale.c: Revert previous patch related to NULL.
59012         * tests/test-stdio.c: Likewise.
59013         * tests/test-stdlib.c: Likewise.
59014         * tests/test-string.c: Likewise.
59015         * tests/test-unistd.c: Likewise.
59016         * modules/time-tests (Depends-on): Add verify.
59017         * modules/wchar-tests (Depends-on): Likewise.
59018         * tests/test-time.c: Test for NULL compliance.
59019         * tests/test-wchar.c: Likewise.
59020         * modules/locale (Depends-on): Add stddef.
59021         * modules/stdio (Depends-on): Likewise.
59022         * modules/stdlib (Depends-on): Likewise.
59023         * modules/string (Depends-on): Likewise.
59024         * modules/time (Depends-on): Likewise.
59025         * modules/unistd (Depends-on): Likewise.
59026         * modules/wchar (Depends-on): Likewise.
59027         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
59028         * lib/stdlib.in.h (includes): Likewise.
59029         * lib/string.in.h (includes): Likewise.
59030         * lib/time.in.h (includes): Likewise.
59031         * lib/unistd.in.h (includes): Likewise.
59032         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
59033         replaced.
59034         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59035         * m4/stddef_h.m4: New file.
59036         * modules/stddef: Likewise.
59037         * lib/stddef.in.h: Likewise.
59038         * modules/stddef-tests: Likewise.
59039         * tests/test-stddef.c: Likewise.
59040         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
59041         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
59042         * doc/posix-headers/locale.texi (locale.h): Likewise.
59043         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
59044         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
59045         * doc/posix-headers/string.texi (string.h): Likewise.
59046         * doc/posix-headers/time.texi (time.h): Likewise.
59047         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
59048         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
59050 2009-08-14  Eric Blake  <ebb9@byu.net>
59052         doc: improve git diff of texinfo files
59053         * .gitattributes: Add rule for *.texi files, with hint on how to
59054         use it.
59055         Copied from m4, and based on a report by Bruno Haible.
59057 2009-08-14  Bruno Haible  <bruno@clisp.org>
59059         Disable multithread support by default on Cygwin 1.5.x for real.
59060         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
59062 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
59064         update-copyright: much ado about intervals
59065         * build-aux/update-copyright: Implement and document
59066         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
59067         of copyright year intervals.
59068         Also, document UPDATE_COPYRIGHT_YEAR.
59069         * tests/test-update-copyright.sh: Test it.
59071         update-copyright: convert 2-digit to 4-digit years
59072         * build-aux/update-copyright: Implement and document.
59073         * tests/test-update-copyright.sh: Update.
59075 2009-08-14  Jim Meyering  <meyering@redhat.com>
59077         test-exclude: avoid coreutils "make check" failure
59078         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
59079         just as in test-argmatch.c.
59081 2009-08-13  Eric Blake  <ebb9@byu.net>
59083         test-dup2: fix bad assumption
59084         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
59085         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
59087         test-version-etc: fix CRLF portability issue
59088         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
59089         recognize \r.
59090         * tests/test-argp-version-etc-1.sh: Likewise.
59092         getopt: update client modules
59093         * modules/argp (Depends-on): Use getopt-gnu.
59094         * modules/git-merge-changelog (Depends-on): Likewise.
59095         * modules/long-options (Depends-on): Likewise.
59096         * modules/xstrtol (Depends-on): Likewise.
59098 2009-08-13  Simon Josefsson  <simon@josefsson.org>
59100         * tests/test-version-etc.sh: Don't fail on different
59101         project/version.  Don't fail on CRLF differences.  Rewrite to use
59102         multiple -e instead of multiple sed forks, suggested by Eric Blake
59103         <ebb9@byu.net>.
59104         * tests/test-argp-version-etc-1.sh: Likewise.
59106 2009-08-13  Simon Josefsson  <simon@josefsson.org>
59108         * tests/test-version-etc.sh: Don't fail on different
59109         project/version.
59111 2009-08-12  Bruno Haible  <bruno@clisp.org>
59113         Tests for modules 'getopt-posix', 'getopt-gnu'.
59114         * modules/getopt-posix-tests: New file.
59115         * tests/test-getopt.c: New file.
59116         * tests/test-getopt.h: New file.
59117         * tests/test-getopt_long.h: New file.
59119         New modules 'getopt-posix', 'getopt-gnu'.
59120         * modules/getopt-gnu: New file, renamed from modules/getopt.
59121         * modules/getopt-posix: New file.
59122         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
59123         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
59124         (gl_GETOPT): Remove macro.
59125         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
59126         Disable the test against BSD systems that declare optreset. Test
59127         against mingw bug. Test against lack of support of optional arguments
59128         on many platforms.
59129         * doc/glibc-headers/getopt.texi: Update module name and list of
59130         relevant platforms.
59131         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
59132         'getopt-gnu' and more portability problems.
59133         * NEWS: Mention the changes.
59135 2009-08-12  Bruno Haible  <bruno@clisp.org>
59137         Ensure that optarg etc. get declared by <unistd.h>.
59138         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
59139         AC_USE_SYSTEM_EXTENSIONS.
59140         * modules/getopt (Depends-on): Add 'extensions'.
59142 2009-08-12  Bruno Haible  <bruno@clisp.org>
59144         Avoid test link errors.
59145         * modules/pipe-filter-ii-tests (Makefile.am): Define
59146         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
59147         * modules/pipe-filter-gi-tests (Makefile.am): Define
59148         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
59149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59151 2009-08-12  Bruno Haible  <bruno@clisp.org>
59153         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
59154         gl_GETOPT_SUBSTITUTE before.
59155         (gl_GETOPT): Use it.
59156         * m4/argp.m4 (gl_ARGP): Update.
59157         Reported by Sergey Poznyakoff.
59159         * m4/getopt.m4: Reorder macros.
59160         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
59161         (gl_GETOPT_SUBSTITUTE): Remove macro.
59163 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59165         Minor improvement in gitlog-to-changelog
59167         * build-aux/gitlog-to-changelog: New option `--format' makes
59168         output format string configurable.
59170 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59172         Optimize exclude: use hash tables for non-wildcard patterns.
59174         * lib/exclude.c: Include hash.h and mbuiter.h
59175         (struct exclude_pattern, exclude_segment): New data types.
59176         (struct exclude): Rewrite.
59177         (fnmatch_pattern_has_wildcards): New function.
59178         (new_exclude_segment, free_exclude_segment): New functions.
59179         (excluded_file_pattern_p, excluded_file_name_p): New functions.
59180         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
59181         * lib/exclude.h (is_fnmatch_pattern): New prototype.
59182         * modules/exclude: Depend on hash and mbuiter.
59184         * modules/exclude-tests: New file.
59185         * tests/test-exclude.c: New file.
59186         * tests/test-exclude1.sh: New file.
59187         * tests/test-exclude2.sh: New file.
59188         * tests/test-exclude3.sh: New file.
59189         * tests/test-exclude4.sh: New file.
59190         * tests/test-exclude5.sh: New file.
59191         * tests/test-exclude6.sh: New file.
59192         * tests/test-exclude7.sh: New file.
59194 2009-08-12  Bruno Haible  <bruno@clisp.org>
59196         Ensure that getopt() gets declared by <unistd.h>.
59197         * lib/unistd.in.h: Conditionally include getopt.h.
59198         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
59199         Set GNULIB_UNISTD_H_GETOPT.
59200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59201         GNULIB_UNISTD_H_GETOPT.
59202         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
59204 2009-08-12  Bruno Haible  <bruno@clisp.org>
59206         Clarify logic.
59207         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
59208         gl_replace_getopt instead of GETOPT_H.
59210 2009-08-12  Bruno Haible  <bruno@clisp.org>
59212         * m4/getopt.m4: Add comments.
59214 2009-08-12  Bruno Haible  <bruno@clisp.org>
59216         Disable multithread support by default on Cygwin 1.5.x.
59217         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
59218         set gl_use_threads=no if not specified otherwise.
59220 2009-08-11  Bruno Haible  <bruno@clisp.org>
59222         Avoid compilation error on NetBSD 5.0.
59223         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
59224         * tests/test-stdio.c: Likewise.
59225         * tests/test-stdlib.c: Likewise.
59226         * tests/test-string.c: Likewise.
59227         * tests/test-unistd.c: Likewise.
59228         Reported by Greg Troxel <gdt@ir.bbn.com>
59229         at <https://savannah.gnu.org/support/?106973>.
59231 2009-08-11  Bruno Haible  <bruno@clisp.org>
59233         * modules/dup2-tests (Depends-on): Remove close.
59235         Undo 2009-07-19 commit.
59236         * modules/acl-tests (Depends-on): Remove close.
59237         * modules/binary-io-tests (Depends-on): Likewise.
59238         * modules/closein-tests (Depends-on): Likewise.
59239         * modules/flock-tests (Depends-on): Likewise.
59240         * modules/fsync-tests (Depends-on): Likewise.
59241         * modules/lseek-tests (Depends-on): Likewise.
59242         * modules/pipe-tests (Depends-on): Likewise.
59243         * modules/posix_spawn-tests (Depends-on): Likewise.
59244         * modules/posix_spawnp-tests (Depends-on): Likewise.
59245         * modules/stat-time-tests (Depends-on): Likewise.
59246         * modules/yesno-tests (Depends-on): Likewise.
59248 2009-08-10  Bruno Haible  <bruno@clisp.org>
59250         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
59252 2009-08-10  Bruno Haible  <bruno@clisp.org>
59254         Fix a gcc warning.
59255         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
59257 2009-08-10  Bruno Haible  <bruno@clisp.org>
59259         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
59260         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
59261         not only the first time.
59262         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
59263         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
59264         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
59265         is 1, not only the first time.
59267 2009-08-10  Bruno Haible  <bruno@clisp.org>
59269         Make it possible to use module 'gethostname' without module 'close'.
59270         * lib/unistd.in.h (close): Evoke a link error only if
59271         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
59272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59273         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
59274         * modules/unistd (Makefile.am): Substitute
59275         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
59276         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
59277         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
59278         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
59279         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
59280         * modules/sys_ioctl (Makefile.am): Substitute
59281         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
59282         * modules/socket (configure.ac): On native Windows, set
59283         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
59284         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
59285         Reported by Sam Steingold <sds@gnu.org>.
59287 2009-08-10  Bruno Haible  <bruno@clisp.org>
59289         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
59290         * modules/ioctl (configure.ac): Likewise.
59292 2009-08-10  Bruno Haible  <bruno@clisp.org>
59294         Avoid collision between gnulib wrapper and libintl wrapper.
59295         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
59296         already defined in intl/printf.c.
59297         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
59298         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
59300 2009-08-09  Bruno Haible  <bruno@clisp.org>
59302         Make <sys/select.h> really self-contained, also on Solaris 10.
59303         * lib/sys_select.in.h: Include <string.h>.
59304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
59305         Solaris 10 problem.
59306         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
59307         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
59308         Reported by Jim Meyering.
59310 2009-08-09  Bruno Haible  <bruno@clisp.org>
59312         Avoid warnings from 'aclocal' that are due to a use of macro name
59313         AM_XGETTEXT_OPTION that is not defined in automake.
59314         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
59315         automake.
59316         * modules/error (configure.ac): Likewise.
59317         * modules/propername (configure.ac): Likewise.
59318         * modules/vasprintf (configure.ac): Likewise.
59319         * modules/verror (configure.ac): Likewise.
59320         * modules/xprintf (configure.ac): Likewise.
59321         * modules/xvasprintf (configure.ac): Likewise.
59323 2009-08-08  Bruno Haible  <bruno@clisp.org>
59325         Avoid compilation error in C++ mode.
59326         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
59327         Reported by Sam Steingold <sds@gnu.org>.
59329 2009-08-08  Bruno Haible  <bruno@clisp.org>
59331         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
59332         for the various Unix platforms.
59333         * doc/posix-headers/limits.texi: Update platforms list regarding
59334         HOST_NAME_MAX.
59335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59337 2009-08-07  Jim Meyering  <meyering@redhat.com>
59339         selinux-at: fix typo in a comment
59340         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
59341         Spotted by Paolo Bonzini.
59343         selinux-at: remove redundant m4 code, add documentation
59344         * modules/selinux-at (configure.ac): Remove redundant code.
59345         LIB_SELINUX is already set via the dependent module, selinux-h.
59346         (Include): Add quotes around selinux-at.h.
59347         * lib/selinux-at.h: Add documentation.
59348         Reported by Bruno Haible in
59349         http://marc.info/?l=gnulib-bug&m=124958988300749
59351 2009-08-07  Bruno Haible  <bruno@clisp.org>
59353         Avoid link error on MacOS X 10.3 and 10.4.
59354         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
59355         on non-ELF systems.
59356         * lib/argp-pv.c (argp_program_version): Likewise.
59357         Reported by Simon Josefsson.
59359 2009-08-07  Simon Josefsson  <simon@josefsson.org>
59361         * tests/test-version-etc.sh: Use $EXEEXT.
59363 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
59365         update-copyright: update documentation to point to maint.mk
59366         * build-aux/update-copyright: Here.
59368 2009-08-06  Jim Meyering  <meyering@redhat.com>
59370         maint.mk: support update-copyright-local
59371         * top/maint.mk (update-copyright-local): Define place-holder.
59372         (update-copyright): Depend on $(update-copyright-local).
59374 2009-08-06  Jim Meyering  <meyering@redhat.com>
59376         selinux-at: new module
59377         Initially written for coreutils, this module will soon be
59378         used by findutils, too.
59379         * MODULES.html.sh [Misc]: Add selinux-at.
59380         * lib/selinux-at.h: New file, from coreutils.
59381         * lib/selinux-at.c: Likewise.
59382         * modules/selinux-at: Likewise.
59383         (License): Change from LGPL to GPL, since it depends
59384         on the GPL'd openat module.
59386         doc: update README
59387         * README: Remove references to cogito.
59388         Remove cvs-repo-updating instructions from 2007.
59389         Don't imply that CVS is better if you have limited disk space.
59391 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
59393         update-copyright: support C-style comments
59394         * build-aux/update-copyright: Implement and document.
59395         * tests/test-update-copyright.sh: Test.
59397 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
59399         update-copyright: support omitted "(C)"
59400         * build-aux/update-copyright: Implement and document.  Also,
59401         allow variable whitespace before "(C)".
59402         * tests/test-update-copyright.sh: Test.
59404 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
59406         update-copyright: don't trip on non-FSF copyright statements
59407         * build-aux/update-copyright: Fix so that the first correctly
59408         formatted FSF copyright statement is recognized no matter what
59409         appears before it.  Update documentation.
59410         * tests/test-update-copyright.sh: Test that.
59412 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
59414         update-copyright: clean up code a little
59415         * build-aux/update-copyright: Append "_re" to the name of any
59416         variable holding a regular expression.
59417         Replace "old" and "new" with "stmt" in variable names.
59418         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
59419         handled correctly.
59420         Format code more consistently.
59422 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
59424         update-copyright-tests: improve portability
59425         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
59426         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
59428 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
59430         update-copyright: support @copyright{} and &copy;
59431         * build-aux/update-copyright: Implement and document.
59432         * tests/test-update-copyright.sh: Test.
59434 2009-08-04  Jim Meyering  <meyering@redhat.com>
59436         update-copyright-tests: correctly test EOL=\r\n handling
59437         * tests/test-update-copyright.sh: Put \r at the end of some lines
59438         for the dos-eol tests.  Based on a patch by Joel E. Denny.
59440         maint.mk: make update-copyright exclusion list more configurable
59441         * top/maint.mk (update-copyright): Default to excluding COPYING,
59442         but allow an override, in case someone does want to update that file.
59444         maint.mk: don't update copyright date in COPYING
59445         * top/maint.mk (update-copyright): Exclude COPYING.
59447         maint.mk: add a copyright-updating rule
59448         * top/maint.mk (update-copyright): New rule.
59449         Derived from coreutils/Makefile.am.
59451         update-copyright: rename some variables
59452         * build-aux/update-copyright: Rename a few variables for clarity.
59453         Tweak syntax.  List Joel E. Denny as coauthor.
59455 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
59457         update-copyright: fix bug for 2-digit last year and add tests
59458         * build-aux/update-copyright: Fix bug.
59459         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
59460         specified.
59461         * modules/update-copyright-tests: New
59462         * tests/test-update-copyright.sh: New.
59464 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
59466         update-copyright: handle leading tabs in line prefix
59467         * build-aux/update-copyright: Count leading tabs as 8 spaces
59468         when computing margin.  This helps with the formatting of
59469         ChangeLogs, for example.
59470         Fix documentation a little.
59472 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
59474         update-copyright: support EOL=\r\n
59475         * build-aux/update-copyright: Implement that.
59477 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
59479         update-copyright: automatically format copyright statements
59480         * build-aux/update-copyright: Implement that.
59481         Also, be a little more predictable and safer by always failing
59482         when the full copyright format is not perfectly recognized as an
59483         unbroken whole.  Discussed at
59484         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
59485         Rewrite documentation.
59487 2009-08-03  Bruno Haible  <bruno@clisp.org>
59489         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
59491 2009-08-02  Bruno Haible  <bruno@clisp.org>
59493         Tests for module 'uname'.
59494         * modules/uname-tests: New file.
59495         * tests/test-uname.c: New file.
59497         New module 'uname'.
59498         * lib/uname.c: New file.
59499         * m4/uname.m4: New file.
59500         * modules/uname: New file.
59501         * doc/posix-functions/uname.texi: Mention the new module.
59503 2009-08-02  Bruno Haible  <bruno@clisp.org>
59505         Tests for module 'sys_utsname'.
59506         * modules/sys_utsname-tests: New file.
59507         * tests/test-sys_utsname.c: New file.
59509         New module 'sys_utsname'.
59510         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
59511         * m4/sys_utsname_h.m4: New file.
59512         * modules/sys_utsname: New file.
59513         * doc/posix-headers/sys_utsname.texi: Mention the new module.
59515 2009-08-02  Bruno Haible  <bruno@clisp.org>
59517         Implicitly initialize the sockets library.
59518         * lib/gethostname.c: Include sockets.h.
59519         (rpl_gethostname): Invoke gl_sockets_startup.
59520         * lib/socket.c: Include sockets.h.
59521         (rpl_socket): Invoke gl_sockets_startup.
59522         * modules/gethostname (Depends-on): Add sockets.
59523         * modules/socket (Depends-on): Likewise.
59524         * tests/test-poll.c: Don't include sockets.h.
59525         (main): Don't invoke gl_sockets_startup.
59526         * tests/test-select.c: Don't include sockets.h.
59527         (main): Don't invoke gl_sockets_startup.
59529 2009-08-02  Bruno Haible  <bruno@clisp.org>
59531         Allow multiple calls to gl_sockets_startup.
59532         * lib/sockets.c (initialized_sockets_version): New variable.
59533         (gl_sockets_startup): Do nothing if already called for this or a higher
59534         version.
59535         (gl_sockets_cleanup): Reset initialized_sockets_version.
59537 2009-08-03  Simon Josefsson  <simon@josefsson.org>
59539         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
59540         different project/version.
59542 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
59543             Bruno Haible  <bruno@clisp.org>
59545         Tests for module 'pipe-filter-gi'.
59546         * modules/pipe-filter-gi-tests: New file.
59547         * tests/test-pipe-filter-gi1.sh: New file.
59548         * tests/test-pipe-filter-gi1.c: New file.
59549         * tests/test-pipe-filter-gi2.sh: New file.
59550         * tests/test-pipe-filter-gi2-main.c: New file.
59551         * tests/test-pipe-filter-gi2-child.c: New file.
59553         New module 'pipe-filter-gi'.
59554         * lib/pipe-filter-gi.c: New file.
59555         * modules/pipe-filter-gi: New file.
59557 2009-08-02  Bruno Haible  <bruno@clisp.org>
59558             Paolo Bonzini  <bonzini@gnu.org>
59560         Tests for module 'pipe-filter-ii'.
59561         * modules/pipe-filter-ii-tests: New file.
59562         * tests/test-pipe-filter-ii1.sh: New file.
59563         * tests/test-pipe-filter-ii1.c: New file.
59564         * tests/test-pipe-filter-ii2.sh: New file.
59565         * tests/test-pipe-filter-ii2-main.c: New file.
59566         * tests/test-pipe-filter-ii2-child.c: New file.
59568         New module 'pipe-filter-ii'.
59569         * lib/pipe-filter.h: New file.
59570         * lib/pipe-filter-ii.c: New file.
59571         * lib/pipe-filter-aux.h: New file.
59572         * modules/pipe-filter-ii: New file.
59574 2009-08-02  Simon Josefsson  <simon@josefsson.org>
59576         * lib/gc-libgcrypt.c: Change copyright to FSF.
59577         * lib/gc-gnulib.c: Likewise.
59579 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
59581         * lib/gethostname.c: Include limits.h.
59583 2009-08-02  Simon Josefsson  <simon@josefsson.org>
59584             Bruno Haible  <bruno@clisp.org>
59586         Ensure HOST_NAME_MAX as part of the gethostname module.
59587         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
59588         define also HOST_NAME_MAX.
59589         * tests/test-gethostname.c: Include <limits.h>.
59590         (main): Check also HOST_NAME_MAX.
59591         * doc/posix-headers/limits.texi: Document the mingw problem.
59593 2009-08-02  Bruno Haible  <bruno@clisp.org>
59595         * lib/gethostname.c (gethostname): Fix handling of large len argument.
59596         Add comments.
59598 2009-03-31  Simon Josefsson  <simon@josefsson.org>
59600         * lib/gethostname.c: Add Windows wrapper.
59601         * m4/gethostname.m4: Look for gethostname in -lws2_32.
59602         * modules/gethostname: Depend on sys_socket & errno, for also
59603         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
59604         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
59606 2009-07-31  Jim Meyering  <meyering@redhat.com>
59608         getloadavg: fix symbol name in comment
59609         * lib/getloadavg.c: Correct a typo I introduced when adding
59610         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
59611         Matt Kraai spotted the problem.
59613 2009-07-29  Matt Kraai  <mkraai@beckman.com>
59615         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
59616         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
59617         code also if ! defined N_NAME_POINTER.
59618         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
59619         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
59620         but the n_name member is a 12-byte array.
59622 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
59624         update-copyright: generalize comment handling
59625         * build-aux/update-copyright: Handle copyright statements
59626         within more comment styles.
59627         Document usage.
59628         Report any file with an external copyright holder or parse failure.
59630 2009-07-29  Jim Meyering  <meyering@redhat.com>
59632         mktime: correct setting of REPLACE_MKTIME
59633         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
59635         update-copyright: new module
59636         * modules/update-copyright: New file.
59637         * build-aux/update-copyright: New file.
59638         * MODULES.html.sh (maint+release support): Add update-copyright.
59640 2009-07-27  Bruno Haible  <bruno@clisp.org>
59642         Fix compilation error when <ctime> is used and mktime is replaced.
59643         * lib/time.in.h (mktime): New declaration.
59644         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
59645         REPLACE_MKTIME instead of defining mktime in config.h.
59646         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
59647         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
59648         Reported by Ross McFarland <rwmcfa1@neces.com>.
59650 2009-07-27  Bruno Haible  <bruno@clisp.org>
59652         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
59653         Reported by Matt Kraai <mkraai@beckman.com>.
59655 2009-07-25  Jim Meyering  <meyering@redhat.com>
59657         maint.mk: avoid warnings about missing files
59658         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
59659         diagnostic when .prev-version does not exist.
59660         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
59661         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
59662         nonexistent cfg.mk.
59663         Suggestions from Simon Josefsson.
59665 2009-07-25  Bruno Haible  <bruno@clisp.org>
59667         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
59668         defined as macros. Needed on QNX 6.4.1.
59669         Reported by Matt Kraai <mkraai@beckman.com>.
59671 2009-07-23  Jim Meyering  <meyering@redhat.com>
59673         maint.mk: invoke "make dist" with a working value of XZ_OPT
59674         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
59676 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
59678         Make fseeko.c compile on QNX.
59679         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
59681 2009-07-22  Peter Simons  <simons@cryp.to>
59683         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
59684         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
59685         * lib/md4.h: Likewise.
59686         * lib/md5.h: Likewise.
59687         * lib/sha1.h: Likewise.
59688         * lib/sha256.h: Likewise.
59689         * lib/sha512.h: Likewise.
59691         tests-sha1: don't assign literal string to 'char *' variable
59692         * tests/test-sha1.c (main): Declare locals with "const" to match
59693         attributes of the right hand side.
59695 2009-07-21  Eric Blake  <ebb9@byu.net>
59697         dup2: fix more mingw problems
59698         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
59699         fd to itself.
59700         * doc/posix-functions/dup2.texi (dup2): Document the bug.
59701         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
59702         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
59703         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
59704         care of mingw bugs.
59706 2009-07-21  Jim Meyering  <meyering@redhat.com>
59708         vc-list-files: avoid failure when /bin/sh is dash
59709         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
59710         On some Debian based systems, /bin/sh is a symlink to dash, and running
59711         this command would omit the "/" following each 'tests' prefix:
59712           dash -x build-aux/vc-list-files -C . tests
59713         That is because bash and dash work differently:
59714           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
59715           bash ok
59716           dash odd
59718 2009-07-21  Eric Blake  <ebb9@byu.net>
59720         dup2-tests: test previous patch
59721         * modules/dup2-tests: New file.
59722         * tests/test-dup2.c: Likewise.
59723         * tests/test-open.c (main): Avoid unspecified behavior.
59724         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
59725         test.
59727         dup2: work around mingw and cygwin 1.5 bug
59728         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
59729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59730         * modules/unistd (Makefile.am): Substitute it.
59731         * lib/unistd.in.h (dup2): Declare the replacement.
59732         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
59733         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
59734         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
59735         * modules/execute (Depends-on): Add dup2.
59736         * modules/fseterr (Depends-on): Likewise.
59737         * modules/pipe (Depends-on): Likewise.
59738         * modules/posix_spawn-internal (Depends-on): Likewise.
59740 2009-07-21  Bruno Haible  <bruno@clisp.org>
59742         * modules/.gitattributes: New file.
59744 2009-07-20  Bruno Haible  <bruno@clisp.org>
59746         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
59747         (main): Use it.
59749 2009-07-20  Eric Blake  <ebb9@byu.net>
59751         test-pipe: make a bit more robust.
59752         * tests/test-pipe.c (myerr): Allow error messages regardless of
59753         what we do to stderr.
59754         (test_pipe): Rearrange to avoid deadlock.
59755         (child_main): Try a larger read, to ensure we avoided deadlock.
59756         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
59757         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
59758         if misused.
59760 2009-07-19  Jim Meyering  <meyering@redhat.com>
59762         fts: avoid false-positive cycle-detection
59763         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
59764         for each new command line argument.
59766 2009-07-19  Bruno Haible  <bruno@clisp.org>
59768         Fix build error on mingw with the modules sys_select and unistd.
59769         * modules/acl-tests (Depends-on): Add close.
59770         * modules/binary-io-tests (Depends-on): Likewise.
59771         * modules/closein-tests (Depends-on): Likewise.
59772         * modules/flock-tests (Depends-on): Likewise.
59773         * modules/fsync-tests (Depends-on): Likewise.
59774         * modules/lseek-tests (Depends-on): Likewise.
59775         * modules/pipe-tests (Depends-on): Likewise.
59776         * modules/posix_spawn-tests (Depends-on): Likewise.
59777         * modules/posix_spawnp-tests (Depends-on): Likewise.
59778         * modules/stat-time-tests (Depends-on): Likewise.
59779         * modules/yesno-tests (Depends-on): Likewise.
59781 2009-07-19  Bruno Haible  <bruno@clisp.org>
59783         Unify conditionals.
59784         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
59785         macros, not at the compiler macros.
59786         * lib/pipe.c: Likewise.
59787         * lib/execute.c: Likewise.
59788         * lib/spawni.c: Likewise.
59790 2009-07-19  Bruno Haible  <bruno@clisp.org>
59792         Fix handling of closed stdin/stdout/stderr on mingw.
59793         * lib/w32spawn.h: Include unistd.h.
59794         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
59795         file descriptor with O_NOINHERIT flag.
59796         (fd_safer_noinherit): New function, based on fd-safer.c.
59797         (dup_safer_noinherit): New function, based on dup-safer.c.
59798         (undup_safer_noinherit): New function.
59799         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
59800         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
59801         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
59802         instead of fd_safer.
59803         * tests/test-pipe.c: Include <windows.h>.
59804         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
59805         result.
59807         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
59808         from main.
59809         (test_pipe): Pass an extra argument for disambiguation.
59810         (main): Invoke parent_main or child_main.
59812         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
59813         consistently.
59815 2009-07-18  Eric Blake  <ebb9@byu.net>
59817         test-pipe: fix mingw build
59818         * tests/test-pipe.c (main): Avoid fcntl on mingw.
59820 2009-07-18  Bruno Haible  <bruno@clisp.org>
59822         * modules/pipe-tests (Makefile.am): Fix typo.
59824 2009-07-18  Eric Blake  <ebb9@byu.net>
59826         error: fix mingw build
59827         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
59828         Reported by Bruno Haible.
59830         error: avoid undefined use of stdout
59831         * lib/error.c (error, error_at_line): Check that fd 1 is open
59832         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
59833         is handling faults and the close_stdout module wants to report the
59834         detection of closed stdout as an error.
59836 2009-07-17  Eric Blake  <ebb9@byu.net>
59838         pipe: be robust in face of closed fds
59839         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
59840         should cause child to misbehave.
59841         * modules/pipe-tests: New module.
59842         * tests/test-pipe.c: New file.
59843         * tests/test-pipe.sh: New file.
59844         Reported by Akim Demaille.
59846 2009-07-14  Bruno Haible  <bruno@clisp.org>
59848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
59849         Reported by anonymous kc.
59851 2009-07-07  Jim Meyering  <meyering@redhat.com>
59853         maint.mk: don't look for translatable strings in *.m4 or *.mk
59854         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
59855         when searching for translatable strings.
59857 2009-07-05  Jim Meyering  <meyering@redhat.com>
59859         remove superfluous parentheses in STREQ definition
59860         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
59861         * lib/getugroups.c (STREQ): Likewise.
59862         * lib/fnmatch.c (STREQ): Likewise.
59863         Spotted by Bruno Haible.
59865 2009-07-04  Jim Meyering  <meyering@redhat.com>
59867         argv-iter: new module
59868         * MODULES.html.sh: Add argv-iter.
59869         * lib/argv-iter.c, lib/argv-iter.h: New files.
59870         * modules/argv-iter: New file.
59871         * modules/argv-iter-tests: New file.
59872         * tests/test-argv-iter.c: Test it.
59874 2009-07-04  Bruno Haible  <bruno@clisp.org>
59876         Fix assertion.
59877         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
59878         contains more exact copies of a given entry than file2, leave the extra
59879         copies unpaired rather than aborting.
59880         Reported by Eric Blake.
59882 2009-07-02  Bruno Haible  <bruno@clisp.org>
59884         Speedup git-merge-changelog for git cherry-pick.
59885         * lib/git-merge-changelog.c (struct entries_mapping): New type.
59886         (entries_mapping_get): New function, extracted from compute_mapping.
59887         (entries_mapping_reverse_get): New function.
59888         (compute_mapping): Add a 'full' argument. Return the result in a
59889         'struct entries_mapping'.
59890         (main): Update. Access the mappings through entries_mapping_get.
59891         Reported by Eric Blake.
59893 2009-07-02  Bruno Haible  <bruno@clisp.org>
59895         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
59896         best_i.
59898 2009-07-02  Bruno Haible  <bruno@clisp.org>
59900         Speed up approximate search for matching ChangeLog entries.
59901         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
59902         argument. Call fstrcmp_bounded instead of fstrcmp.
59903         (compute_mapping, try_split_merged_entry, main): Update callers.
59905 2009-07-02  Bruno Haible  <bruno@clisp.org>
59907         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
59909 2009-06-30  Bruno Haible  <bruno@clisp.org>
59911         Reduce the number of uc_is_cased calls.
59912         * lib/unicase.h (casing_suffix_context_t): Add
59913         'first_char_except_ignorable' field.
59914         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
59915         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
59916         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
59917         Update initializer.
59918         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
59919         case-ignorable characters.
59920         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
59921         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
59922         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
59923         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
59924         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
59926 2009-06-30  Bruno Haible  <bruno@clisp.org>
59928         Tests for module 'unicase/ignorable'.
59929         * modules/unicase/ignorable-tests: New file.
59930         * tests/unicase/test-ignorable.c: New file, generated by
59931         gen-uni-tables.
59933         Tests for module 'unicase/cased'.
59934         * modules/unicase/cased-tests: New file.
59935         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
59936         * tests/unicase/test-predicate-part1.h: New file, derived from
59937         tests/unictype/test-predicate-part1.h.
59938         * tests/unicase/test-predicate-part2.h: New file, same as
59939         tests/unictype/test-predicate-part2.h.
59941         Fix evaluation of "Before C" condition of FINAL_SIGMA.
59942         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
59943         (output_casing_properties): New function.
59944         (main): Call it.
59945         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
59946         * lib/unicase/cased.c: Include unictype/bitmap.h.
59947         (uc_is_cased): Define through a bitmap lookup.
59948         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
59949         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
59950         (uc_is_case_ignorable): Define through a bitmap lookup.
59951         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
59952         lib/unictype/bitmap.h.
59953         (Depends-on): Add inline. Clean up.
59954         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
59955         lib/unictype/bitmap.h.
59956         (Depends-on): Add inline. Clean up.
59957         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
59958         recognition.
59959         * tests/unicase/test-u16-tolower.c (main): Likewise.
59960         * tests/unicase/test-u32-tolower.c (main): Likewise.
59962 2009-06-30  Bruno Haible  <bruno@clisp.org>
59964         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
59965         * lib/unicase/u16-casemap.c: Likewise.
59966         * lib/unicase/u32-casemap.c: Likewise.
59968 2009-06-29  Bruno Haible  <bruno@clisp.org>
59970         Define u32_casefold as a wrapper around u32_ct_casefold.
59971         * lib/unicase/u32-casefold.c: Update.
59972         * modules/unicase/u32-casefold (Depends-on): Add
59973         unicase/u32-ct-casefold, unicase/empty-prefix-context,
59974         unicase/empty-suffix-context. Clean up.
59976         Define u16_casefold as a wrapper around u16_ct_casefold.
59977         * lib/unicase/u16-casefold.c: Update.
59978         * modules/unicase/u16-casefold (Depends-on): Add
59979         unicase/u16-ct-casefold, unicase/empty-prefix-context,
59980         unicase/empty-suffix-context. Clean up.
59982         Define u8_casefold as a wrapper around u8_ct_casefold.
59983         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
59984         * lib/unicase/u8-casefold.c: Update.
59985         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
59986         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
59988         Define u32_totitle as a wrapper around u32_ct_totitle.
59989         * lib/unicase/u32-totitle.c: Update.
59990         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
59991         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
59993         Define u16_totitle as a wrapper around u16_ct_totitle.
59994         * lib/unicase/u16-totitle.c: Update.
59995         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
59996         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
59998         Define u8_totitle as a wrapper around u8_ct_totitle.
59999         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
60000         functions.
60001         (FUNC): Delegate to U_CT_TOTITLE.
60002         * lib/unicase/u8-totitle.c: Update.
60003         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
60004         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
60006         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
60007         invocation.
60008         * modules/unicase/u32-tolower (Depends-on): Add
60009         unicase/empty-prefix-context, unicase/empty-suffix-context.
60011         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
60012         invocation.
60013         * modules/unicase/u16-tolower (Depends-on): Add
60014         unicase/empty-prefix-context, unicase/empty-suffix-context.
60016         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
60017         * modules/unicase/u8-tolower (Depends-on): Add
60018         unicase/empty-prefix-context, unicase/empty-suffix-context.
60020         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
60021         invocation.
60022         * modules/unicase/u32-toupper (Depends-on): Add
60023         unicase/empty-prefix-context, unicase/empty-suffix-context.
60025         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
60026         invocation.
60027         * modules/unicase/u16-toupper (Depends-on): Add
60028         unicase/empty-prefix-context, unicase/empty-suffix-context.
60030         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
60031         * modules/unicase/u8-toupper (Depends-on): Add
60032         unicase/empty-prefix-context, unicase/empty-suffix-context.
60034         New module 'unicase/u32-ct-casefold'.
60035         * lib/unicase/u32-ct-casefold.c: New file.
60036         * modules/unicase/u32-ct-casefold: New file.
60038         New module 'unicase/u16-ct-casefold'.
60039         * lib/unicase/u16-ct-casefold.c: New file.
60040         * modules/unicase/u16-ct-casefold: New file.
60042         New module 'unicase/u8-ct-casefold'.
60043         * lib/unicase/u8-ct-casefold.c: New file.
60044         * lib/unicase/u-ct-casefold.h: New file, derived from
60045         lib/unicase/u-casefold.h.
60046         * modules/unicase/u8-ct-casefold: New file.
60048         New module 'unicase/u32-ct-totitle'.
60049         * lib/unicase/u32-ct-totitle.c: New file.
60050         * modules/unicase/u32-ct-totitle: New file.
60052         New module 'unicase/u16-ct-totitle'.
60053         * lib/unicase/u16-ct-totitle.c: New file.
60054         * modules/unicase/u16-ct-totitle: New file.
60056         New module 'unicase/u8-ct-totitle'.
60057         * lib/unicase/u8-ct-totitle.c: New file.
60058         * lib/unicase/u-ct-totitle.h: New file, derived from
60059         lib/unicase/u-totitle.h.
60060         * modules/unicase/u8-ct-totitle: New file.
60062         New module 'unicase/u32-ct-tolower'.
60063         * lib/unicase/u32-ct-tolower.c: New file.
60064         * modules/unicase/u32-ct-tolower: New file.
60066         New module 'unicase/u16-ct-tolower'.
60067         * lib/unicase/u16-ct-tolower.c: New file.
60068         * modules/unicase/u16-ct-tolower: New file.
60070         New module 'unicase/u8-ct-tolower'.
60071         * lib/unicase/u8-ct-tolower.c: New file.
60072         * modules/unicase/u8-ct-tolower: New file.
60074         New module 'unicase/u32-ct-toupper'.
60075         * lib/unicase/u32-ct-toupper.c: New file.
60076         * modules/unicase/u32-ct-toupper: New file.
60078         New module 'unicase/u16-ct-toupper'.
60079         * lib/unicase/u16-ct-toupper.c: New file.
60080         * modules/unicase/u16-ct-toupper: New file.
60082         New module 'unicase/u8-ct-toupper'.
60083         * lib/unicase/u8-ct-toupper.c: New file.
60084         * modules/unicase/u8-ct-toupper: New file.
60086         Add context arguments to u*_casemap functions.
60087         * lib/unicase/unicasemap.h: Include unicase.h.
60088         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
60089         suffix_context arguments.
60090         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
60091         functions.
60092         (FUNC): Add prefix_context and suffix_context arguments. Use
60093         uc_is_cased and uc_is_case_ignorable.
60094         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
60095         * lib/unicase/u16-casemap.c: Likewise.
60096         * lib/unicase/u32-casemap.c: Likewise.
60097         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
60098         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
60099         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
60100         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
60101         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
60102         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
60104         New module 'unicase/u32-suffix-context'.
60105         * lib/unicase/u32-suffix-context.c: New file.
60106         * modules/unicase/u32-suffix-context: New file.
60108         New module 'unicase/u16-suffix-context'.
60109         * lib/unicase/u16-suffix-context.c: New file.
60110         * modules/unicase/u16-suffix-context: New file.
60112         New module 'unicase/u8-suffix-context'.
60113         * lib/unicase/u8-suffix-context.c: New file.
60114         * lib/unicase/u-suffix-context.h: New file.
60115         * modules/unicase/u8-suffix-context: New file.
60117         New module 'unicase/empty-suffix-context'.
60118         * lib/unicase/empty-suffix-context.c: New file.
60119         * modules/unicase/empty-suffix-context: New file.
60121         New module 'unicase/u32-prefix-context'.
60122         * lib/unicase/u32-prefix-context.c: New file.
60123         * modules/unicase/u32-prefix-context: New file.
60125         New module 'unicase/u16-prefix-context'.
60126         * lib/unicase/u16-prefix-context.c: New file.
60127         * modules/unicase/u16-prefix-context: New file.
60129         New module 'unicase/u8-prefix-context'.
60130         * lib/unicase/u8-prefix-context.c: New file.
60131         * lib/unicase/u-prefix-context.h: New file.
60132         * lib/unicase/context.h: New file.
60133         * modules/unicase/u8-prefix-context: New file.
60135         New module 'unicase/empty-prefix-context'.
60136         * lib/unicase/empty-prefix-context.c: New file.
60137         * modules/unicase/empty-prefix-context: New file.
60139         New module 'unicase/ignorable'.
60140         * lib/unicase/ignorable.c: New file.
60141         * modules/unicase/ignorable: New file.
60143         New module 'unicase/cased'.
60144         * lib/unicase/caseprop.h: New file.
60145         * lib/unicase/cased.c: New file.
60146         * modules/unicase/cased: New file.
60148         New functions for case mapping of substrings.
60149         * lib/unicase.h (casing_prefix_context_t): New type.
60150         (unicase_empty_prefix_context): New variable.
60151         (u8_casing_prefix_context, u16_casing_prefix_context,
60152         u32_casing_prefix_context, u8_casing_prefixes_context,
60153         u16_casing_prefixes_context, u32_casing_prefixes_context): New
60154         declarations.
60155         (casing_suffix_context_t): New type.
60156         (unicase_empty_suffix_context): New variable.
60157         (u8_casing_suffix_context, u16_casing_suffix_context,
60158         u32_casing_suffix_context, u8_casing_suffixes_context,
60159         u16_casing_suffixes_context, u32_casing_suffixes_context,
60160         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
60161         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
60162         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
60163         declarations.
60165 2009-06-28  Jim Meyering  <meyering@redhat.com>
60167         boostrap: indent only with spaces
60168         * build-aux/bootstrap: Indent only with spaces, never TABs.
60170         bootstrap: split long lines
60171         * build-aux/bootstrap: Keep line length < 80.
60173         bootstrap: sync from coreutils
60174         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
60175         just as autoreconf does.  Verify a list of prerequisite
60176         package-name,version-number pairs if defined in bootstrap.conf.
60177         Refer to README-prereq, if prerequisites are not satisfied.
60179 2009-06-27  Eric Blake  <ebb9@byu.net>
60181         tests: add test for bogus NULL definition
60182         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
60183         * tests/test-stdlib.c: Likewise.
60184         * tests/test-string.c: Likewise.
60185         * tests/test-locale.c: Likewise.
60186         * tests/test-unistd.c: Likewise.
60187         * modules/stdio-tests (Depends-on): Add verify.
60188         * modules/stdlib-tests (Depends-on): Likewise.
60189         * modules/string-tests (Depends-on): Likewise.
60190         * modules/locale-tests (Depends-on): Likewise.
60191         * modules/unistd-tests (Depends-on): Likewise.
60193 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
60195         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
60196         self-explaining comment.
60197         * m4/selinux-selinux-h: Update serial.
60198         (gl_LIBSELINUX): New macro, adding a warning for missing development
60199         packages to code extracted from...
60200         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
60201         Add warning for missing development packages here, too.
60203 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
60205         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
60207 2009-06-25  Eric Blake  <ebb9@byu.net>
60209         version-etc: fix regression
60210         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
60211         gcc.
60212         (version_etc): Use it, to catch bugs with trailing NULL.
60213         * lib/version-etc.c (version_etc_arn): Delete unused argument.
60214         (version_etc_va): Fix logic bug.
60215         * modules/version-etc-tests: Add test.
60216         * tests/test-version-etc.c: New file.
60217         * tests/test-version-etc.sh: Likewise.
60219 2009-06-25  Sam Steingold  <sds@gnu.org>
60221         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
60222         mbtowc declaration.
60224 2009-06-25  Eric Blake  <ebb9@byu.net>
60226         fpurge: migrate into <stdio.h>
60227         * lib/fpurge.h: Delete...
60228         * lib/stdio.in.h (fpurge): ...and declare here, instead.
60229         * lib/fpurge.c (fpurge): Change declaring header.
60230         * modules/fpurge (Files): Drop deleted file.
60231         (Depends-on): Add stdio.
60232         (configure.ac): Set witness.
60233         * modules/stdio (Makefile.am): Support fpurge macros.
60234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60235         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
60236         * lib/fflush.c: Update client.
60237         * tests/test-fpurge.c: Likewise.
60238         * NEWS: Mention the change.
60240 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60242         * lib/argp-version-etc.c (program_authors): Add const
60243         qualifier.
60244         * lib/version-etc.c: Fix typos in the comments.
60245         * modules/argp-version-etc: Depends on version-etc.
60247 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60249         argp-version-etc: new module.
60251         * lib/argp-version-etc.c: New file.
60252         * lib/argp-version-etc.h: New file.
60253         * modules/argp-version-etc: New file.
60254         * modules/argp-version-etc-tests: New file.
60255         * tests/test-argp-version-etc.c: New test.
60256         * tests/test-argp-version-etc-1.sh: New test.
60258 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60260         Provide additional interfaces and documentation for version-etc
60261         module.
60263         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
60264         interfaces.
60265         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
60266         prototypes.
60268 2009-06-24  Bruno Haible  <bruno@clisp.org>
60270         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
60271         HAVE_LIB${NAME} macro.
60272         Reported by Sam Steingold <sds@gnu.org>.
60274 2009-06-23  Simon Josefsson  <simon@josefsson.org>
60276         * modules/hash-tests (test_hash_LDADD): Link to libintl when
60277         needed.
60279 2009-06-21  Bruno Haible  <bruno@clisp.org>
60281         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
60282         work.
60283         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
60284         together with LIB${NAME}, LTLIB${NAME}.
60285         Reported by Sam Steingold <sds@gnu.org>.
60287 2009-06-20  Jim Meyering  <meyering@redhat.com>
60289         tests: make sc_require_test_exit_idiom more generic
60290         * top/maint.mk (Exit_witness_file): New overridable variable.
60291         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
60292         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
60294 2009-06-19  Jim Meyering  <meyering@redhat.com>
60296         hash: reverse order of src/dst parameters in an internal interface
60297         * lib/hash.c (transfer_entries): Reverse order of parameters to
60298         put DST before SRC.  Adjust callers.
60300         tests: test-hash: avoid wholesale duplication
60301         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
60302         Instead, use a loop and add a single conditional.
60304         tests: test-hash: allow seed selection via a command line argument
60305         * tests/test-hash.c (get_seed): New function.
60306         (main): Use it.
60308 2009-06-19  Eric Blake  <ebb9@byu.net>
60310         hash: avoid memory leak on allocation failure
60311         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
60312         failure.  Factor repeated algorithm...
60313         (transfer_entries): ...into new helper routine.
60314         (hash_delete): React to hash_rehash return value.
60316         hash: reduce memory pressure in hash_rehash no-op case
60317         * lib/hash.c (next_prime): Avoid overflow.
60318         (hash_initialize): Factor bucket size computation...
60319         (compute_bucket_size): ...into new helper function.
60320         (hash_rehash): Use new function and open coding to reduce memory
60321         pressure, and avoid a memory leak in USE_OBSTACK code.
60322         Reported by Jim Meyering.
60324 2009-06-18  Eric Blake  <ebb9@byu.net>
60326         hash: make rotation more obvious
60327         * modules/hash (Depends-on): Add bitrotate and stdint.
60328         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
60329         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
60330         (SIZE_MAX): Rely on headers for definition.
60331         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
60332         (raw_hasher): Use rotr_sz.
60333         Suggested by Jim Meyering.
60335         hash: fix memory leak in last patch
60336         * lib/hash.c (hash_rehash): Avoid memory leak.
60338         hash: avoid no-op rehashing
60339         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
60341         hash: provide default callback functions
60342         * lib/hash.c (raw_hasher, raw_comparator): New functions.
60343         (hash_initialize): Use them as defaults.
60344         * tests/test-hash.c (main): Test this.
60346         hash: minor optimization
60347         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
60348         when possible.
60349         (hash_initialize): Document this promise.
60350         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
60351         * tests/test-hash.c (hash_compare_strings): Test this.
60353 2009-06-18  Bruno Haible  <bruno@clisp.org>
60355         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
60356         going to be replaced anyway.
60358 2009-06-18  Bruno Haible  <bruno@clisp.org>
60360         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
60361         in one place.
60362         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
60363         be replaced anyway.
60365 2009-06-18  Eric Blake  <ebb9@byu.net>
60367         hash: check for resize before insertion
60368         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
60369         threshold before insertion, so that a pathological hash_rehash
60370         that fills every bucket can still trigger another rehash.
60372 2009-06-18  Jim Meyering  <meyering@redhat.com>
60374         hash-tests: add a loop around the small tests
60375         * tests/test-hash.c (main): Repeat small tests with selected
60376         small initial table sizes.
60378 2009-06-17  Eric Blake  <ebb9@byu.net>
60380         hash: minor cleanups
60381         * lib/hash.h (hash_entry): Make opaque, by moving...
60382         * lib/hash.c (hash_entry): ...here.
60383         (hash_insert): Clarify restrictions on what can be inserted.
60384         (hash_get_next): Clarify when it is safe to remove an element
60385         during traversal.
60386         (check_tuning): Skip verification when tuning is known safe.
60387         (hash_initialize): Clarify restrictions on tuning.
60389 2009-06-17  Jim Meyering  <jim@meyering.net>
60390         and Eric Blake  <ebb9@byu.net>
60392         hash-tests: new module
60393         * modules/hash-tests: New file.
60394         * tests/test-hash.c: New file.
60396 2009-06-17  Eric Blake  <ebb9@byu.net>
60398         strstr-simple: document new module
60399         * MODULES.html.sh: Document new module.
60401         strstr, strcasestr: replace on platforms with broken memchr
60402         * modules/strstr: Split into...
60403         * modules/strstr-simple: ...new module that does not care about
60404         performance, but does care about glibc bug.
60405         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
60406         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
60407         if platform memchr is broken, per Debian bug 521737.
60408         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
60409         memchr.
60410         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
60411         * doc/posix-functions/strstr.texi (strstr): Document the fix.
60412         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60413         * modules/mountlist (Depends-on): Add strstr-simple.
60414         * modules/gen-uni-tables (Depends-on): Likewise.
60415         * modules/argz (Depends-on): Add strstr.
60417 2009-06-17  Bruno Haible  <bruno@clisp.org>
60419         * modules/posix_spawn-internal (Depends-on): Add errno.
60421 2009-06-17  Bruno Haible  <bruno@clisp.org>
60423         Define missing ESTALE on Interix 3.5.
60424         * lib/errno.in.h (ESTALE): Assign a value if missing.
60425         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
60426         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
60427         missing.
60428         * doc/posix-headers/errno.texi: Mention the Interix bug.
60429         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
60431 2009-06-15  Eric Blake  <ebb9@byu.net>
60433         memchr, memchr2: add valgrind exception
60434         * lib/memchr.valgrind: New file.
60435         * lib/memchr2.valgrind: New file.
60436         * modules/memchr (Files): Distribute valgrind file.
60437         * modules/memchr2 (Files): Likewise.
60439         docs: memchr is no longer obsolete
60440         * MODULES.html.sh: Move memchr from obsolete to string.h section.
60441         * lib/string.in.h (memchr): Simplify logic.
60443 2009-06-14  Jim Meyering  <meyering@redhat.com>
60445         link-follow: fix the "checking..." message to not mention trailing slash
60446         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
60447         never considered trailing slashes.
60449 2009-06-14  Bruno Haible  <bruno@clisp.org>
60451         * m4/memchr.m4: Mention also the bug on IA-64.
60452         * doc/posix-functions/memchr.texi: Likewise.
60454 2009-06-12  Eric Blake  <ebb9@byu.net>
60456         memchr: detect broken x86_64 and alpha implementations
60457         * modules/memchr-tests (Depends-on): Move mmap detection...
60458         * modules/memchr (Depends-on): ...here.
60459         (configure.ac): Set indicator.
60460         * lib/string.in.h (memchr): Declare replacement.
60461         * modules/string (Makefile.am): Trigger replacement.
60462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60463         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
60464         bugs.
60465         * doc/posix-functions/memchr.texi (memchr): Document the bug.
60466         * modules/getpagesize (License): Relax license.
60468 2009-06-11  Bruno Haible  <bruno@clisp.org>
60470         * lib/idpriv.h: Add more references.
60472 2009-06-08  Bruno Haible  <bruno@clisp.org>
60474         Tests for module 'idpriv-droptemp'.
60475         * modules/idpriv-droptemp-tests: New file.
60476         * tests/test-idpriv-droptemp.sh: New file.
60477         * tests/test-idpriv-droptemp.su.sh: New file.
60478         * tests/test-idpriv-droptemp.c: New file.
60480         New module 'idpriv-droptemp'.
60481         * lib/idpriv-droptemp.c: New file.
60482         * modules/idpriv-droptemp: New file.
60484 2009-06-08  Bruno Haible  <bruno@clisp.org>
60486         Tests for module 'idpriv-drop'.
60487         * modules/idpriv-drop-tests: New file.
60488         * tests/test-idpriv-drop.sh: New file.
60489         * tests/test-idpriv-drop.su.sh: New file.
60490         * tests/test-idpriv-drop.c: New file.
60492         New module 'idpriv-drop'.
60493         * lib/idpriv.h: New file.
60494         * lib-idpriv-drop.c: New file.
60495         * m4/idpriv.m4: New file.
60496         * modules/idpriv-drop: New file.
60498 2009-06-08  Bruno Haible  <bruno@clisp.org>
60500         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
60501         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60502         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60503         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60504         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60505         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60506         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60508 2009-06-08  Eric Blake  <ebb9@byu.net>
60510         test-strstr: use memory fence, when possible
60511         * tests/test-strstr.c (main): Use memory fence, in order to be
60512         more likely to trigger Debian bug 521737.
60513         * modules/strstr-tests (Files): Pull in additional files.
60515         memchr: no longer obsolete, for wider field testing
60516         * modules/memchr (Status, Notice): Delete, this module is no
60517         longer obsolete.
60518         * modules/vasnprintf (Depends-on): Add memchr.
60520 2009-06-07  Jim Meyering  <meyering@redhat.com>
60522         hash: declare some functions with the warn_unused_result attribute
60523         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
60525 2009-06-07  Bruno Haible  <bruno@clisp.org>
60527         * tests/test-alignof.c: Don't test int64_t if it does not exist.
60528         Reported by Eric Blake.
60530 2009-06-06  Eric Blake  <ebb9@byu.net>
60532         test-alignof: fix typo with long double
60533         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
60534         compiler error.
60536 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
60538         Escape non-texinfo { and }s.
60539         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
60540         markup error.
60542 2009-06-04  Jim Meyering  <meyering@redhat.com>
60544         gitlog-to-changelog: don't infloop on an empty commit log
60545         * build-aux/gitlog-to-changelog: Warn about an empty log message.
60546         Reported by Boris Petersen <transacid@centerim.org>.
60548 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
60550         version-etc: extend for packagers
60551         Add three new configure options, intended for packagers:
60552           --with-packager="packager name"
60553           --with-packager-version="packager-specific version"
60554           --with-packager-bug-reports="packager bug reporting"
60555         An example with coreutils:
60556           $ ./configure \
60557             --with-packager=Gentoo \
60558             --with-packager-bug-report=http://bugs.gentoo.org/ \
60559             --with-packager-version="patchset 1.6"
60560           $ ./src/ls --version | head -n2
60561           ls (GNU coreutils) 7.1-dirty
60562           Packaged by Gentoo (patchset 1.6)
60563         Note that the bug reporting info via --help doesn't show up because
60564         coreutils uses its own custom emit_bug_reporting_address() implementation
60565         in src/system.h.  If it didn't, it'd look like:
60566           $ ./src/ls --help | tail -n4
60567           Report bugs to <bug-coreutils@gnu.org>.
60568           Report Gentoo bugs to <http://bugs.gentoo.org/>.
60569           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
60570           General help using GNU software: <http://www.gnu.org/gethelp/>.
60571         * lib/version-etc.c: Print new information, if provided.
60572         * m4/version-etc.m4: New file.
60573         * modules/version-etc (Files): Add m4/version-etc.m4.
60574         (configure.ac): Add gl_VERSION_ETC.
60576 2009-05-31  Bruno Haible  <bruno@clisp.org>
60578         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
60579         and 'int64_t'.
60580         * modules/alignof-tests (Dependencies): Add stdint.
60581         Reported by Eric Blake.
60583 2009-05-31  Bruno Haible  <bruno@clisp.org>
60585         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
60586         restriction due to compiler bugs.
60587         Reported by Eric Blake.
60589 2009-05-31  Simon Josefsson  <simon@josefsson.org>
60590             Bruno Haible  <bruno@clisp.org>
60592         Fix test-alignof failure.
60593         * lib/alignof.h (alignof_slot): New macro.
60594         (alignof_type): New macro, with the same semantics as the previous
60595         'alignof'.
60596         (alignof): Alias to alignof_slot.
60597         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
60598         check that the results are usable as constant expressions.
60600 2009-05-31  Bruno Haible  <bruno@clisp.org>
60602         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
60603         * tests/test-memchr.c (main): Check that memchr does not read past the
60604         first occurrence of the byte.
60605         * tests/test-strstr.c (main): Update comment.
60606         Suggested by Eric Blake.
60608 2009-05-30  Bruno Haible  <bruno@clisp.org>
60610         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
60611         detail how to use dumpbin.
60612         Reported by David Byron <dbyron@dbyron.com>.
60614 2009-06-02  Simon Josefsson  <simon@josefsson.org>
60616         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
60618 2009-06-02  Simon Josefsson  <simon@josefsson.org>
60620         * m4/manywarnings.m4: Add GCC 4.4 warnings.
60622 2009-05-28  Bruno Haible  <bruno@clisp.org>
60624         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
60625         build-aux/ files.
60627 2009-05-28  Simon Josefsson  <simon@josefsson.org>
60629         * gnulib-tool (func_import): Transform license on build-aux/ files too.
60631 2009-05-27  Simon Josefsson  <simon@josefsson.org>
60633         * gnulib-tool (sed_transform_main_lib_file)
60634         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
60635         regexps.
60637 2009-05-26  Simon Josefsson  <simon@josefsson.org>
60639         * tests/test-strstr.c: Add another self-test.
60640         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
60641         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
60643 2009-05-23  Bruno Haible  <bruno@clisp.org>
60645         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
60646         change.
60648 2009-05-21  Bruno Haible  <bruno@clisp.org>
60650         Simplify use of mode_t varargs.
60651         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
60652         uses 'mode_t' or 'int'.
60653         * lib/openat.c (openat): Likewise.
60654         * lib/open-safer.c (open_safer): Likewise.
60655         * m4/mode_t.m4: New file.
60656         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
60657         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
60658         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
60659         * modules/open (Files): Add m4/mode_t.m4.
60660         * modules/openat (Files): Likewise.
60661         * modules/fcntl-safer (Files): Likewise.
60662         Suggested by Eric Blake.
60664 2009-05-21  Pádraig Brady  <P@draigbrady.com>
60666         * doc/glibc-functions/fallocate.texi: New file.
60667         * doc/gnulib.texi: Include it.
60669 2009-05-21  Eric Blake  <ebb9@byu.net>
60670             Bruno Haible  <bruno@clisp.org>
60672         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
60673         invocations.
60674         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60676 2009-05-21  Eric Blake  <ebb9@byu.net>
60677             Bruno Haible  <bruno@clisp.org>
60679         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
60680         include_next. Fix of 2008-11-20 commit.
60681         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
60682         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
60683         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
60684         NEXT_MATH_H.
60685         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
60686         instead of NEXT_MATH_H.
60688 2009-05-21  Bruno Haible  <bruno@clisp.org>
60690         Avoid redefinition warnings for SIZE_MAX.
60691         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
60692         Reported by Simon Josefsson.
60694 2009-05-21  Bruno Haible  <bruno@clisp.org>
60696         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
60697         AC_CACHE_VAL.
60699 2009-05-20  Bruno Haible  <bruno@clisp.org>
60701         Make zeroptr.h work on mingw.
60702         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
60703         mprotect.
60704         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
60705         * modules/memchr2-tests (configure.ac): Likewise.
60706         * modules/memcmp-tests (configure.ac): Likewise.
60707         * modules/memmem-tests (configure.ac): Likewise.
60708         * modules/memrchr-tests (configure.ac): Likewise.
60709         Reported by Simon Josefsson.
60711 2009-05-20  Simon Josefsson  <simon@josefsson.org>
60713         * tests/test-glob.c: Include string.h for strcmp prototype.
60715 2009-05-20  Simon Josefsson  <simon@josefsson.org>
60717         * modules/getdelim (Depends-on): Add explicit stdint, although it
60718         was implicitly already pulled in via realloc-posix.
60719         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
60721 2009-05-20  Simon Josefsson  <simon@josefsson.org>
60723         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
60724         G. Christensen" <tgc@jupiterrise.com>.
60725         * m4/sys_socket_h.m4: Check for sa_family_t.
60726         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
60727         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
60728         * tests/test-sys_socket.c: Check that sa_family_t works.
60730 2009-05-18  Eric Blake  <ebb9@byu.net>
60732         maint.mk: allow gnulib_dir in VPATH build
60733         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
60735 2009-05-15  Jim Meyering  <meyering@redhat.com>
60737         maint.mk: Give gnulib_dir a default definition.
60738         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
60739         Thus, most packages no longer need to specify this variable in cfg.mk
60741 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
60743         rename.m4: fix typos that would make non-mingw cross-configure fail
60744         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
60746 2009-05-13  Eric Blake  <ebb9@byu.net>
60748         mmap-anon: avoid out-of-order autoconf expansion
60749         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
60750         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
60751         * modules/memchr-tests (Depends-on): Add extensions.
60752         * modules/memchr2-tests (Depends-on): Add extensions.
60753         * modules/memcmp-tests (Depends-on): Add extensions.
60754         * modules/memmem-tests (Depends-on): Add extensions.
60755         * modules/memrchr-tests (Depends-on): Add extensions.
60757 2009-05-13  Bruno Haible  <bruno@clisp.org>
60759         Make some tests ISO C 99 compliant.
60760         * tests/zerosize-ptr.h: New file.
60761         * tests/test-memchr.c: Include zerosize-ptr.h.
60762         (main): Use a zero-size object pointer instead of NULL.
60763         * tests/test-memchr2.c: Include zerosize-ptr.h.
60764         (main): Use a zero-size object pointer instead of NULL.
60765         * tests/test-memcmp.c: Include zerosize-ptr.h.
60766         (main): Use a zero-size object pointer instead of NULL.
60767         * tests/test-memmem.c: Include zerosize-ptr.h.
60768         (main): Use a zero-size object pointer instead of NULL.
60769         * tests/test-memrchr.c: Include zerosize-ptr.h.
60770         (main): Use a zero-size object pointer instead of NULL.
60771         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
60772         m4/mmap-anon.m4.
60773         (Depends-on): Add getpagesize.
60774         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
60775         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
60776         m4/mmap-anon.m4.
60777         (Depends-on): Add getpagesize.
60778         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
60779         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
60780         m4/mmap-anon.m4.
60781         (Depends-on): Add getpagesize.
60782         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
60783         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
60784         m4/mmap-anon.m4.
60785         (Depends-on): Add getpagesize.
60786         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
60787         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
60788         m4/mmap-anon.m4.
60789         (Depends-on): Add getpagesize.
60790         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
60792 2009-05-12  Bruno Haible  <bruno@clisp.org>
60794         Tests for module 'alignof'.
60795         * modules/alignof-tests: New file.
60796         * tests/test-alignof.c: New file.
60798 2009-05-12  Bruno Haible  <bruno@clisp.org>
60800         Fix alignof macro.
60801         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
60802         vendor compilers that are always correct.
60804 2009-05-12  Bruno Haible  <bruno@clisp.org>
60806         Make the MAP_ANONYMOUS detection work on HP-UX 11.
60807         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
60808         not whether its fully works.
60810 2009-05-12  Bruno Haible  <bruno@clisp.org>
60812         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
60814 2009-05-12  Jim Meyering  <meyering@redhat.com>
60816         * top/maint.mk: Adjust backslash alignment.
60818 2009-05-11  Simon Josefsson  <simon@josefsson.org>
60820         * top/maint.mk: Make $(srcdir)/build-aux configurable.
60822 2009-05-11  Eric Blake  <ebb9@byu.net>
60824         argp: avoid undefined behavior
60825         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
60826         macros.
60828 2009-05-08  Simon Josefsson  <simon@josefsson.org>
60830         * tests/test-vc-list-files-git.sh: Do git config of user.email and
60831         user.name to prevent git commit from complaining.
60833 2009-05-10  Bruno Haible  <bruno@clisp.org>
60835         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
60836         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
60837         it rewrites every file name only once.
60838         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
60840 2009-05-08  Bruno Haible  <bruno@clisp.org>
60842         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
60843         instead of 'max'.
60845 2009-05-08  Simon Josefsson  <simon@josefsson.org>
60847         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
60848         sockaddr_storage test.
60850 2009-05-07  Simon Josefsson  <simon@josefsson.org>
60852         * modules/sys_socket (Makefile.am): Substitute
60853         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
60854         * m4/sys_socket_h.m4: Check for sockaddr_storage.
60855         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
60856         * tests/test-sys_socket.c: Check sockaddr_storage.
60858 2009-05-08  Bruno Haible  <bruno@clisp.org>
60860         New module 'alignof'.
60861         * lib/alignof.h: New file.
60862         * modules/alignof: New file.
60864 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
60865             Bruno Haible  <bruno@clisp.org>
60867         Fix test-file-has-acl on FreeBSD.
60868         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
60869         mask is implicitly added.
60870         * tests/test-file-has-acl.c: Include <signal.h>.
60871         (main): Terminate the test after 5 seconds.
60872         * modules/acl-tests (configure.ac): Check for alarm function.
60874 2009-05-04  Bruno Haible  <bruno@clisp.org>
60876         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
60877         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
60878         * modules/errno (configure.ac): Drop AC_REQUIRE.
60879         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
60880         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
60882 2009-05-04  Simon Josefsson  <simon@josefsson.org>
60884         * modules/glob-tests: New module.
60885         * tests/test-glob.c: Add.
60887 2009-05-04  Simon Josefsson  <simon@josefsson.org>
60889         * modules/fnmatch-tests: New module.
60890         * tests/test-fnmatch.c: Add.
60892 2009-05-04  Eric Blake  <ebb9@byu.net>
60894         maint: make the new no-submodule-changes rule VPATH-safe
60895         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
60897 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
60898             Bruno Haible  <bruno@clisp.org>
60900         acl: Fix infinite loop on FreeBSD.
60901         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
60902         of return value from acl_get_entry.
60903         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
60904         Likewise.
60906 2009-05-03  Bruno Haible  <bruno@clisp.org>
60908         * lib/acl-internal.h (acl_entries): Clarify return value.
60909         * lib/acl_entries.c (acl_entries): Likewise.
60911 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
60913         Bug fix in acl module.
60914         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
60916 2009-05-03  Bruno Haible  <bruno@clisp.org>
60918         Create gperf-generated file in the source dir, not in the build dir.
60919         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
60920         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
60921         * modules/unicase/locale-language (unicase/locale-languages.h):
60922         Likewise.
60923         * modules/unicase/special-casing (unicase/special-casing-table.h):
60924         Likewise.
60925         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
60926         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
60927         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
60928         Reported by Ralf Wildenhues.
60930 2009-05-03  Bruno Haible  <bruno@clisp.org>
60932         * modules/fnmatch (Description, configure.ac): Taken from
60933         fnmatch-posix.
60934         * modules/fnmatch-posix: Turn into a symbolic reference to the
60935         'fnmatch' module, and deprecate.
60936         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
60938 2009-05-03  Bruno Haible  <bruno@clisp.org>
60940         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
60941         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
60942         Reported by Ralf Wildenhues.
60944 2009-05-04  Simon Josefsson  <simon@josefsson.org>
60946         * m4/fnmatch.m4: Fix fnmatch re-define.
60948 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
60950         priv-set: new module and tests; adapt write-any-file
60951         * lib/priv-set.c: New file.
60952         * lib/priv-set.h: New file.
60953         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
60954         * lib/write-any-file.c: Simplify by using priv-set module.
60955         * m4/priv-set.m4: New file.
60956         * modules/priv-set: New file.
60957         * modules/unlinkdir: Add dependency on priv-set module.
60958         * modules/write-any-file: Likewise.
60960         Tests for module 'priv-set'.
60961         * modules/priv-set-tests: New file.
60962         * tests/test-priv-set.c: New file.
60964 2009-05-03  Jim Meyering  <meyering@redhat.com>
60965             Bruno Haible  <bruno@clisp.org>
60967         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
60968         use the converted UTF-8 variant of the name instead.
60970 2009-05-03  Jim Meyering  <meyering@redhat.com>
60972         tests: tighten some getdate tests
60973         * tests/test-getdate.c (main): Tighten tests: require equality,
60974         not just greater than.  Set TZ envvar to UTC0.
60976 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
60978         getdate: correctly interpret "next monday" when run on a Monday
60979         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
60980         that e.g., "next tues" (when run on a tuesday) results in a date
60981         that is one week in the future, and not today's date.
60982         I.e., add a week when the wday is the same as the current one.
60983         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
60984         and earlier by Martin Bernreuther and Jan Minář.
60985         * tests/test-getdate.c (main): Check that "next DAY" is always in
60986         the future and that "last DAY" is always in the past.
60988 2009-05-02  Jim Meyering  <meyering@redhat.com>
60990         build: ensure that a release build fails when a submodule is unclean
60991         * top/maint.mk (no-submodule-changes): New rule.
60992         (alpha beta major): Depend on it.
60994 2009-05-02  Bruno Haible  <bruno@clisp.org>
60996         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
60997         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
60998         shell variable gl_fnmatch_required to detect which variant is
60999         requested.
61000         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
61001         gl_FUNC_FNMATCH_POSIX.
61002         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
61003         exclude fnmatch-posix.
61005 2009-05-02  Bruno Haible  <bruno@clisp.org>
61007         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
61008         * modules/mbsrtowcs (License): Change to LGPLv2+.
61009         * modules/strnlen1 (License): Likewise.
61010         Reported by Simon Josefsson.
61012 2009-05-02  Bruno Haible  <bruno@clisp.org>
61014         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
61015         "cross".
61016         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
61017         gnulib-tool was called with option --source-base=lib.
61019 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61021         Use automake *-local hooks without commands, for extensibility.
61022         * modules/localcharset (Makefile.am): Rename install-exec-local
61023         rule to install-exec-localcharset, and make it a prerequisite of
61024         install-exec-local.  Likewise, rename the uninstall-local rule to
61025         uninstall-localcharset, and make it a prerequisite of the former.
61027 2009-05-01  Bruno Haible  <bruno@clisp.org>
61029         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
61030         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
61031         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
61032         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
61033         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
61034         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
61035         m4/locale-zh.m4, m4/codeset.m4.
61037         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
61038         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
61039         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
61040         m4/locale-zh.m4.
61042         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
61043         REPLACE_WCRTOMB if mbstate_t must be replaced.
61044         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
61045         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
61047 2009-05-01  Bruno Haible  <bruno@clisp.org>
61049         Avoid compiler warnings when redefining macros defined by <libintl.h>.
61050         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
61051         dngettext, dcngettext, textdomain, bindtextdomain,
61052         bind_textdomain_codeset): Undefine before redefining.
61054 2009-04-30  Bruno Haible  <bruno@clisp.org>
61056         Fix bug introduced on 2009-04-25.
61057         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
61058         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
61059         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
61060         is defined.
61061         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
61062         is defined.
61063         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
61064         is defined.
61065         Reported by Elbert_Pol <elbert.pol@gmail.com>.
61067 2009-04-28  Bruno Haible  <bruno@clisp.org>
61069         Comment tweaks.
61070         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
61071         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
61072         * lib/unicase.h (u*_casexfrm): Likewise.
61073         Reported by Paolo Bonzini.
61075 2009-04-28  Bruno Haible  <bruno@clisp.org>
61077         Fix a compilation error.
61078         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
61079         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
61080         Reported by Jim Meyering.
61082 2009-04-27  Bruno Haible  <bruno@clisp.org>
61084         New module 'libunistring'.
61085         * modules/libunistring: New file.
61086         * m4/libunistring.m4: New file.
61087         * MODULES.html.sh (Unicode string functions): Add it.
61089 2009-04-27  Eric Blake  <ebb9@byu.net>
61091         maint.mk: allow package-specific header to provide <config.h>
61092         * top/maint.mk (sc_require_config_h): New variable.
61093         (sc_require_config_h, sc_require_config_h_first): Use it.
61095 2009-04-27  Simon Josefsson  <simon@josefsson.org>
61097         * top/maint.mk (sc_avoid_if_before_free): Except
61098         useless-if-before-free script.
61100 2009-04-27  Eric Blake  <ebb9@byu.net>
61102         maintainer-makefile: depend on all required helper scripts
61103         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
61104         useless-if-before-free.
61105         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
61106         version, rather than assuming gnulib checkout is available.
61107         Reported by Simen Josefsson.
61109 2009-04-26  Bruno Haible  <bruno@clisp.org>
61111         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
61112         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
61113         "../" or "..".
61115 2009-04-26  Bruno Haible  <bruno@clisp.org>
61117         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
61118         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
61119         AC_LIB_HAVE_LINKFLAGS.
61121 2009-04-26  Bruno Haible  <bruno@clisp.org>
61123         Simplify calling convention of u*_conv_from_encoding.
61124         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
61125         u32_conv_from_encoding): Expect a resultbuf argument and return the
61126         result directly as a pointer.
61127         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
61128         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
61129         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
61130         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
61131         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
61132         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
61133         Update.
61134         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
61135         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
61136         * lib/vasnprintf.c (VASNPRINTF): Update.
61137         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
61138         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
61139         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
61140         * NEWS: Mention the change.
61142 2009-04-26  Bruno Haible  <bruno@clisp.org>
61144         Simplify calling convention of u*_conv_to_encoding.
61145         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61146         u32_conv_to_encoding): Expect a resultbuf argument and return the
61147         result directly as a pointer.
61148         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
61149         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
61150         freeing scaled_offsets if mem_iconveha failed.
61151         * lib/unicase/u-casexfrm.h (FUNC): Update.
61152         * lib/uninorm/u-normxfrm.h (FUNC): Update.
61153         * lib/vasnprintf.c (VASNPRINTF): Update.
61154         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
61155         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
61156         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
61157         * NEWS: Mention the change.
61159 2009-04-26  Bruno Haible  <bruno@clisp.org>
61161         Avoid test failures on AIX and OSF/1.
61162         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
61163         malloc(0).
61164         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
61165         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
61166         Likewise.
61167         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
61168         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
61169         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
61170         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
61171         * doc/posix-functions/malloc.texi: Document the portability problem
61172         related to malloc(0).
61174 2009-04-26  Bruno Haible  <bruno@clisp.org>
61176         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
61177         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
61178         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
61180 2009-04-25  Bruno Haible  <bruno@clisp.org>
61182         Avoid link error when creating a namespace clean library.
61183         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
61184         as macro with arguments if already defined as an alias.
61185         * lib/signbitf.c (gl_signbitf): Don't undefine.
61186         * lib/signbitd.c (gl_signbitd): Don't undefine.
61187         * lib/signbitl.c (gl_signbitl): Don't undefine.
61189 2009-04-25  Jim Meyering  <meyering@redhat.com>
61191         vc-list-files: fix another quoting bug
61192         * build-aux/vc-list-files: Avoid sed backslash expansion
61193         of pathological directory names.
61195 2009-04-25  Eric Blake  <ebb9@byu.net>
61197         vc-list-files: fix shell quoting error
61198         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
61199         timestamp.
61201 2009-04-25  Jim Meyering  <meyering@redhat.com>
61203         vc-list-files: restore lost functionality with subdir argument
61204         * build-aux/vc-list-files: When given a non-"." sub-directory
61205         argument, substitute the $dir/ prefix back onto each resulting name.
61206         Otherwise, coreutils' root_tests check would fail.
61208 2009-04-24  Eric Blake  <ebb9@byu.net>
61210         vc-list-files: ignore git symlinks
61211         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
61212         than ls-files, to ignore git symlinks.
61214         maint.mk: import improvements from m4
61215         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
61216         (move_if_change): Delete unused macro.
61217         (news-date-check, vc-diff-check): Support VPATH builds.
61218         (announcement): Likewise.  Split --bootstrap-tools list...
61219         (boostrap-tools): ...into separate list, which can be overridden
61220         in cfg.mk.
61221         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
61222         requiring dependency on useless-if-before-free module.
61223         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
61224         Support VPATH builds.
61226 2009-04-24  Jim Meyering  <meyering@redhat.com>
61228         maint.mk: remove coreutils-specific rules and variables
61229         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
61230         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
61231         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
61233         maint.mk: remove obsolete rule
61234         * top/maint.mk (rel-check): Remove rule.
61235         (WGET, WGETFLAGS): Remove now-unused variables.
61237 2009-04-24  Simon Josefsson  <simon@josefsson.org>
61239         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
61240         consistency.
61242         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
61243         '$(PATH_SEPARATOR)' instead of ':'.
61245 2009-04-24  Simon Josefsson  <simon@josefsson.org>
61247         * lib/getopt1.c (main): Use 'const' for static array.
61249 2009-04-24  Simon Josefsson  <simon@josefsson.org>
61251         * top/maint.mk: Sync with coreutils.
61252         * NEWS: Explain incompatibilities.
61254 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61255             Bruno Haible  <bruno@clisp.org>
61257         Fix cross-compilation results.
61258         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
61259         statement, as third argument of AC_TRY_RUN.
61260         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61261         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
61262         Likewise.
61263         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61264         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
61265         Likewise.
61266         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61267         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
61268         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
61270 2009-04-20  Bruno Haible  <bruno@clisp.org>
61272         Avoid test failure on mingw.
61273         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
61275 2009-04-20  Bruno Haible  <bruno@clisp.org>
61277         Avoid compilation error on mingw.
61278         * modules/localename-tests (Depends-on): Add locale.
61280 2009-04-19  Bruno Haible  <bruno@clisp.org>
61282         Support for building a shared library on Windows platforms.
61283         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
61284         (main): Test the presence of UNINORM_NFC here.
61285         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
61286         (main): Test the presence of UNINORM_NFD here.
61287         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
61288         (main): Test the presence of UNINORM_NFKC here.
61289         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
61290         (main): Test the presence of UNINORM_NFKD here.
61292 2009-04-19  Bruno Haible  <bruno@clisp.org>
61294         Avoid a compiler warning.
61295         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
61296         Change type of variable 'sequence'.
61298 2009-04-19  Bruno Haible  <bruno@clisp.org>
61300         * modules/configmake (Makefile.am): When the contents of configmake.h
61301         does not change, arrange to preserve its modification time.
61303 2009-04-17  Simon Josefsson  <simon@josefsson.org>
61305         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
61306         gettext domain.
61308 2009-04-16  Jim Meyering  <meyering@redhat.com>
61310         useless-if-before-free: improve conversion code
61311         * build-aux/useless-if-before-free: Adjust code-in-comment to match
61312         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
61314 2009-04-14  Bruno Haible  <bruno@clisp.org>
61316         * modules/fcntl (Depends-on): Add extensions.
61317         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
61319 2009-04-12  Ben Pfaff  <blp@gnu.org>
61321         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
61322         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
61324 2009-03-20  Ben Pfaff  <blp@gnu.org>
61326         Make rename replace existing destinations on Windows.
61327         * m4/rename.m4: Add test for Mingw.
61328         * lib/rename.c: Add rename replacement that uses MoveFileEx with
61329         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
61330         * doc/posix-functions/rename.texi: Document.
61332 2009-04-10  Bruno Haible  <bruno@clisp.org>
61334         New include file "iconveh.h".
61335         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
61336         * lib/striconveh.h: Include it.
61337         (enum iconv_ilseq_handler): Remove definition.
61338         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
61339         striconveh.h.
61340         * lib/striconveha.c: Include striconveh.h.
61341         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
61342         * modules/striconveh (Files): Add lib/iconveh.h.
61343         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
61344         lib/striconveh.h.
61346 2009-04-10  Bruno Haible  <bruno@clisp.org>
61348         * lib/uniconv.h: Update comment.
61350 2009-04-10  Bruno Haible  <bruno@clisp.org>
61352         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
61353         always.
61354         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61355         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61356         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61357         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
61358         "unistring-notinline.h", so that the function gets defined always.
61359         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61360         * lib/unistr/u8-uctomb.c: Likewise.
61361         * lib/unistr/u16-mbtouc.c: Likewise.
61362         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61363         * lib/unistr/u16-uctomb.c: Likewise.
61364         * lib/unistr/u32-mbtouc.c: Likewise.
61365         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61366         * lib/unistr/u32-uctomb.c: Likewise.
61368 2009-04-10  Bruno Haible  <bruno@clisp.org>
61370         Mark 'utime' obsolete.
61371         * modules/utime (Status, Notice): New sections.
61372         Suggested by Jim Meyering.
61374         Fix cross-compile guess for utime test.
61375         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
61376         autoconf.
61377         * doc/posix-functions/utime.texi: Give more precisions.
61378         Reported by Jan <ipif@ymail.com>.
61380 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
61382         filevercmp: correct today's change
61383         * lib/filevercmp.c: Also handle coreutils' test inputs.
61384         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
61386         Fix regression in 'filevercmp' module. Thanks Sven Joachim
61387         for reporting it.
61388         * lib/filevercmp.c: Special handle for "", "." and "..".
61389         * tests/test-filevercmp.c: Enlarge the set suite.
61391 2009-04-07  Jim Meyering  <meyering@redhat.com>
61393         useless-if-before-free: show how to remove braced useless free, too
61394         * build-aux/useless-if-before-free: still only in a comment, though.
61396 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
61398         maint.mk: import changes to syntax-check macros from coreutils
61399         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
61400         Use them in the relevant macros.
61402 2009-04-06  Bruno Haible  <bruno@clisp.org>
61404         Fix unportable use of bit-fields.
61405         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
61406         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
61407         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
61409 2009-04-06  Bruno Haible  <bruno@clisp.org>
61411         Avoid test failures on AIX and OSF/1.
61412         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
61413         that malloc(0) = NULL.
61414         * tests/unicase/test-u8-tolower.c (check): Likewise.
61415         * tests/unicase/test-u8-totitle.c (check): Likewise.
61416         * tests/unicase/test-u8-toupper.c (check): Likewise.
61417         * tests/unicase/test-u16-casefold.c (check): Likewise.
61418         * tests/unicase/test-u16-tolower.c (check): Likewise.
61419         * tests/unicase/test-u16-totitle.c (check): Likewise.
61420         * tests/unicase/test-u16-toupper.c (check): Likewise.
61421         * tests/unicase/test-u32-casefold.c (check): Likewise.
61422         * tests/unicase/test-u32-tolower.c (check): Likewise.
61423         * tests/unicase/test-u32-totitle.c (check): Likewise.
61424         * tests/unicase/test-u32-toupper.c (check): Likewise.
61425         * tests/uninorm/test-u8-nfc.c (check): Likewise.
61426         * tests/uninorm/test-u8-nfd.c (check): Likewise.
61427         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
61428         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
61429         * tests/uninorm/test-u16-nfc.c (check): Likewise.
61430         * tests/uninorm/test-u16-nfd.c (check): Likewise.
61431         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
61432         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
61433         * tests/uninorm/test-u32-nfc.c (check): Likewise.
61434         * tests/uninorm/test-u32-nfd.c (check): Likewise.
61435         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
61436         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
61438 2009-04-05  Bruno Haible  <bruno@clisp.org>
61440         Work around an autoconf limitation.
61441         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
61442         comment line if it would be longer than 3 KB.
61444 2009-04-05  Bruno Haible  <bruno@clisp.org>
61446         Avoid test failure with libiconv-1.13.
61447         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
61448         of the expected test results.
61450 2009-04-05  Bruno Haible  <bruno@clisp.org>
61452         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
61453         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
61454         that it should be installed.
61456 2009-04-05  Bruno Haible  <bruno@clisp.org>
61458         * gnulib-tool: New option --copy-file.
61459         (func_usage): Document it.
61460         (func_dest_tmpfilename): Moved out of func_import.
61461         (func_add_file, func_update_file): New functions, extracted from
61462         func_import.
61463         (func_import): Update.
61465 2009-04-05  Karl Berry  <karl@gnu.org>
61467         * README: prominently mention gnulib-tool.
61468         Rearrange sections so getting the code is near the top.
61470 2009-04-05  Bruno Haible  <bruno@clisp.org>
61472         * lib/unicase.h: Mention u*_cmp2.
61473         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
61474         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
61475         * lib/unicase/ulc-casecmp.c: Likewise.
61476         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
61477         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
61478         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
61479         unistr/u8-cmp.
61480         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
61481         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
61482         unistr/u16-cmp.
61483         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
61484         unistr/u32-cmp.
61486         * lib/uninorm.h: Mention u*_cmp2.
61487         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
61488         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
61489         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
61490         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
61491         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
61492         unistr/u8-cmp.
61493         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
61494         unistr/u16-cmp.
61495         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
61496         unistr/u32-cmp.
61498         New module 'unistr/u32-cmp2'.
61499         * lib/unistr/u32-cmp2.c: New file.
61500         * modules/unistr/u32-cmp2: New file.
61502         New module 'unistr/u16-cmp2'.
61503         * lib/unistr/u16-cmp2.c: New file.
61504         * modules/unistr/u16-cmp2: New file.
61506         New module 'unistr/u8-cmp2'.
61507         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
61508         * lib/unistr/u8-cmp2.c: New file.
61509         * lib/unistr/u-cmp2.h: New file.
61510         * modules/unistr/u8-cmp2: New file.
61512 2009-04-05  Bruno Haible  <bruno@clisp.org>
61514         * lib/unictype.h (uc_property_is_valid): New macro.
61515         * tests/unictype/test-pr_byname.c (main): Use it.
61517         * lib/unistr.h: Doc fixes.
61518         * lib/uniconv.h: Doc fixes.
61519         * lib/unictype.h: Doc fixes.
61521 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
61523         Port coreutils 7.2 to Solaris 8.
61525         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
61526         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
61527         for Solaris 8.  This is a bit of a hack, as it means it's the
61528         caller's responsibility to add -lnsl if needed, but most likely it
61529         won't be needed since only getaddrinfo uses this and getaddrinfo
61530         isn't needed on Solaris 8.
61532         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
61533         problem to Solaris 8 encountered with coreutils 7.2, which
61534         resulted in a message "fnmatch.c:292: warning: passing argument 4
61535         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
61536         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
61538 2009-04-03  Simon Josefsson  <simon@josefsson.org>
61540         * m4/ld-version-script.m4: Add FIXME comment.
61542 2009-04-02  Simon Josefsson  <simon@josefsson.org>
61544         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
61545         SOVERSION variable.
61547 2009-04-02  Bruno Haible  <bruno@clisp.org>
61549         * Makefile (info, html, dvi, pdf): Combine the rules.
61550         Suggested by Jim Meyering.
61552 2009-04-01  Bruno Haible  <bruno@clisp.org>
61554         * Makefile (info, html, dvi, pdf): New targets.
61555         Reported by Reuben Thomas <rrt@sc3d.org>.
61557 2009-04-01  Bruno Haible  <bruno@clisp.org>
61559         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
61560         can be put into PATH.
61561         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
61563 2009-04-01  Bruno Haible  <bruno@clisp.org>
61565         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
61567 2009-04-01  Bruno Haible  <bruno@clisp.org>
61569         Rename module 'visibility'.
61570         * modules/lib-symbol-visibility: Renamed from modules/visibility.
61571         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
61572         * doc/gnulib.texi: Update.
61573         * MODULES.html.sh (Misc): Update.
61574         * NEWS: Mention the change.
61576 2009-04-01  Simon Josefsson  <simon@josefsson.org>
61578         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
61579         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
61580         Eric Blake <ebb9@byu.net> for review.
61581         * MODULES.html.sh: Add lib-msvc-compat.
61582         * doc/gnulib.texi: Link to new section.
61583         * m4/ld-output-def.m4: New file.
61584         * doc/ld-output-def.texi: New file.
61586 2009-04-01  Simon Josefsson  <simon@josefsson.org>
61588         Rename ld-version-script to lib-symbol-versions.  Suggested by
61589         Bruno Haible <bruno@clisp.org>.
61590         * modules/ld-version-script: Renamed to lib-symbol-versions.
61591         * doc/ld-version-script.texi: Fix module name.
61592         * MODULES.html.sh: Add lib-symbol-versions.
61594 2009-03-31  Simon Josefsson  <simon@josefsson.org>
61596         * modules/u64-tests: New file.
61597         * tests/test-u64.c: New file.
61599 2009-03-04  Simon Josefsson  <simon@josefsson.org>
61601         * MODULES.html.sh: Mention u64.
61602         * modules/u64: New module.
61603         * modules/crypto/sha512: Depend on u64 module instead of providing
61604         u64.h.
61606 2009-03-27  Eric Blake  <ebb9@byu.net>
61608         test-strerror: make debugging EAI_SYSTEM easier
61609         * modules/getaddrinfo-tests (Depends-on): Add strerror.
61610         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
61611         failure was EAI_SYSTEM.
61613 2009-03-25  Bruno Haible  <bruno@clisp.org>
61615         Fix a problem with --enable-relocatable on Solaris 7.
61616         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
61617         since 2008-02-24.
61619 2009-03-25  Eric Blake  <ebb9@byu.net>
61621         test-sockets: avoid gcc warning
61622         * tests/test-sockets.c (main): Silence compiler warning.
61624 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61626         New modules nproc, pthread, contributed by Glen Lenker.
61628         * MODULES.html.sh: Add pthread, nproc.
61629         * lib/nproc.c: New file.
61630         * lib/nproc.h: New file.
61631         * lib/pthread.in.h: New file.
61632         * m4/pthread.m4: New file.
61633         * modules/nproc: New file.
61634         * modules/pthread: New file.
61636 2009-03-24  Simon Josefsson  <simon@josefsson.org>
61638         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
61639         New variable.
61641 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
61643         filevercmp: handle simple~ and numbered.~3~ backup suffixes
61644         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
61645         * tests/test-filevercmp.c: Add tests for backup suffixes.
61647 2009-03-24  Simon Josefsson  <simon@josefsson.org>
61649         * modules/stdlib (Depends-on): Add stdint, needed when defining
61650         struct random_data on, for example, HP-UX 10.20.  Reported by
61651         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61653 2009-03-24  Simon Josefsson  <simon@josefsson.org>
61655         * lib/readline.c (readline): Call fflush on stdout after printing
61656         prompt.
61658 2009-03-20  Bruno Haible  <bruno@clisp.org>
61660         Remove dependency from 'close' module to -lws2_32 on native Windows.
61661         * lib/close-hook.h: New file.
61662         * lib/close-hook.c: New file.
61663         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
61664         w32sock.h.
61665         (_gl_close_fd_maybe_socket): Remove function.
61666         (rpl_close): Invoke execute_all_close_hooks instead of
61667         _gl_close_fd_maybe_socket.
61668         * lib/sockets.c: Include close-hook.h, w32sock.h.
61669         (close_fd_maybe_socket): New function, essentially from lib/close.c.
61670         (close_sockets_hook): New variable.
61671         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
61672         (gl_sockets_cleanup): Unregister it.
61673         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
61674         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
61675         * modules/close-hook: New file.
61676         * modules/close (Files): Remove lib/w32sock.h.
61677         (Depends-on): Add close-hook.
61678         (Link): Remove section.
61679         * modules/sockets (Files): Add lib/w32sock.h.
61680         (Depends-on): Add close-hook.
61681         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
61682         invocation.
61683         * NEWS: Mention that LIB_CLOSE is gone.
61685 2009-03-23  Eric Blake  <ebb9@byu.net>
61687         signal-tests: test previous patch
61688         * tests/test-signal.c: New file.
61689         * modules/signal-tests: Likewise.
61691         signal.h: always support 'volatile sig_atomic_t'
61692         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
61693         (gl_SIGNAL_H_DEFAULTS): Add a default.
61694         * modules/signal (Makefile.am): Substitute if needed.
61695         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
61696         users can blindly add volatile.
61697         * doc/posix-headers/signal.texi (signal.h): Document it.
61698         Reported by Matthew Woehlke.
61700 2009-03-23  Jim Meyering  <meyering@redhat.com>
61702         pathmax: PATH_MAX: use pathconf only when available
61703         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
61704         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
61705         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
61706         This avoids a link failure in a PSP cross-compilation environment
61707         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
61709         * lib/vasnprintf.c (divide): Fix typo in comment.
61711 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61713         * gnulib-tool (func_filter_filelist): Fix comment.
61715 2009-03-20  Bruno Haible  <bruno@clisp.org>
61717         Make sockets.h self-contained.
61718         * lib/sockets.c: Include sockets.h first.
61719         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
61721 2009-03-19  Eric Blake  <ebb9@byu.net>
61723         doc: mention more functions added in cygwin 1.7.0
61724         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
61725         addition.
61726         * doc/posix-functions/log2f.texi: Likewise.
61728 2009-03-19  Jim Meyering  <meyering@redhat.com>
61730         fsusage: avoid syntax error due to statement-before-declaration
61731         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
61732         after all declarations.  Reported by Matthew Woehlke in
61733         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
61735 2009-03-18  Eric Blake  <ebb9@byu.net>
61737         build-aux/compile: sync from automake
61738         * build-aux/compile: New file, from automake.
61739         * config/srclist.txt: Mention build-aux/compile.
61741 2009-03-17  Bruno Haible  <bruno@clisp.org>
61743         * lib/git-merge-changelog.c: Fix typo in comment.
61744         Reported by Reuben Thomas <rrt@sc3d.org>.
61746 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
61748         * m4/regex.m4: update and improve help for
61749         --without-included-regex.
61751 2009-03-17  Simon Josefsson  <simon@josefsson.org>
61753         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
61754         failure on missing include files.
61756 2009-03-17  Eric Blake  <ebb9@byu.net>
61758         doc: mention more functions added in cygwin 1.7.0
61759         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
61760         addition.
61761         * doc/posix-functions/fwscanf.texi: Likewise.
61762         * doc/posix-functions/swprintf.texi: Likewise.
61763         * doc/posix-functions/swscanf.texi: Likewise.
61764         * doc/posix-functions/vfwprintf.texi: Likewise.
61765         * doc/posix-functions/vfwscanf.texi: Likewise.
61766         * doc/posix-functions/vswprintf.texi: Likewise.
61767         * doc/posix-functions/vswscanf.texi: Likewise.
61768         * doc/posix-functions/vwprintf.texi: Likewise.
61769         * doc/posix-functions/vwscanf.texi: Likewise.
61770         * doc/posix-functions/wcscasecmp.texi: Likewise.
61771         * doc/posix-functions/wcsdup.texi: Likewise.
61772         * doc/posix-functions/wcsftime.texi: Likewise.
61773         * doc/posix-functions/wcsncasecmp.texi: Likewise.
61774         * doc/posix-functions/wprintf.texi: Likewise.
61775         * doc/posix-functions/wscanf.texi: Likewise.
61776         * doc/glibc-functions/gethostbyname2.texi: Likewise.
61778 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61780         maint.mk: really add $(AM_MAKEFLAGS)
61781         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
61782         was inadvertently omitted in the last commit.
61783         Spotted by Bruno Haible.
61785         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
61786         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
61787         $(AM_MAKEFLAGS)' rather than plain `make'.
61789         gnulib-tool: execute $MAKE not make
61790         * gnulib-tool: Default $MAKE to 'make'.
61791         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
61792         than make.  Initialize $MAKE in the do-autobuild script.
61794         gnulib-tool: use $MAKE not make in generated files
61795         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
61796         make, in generated files.  Initialize $MAKE in the do-autobuild
61797         script.
61799         * top/GNUmakefile (_have-git-version-gen): Fix typo.
61801         GNUmakefile: disable parallelism only for multiple, recursive targets
61802         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
61803         additions in the Makefile.
61804         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
61805         by Automake.
61806         (.NOTPARALLEL): Only disable parallel builds if multiple targets
61807         are listed on the command line and at least one of them is
61808         listed in $(ALL_RECURSIVE_TARGETS).
61810 2009-03-14  Bruno Haible  <bruno@clisp.org>
61812         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
61813         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
61814         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
61815         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
61816         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
61817         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
61818         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
61819         unistr/u8-uctomb.
61820         * modules/unistr/u8-strchr (Depends-on): Likewise.
61821         * modules/unistr/u8-strrchr (Depends-on): Likewise.
61822         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
61823         unistr/u16-uctomb.
61824         * modules/unistr/u16-strchr (Depends-on): Likewise.
61825         * modules/unistr/u16-strrchr (Depends-on): Likewise.
61827 2009-03-12  Bruno Haible  <bruno@clisp.org>
61829         Work around select() bug on Interix 3.5.
61830         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
61831         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
61832         * m4/select.m4: New file.
61833         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
61834         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
61835         * modules/select (Files): Add m4/select.m4.
61836         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
61837         * modules/nanosleep (Depends-on): Add select.
61838         * modules/poll (Depends-on): Likewise.
61839         * doc/posix-functions/select.texi: Mention the Interix bug.
61840         Reported by Markus Duft <mduft@gentoo.org>.
61842         * lib/select.c: Renamed from lib/winsock-select.c.
61843         * modules/select (Files): Add lib/select.c, remove
61844         lib/winsock-select.c.
61845         (configure.ac): Update.
61847 2009-03-12  Jim Meyering  <meyering@redhat.com>
61849         avoid gcc warnings about unused macro definitions
61850         * lib/readtokens.c (STREQ): Remove unused definition.
61851         * lib/xmalloc.c (SIZE_MAX): Likewise.
61852         * lib/openat-die.c (N_): Likewise.
61853         * lib/mountlist.c (SIZE_MAX): Remove definition.
61854         Instead, include <stdint.h>.
61855         * lib/readutmp.c: Likewise.
61856         * modules/readutmp (Depends-on): Add stdint.
61857         * modules/mountlist (Depends-on): Add stdint.
61858         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
61860 2009-03-10  Bruno Haible  <bruno@clisp.org>
61862         Tests for module 'mbmemcasecoll'.
61863         * modules/mbmemcasecoll-tests: New file.
61864         * tests/test-mbmemcasecoll1.sh: New file.
61865         * tests/test-mbmemcasecoll2.sh: New file.
61866         * tests/test-mbmemcasecoll3.sh: New file.
61867         * tests/test-mbmemcasecoll.c: New file.
61869         New module 'mbmemcasecoll'.
61870         * lib/mbmemcasecoll.h: New file.
61871         * lib/mbmemcasecoll.c: New file.
61872         * modules/mbmemcasecoll: New file.
61874         * tests/test-mbmemcasecmp.h: New file, extracted from
61875         tests/test-mbmemcasecmp.c.
61876         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
61877         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
61878         (main): Update.
61879         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
61881 2009-03-09  Bruno Haible  <bruno@clisp.org>
61883         Tests for module 'mbmemcasecmp'.
61884         * modules/mbmemcasecmp-tests: New file.
61885         * tests/test-mbmemcasecmp1.sh: New file.
61886         * tests/test-mbmemcasecmp2.sh: New file.
61887         * tests/test-mbmemcasecmp3.sh: New file.
61888         * tests/test-mbmemcasecmp.c: New file.
61890         New module 'mbmemcasecmp'.
61891         * lib/mbmemcasecmp.h: New file.
61892         * lib/mbmemcasecmp.c: New file.
61893         * modules/mbmemcasecmp: New file.
61895 2009-03-09  Bruno Haible  <bruno@clisp.org>
61897         Tests for module 'unicase/ulc-casecoll'.
61898         * modules/unicase/ulc-casecoll-tests: New file.
61899         * tests/unicase/test-ulc-casecoll1.sh: New file.
61900         * tests/unicase/test-ulc-casecoll2.sh: New file.
61901         * tests/unicase/test-ulc-casecoll.c: New file.
61903         New module 'unicase/ulc-casecoll'.
61904         * lib/unicase.h (ulc_casecoll): New declaration.
61905         * lib/unicase/ulc-casecoll.c: New file.
61906         * modules/unicase/ulc-casecoll: New file.
61908         New module 'unicase/ulc-casexfrm'.
61909         * lib/unicase.h (ulc_casexfrm): New declaration.
61910         * lib/unicase/ulc-casexfrm.c: New file.
61911         * modules/unicase/ulc-casexfrm: New file.
61913 2009-03-09  Bruno Haible  <bruno@clisp.org>
61915         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
61916         invocations.
61918         * m4/mbscasecmp.m4: Remove file.
61919         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
61920         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
61922         * m4/mbscasestr.m4: Remove file.
61923         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
61924         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
61926         * m4/mbschr.m4: Remove file.
61927         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
61928         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
61930         * m4/mbscspn.m4: Remove file.
61931         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
61932         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
61934         * m4/mbslen.m4: Remove file.
61935         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
61936         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
61938         * m4/mbsncasecmp.m4: Remove file.
61939         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
61940         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
61942         * m4/mbsnlen.m4: Remove file.
61943         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
61944         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
61946         * m4/mbspbrk.m4: Remove file.
61947         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
61948         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
61950         * m4/mbspcasecmp.m4: Remove file.
61951         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
61952         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
61954         * m4/mbsrchr.m4: Remove file.
61955         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
61956         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
61958         * m4/mbssep.m4: Remove file.
61959         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
61960         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
61962         * m4/mbsspn.m4: Remove file.
61963         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
61964         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
61966         * m4/mbsstr.m4: Remove file.
61967         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
61968         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
61970         * m4/mbstok_r.m4: Remove file.
61971         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
61972         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
61974         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
61976         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
61977         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
61979         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
61981 2009-03-08  Bruno Haible  <bruno@clisp.org>
61983         Tests for module 'unicase/ulc-casecmp'.
61984         * modules/unicase/ulc-casecmp-tests: New file.
61985         * tests/unicase/test-ulc-casecmp1.sh: New file.
61986         * tests/unicase/test-ulc-casecmp2.sh: New file.
61987         * tests/unicase/test-ulc-casecmp.c: New file.
61989         New module 'unicase/ulc-casecmp'.
61990         * lib/unicase.h (ulc_casecmp): New declaration.
61991         * lib/unicase/ulc-casecmp.c: New file.
61992         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
61993         'const SRC_UNIT *'.
61994         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
61995         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
61996         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
61997         * modules/unicase/ulc-casecmp: New file.
61999         Tests for module 'unicase/u32-is-cased'.
62000         * modules/unicase/u32-is-cased-tests: New file.
62001         * tests/unicase/test-u32-is-cased.c: New file.
62003         Tests for module 'unicase/u16-is-cased'.
62004         * modules/unicase/u16-is-cased-tests: New file.
62005         * tests/unicase/test-u16-is-cased.c: New file.
62007         Tests for module 'unicase/u8-is-cased'.
62008         * modules/unicase/u8-is-cased-tests: New file.
62009         * tests/unicase/test-u8-is-cased.c: New file.
62010         * tests/unicase/test-is-cased.h: New file.
62012         New module 'unicase/u32-is-cased'.
62013         * lib/unicase/u32-is-cased.c: New file.
62014         * modules/unicase/u32-is-cased: New file.
62016         New module 'unicase/u16-is-cased'.
62017         * lib/unicase/u16-is-cased.c: New file.
62018         * modules/unicase/u16-is-cased: New file.
62020         New module 'unicase/u8-is-cased'.
62021         * lib/unicase/u8-is-cased.c: New file.
62022         * lib/unicase/u-is-cased.h: New file.
62023         * modules/unicase/u8-is-cased: New file.
62025         Tests for module 'unicase/u32-is-casefolded'.
62026         * modules/unicase/u32-is-casefolded-tests: New file.
62027         * tests/unicase/test-u32-is-casefolded.c: New file.
62029         Tests for module 'unicase/u16-is-casefolded'.
62030         * modules/unicase/u16-is-casefolded-tests: New file.
62031         * tests/unicase/test-u16-is-casefolded.c: New file.
62033         Tests for module 'unicase/u8-is-casefolded'.
62034         * modules/unicase/u8-is-casefolded-tests: New file.
62035         * tests/unicase/test-u8-is-casefolded.c: New file.
62036         * tests/unicase/test-is-casefolded.h: New file.
62038         New module 'unicase/u32-is-casefolded'.
62039         * lib/unicase/u32-is-casefolded.c: New file.
62040         * modules/unicase/u32-is-casefolded: New file.
62042         New module 'unicase/u16-is-casefolded'.
62043         * lib/unicase/u16-is-casefolded.c: New file.
62044         * modules/unicase/u16-is-casefolded: New file.
62046         New module 'unicase/u8-is-casefolded'.
62047         * lib/unicase/u8-is-casefolded.c: New file.
62048         * modules/unicase/u8-is-casefolded: New file.
62050         Tests for module 'unicase/u32-is-titlecase'.
62051         * modules/unicase/u32-is-titlecase-tests: New file.
62052         * tests/unicase/test-u32-is-titlecase.c: New file.
62054         Tests for module 'unicase/u16-is-titlecase'.
62055         * modules/unicase/u16-is-titlecase-tests: New file.
62056         * tests/unicase/test-u16-is-titlecase.c: New file.
62058         Tests for module 'unicase/u8-is-titlecase'.
62059         * modules/unicase/u8-is-titlecase-tests: New file.
62060         * tests/unicase/test-u8-is-titlecase.c: New file.
62061         * tests/unicase/test-is-titlecase.h: New file.
62063         New module 'unicase/u32-is-titlecase'.
62064         * lib/unicase/u32-is-titlecase.c: New file.
62065         * modules/unicase/u32-is-titlecase: New file.
62067         New module 'unicase/u16-is-titlecase'.
62068         * lib/unicase/u16-is-titlecase.c: New file.
62069         * modules/unicase/u16-is-titlecase: New file.
62071         New module 'unicase/u8-is-titlecase'.
62072         * lib/unicase/u8-is-titlecase.c: New file.
62073         * modules/unicase/u8-is-titlecase: New file.
62075         Tests for module 'unicase/u32-is-lowercase'.
62076         * modules/unicase/u32-is-lowercase-tests: New file.
62077         * tests/unicase/test-u32-is-lowercase.c: New file.
62079         Tests for module 'unicase/u16-is-lowercase'.
62080         * modules/unicase/u16-is-lowercase-tests: New file.
62081         * tests/unicase/test-u16-is-lowercase.c: New file.
62083         Tests for module 'unicase/u8-is-lowercase'.
62084         * modules/unicase/u8-is-lowercase-tests: New file.
62085         * tests/unicase/test-u8-is-lowercase.c: New file.
62086         * tests/unicase/test-is-lowercase.h: New file.
62088         New module 'unicase/u32-is-lowercase'.
62089         * lib/unicase/u32-is-lowercase.c: New file.
62090         * modules/unicase/u32-is-lowercase: New file.
62092         New module 'unicase/u16-is-lowercase'.
62093         * lib/unicase/u16-is-lowercase.c: New file.
62094         * modules/unicase/u16-is-lowercase: New file.
62096         New module 'unicase/u8-is-lowercase'.
62097         * lib/unicase/u8-is-lowercase.c: New file.
62098         * modules/unicase/u8-is-lowercase: New file.
62100         Tests for module 'unicase/u32-is-uppercase'.
62101         * modules/unicase/u32-is-uppercase-tests: New file.
62102         * tests/unicase/test-u32-is-uppercase.c: New file.
62104         Tests for module 'unicase/u16-is-uppercase'.
62105         * modules/unicase/u16-is-uppercase-tests: New file.
62106         * tests/unicase/test-u16-is-uppercase.c: New file.
62108         Tests for module 'unicase/u8-is-uppercase'.
62109         * modules/unicase/u8-is-uppercase-tests: New file.
62110         * tests/unicase/test-u8-is-uppercase.c: New file.
62111         * tests/unicase/test-is-uppercase.h: New file.
62113         New module 'unicase/u32-is-uppercase'.
62114         * lib/unicase/u32-is-uppercase.c: New file.
62115         * modules/unicase/u32-is-uppercase: New file.
62117         New module 'unicase/u16-is-uppercase'.
62118         * lib/unicase/u16-is-uppercase.c: New file.
62119         * modules/unicase/u16-is-uppercase: New file.
62121         New module 'unicase/u8-is-uppercase'.
62122         * lib/unicase/u8-is-uppercase.c: New file.
62123         * modules/unicase/u8-is-uppercase: New file.
62125         New module 'unicase/u32-is-invariant'.
62126         * lib/unicase/u32-is-invariant.c: New file.
62127         * modules/unicase/u32-is-invariant: New file.
62129         New module 'unicase/u16-is-invariant'.
62130         * lib/unicase/u16-is-invariant.c: New file.
62131         * modules/unicase/u16-is-invariant: New file.
62133         New module 'unicase/u8-is-invariant'.
62134         * lib/unicase/u8-is-invariant.c: New file.
62135         * lib/unicase/invariant.h: New file.
62136         * lib/unicase/u-is-invariant.h: New file.
62137         * modules/unicase/u8-is-invariant: New file.
62139         Tests for module 'unicase/u32-casecoll'.
62140         * modules/unicase/u32-casecoll-tests: New file.
62141         * tests/unicase/test-u32-casecoll.c: New file.
62143         Tests for module 'unicase/u16-casecoll'.
62144         * modules/unicase/u16-casecoll-tests: New file.
62145         * tests/unicase/test-u16-casecoll.c: New file.
62147         Tests for module 'unicase/u8-casecoll'.
62148         * modules/unicase/u8-casecoll-tests: New file.
62149         * tests/unicase/test-u8-casecoll.c: New file.
62151         New module 'unicase/u32-casecoll'.
62152         * lib/unicase/u32-casecoll.c: New file.
62153         * modules/unicase/u32-casecoll: New file.
62155         New module 'unicase/u16-casecoll'.
62156         * lib/unicase/u16-casecoll.c: New file.
62157         * modules/unicase/u16-casecoll: New file.
62159         New module 'unicase/u8-casecoll'.
62160         * lib/unicase/u8-casecoll.c: New file.
62161         * lib/unicase/u-casecoll.h: New file.
62162         * modules/unicase/u8-casecoll: New file.
62164         New module 'unicase/u32-casexfrm'.
62165         * lib/unicase/u32-casexfrm.c: New file.
62166         * modules/unicase/u32-casexfrm: New file.
62168         New module 'unicase/u16-casexfrm'.
62169         * lib/unicase/u16-casexfrm.c: New file.
62170         * modules/unicase/u16-casexfrm: New file.
62172         New module 'unicase/u8-casexfrm'.
62173         * lib/unicase/u8-casexfrm.c: New file.
62174         * lib/unicase/u-casexfrm.h: New file.
62175         * modules/unicase/u8-casexfrm: New file.
62177         Tests for module 'unicase/u32-casecmp'.
62178         * modules/unicase/u32-casecmp-tests: New file.
62179         * tests/unicase/test-u32-casecmp.c: New file.
62181         Tests for module 'unicase/u16-casecmp'.
62182         * modules/unicase/u16-casecmp-tests: New file.
62183         * tests/unicase/test-u16-casecmp.c: New file.
62185         Tests for module 'unicase/u8-casecmp'.
62186         * modules/unicase/u8-casecmp-tests: New file.
62187         * tests/unicase/test-u8-casecmp.c: New file.
62188         * tests/unicase/test-casecmp.h: New file.
62190         New module 'unicase/u32-casecmp'.
62191         * lib/unicase/u32-casecmp.c: New file.
62192         * modules/unicase/u32-casecmp: New file.
62194         New module 'unicase/u16-casecmp'.
62195         * lib/unicase/u16-casecmp.c: New file.
62196         * modules/unicase/u16-casecmp: New file.
62198         New module 'unicase/u8-casecmp'.
62199         * lib/unicase/u8-casecmp.c: New file.
62200         * lib/unicase/u-casecmp.h: New file.
62201         * modules/unicase/u8-casecmp: New file.
62203         Tests for module 'unicase/u32-casefold'.
62204         * modules/unicase/u32-casefold-tests: New file.
62205         * tests/unicase/test-u32-casefold.c: New file.
62207         Tests for module 'unicase/u16-casefold'.
62208         * modules/unicase/u16-casefold-tests: New file.
62209         * tests/unicase/test-u16-casefold.c: New file.
62211         Tests for module 'unicase/u8-casefold'.
62212         * modules/unicase/u8-casefold-tests: New file.
62213         * tests/unicase/test-u8-casefold.c: New file.
62215         New module 'unicase/u32-casefold'.
62216         * lib/unicase/u32-casefold.c: New file.
62217         * modules/unicase/u32-casefold: New file.
62219         New module 'unicase/u16-casefold'.
62220         * lib/unicase/u16-casefold.c: New file.
62221         * modules/unicase/u16-casefold: New file.
62223         New module 'unicase/u8-casefold'.
62224         * lib/unicase/u8-casefold.c: New file.
62225         * lib/unicase/u-casefold.h: New file.
62226         * modules/unicase/u8-casefold: New file.
62228         New module 'unicase/tocasefold'.
62229         * lib/unicase/casefold.h: New file.
62230         * lib/unicase/tocasefold.c: New file.
62231         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
62232         * modules/unicase/tocasefold: New file.
62234         Tests for module 'unicase/u32-totitle'.
62235         * modules/unicase/u32-totitle-tests: New file.
62236         * tests/unicase/test-u32-totitle.c: New file.
62238         Tests for module 'unicase/u16-totitle'.
62239         * modules/unicase/u16-totitle-tests: New file.
62240         * tests/unicase/test-u16-totitle.c: New file.
62242         Tests for module 'unicase/u8-totitle'.
62243         * modules/unicase/u8-totitle-tests: New file.
62244         * tests/unicase/test-u8-totitle.c: New file.
62246         New module 'unicase/u32-totitle'.
62247         * lib/unicase/u32-totitle.c: New file.
62248         * modules/unicase/u32-totitle: New file.
62250         New module 'unicase/u16-totitle'.
62251         * lib/unicase/u16-totitle.c: New file.
62252         * modules/unicase/u16-totitle: New file.
62254         New module 'unicase/u8-totitle'.
62255         * lib/unicase/u8-totitle.c: New file.
62256         * lib/unicase/u-totitle.h: New file.
62257         * modules/unicase/u8-totitle: New file.
62259         Tests for module 'unicase/u32-tolower'.
62260         * modules/unicase/u32-tolower-tests: New file.
62261         * tests/unicase/test-u32-tolower.c: New file.
62263         Tests for module 'unicase/u16-tolower'.
62264         * modules/unicase/u16-tolower-tests: New file.
62265         * tests/unicase/test-u16-tolower.c: New file.
62267         Tests for module 'unicase/u8-tolower'.
62268         * modules/unicase/u8-tolower-tests: New file.
62269         * tests/unicase/test-u8-tolower.c: New file.
62271         New module 'unicase/u32-tolower'.
62272         * lib/unicase/u32-tolower.c: New file.
62273         * modules/unicase/u32-tolower: New file.
62275         New module 'unicase/u16-tolower'.
62276         * lib/unicase/u16-tolower.c: New file.
62277         * modules/unicase/u16-tolower: New file.
62279         New module 'unicase/u8-tolower'.
62280         * lib/unicase/u8-tolower.c: New file.
62281         * modules/unicase/u8-tolower: New file.
62283         Tests for module 'unicase/u32-toupper'.
62284         * modules/unicase/u32-toupper-tests: New file.
62285         * tests/unicase/test-u32-toupper.c: New file.
62287         Tests for module 'unicase/u16-toupper'.
62288         * modules/unicase/u16-toupper-tests: New file.
62289         * tests/unicase/test-u16-toupper.c: New file.
62291         Tests for module 'unicase/u8-toupper'.
62292         * modules/unicase/u8-toupper-tests: New file.
62293         * tests/unicase/test-u8-toupper.c: New file.
62295         New module 'unicase/u32-toupper'.
62296         * lib/unicase/u32-toupper.c: New file.
62297         * modules/unicase/u32-toupper: New file.
62299         New module 'unicase/u16-toupper'.
62300         * lib/unicase/u16-toupper.c: New file.
62301         * modules/unicase/u16-toupper: New file.
62303         New module 'unicase/u8-toupper'.
62304         * lib/unicase/u8-toupper.c: New file.
62305         * modules/unicase/u8-toupper: New file.
62307         New module 'unicase/u32-casemap'.
62308         * lib/unicase/u32-casemap.c: New file.
62309         * modules/unicase/u32-casemap: New file.
62311         New module 'unicase/u16-casemap'.
62312         * lib/unicase/u16-casemap.c: New file.
62313         * modules/unicase/u16-casemap: New file.
62315         New module 'unicase/u8-casemap'.
62316         * lib/unicase/unicasemap.h: New file.
62317         * lib/unicase/u8-casemap.c: New file.
62318         * lib/unicase/u-casemap.h: New file.
62319         * modules/unicase/u8-casemap: New file.
62321         New module 'unicase/special-casing'.
62322         * lib/unicase/special-casing.h: New file.
62323         * lib/unicase/special-casing.c: New file.
62324         * lib/unicase/special-casing-table.gperf: New file, generated by
62325         gen-uni-tables.c.
62326         * modules/unicase/special-casing: New file.
62328         Tests for module 'unicase/locale-language'.
62329         * modules/unicase/locale-language-tests: New file.
62330         * tests/unicase/test-locale-language.sh: New file.
62331         * tests/unicase/test-locale-language.c: New file.
62333         New module 'unicase/locale-language'.
62334         * lib/unicase/locale-language.c: New file.
62335         * lib/unicase/locale-languages.gperf: New file.
62336         * modules/unicase/locale-language: New file.
62338         Generate more tables for case conversion and case folding.
62339         * lib/gen-uni-tables.c (SCC_*): New enum items.
62340         (struct special_casing_rule): New type.
62341         (casing_rules, num_casing_rules, allocated_casing_rules): New
62342         variables.
62343         (add_casing_rule, fill_casing_rules): New functions.
62344         (struct casefold_rule): New type.
62345         (casefolding_rules, num_casefolding_rules,
62346         allocated_casefolding_rules): New variables.
62347         (fill_casefolding_rules): New function.
62348         (unicode_casefold): New variable.
62349         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
62350         sort_casing_rules, output_casing_rules): New functions.
62351         (main): Accept to more arguments: SpecialCasing.txt and
62352         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
62353         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
62354         Output mapping for casefolding.
62356         * lib/unicase.h: Include stdbool.h, uninorm.h.
62357         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
62358         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
62359         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
62360         arguments.
62361         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
62362         resultp arguments.
62363         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
62364         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
62365         resultp arguments.
62366         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
62367         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
62368         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
62369         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
62370         declarations.
62371         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
62373 2009-03-08  Bruno Haible  <bruno@clisp.org>
62375         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
62376         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
62377         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
62378         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
62380 2009-03-07  Bruno Haible  <bruno@clisp.org>
62382         Adjust u*_normcmp, u*_normcoll API.
62383         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
62384         u16_normcoll, u32_normcoll): Change failure conventions.
62385         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
62386         errno and return -1.
62387         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
62389 2009-03-07  Bruno Haible  <bruno@clisp.org>
62391         Tests for module 'uninorm/u32-normcoll'.
62392         * modules/uninorm/u32-normcoll-tests: New file.
62393         * tests/uninorm/test-u32-normcoll.c: New file.
62395         Tests for module 'uninorm/u16-normcoll'.
62396         * modules/uninorm/u16-normcoll-tests: New file.
62397         * tests/uninorm/test-u16-normcoll.c: New file.
62399         Tests for module 'uninorm/u8-normcoll'.
62400         * modules/uninorm/u8-normcoll-tests: New file.
62401         * tests/uninorm/test-u8-normcoll.c: New file.
62403 2009-03-07  Bruno Haible  <bruno@clisp.org>
62405         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
62406         tests/uninorm/test-u32-normcmp.c.
62407         * tests/uninorm/test-u32-normcmp.c: Include it.
62408         (test_nonascii): New function, extracted from main. Add some more
62409         tests.
62410         (main): Invoke test_ascii and test_nonascii.
62411         * modules/uninorm/u32-normcmp-tests (Files): Add
62412         tests/uninorm/test-u32-normcmp.h.
62413         (Depends-on): Remove uninorm/u32-normcmp.
62415         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
62416         tests/uninorm/test-u16-normcmp.c.
62417         * tests/uninorm/test-u16-normcmp.c: Include it.
62418         (test_nonascii): New function, extracted from main. Add some more
62419         tests.
62420         (main): Invoke test_ascii and test_nonascii.
62421         * modules/uninorm/u16-normcmp-tests (Files): Add
62422         tests/uninorm/test-u16-normcmp.h.
62423         (Depends-on): Remove uninorm/u16-normcmp.
62425         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
62426         tests/uninorm/test-u8-normcmp.c.
62427         * tests/uninorm/test-u8-normcmp.c: Include it.
62428         (test_nonascii): New function, extracted from main. Add some more
62429         tests.
62430         (main): Invoke test_ascii and test_nonascii.
62431         * modules/uninorm/u8-normcmp-tests (Files): Add
62432         tests/uninorm/test-u8-normcmp.h.
62433         (Depends-on): Remove uninorm/u8-normcmp.
62435 2009-03-07  Bruno Haible  <bruno@clisp.org>
62437         New module 'uninorm/u32-normcoll'.
62438         * lib/uninorm/u32-normcoll.c: New file.
62439         * modules/uninorm/u32-normcoll: New file.
62441         New module 'uninorm/u16-normcoll'.
62442         * lib/uninorm/u16-normcoll.c: New file.
62443         * modules/uninorm/u16-normcoll: New file.
62445         New module 'uninorm/u8-normcoll'.
62446         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
62447         declarations.
62448         * lib/uninorm/u8-normcoll.c: New file.
62449         * lib/uninorm/u-normcoll.h: New file.
62450         * modules/uninorm/u8-normcoll: New file.
62452         New module 'uninorm/u32-normxfrm'.
62453         * lib/uninorm/u32-normxfrm.c: New file.
62454         * modules/uninorm/u32-normxfrm: New file.
62456         New module 'uninorm/u16-normxfrm'.
62457         * lib/uninorm/u16-normxfrm.c: New file.
62458         * modules/uninorm/u16-normxfrm: New file.
62460         New module 'uninorm/u8-normxfrm'.
62461         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
62462         declarations.
62463         * lib/uninorm/u8-normxfrm.c: New file.
62464         * lib/uninorm/u-normxfrm.h: New file.
62465         * modules/uninorm/u8-normxfrm: New file.
62467 2009-03-07  Bruno Haible  <bruno@clisp.org>
62469         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
62470         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
62471         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
62473 2009-03-07  Bruno Haible  <bruno@clisp.org>
62475         New module 'memxfrm'.
62476         * lib/memxfrm.h: New file.
62477         * lib/memxfrm.c: New file.
62478         * modules/memxfrm: New file.
62480 2009-03-07  Bruno Haible  <bruno@clisp.org>
62482         New module 'memcmp2'.
62483         * lib/memcmp2.h: New file.
62484         * lib/memcmp2.c: New file.
62485         * modules/memcmp2: New file.
62487 2009-03-07  Bruno Haible  <bruno@clisp.org>
62489         Tests for module 'uninorm/decomposing-form'.
62490         * modules/uninorm/decomposing-form-tests: New file.
62491         * tests/uninorm/test-decomposing-form.c: New file.
62493         New module 'uninorm/decomposing-form'.
62494         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
62495         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
62496         Add 'decomposing_variant' field.
62497         * lib/uninorm/decomposing-form.c: New file.
62498         * lib/uninorm/nfc.c (uninorm_nfc): Update.
62499         * lib/uninorm/nfd.c (uninorm_nfd): Update.
62500         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
62501         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
62502         * modules/uninorm/decomposing-form: New file.
62503         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
62504         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
62506 2009-03-07  Bruno Haible  <bruno@clisp.org>
62508         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
62509         strings.
62511 2009-03-06  Bruno Haible  <bruno@clisp.org>
62513         Tests for module 'uninorm/u32-normcmp'.
62514         * tests/uninorm/test-u32-normcmp.c: New file.
62515         * modules/uninorm/u32-normcmp-tests: New file.
62517         Tests for module 'uninorm/u16-normcmp'.
62518         * tests/uninorm/test-u16-normcmp.c: New file.
62519         * modules/uninorm/u16-normcmp-tests: New file.
62521         Tests for module 'uninorm/u8-normcmp'.
62522         * tests/uninorm/test-u8-normcmp.c: New file.
62523         * modules/uninorm/u8-normcmp-tests: New file.
62525         New module 'uninorm/u32-normcmp'.
62526         * lib/uninorm/u32-normcmp.c: New file.
62527         * modules/uninorm/u32-normcmp: New file.
62529         New module 'uninorm/u16-normcmp'.
62530         * lib/uninorm/u16-normcmp.c: New file.
62531         * modules/uninorm/u16-normcmp: New file.
62533         New module 'uninorm/u8-normcmp'.
62534         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
62535         declarations.
62536         * lib/uninorm/u8-normcmp.c: New file.
62537         * lib/uninorm/u-normcmp.h: New file.
62538         * modules/uninorm/u8-normcmp: New file.
62540 2009-03-06  Bruno Haible  <bruno@clisp.org>
62542         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
62543         Reported by Eric Blake.
62545 2009-03-06  Eric Blake  <ebb9@byu.net>
62546             Bruno Haible  <bruno@clisp.org>
62548         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
62549         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
62550         condition.
62551         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
62552         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
62553         condition.
62554         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
62556 2009-03-06  Eric Blake  <ebb9@byu.net>
62558         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
62559         to avoid compiler warnings.
62560         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
62562 2009-03-05  Bruno Haible  <bruno@clisp.org>
62564         * tests/test-ftell.c (main): Disable test beyond end of file on
62565         FreeMiNT.
62566         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
62568 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
62570         * lib/filevercmp.c: Move hidden files up in ordering.
62571         * tests/test-filevercmp.c: Add tests for hidden files.
62573 2009-03-04  Bruno Haible  <bruno@clisp.org>
62575         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
62576         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
62577         AM_CFLAGS.
62578         Reported by Simon Josefsson.
62580 2009-03-03  Bruno Haible  <bruno@clisp.org>
62582         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
62583         Reported by Simon Josefsson.
62585         * doc/ld-version-script.texi: Update node reference.
62587 2009-03-03  Bruno Haible  <bruno@clisp.org>
62589         * modules/visibility (License): Change to 'unlimited'.
62590         Suggested by Simon Josefsson.
62592 2009-03-03  Jim Meyering  <meyering@redhat.com>
62594         unlinkdir: cannot_unlink_dir may modify process state
62595         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
62596         it's neither thread-safe nor appropriate for use in a library.
62598 2009-03-03  Eric Blake  <ebb9@byu.net>
62600         test-closein: silence test under Darwin
62601         * tests/test-closein.sh: Ignore stderr from cat, since we don't
62602         care if it dies from EPIPE or EBADF.
62604 2009-03-03  Bruno Haible  <bruno@clisp.org>
62606         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
62607         earlier.
62608         * doc/visibility.texi: Fix @node and @section.
62610 2009-03-03  Simon Josefsson  <simon@josefsson.org>
62612         * doc/gnulib.texi: Link to sections for ld version script and
62613         visibility.
62614         * doc/visibility.texi: Add @node and @section.
62615         * modules/ld-version-script: New module.
62616         * m4/ld-version-script.m4: New file.
62617         * doc/ld-version-script.texi: New file.
62619 2009-03-02  David Lutterkort  <lutter@redhat.com>
62621         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
62622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62624 2009-03-02  Bruno Haible  <bruno@clisp.org>
62626         * doc/visibility.texi: Mention libtool's -export-symbols option.
62628 2009-03-02  Jim Meyering  <meyering@redhat.com>
62630         announce-gen: new option: --no-print-checksums
62631         * build-aux/announce-gen (usage): Describe it.
62632         (print_checksums): Print a newline here, not in the [*] footnote.
62633         (main): Honor it.
62635 2009-03-01  Bruno Haible  <bruno@clisp.org>
62637         Use socklen_t in the native Windows replacements prototypes.
62638         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
62639         instead of 'int'.
62640         * lib/getsockopt.c (rpl_getsockopt): Likewise.
62641         * lib/setsockopt.c (rpl_setsockopt): Likewise.
62642         * modules/getsockopt (Depends-on): Add socklen.
62643         * modules/setsockopt (Depends-on): Add socklen.
62645 2009-03-01  Bruno Haible  <bruno@clisp.org>
62647         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
62648         least 4.2.
62650 2009-03-01  Eric Blake  <ebb9@byu.net>
62651             Bruno Haible  <bruno@clisp.org>
62653         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
62654         error messages.
62655         * lib/wait-process.c (wait_subprocess): Omit error message about
62656         deadly signal sent to the child of termsigp != NULL.
62658 2009-03-01  Eric Blake  <ebb9@byu.net>
62660         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
62662 2009-03-01  Bruno Haible  <bruno@clisp.org>
62664         Avoid a gcc warning.
62665         * tests/test-sched.c (b): Make global.
62666         Reported by Eric Blake.
62668 2009-01-19  Martin Lambers  <marlam@marlam.de>
62670         Provide POSIX semantics for socket timeout options on W32.
62671         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
62672         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
62673         * modules/setsockopt: Depend on sys_time module for struct timeval.
62674         * modules/getsockopt: Depend on sys_time module for struct timeval.
62676 2009-03-01  Simon Josefsson  <simon@josefsson.org>
62678         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
62679         __USE_GNU, for consistency with netdb.in.h.
62680         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62682 2009-03-01  Bruno Haible  <bruno@clisp.org>
62684         More support for FreeMiNT.
62685         * lib/fseeko.c (rpl_fseeko): Complete last commit.
62686         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62688 2009-03-01  Bruno Haible  <bruno@clisp.org>
62690         More support for FreeMiNT.
62691         * lib/fpurge.c (fpurge): Correct last commit.
62692         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62694 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62696         Fix unportable awk script in vc-list-files.
62697         * build-aux/vc-list-files: In the replacement awk script, use
62698         substr with a second argument of 1, not zero.
62699         Report by Simon Josefsson.
62701 2009-02-28  Bruno Haible  <bruno@clisp.org>
62703         More support for FreeMiNT.
62704         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
62705         to FreeMiNT today.
62706         * lib/fwriting.c (fwriting): Likewise.
62707         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
62709 2009-02-28  Bruno Haible  <bruno@clisp.org>
62711         * tests/test-freadseek.c (main): Disable test beyond end of file on
62712         FreeMiNT.
62713         * tests/test-ftello.c (main): Likewise.
62714         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
62716 2009-02-28  Bruno Haible  <bruno@clisp.org>
62718         Add tentative support for FreeMiNT.
62719         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
62720         * lib/fpurge.c (fpurge): Likewise.
62721         * lib/freadable.c (freadable): Likewise.
62722         * lib/freading.c (freading): Likewise.
62723         * lib/freadptr.c (freadptr): Likewise.
62724         * lib/freadseek.c (freadptrinc): Likewise.
62725         * lib/fseeko.c (rpl_fseeko): Likewise.
62726         * lib/fseterr.c (fseterr): Likewise.
62727         * lib/fwritable.c (fwritable): Likewise.
62728         * lib/fwriting.c (fwriting): Likewise.
62729         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
62730         Hourihane.
62731         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62733 2009-02-28  Bruno Haible  <bruno@clisp.org>
62735         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
62736         SIGCHLD.
62737         Reported by Jim Meyering.
62739 2009-02-28  Bruno Haible  <bruno@clisp.org>
62741         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
62742         Mention the results of these tests on various platforms.
62743         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
62744         order.
62745         * doc/posix-functions/printf.texi: Likewise.
62746         * doc/posix-functions/snprintf.texi: Likewise.
62747         * doc/posix-functions/sprintf.texi: Likewise.
62748         * doc/posix-functions/vfprintf.texi: Likewise.
62749         * doc/posix-functions/vprintf.texi: Likewise.
62750         * doc/posix-functions/vsnprintf.texi: Likewise.
62751         * doc/posix-functions/vsprintf.texi: Likewise.
62752         * doc/glibc-functions/obstack_printf.texi: Likewise.
62753         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
62755 2009-02-28  Bruno Haible  <bruno@clisp.org>
62757         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
62758         Reported by Loïc Minier <lool@dooz.org>.
62760 2009-02-27  Bruno Haible  <bruno@clisp.org>
62762         * gnulib-tool (func_import): Make the sed expression used to create the
62763         sed script for updating the .gitignore file POSIX compliant.
62764         Reported by Eric Blake.
62766 2009-02-27  Bruno Haible  <bruno@clisp.org>
62768         * gnulib-tool (sed): Don't alias as "sed --posix".
62769         Reported by Eric Blake.
62771 2009-02-27  Bruno Haible  <bruno@clisp.org>
62773         Avoid test link errors.
62774         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
62775         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
62776         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
62777         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
62778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62780 2009-02-27  Bruno Haible  <bruno@clisp.org>
62782         Avoid spurious "(cached)" in configure output.
62783         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
62784         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
62785         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62786         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62787         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62788         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
62789         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62790         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
62791         Reported by Eric Blake.
62793 2009-02-27  Eric Blake  <ebb9@byu.net>
62795         printf: fix regression in previous patch
62796         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
62798 2009-02-27  Bruno Haible  <bruno@clisp.org>
62800         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
62801         value.
62802         * lib/stdint.in.h: Likewise.
62803         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
62805 2009-02-27  Eric Blake  <ebb9@byu.net>
62807         doc: mention more functions added in cygwin 1.7.0
62808         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
62809         addition.
62810         * doc/posix-functions/open_wmemstream.texi: Likewise.
62811         * doc/posix-functions/wcsnlen.texi: Likewise.
62812         * doc/posix-functions/wcsnrtombs.texi: Likewise.
62813         * doc/posix-functions/wcstod.texi: Likewise.
62814         * doc/posix-functions/wcstof.texi: Likewise.
62815         * doc/posix-functions/wcstoimax.texi: Likewise.
62816         * doc/posix-functions/wcstok.texi: Likewise.
62817         * doc/posix-functions/wcstoumax.texi: Likewise.
62819         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
62820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
62821         * doc/posix-functions/fprintf.texi: Update.
62822         * doc/posix-functions/printf.texi: Update.
62823         * doc/posix-functions/snprintf.texi: Update.
62824         * doc/posix-functions/sprintf.texi: Update.
62825         * doc/posix-functions/vfprintf.texi: Update.
62826         * doc/posix-functions/vprintf.texi: Update.
62827         * doc/posix-functions/vsnprintf.texi: Update.
62828         * doc/posix-functions/vsprintf.texi: Update.
62829         * doc/glibc-functions/obstack_printf.texi: Update.
62830         * doc/glibc-functions/obstack_vprintf.texi: Update.
62832 2009-02-26  Eric Blake  <ebb9@byu.net>
62834         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
62835         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
62836         compilation bug by using runtime conversion.
62837         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
62838         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
62839         * modules/ceill-tests (Files): Use nan.h.
62840         * modules/floorl-tests (Files): Likewise.
62841         * modules/frexpl-tests (Files): Likewise.
62842         * modules/isnanl-tests (Files): Likewise.
62843         * modules/ldexpl-tests (Files): Likewise.
62844         * modules/roundl-tests (Files): Likewise.
62845         * modules/truncl-tests (Files): Likewise.
62846         * tests/test-ceill.c (main): Use a working NaN.
62847         * tests/test-floorl.c (main): Likewise.
62848         * tests/test-frexpl.c (main): Likewise.
62849         * tests/test-isnan.c (test_long_double): Likewise.
62850         * tests/test-isnanl.h (main): Likewise.
62851         * tests/test-ldexpl.h (main): Likewise.
62852         * tests/test-roundl.h (main): Likewise.
62853         * tests/test-truncl.h (main): Likewise.
62854         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
62856 2009-02-26  Eric Blake  <ebb9@byu.net>
62857             Bruno Haible  <bruno@clisp.org>
62859         Work around a *printf bug with %ls on Solaris.
62860         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
62861         precision is specified, sprintf stops converting the wide string
62862         argument when the number of bytes that have been produced by this
62863         conversion equals or exceeds the precision.
62864         * doc/posix-functions/fprintf.texi: Update.
62865         * doc/posix-functions/printf.texi: Update.
62866         * doc/posix-functions/snprintf.texi: Update.
62867         * doc/posix-functions/sprintf.texi: Update.
62868         * doc/posix-functions/vfprintf.texi: Update.
62869         * doc/posix-functions/vprintf.texi: Update.
62870         * doc/posix-functions/vsnprintf.texi: Update.
62871         * doc/posix-functions/vsprintf.texi: Update.
62872         * doc/glibc-functions/obstack_printf.texi: Update.
62873         * doc/glibc-functions/obstack_vprintf.texi: Update.
62875 2009-02-26  Eric Blake  <ebb9@byu.net>
62877         stdlib: favor compiler check of random.h
62878         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
62879         to avoid an ObjC random.h installed by Swarm.
62881 2009-02-26  Bruno Haible  <bruno@clisp.org>
62883         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
62884         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
62885         Reported by Gary V. Vaughan <gary@gnu.org>.
62887 2009-02-26  Bruno Haible  <bruno@clisp.org>
62889         Fix *printf behaviour regarding the %ls directive.
62890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
62891         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
62892         NEED_PRINTF_DIRECTIVE_LS.
62893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
62894         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62895         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62896         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
62897         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
62898         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
62899         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
62900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62901         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62902         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62903         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62904         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
62905         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62907         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62908         * doc/posix-functions/fprintf.texi: Update.
62909         * doc/posix-functions/printf.texi: Update.
62910         * doc/posix-functions/snprintf.texi: Update.
62911         * doc/posix-functions/sprintf.texi: Update.
62912         * doc/posix-functions/vfprintf.texi: Update.
62913         * doc/posix-functions/vprintf.texi: Update.
62914         * doc/posix-functions/vsnprintf.texi: Update.
62915         * doc/posix-functions/vsprintf.texi: Update.
62916         * doc/glibc-functions/obstack_printf.texi: Update.
62917         * doc/glibc-functions/obstack_vprintf.texi: Update.
62918         Reported by Eric Blake.
62920 2009-02-25  Bruno Haible  <bruno@clisp.org>
62922         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
62923         with known value.
62924         Reported by Gary V. Vaughan <gary@gnu.org>.
62926 2009-02-25  Bruno Haible  <bruno@clisp.org>
62928         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
62929         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
62930         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
62931         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
62932         Reported by Gary V. Vaughan <gary@gnu.org>.
62934 2009-02-25  Bruno Haible  <bruno@clisp.org>
62936         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
62937         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
62938         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
62939         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
62940         Reported by Gary V. Vaughan <gary@gnu.org>.
62942 2009-02-25  Eric Blake  <ebb9@byu.net>
62944         tests: skip fseek/ftell tests if ungetc is broken
62945         * m4/ungetc.m4: New file.
62946         * modules/fseek-tests: Split test, so ungetc dependency is
62947         separate from rest of test.
62948         * modules/fseeko-tests: Likewise.
62949         * modules/ftell-tests: Likewise.
62950         * modules/ftello-tests: Likewise.
62951         * tests/test-fseek.c (main): Isolate ungetc dependency.
62952         * tests/test-fseeko.c (main): Likewise.
62953         * tests/test-ftell.c (main): Likewise.
62954         * tests/test-ftello.c (main): Likewise.
62955         * tests/test-fseek2.sh: New file.
62956         * tests/test-fseeko2.sh: Likewise.
62957         * tests/test-ftell2.sh: Likewise.
62958         * tests/test-ftello2.sh: Likewise.
62960 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
62962         test-getaddrinfo: fix usage of skip return code 77
62963         * tests/test-gettaddrinfo.c: Return skip code 77 only
62964         for first occurrence of skip (4x77 is not 77)
62966 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
62968         strtod: avoid C99 decl-after-statement
62969         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
62971 2009-02-24  Eric Blake  <ebb9@byu.net>
62973         strtod: detect HP-UX 11.31 bug
62974         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
62975         Reported by Gary V. Vaughan.
62977 2009-02-23  Bruno Haible  <bruno@clisp.org>
62979         Fix invalid read past end of memory block.
62980         * lib/vasnprintf.c (DCHAR_SET): Define.
62981         (local_wcslen): Define only when needed.
62982         (local_strnlen, local_wcsnlen): New functions.
62983         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
62984         directives that involve a conversion ourselves.
62985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
62986         wcsnlen, mbrtowc, wcrtomb.
62987         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
62988         * tests/test-vasprintf-posix.c (test_function): Likewise.
62989         * tests/test-snprintf-posix.h (test_function): Likewise.
62990         * tests/test-sprintf-posix.h (test_function): Likewise.
62991         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62993 2009-02-22  Bruno Haible  <bruno@clisp.org>
62995         Implement new clarified decomposition of Hangul syllables.
62996         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
62997         of type LTV, return only a pairwise decomposition.
62998         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
62999         Likewise.
63000         * tests/uninorm/test-decomposition.c (main): Updated expected result.
63001         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
63002         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
63004 2009-02-22  Bruno Haible  <bruno@clisp.org>
63006         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
63007         zero-length results and shrink excess allocated memory.
63008         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
63009         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
63010         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
63011         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
63012         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
63013         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
63014         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
63015         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
63016         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
63017         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
63018         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
63019         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
63021 2009-02-21  Bruno Haible  <bruno@clisp.org>
63023         * doc/gnulib.texi: Include safe-alloc.texi earlier.
63024         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
63025         spaces after a period. Put a space between a macro name and its
63026         argument list. Trivial rewordings.
63027         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
63028         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
63029         (main): Return 0 explicitly.
63031 2009-02-21  Bruno Haible  <bruno@clisp.org>
63033         Tests for module 'uninorm/filter'.
63034         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
63035         * modules/uninorm/filter-tests: New file.
63037         New module 'uninorm/filter'.
63038         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
63039         uninorm_filter_flush, uninorm_filter_free): New declarations.
63040         * lib/uninorm/uninorm-filter.c: New file.
63041         * modules/uninorm/filter: New file.
63043 2009-02-21  Bruno Haible  <bruno@clisp.org>
63045         Tests for module 'uninorm/nfkc'.
63046         * tests/uninorm/test-nfkc.c: New file.
63047         * tests/uninorm/test-u8-nfkc.c: New file.
63048         * tests/uninorm/test-u16-nfkc.c: New file.
63049         * tests/uninorm/test-u32-nfkc.c: New file.
63050         * tests/uninorm/test-u32-nfkc-big.sh: New file.
63051         * tests/uninorm/test-u32-nfkc-big.c: New file.
63052         * modules/uninorm/nfkc-tests: New file.
63054         New module 'uninorm/nfkc'.
63055         * lib/uninorm/nfkc.c: New file.
63056         * modules/uninorm/nfkc: New file.
63058         Tests for module 'uninorm/nfkd'.
63059         * tests/uninorm/test-nfkd.c: New file.
63060         * tests/uninorm/test-u8-nfkd.c: New file.
63061         * tests/uninorm/test-u16-nfkd.c: New file.
63062         * tests/uninorm/test-u32-nfkd.c: New file.
63063         * tests/uninorm/test-u32-nfkd-big.sh: New file.
63064         * tests/uninorm/test-u32-nfkd-big.c: New file.
63065         * modules/uninorm/nfkd-tests: New file.
63067         New module 'uninorm/nfkd'.
63068         * lib/uninorm/nfkd.c: New file.
63069         * modules/uninorm/nfkd: New file.
63071         Tests for module 'uninorm/nfc'.
63072         * tests/uninorm/test-nfc.c: New file.
63073         * tests/uninorm/test-u8-nfc.c: New file.
63074         * tests/uninorm/test-u16-nfc.c: New file.
63075         * tests/uninorm/test-u32-nfc.c: New file.
63076         * tests/uninorm/test-u32-nfc-big.sh: New file.
63077         * tests/uninorm/test-u32-nfc-big.c: New file.
63078         * modules/uninorm/nfc-tests: New file.
63080         New module 'uninorm/nfc'.
63081         * lib/uninorm/nfc.c: New file.
63082         * modules/uninorm/nfc: New file.
63084         Tests for module 'uninorm/nfd'.
63085         * tests/uninorm/test-nfd.c: New file.
63086         * tests/uninorm/test-u8-nfd.c: New file.
63087         * tests/uninorm/test-u16-nfd.c: New file.
63088         * tests/uninorm/test-u32-nfd.c: New file.
63089         * tests/uninorm/test-u32-nfd-big.sh: New file.
63090         * tests/uninorm/test-u32-nfd-big.c: New file.
63091         * tests/uninorm/test-u32-normalize-big.h: New file.
63092         * tests/uninorm/test-u32-normalize-big.c: New file.
63093         * tests/uninorm/NormalizationTest.txt: New file, created from
63094         Unicode 5.1.0 NormalizationTest.txt.
63095         * modules/uninorm/nfd-tests: New file.
63097         New module 'uninorm/nfd'.
63098         * lib/uninorm/nfd.c: New file.
63099         * modules/uninorm/nfd: New file.
63101         New module 'uninorm/u32-normalize'.
63102         * lib/uninorm/u32-normalize.c: New file.
63103         * modules/uninorm/u32-normalize: New file.
63105         New module 'uninorm/u16-normalize'.
63106         * lib/uninorm/u16-normalize.c: New file.
63107         * modules/uninorm/u16-normalize: New file.
63109         New module 'uninorm/u8-normalize'.
63110         * lib/uninorm/u8-normalize.c: New file.
63111         * lib/uninorm/normalize-internal.h: New file.
63112         * lib/uninorm/u-normalize-internal.h: New file.
63113         * modules/uninorm/u8-normalize: New file.
63115         New module 'uninorm/decompose-internal'.
63116         * lib/uninorm/decompose-internal.c: New file.
63117         * modules/uninorm/decompose-internal: New file.
63119         Tests for module 'uninorm/composition'.
63120         * tests/uninorm/test-composition.c: New file.
63121         * modules/uninorm/composition-tests: New file.
63123         New module 'uninorm/composition'.
63124         * lib/uninorm/composition.c: New file.
63125         * lib/uninorm/composition-table.gperf: New file, generated by
63126         gen-uni-tables.
63127         * modules/uninorm/composition: New file.
63129         Tests for module 'uninorm/compat-decomposition'.
63130         * tests/uninorm/test-compat-decomposition.c: New file.
63131         * modules/uninorm/compat-decomposition-tests: New file.
63133         New module 'uninorm/compat-decomposition'.
63134         * lib/uninorm/decompose-internal.h: New file.
63135         * lib/uninorm/compat-decomposition.c: New file.
63136         * modules/uninorm/compat-decomposition: New file.
63138         Tests for module 'uninorm/canonical-decomposition'.
63139         * tests/uninorm/test-canonical-decomposition.c: New file.
63140         * modules/uninorm/canonical-decomposition-tests: New file.
63142         New module 'uninorm/canonical-decomposition'.
63143         * lib/uninorm/canonical-decomposition.c: New file.
63144         * modules/uninorm/canonical-decomposition: New file.
63146         Tests for module 'uninorm/decomposition'.
63147         * tests/uninorm/test-decomposition.c: New file.
63148         * modules/uninorm/decomposition-tests: New file.
63150         New module 'uninorm/decomposition'.
63151         * lib/uninorm/decomposition.c: New file.
63152         * modules/uninorm/decomposition: New file.
63154         New module 'uninorm/decomposition-table'.
63155         * lib/uninorm/decomposition-table.h: New file.
63156         * lib/uninorm/decomposition-table.c: New file.
63157         * lib/uninorm/decomposition-table1.h: New file, generated by
63158         gen-uni-tables.
63159         * lib/uninorm/decomposition-table2.h: New file, generated by
63160         gen-uni-tables.
63161         * modules/uninorm/decomposition-table: New file.
63163         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
63164         (UC_DECOMP_*): New enumeration items.
63165         (get_decomposition): New function.
63166         (struct decomp_table): New type.
63167         (output_decomposition, output_decomposition_tables): New functions.
63168         (unicode_composition_exclusions): New variable.
63169         (fill_composition_exclusions, debug_output_composition_tables): New
63170         functions.
63171         (main): Accept one more argument. Invoke fill_composition_exclusions.
63172         Output decomposition and composition tables.
63174         New module 'uninorm/base'.
63175         * lib/uninorm.h: New file.
63176         * lib/unictype.h: Update comment.
63177         * modules/uninorm/base: New file.
63179 2009-02-21  David Lutterkort  <lutter@redhat.com>
63181         Tests for module 'safe-alloc'.
63182         * tests/test-safe-alloc.c: New file.
63183         * modules/safe-alloc-tests: New file.
63185         New module 'safe-alloc'.
63186         * lib/safe-alloc.h: New file.
63187         * lib/safe-alloc.c: New file.
63188         * m4/safe-alloc.m4: New file.
63189         * modules/safe-alloc: New file.
63190         * doc/safe-alloc.texi: New file.
63191         * doc/gnulib.texi: Include it.
63192         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
63193         safe-alloc.
63195 2009-02-18  Bruno Haible  <bruno@clisp.org>
63197         Fix link error on non-glibc systems.
63198         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
63199         variable.
63200         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63202 2009-02-18  Jim Meyering  <meyering@redhat.com>
63204         fts: avoid used-uninitialized error due to recent change
63205         * lib/fts.c (fts_read): Guard uses of the new member,
63206         parent->fts_n_dirs_remaining, since it's not relevant for
63207         the parent of a directory specified on the command-line.
63209 2009-02-17  James Youngman  <jay@gnu.org>
63210             Bruno Haible  <bruno@clisp.org>
63212         * m4/include_next.m4: Reformulate comment.
63214 2009-02-16  Jim Meyering  <meyering@redhat.com>
63216         fts: add #if guards so that the fts_lgpl module still builds
63217         * lib/fts.c: Guard just-added hash-table-using parts with
63218         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
63219         Reported by Simon Josefsson.
63221 2009-02-15  Bruno Haible  <bruno@clisp.org>
63223         * modules/array-mergesort-tests: New file.
63224         * tests/test-array-mergesort.c: New file.
63226         New module 'array-mergesort'.
63227         * modules/array-mergesort: New file.
63228         * lib/array-mergesort.h: New file.
63230 2009-02-15  Bruno Haible  <bruno@clisp.org>
63232         Fix 2009-02-07 commit.
63233         * lib/gen-uni-tables.c (output_predicate, output_category,
63234         output_combclass, output_bidi_category, output_decimal_digit,
63235         output_digit, output_numeric, output_mirror, output_scripts,
63236         output_ident_category, output_simple_mapping): Fix format directives.
63237         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
63239 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
63241         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
63242         fixes are available from IBM.
63244 2009-02-13  Jim Meyering  <meyering@redhat.com>
63246         fts: arrange not to stat non-directories in more cases
63247         This makes GNU find (when it doesn't need to stat each file)
63248         *much* more efficient at traversing reiserfs file systems.
63249         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
63250         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
63251         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
63252         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
63253         (leaf_optimization_applies): New function.
63254         (LCO_hash, LCO_compare): New helper functions.
63255         (link_count_optimize_ok): New function.
63256         (fts_stat): Initialize new member (if dir).
63257         (fts_read): Decrement parent's fts_n_dirs_remaining count if
63258         we've just stat'ed a directory.  Skip the stat call when possible.
63259         ---
63260         Note this AFS-related exchange:
63261         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
63262         and note find's pioctl call in find/fstype.c.
63263         But that is necessary only if you want to enable the
63264         optimization for AFS, and for now, I don't.
63266         fts: move a function definition "up" (no semantic change)
63267         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
63268         "up" to precede upcoming use of a related function.
63270 2009-02-11  Jim Meyering  <meyering@redhat.com>
63272         fts: correct internal computation of nlinks (optimization-related)
63273         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
63274         whether the current entry is a directory, so don't test it.
63276 2009-02-10  Bruno Haible  <bruno@clisp.org>
63278         Tests for module 'uniwbrk/ulc-wordbreaks'.
63279         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
63280         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
63281         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
63283         Tests for module 'uniwbrk/u32-wordbreaks'.
63284         * modules/uniwbrk/u32-wordbreaks-tests: New file.
63285         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
63287         Tests for module 'uniwbrk/u16-wordbreaks'.
63288         * modules/uniwbrk/u16-wordbreaks-tests: New file.
63289         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
63291         Tests for module 'uniwbrk/u8-wordbreaks'.
63292         * modules/uniwbrk/u8-wordbreaks-tests: New file.
63293         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
63295 2009-02-10  Bruno Haible  <bruno@clisp.org>
63297         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
63298         property.
63299         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
63300         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
63301         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
63303 2009-02-10  Simon Josefsson  <simon@josefsson.org>
63305         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
63306         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
63308 2009-02-10  Bruno Haible  <bruno@clisp.org>
63310         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
63311         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
63312         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
63313         * lib/unilbrk/u8-possible-linebreaks.c: Update.
63314         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
63315         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
63317 2009-02-09  Simon Josefsson  <simon@josefsson.org>
63319         * lib/sockets.h (gl_fd_to_handle): New function.
63321         * tests/test-sockets.c: Call gl_fd_to_handle.
63323 2009-02-09  Bruno Haible  <bruno@clisp.org>
63325         * doc/havelib.texi: Document the conventions on bi-arch systems.
63327 2009-02-08  Bruno Haible  <bruno@clisp.org>
63329         Document the AC_LIB_LINKFLAGS macro.
63330         * doc/havelib.texi: New file, mostly written on 2005-05-24.
63331         * doc/gnulib.texi: Include it.
63333 2009-02-08  Bruno Haible  <bruno@clisp.org>
63335         Fix wrong order of sections, compared to TOC.
63336         * doc/gnulib.texi: Include relocatable-maint.texi after the
63337         "Regular expressions" node, not before.
63339 2009-02-08  Bruno Haible  <bruno@clisp.org>
63341         Tests for module 'unicase/totitle'.
63342         * modules/unicase/totitle-tests: New file.
63344         Tests for module 'unicase/tolower'.
63345         * modules/unicase/tolower-tests: New file.
63347         Tests for module 'unicase/toupper'.
63348         * modules/unicase/toupper-tests: New file.
63349         * tests/unicase/test-mapping-part1.h: New file.
63350         * tests/unicase/test-mapping-part2.h: New file.
63352         New module 'unicase/totitle'.
63353         * modules/unicase/totitle: New file.
63354         * lib/unicase/totitle.c: New file.
63356         New module 'unicase/tolower'.
63357         * modules/unicase/tolower: New file.
63358         * lib/unicase/tolower.c: New file.
63360         New module 'unicase/toupper'.
63361         * modules/unicase/toupper: New file.
63362         * lib/unicase/toupper.c: New file.
63363         * lib/unicase/simple-mapping.h: New file.
63365         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
63366         (mapping_table): New structure.
63367         (output_simple_mapping): New function.
63368         (main): Invoke output_simple_mapping_test and output_simple_mapping.
63369         * modules/gen-uni-tables (Description): Update.
63370         * lib/unicase/toupper.h: New file, automatically generated by
63371         gen-uni-tables.
63372         * lib/unicase/tolower.h: New file, automatically generated by
63373         gen-uni-tables.
63374         * lib/unicase/totitle.h: New file, automatically generated by
63375         gen-uni-tables.
63376         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
63377         gen-uni-tables.
63378         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
63379         gen-uni-tables.
63380         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
63381         gen-uni-tables.
63383         New module 'unicase/base'.
63384         * modules/unicase/base: New file.
63385         * lib/unicase.h: New file.
63387 2009-02-08  Bruno Haible  <bruno@clisp.org>
63389         New module 'uniwbrk/ulc-wordbreaks'.
63390         * modules/uniwbrk/ulc-wordbreaks: New file.
63391         * lib/uniwbrk/ulc-wordbreaks.c: New file.
63393         New module 'uniwbrk/u32-wordbreaks'.
63394         * modules/uniwbrk/u32-wordbreaks: New file.
63395         * lib/uniwbrk/u32-wordbreaks.c: New file.
63397         New module 'uniwbrk/u16-wordbreaks'.
63398         * modules/uniwbrk/u16-wordbreaks: New file.
63399         * lib/uniwbrk/u16-wordbreaks.c: New file.
63401         New module 'uniwbrk/u8-wordbreaks'.
63402         * modules/uniwbrk/u8-wordbreaks: New file.
63403         * lib/uniwbrk/u8-wordbreaks.c: New file.
63404         * lib/uniwbrk/u-wordbreaks.h: New file.
63406         New module 'uniwbrk/table'.
63407         * modules/uniwbrk/table: New file.
63408         * lib/uniwbrk/wbrktable.h: New file.
63409         * lib/uniwbrk/wbrktable.c: New file.
63411         New module 'uniwbrk/wordbreak-property'.
63412         * modules/uniwbrk/wordbreak-property: New file.
63413         * lib/uniwbrk/wordbreak-property.c: New file.
63415         * lib/gen-uni-tables.c (WBP_*): New enum items.
63416         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
63417         (unicode_org_wbp): New variable.
63418         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
63419         New functions.
63420         (wbp_table): New structure.
63421         (output_wbp, output_wbrk_tables): New functions.
63422         (main): Accept additional argument. Invoke fill_org_wbp,
63423         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
63424         output_wbrk_tables.
63425         * modules/gen-uni-tables (Description): Update.
63426         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
63427         gen-uni-tables.
63429         New module 'uniwbrk/base'.
63430         * modules/uniwbrk/base: New file.
63431         * lib/uniwbrk.h: New file.
63433 2009-02-08  Bruno Haible  <bruno@clisp.org>
63435         Update to Unicode 5.1.0.
63436         * lib/gen-uni-tables.c (is_property_alphabetic): Include
63437         U+2185..U+2188.
63438         (is_property_default_ignorable_code_point): Don't include characters
63439         of category Cc or Cs and not-a-characters.
63440         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
63441         U+0D79, U+109E, U+109F, U+A60C.
63442         * lib/unictype/bidi_of.h: Regenerated.
63443         * lib/unictype/blocks.h: Regenerated.
63444         * lib/unictype/categ_C.h: Regenerated.
63445         * lib/unictype/categ_Cf.h: Regenerated.
63446         * lib/unictype/categ_Cn.h: Regenerated.
63447         * lib/unictype/categ_L.h: Regenerated.
63448         * lib/unictype/categ_Ll.h: Regenerated.
63449         * lib/unictype/categ_Lm.h: Regenerated.
63450         * lib/unictype/categ_Lo.h: Regenerated.
63451         * lib/unictype/categ_Lu.h: Regenerated.
63452         * lib/unictype/categ_M.h: Regenerated.
63453         * lib/unictype/categ_Mc.h: Regenerated.
63454         * lib/unictype/categ_Me.h: Regenerated.
63455         * lib/unictype/categ_Mn.h: Regenerated.
63456         * lib/unictype/categ_N.h: Regenerated.
63457         * lib/unictype/categ_Nd.h: Regenerated.
63458         * lib/unictype/categ_Nl.h: Regenerated.
63459         * lib/unictype/categ_No.h: Regenerated.
63460         * lib/unictype/categ_P.h: Regenerated.
63461         * lib/unictype/categ_Pd.h: Regenerated.
63462         * lib/unictype/categ_Pe.h: Regenerated.
63463         * lib/unictype/categ_Pf.h: Regenerated.
63464         * lib/unictype/categ_Pi.h: Regenerated.
63465         * lib/unictype/categ_Po.h: Regenerated.
63466         * lib/unictype/categ_Ps.h: Regenerated.
63467         * lib/unictype/categ_S.h: Regenerated.
63468         * lib/unictype/categ_Sk.h: Regenerated.
63469         * lib/unictype/categ_Sm.h: Regenerated.
63470         * lib/unictype/categ_So.h: Regenerated.
63471         * lib/unictype/categ_of.h: Regenerated.
63472         * lib/unictype/combining.h: Regenerated.
63473         * lib/unictype/ctype_alnum.h: Regenerated.
63474         * lib/unictype/ctype_alpha.h: Regenerated.
63475         * lib/unictype/ctype_graph.h: Regenerated.
63476         * lib/unictype/ctype_lower.h: Regenerated.
63477         * lib/unictype/ctype_print.h: Regenerated.
63478         * lib/unictype/ctype_punct.h: Regenerated.
63479         * lib/unictype/ctype_upper.h: Regenerated.
63480         * lib/unictype/decdigit.h: Regenerated.
63481         * lib/unictype/digit.h: Regenerated.
63482         * lib/unictype/mirror.h: Regenerated.
63483         * lib/unictype/numeric.h: Regenerated.
63484         * lib/unictype/pr_alphabetic.h: Regenerated.
63485         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
63486         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
63487         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
63488         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
63489         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
63490         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
63491         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
63492         * lib/unictype/pr_combining.h: Regenerated.
63493         * lib/unictype/pr_dash.h: Regenerated.
63494         * lib/unictype/pr_decimal_digit.h: Regenerated.
63495         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
63496         * lib/unictype/pr_deprecated.h: Regenerated.
63497         * lib/unictype/pr_diacritic.h: Regenerated.
63498         * lib/unictype/pr_extender.h: Regenerated.
63499         * lib/unictype/pr_format_control.h: Regenerated.
63500         * lib/unictype/pr_grapheme_base.h: Regenerated.
63501         * lib/unictype/pr_grapheme_extend.h: Regenerated.
63502         * lib/unictype/pr_grapheme_link.h: Regenerated.
63503         * lib/unictype/pr_id_continue.h: Regenerated.
63504         * lib/unictype/pr_id_start.h: Regenerated.
63505         * lib/unictype/pr_ideographic.h: Regenerated.
63506         * lib/unictype/pr_ignorable_control.h: Regenerated.
63507         * lib/unictype/pr_lowercase.h: Regenerated.
63508         * lib/unictype/pr_math.h: Regenerated.
63509         * lib/unictype/pr_numeric.h: Regenerated.
63510         * lib/unictype/pr_other_alphabetic.h: Regenerated.
63511         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
63512         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
63513         * lib/unictype/pr_other_id_continue.h: Regenerated.
63514         * lib/unictype/pr_other_lowercase.h: Regenerated.
63515         * lib/unictype/pr_other_math.h: Regenerated.
63516         * lib/unictype/pr_punctuation.h: Regenerated.
63517         * lib/unictype/pr_sentence_terminal.h: Regenerated.
63518         * lib/unictype/pr_soft_dotted.h: Regenerated.
63519         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
63520         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
63521         * lib/unictype/pr_unified_ideograph.h: Regenerated.
63522         * lib/unictype/pr_uppercase.h: Regenerated.
63523         * lib/unictype/pr_xid_continue.h: Regenerated.
63524         * lib/unictype/pr_xid_start.h: Regenerated.
63525         * lib/unictype/pr_zero_width.h: Regenerated.
63526         * lib/unictype/scripts.h: Regenerated.
63527         * lib/unictype/scripts_byname.gperf: Regenerated.
63528         * lib/unictype/sy_java_ident.h: Regenerated.
63529         * lib/unilbrk/lbrkprop1.h: Regenerated.
63530         * lib/unilbrk/lbrkprop2.h: Regenerated.
63531         * tests/unictype/test-categ_C.c: Regenerated.
63532         * tests/unictype/test-categ_Cf.c: Regenerated.
63533         * tests/unictype/test-categ_Cn.c: Regenerated.
63534         * tests/unictype/test-categ_L.c: Regenerated.
63535         * tests/unictype/test-categ_Ll.c: Regenerated.
63536         * tests/unictype/test-categ_Lm.c: Regenerated.
63537         * tests/unictype/test-categ_Lo.c: Regenerated.
63538         * tests/unictype/test-categ_Lu.c: Regenerated.
63539         * tests/unictype/test-categ_M.c: Regenerated.
63540         * tests/unictype/test-categ_Mc.c: Regenerated.
63541         * tests/unictype/test-categ_Me.c: Regenerated.
63542         * tests/unictype/test-categ_Mn.c: Regenerated.
63543         * tests/unictype/test-categ_N.c: Regenerated.
63544         * tests/unictype/test-categ_Nd.c: Regenerated.
63545         * tests/unictype/test-categ_Nl.c: Regenerated.
63546         * tests/unictype/test-categ_No.c: Regenerated.
63547         * tests/unictype/test-categ_P.c: Regenerated.
63548         * tests/unictype/test-categ_Pd.c: Regenerated.
63549         * tests/unictype/test-categ_Pe.c: Regenerated.
63550         * tests/unictype/test-categ_Pf.c: Regenerated.
63551         * tests/unictype/test-categ_Pi.c: Regenerated.
63552         * tests/unictype/test-categ_Po.c: Regenerated.
63553         * tests/unictype/test-categ_Ps.c: Regenerated.
63554         * tests/unictype/test-categ_S.c: Regenerated.
63555         * tests/unictype/test-categ_Sk.c: Regenerated.
63556         * tests/unictype/test-categ_Sm.c: Regenerated.
63557         * tests/unictype/test-categ_So.c: Regenerated.
63558         * tests/unictype/test-ctype_alnum.c: Regenerated.
63559         * tests/unictype/test-ctype_alpha.c: Regenerated.
63560         * tests/unictype/test-ctype_graph.c: Regenerated.
63561         * tests/unictype/test-ctype_lower.c: Regenerated.
63562         * tests/unictype/test-ctype_print.c: Regenerated.
63563         * tests/unictype/test-ctype_punct.c: Regenerated.
63564         * tests/unictype/test-ctype_upper.c: Regenerated.
63565         * tests/unictype/test-decdigit.h: Regenerated.
63566         * tests/unictype/test-digit.h: Regenerated.
63567         * tests/unictype/test-numeric.h: Regenerated.
63568         * tests/unictype/test-pr_alphabetic.c: Regenerated.
63569         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
63570         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
63571         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
63572         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
63573         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
63574         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
63575         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
63576         * tests/unictype/test-pr_combining.c: Regenerated.
63577         * tests/unictype/test-pr_dash.c: Regenerated.
63578         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
63579         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
63580         * tests/unictype/test-pr_deprecated.c: Regenerated.
63581         * tests/unictype/test-pr_diacritic.c: Regenerated.
63582         * tests/unictype/test-pr_extender.c: Regenerated.
63583         * tests/unictype/test-pr_format_control.c: Regenerated.
63584         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
63585         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
63586         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
63587         * tests/unictype/test-pr_id_continue.c: Regenerated.
63588         * tests/unictype/test-pr_id_start.c: Regenerated.
63589         * tests/unictype/test-pr_ideographic.c: Regenerated.
63590         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
63591         * tests/unictype/test-pr_lowercase.c: Regenerated.
63592         * tests/unictype/test-pr_math.c: Regenerated.
63593         * tests/unictype/test-pr_numeric.c: Regenerated.
63594         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
63595         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
63596         Regenerated.
63597         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
63598         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
63599         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
63600         * tests/unictype/test-pr_other_math.c: Regenerated.
63601         * tests/unictype/test-pr_punctuation.c: Regenerated.
63602         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
63603         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
63604         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
63605         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
63606         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
63607         * tests/unictype/test-pr_uppercase.c: Regenerated.
63608         * tests/unictype/test-pr_xid_continue.c: Regenerated.
63609         * tests/unictype/test-pr_xid_start.c: Regenerated.
63610         * tests/unictype/test-pr_zero_width.c: Regenerated.
63612         Update to Unicode 5.1.0.
63613         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
63614         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
63615         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
63616         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
63617         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
63618         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
63619         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
63620         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
63621         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
63622         (nonspacing_table_ind): Update.
63623         * tests/uniwidth/test-uc_width2.sh: Update expected result.
63625         Update to Unicode 5.1.0.
63626         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
63627         code transform.
63628         * lib/uniname/uniname.c (unicode_character_name,
63629         unicode_name_character): Add the range 0x1Fxxx to the code transform.
63630         * lib/uniname/uninames.h: Regenerated.
63631         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
63633 2009-02-07  Bruno Haible  <bruno@clisp.org>
63635         Merge gen-ctype and gen-lbrk into a single program.
63636         * lib/gen-uni-tables.c: New file, incorporating
63637         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
63638         Add directory prefixes to the names of the generated files.
63639         * lib/unictype/gen-ctype.c: Remove file.
63640         * lib/unilbrk/gen-lbrk.c: Remove file.
63641         * modules/gen-uni-tables: New file.
63642         * modules/unictype/gen-ctype: Remove file.
63643         * modules/unilbrk/gen-lbrk: Remove file.
63645 2009-02-07  Bruno Haible  <bruno@clisp.org>
63647         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
63649         New module 'unistr/u32-strcoll'.
63650         * modules/unistr/u32-strcoll: New file.
63651         * lib/unistr/u32-strcoll.c: New file.
63653         New module 'unistr/u16-strcoll'.
63654         * modules/unistr/u16-strcoll: New file.
63655         * lib/unistr/u16-strcoll.c: New file.
63657         New module 'unistr/u8-strcoll'.
63658         * modules/unistr/u8-strcoll: New file.
63659         * lib/unistr/u8-strcoll.c: New file.
63660         * lib/unistr/u-strcoll.h: New file.
63662 2009-02-07  Bruno Haible  <bruno@clisp.org>
63664         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
63665         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
63666         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
63667         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
63668         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
63669         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
63671 2009-02-07  Bruno Haible  <bruno@clisp.org>
63673         Make 64-bit clean.
63674         * lib/unictype/gen-ctype.c (output_predicate, output_category,
63675         output_combclass, output_bidi_category, output_decimal_digit,
63676         output_digit, output_numeric, output_mirror, output_scripts,
63677         output_ident_category): Use proper width specifier in format strings.
63679 2009-02-07  Bruno Haible  <bruno@clisp.org>
63681         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
63682         failure behaviour.
63684 2009-02-07  Jim Meyering  <meyering@redhat.com>
63686         regex: avoid compilation failure with upcoming gcc-4.4
63687         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
63688         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
63689         "... error: integer overflow in preprocessor expression".
63691 2009-02-05  Ben Pfaff  <blp@gnu.org>
63693         Fix link errors on Windows when close module is used.
63694         * modules/close: Add $(LIB_CLOSE) to Link section.
63695         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
63696         $(LIB_CLOSE) on Windows.
63698 2009-02-05  Jim Meyering  <meyering@redhat.com>
63700         still avoid unused-parameter warnings, but do it cleanly
63701         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
63702         (get_fs_usage): Cast to void instead.
63703         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
63704         (dev_from_mount_options, read_file_system_list): Cast to void.
63705         Prompted by Bruno Haible.
63707 2009-02-04  Jim Meyering  <meyering@redhat.com>
63709         fsusage.c: correct copyright year
63710         * lib/fsusage.c: Reflect year in which the change is pushed into
63712         avoid misc. warnings
63713         * lib/fsusage.c (UNUSED_PARAM): Define.
63714         (get_fs_usage): Mark parameter "disk" as unused.
63715         * lib/getugroups.c (getgrent): Use "void" in prototype.
63716         * lib/mountlist.c: Mark unused parameters.
63717         (read_file_system_list): Declare a local with "const".
63718         * lib/nanosleep.c (getnow): Declare static.
63719         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
63721         dirfd: set errno upon failure
63722         * lib/dirfd.c: Include <errno.h>.
63723         Set errno to ENOTSUP when returning -1.
63724         * modules/dirfd (Depends-on): Add errno.
63725         Suggested by John Kodis <kodis@comcast.net>.
63727 2009-02-01  Bruno Haible  <bruno@clisp.org>
63729         Don't assume sizeof (long) >= sizeof (void *).
63730         * lib/memcmp.c: Include stdint.h.
63731         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
63732         srcp2 to 'const byte *'.
63733         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
63734         types to uintptr_t.
63735         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
63736         * modules/memcmp (Depends-on): Add stdint.
63737         Reported by Ozkan Sezer <sezeroz@gmail.com>.
63739 2009-01-30  Eric Blake  <ebb9@byu.net>
63741         fix more require-before-expand issues
63742         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
63743         expand, AC_PROG_AWK.
63744         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
63746 2009-01-28  Eric Blake  <ebb9@byu.net>
63748         version-etc: use consistent URL formatting
63749         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
63750         Improve formatting.  Use fputs for string without %.
63752 2009-01-28  Jim Meyering  <meyering@redhat.com>
63754         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
63755         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
63756         "underquoted definition of NAME" from autoconf-2.59.
63758 2009-01-28  Bruno Haible  <bruno@clisp.org>
63760         * doc/gnulib.texi: Add "Obsolete modules" to index.
63762 2009-01-28  Jim Meyering  <meyering@redhat.com>
63764         useless-if-before-free: recognize more variants
63765         * build-aux/useless-if-before-free: Also recognize e.g.,
63766         if (NULL != p) free (p);
63768 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
63770         test-getaddrinfo: skip (don't fail) this test when there's no network
63771         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
63772         on the presumption that it means you lack network access.
63774 2009-01-26  Jim Meyering  <meyering@redhat.com>
63776         fflush: avoid warnings on modern systems
63777         * lib/fflush.c (rpl_fflush): Move declarations of locals,
63778         pos and result, into scopes where they're used.
63780 2009-01-26  Eric Blake  <ebb9@byu.net>
63782         Silence warning reintroduced by recent extensions patch.
63783         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
63784         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
63785         autoconf.
63787         Backport improved autoconf semantics of AC_DEFUN_ONCE.
63788         * m4/00gnulib.m4: New file.
63789         * gnulib-tool (func_get_filelist): Always use it.
63790         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
63791         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
63793 2009-01-25  Bruno Haible  <bruno@clisp.org>
63795         Make test-quotearg work on MacOS X and AIX.
63796         * tests/test-quotearg.sh: New file.
63797         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
63798         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
63799         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
63800         include <libintl.h>.
63801         (fake_locale): Remove variable.
63802         (gettext, dgettext, dcgettext): Remove functions.
63803         (main): Instead of setting a fake locale, set a real locale. Call
63804         textdomain and bindtextdomain.
63805         * modules/quotearg-tests (Files): Add the new files.
63806         (Depends-on): Add gettext, setenv, unsetenv.
63807         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63808         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
63809         Augment TESTS_ENVIRONMENT.
63811 2009-01-25  Bruno Haible  <bruno@clisp.org>
63813         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
63814         fr_FR.ISO8859-1 locale on MacOS X.
63815         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
63816         ja_JP.eucJP locale on MacOS X.
63817         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
63818         zh_CN.GB18030 locale on MacOS X.
63820 2009-01-25  Bruno Haible  <bruno@clisp.org>
63822         Avoid link errors on MacOS X 10.3.
63823         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
63824         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
63826 2009-01-25  Bruno Haible  <bruno@clisp.org>
63828         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
63829         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
63830         * modules/pipe (Files): Remove m4/posix_spawn.m4.
63831         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
63832         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
63833         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
63834         posix_spawnattr_init, posix_spawnattr_setsigmask,
63835         posix_spawnattr_setflags, posix_spawnattr_destroy.
63837         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
63838         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
63839         * modules/execute (Files): Remove m4/posix_spawn.m4.
63840         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
63841         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
63842         posix_spawnattr_init, posix_spawnattr_setsigmask,
63843         posix_spawnattr_setflags, posix_spawnattr_destroy.
63845 2009-01-25  Bruno Haible  <bruno@clisp.org>
63847         * lib/glthread/threadlib.c: Include <stdlib.h>.
63849 2009-01-25  Bruno Haible  <bruno@clisp.org>
63851         * lib/glthread/threadlib.c (dummy): New declaration.
63853 2009-01-25  Bruno Haible  <bruno@clisp.org>
63855         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
63856         multibyte characters also for the GB18030 encoding. Don't crash when
63857         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
63859 2009-01-25  Bruno Haible  <bruno@clisp.org>
63861         Avoid redefining 'struct random_data' on OSF/1 5.1.
63862         * lib/stdlib.in.h: Include <random.h> if it exists.
63863         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
63864         HAVE_RANDOM_H. Include <random.h> when testing whether
63865         'struct random_data' exists.
63866         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
63868 2009-01-25  Bruno Haible  <bruno@clisp.org>
63870         Don't install charset.alias on MacOS X >= 10.3.
63871         * lib/localcharset.c (DARWIN7): New macro.
63872         (get_charset_aliases): Hardcode the result for Darwin7.
63873         * modules/localcharset (install-exec-local): Don't install
63874         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
63876 2009-01-25  Bruno Haible  <bruno@clisp.org>
63878         Don't install charset.alias on mingw and Cygwin.
63879         * modules/localcharset (install-exec-local): Don't install
63880         charset.alias on mingw and Cygwin, if the file does not yet exist.
63881         The result for these platforms is hardcoded in localcharset.c.
63883 2009-01-25  Bruno Haible  <bruno@clisp.org>
63885         Make it possible again to use AC_GNU_SOURCE together with gnulib.
63886         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
63887         before requiring AC_USE_SYSTEM_EXTENSIONS.
63889 2009-01-25  Jim Meyering  <meyering@redhat.com>
63891         c-strtod: avoid warnings
63892         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
63893         "assignment discards qualifiers from pointer target type" warnings.
63895 2009-01-24  Bruno Haible  <bruno@clisp.org>
63897         Add support for non-UTF-8 locales on MacOS X.
63898         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
63899         canonical encodings. For Darwin 7 and newer, don't map traditional
63900         encodings to UTF-8.
63901         Reported by Vincent Lefevre <vincent@vinc17.org>
63902         at <http://savannah.gnu.org/bugs/?25235>.
63904 2009-01-24  Bruno Haible  <bruno@clisp.org>
63906         * doc/gnulib.texi (Obsolete modules): New section.
63907         Reported by Mike Frysinger <vapier@gentoo.org>.
63909 2009-01-24  Bruno Haible  <bruno@clisp.org>
63911         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
63912         (%.dvi): New rule.
63914 2009-01-24  Bruno Haible  <bruno@clisp.org>
63916         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
63917         Reported by Eric Blake.
63919 2009-01-24  Bruno Haible  <bruno@clisp.org>
63921         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
63922         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
63923         Reported by Gary V. Vaughan <gary@gnu.org>.
63925 2009-01-24  Bruno Haible  <bruno@clisp.org>
63927         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
63929 2009-01-23  Bruno Haible  <bruno@clisp.org>
63931         Make c-strtod, c-strtold usable in libraries.
63932         * lib/c-strtod.c: Include string.h instead of xalloc.h.
63933         (C_STRTOD): Call strdup instead of xstrdup.
63934         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
63935         * modules/c-strtold (Depends-on): Likewise.
63936         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
63937         * NEWS: Mention the change.
63938         Reported by Michael Gold <mgold@ncf.ca>.
63940 2009-01-23  Jim Meyering  <meyering@redhat.com>
63942         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
63943         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
63944         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
63946 2009-01-23  Simon Josefsson  <simon@josefsson.org>
63948         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
63949         GNU CoreUtils.
63950         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
63951         * modules/version-etc (Description): Update.
63953 2009-01-22  Bruno Haible  <bruno@clisp.org>
63955         Cache the C locale object.
63956         * lib/c-strtod.c (c_locale_cache): New variable.
63957         (c_locale): New function.
63958         (C_STRTOD): Use it, and don't call freelocale.
63959         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
63960         Suggested by Paolo Bonzini.
63962 2009-01-21  Bruno Haible  <bruno@clisp.org>
63964         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
63965         conditions other than overflow.
63967 2009-01-21  Bruno Haible  <bruno@clisp.org>
63969         * lib/c-strtod.c: Include errno.h.
63970         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
63971         value from STRTOD_L and STRTOD.
63973 2009-01-21  Bruno Haible  <bruno@clisp.org>
63974         and Jim Meyering  <meyering@redhat.com>
63976         nanosleep: skip configure test (fail it) for apple universal builds
63977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
63978         universal builds, assume that nanosleep does not work.
63979         * modules/nanosleep (Depends-on): Add multiarch.
63981         mktime: skip configure test (fail it) for apple universal builds
63982         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
63983         universal builds, assume that mktime does not work.
63984         * modules/mktime (Depends-on): Add multiarch.
63986 2009-01-21  Eric Blake  <ebb9@byu.net>
63988         multiarch: avoid expand-before-require warning
63989         * modules/multiarch (configure.ac): Require, rather than expand,
63990         gl_MULTIARCH.
63991         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
63992         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
63993         enforce that all clients require it.  Partial reversion of
63994         2008-12-29 patch.
63996         error: avoid expand-before-require warning
63997         * modules/errno (configure.ac): Require, rather than expand,
63998         gl_HEADER_ERRNO_H.
63999         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
64000         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
64001         enforce that all clients require it.
64003         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
64004         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
64005         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
64006         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
64008 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
64010         Revert:
64011         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
64013         regex: do not depend on obsolete modules.
64014         * modules/regex: Remove memcmp and memmove.
64016 2009-01-20  Bruno Haible  <bruno@clisp.org>
64018         Make the 'link' module link on Windows NT 4.
64019         * lib/link.c (_WIN32_WINNT): Don't define.
64020         (CreateHardLinkFuncType): New type.
64021         (CreateHardLinkFunc, initialized): New variables.
64022         (initialize): New function.
64023         (link): Invoke CreateHardLink indirectly through the function pointer.
64025 2009-01-20  Bruno Haible  <bruno@clisp.org>
64027         Fix compilation failure on mingw.
64028         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
64030 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
64032         * doc/c-strtod.texi: Mention a couple of restrictions.
64034 2009-01-20  Jim Meyering  <meyering@redhat.com>
64036         gettimeofday: move more declarations out of functions
64037         * lib/gettimeofday.c: Move extern declarations of tzset and
64038         gmtime out of containing functions.  Prompted by Bruno Haible.
64040 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
64042         regex: do not depend on obsolete modules.
64043         * modules/regex: Remove memcmp and memmove.
64045 2009-01-19  Bruno Haible  <bruno@clisp.org>
64047         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
64048         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
64049         gl_BIGENDIAN, not AC_C_BIGENDIAN.
64050         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
64051         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
64053 2009-01-19  Bruno Haible  <bruno@clisp.org>
64055         * tests/test-link.c: Include <errno.h>.
64056         (main): Exit with code 77 when a hard link cannot be created due to
64057         the file system.
64058         * tests/test-link.sh: Skip test when a hard link cannot be created due
64059         to the file system.
64060         Suggested by Eric Blake.
64062 2009-01-19  Martin Lambers  <marlam@marlam.de>
64064         * modules/link-tests: New file.
64065         * tests/test-link.sh: New file.
64066         * tests/test-link.c: New file.
64068 2009-01-19  Eric Blake  <ebb9@byu.net>
64070         doc: mention another function added in cygwin 1.7.0
64071         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
64072         Another new function in cygwin 1.7.
64074 2009-01-19  Bruno Haible  <bruno@clisp.org>
64076         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
64077         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
64078         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
64079         gl_BIGENDIAN, not AC_C_BIGENDIAN.
64080         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64081         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
64082         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
64083         * m4/md4.m4 (gl_MD4): Likewise.
64084         * m4/md5.m4 (gl_MD5): Likewise.
64085         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
64086         * m4/sha1.m4 (gl_SHA1): Likewise.
64087         * m4/sha256.m4 (gl_SHA256): Likewise.
64088         * m4/sha512.m4 (gl_SHA512): Likewise.
64090 2009-01-19  Bruno Haible  <bruno@clisp.org>
64092         * modules/uniname/uniname-tests (Depends-on): Add progname.
64093         * tests/uniname/test-uninames.c: Include progname.h.
64094         (main): Call set_program_name.
64096         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
64097         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
64098         (main): Call set_program_name.
64100         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
64101         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
64102         (main): Call set_program_name.
64104         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
64105         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
64106         (main): Call set_program_name.
64108         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
64109         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
64110         (main): Call set_program_name.
64112         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
64113         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
64114         (main): Call set_program_name.
64116         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
64117         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
64118         (main): Call set_program_name.
64120         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
64121         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
64122         (main): Call set_program_name.
64124         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
64125         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
64126         (main): Call set_program_name.
64128 2009-01-19  Eric Blake  <ebb9@byu.net>
64130         test-unistd: test previous patch
64131         * tests/test-unistd.c: Test *_FILENO macros.
64133         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
64134         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
64135         Guarantee a definition.
64136         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
64137         * modules/unistd-safer (Depends-on): Add dependency on unistd.
64138         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
64139         * lib/dup-safer.c (STDERR_FILENO): Likewise.
64140         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
64141         Likewise.
64142         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
64143         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
64144         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
64145         Likewise.
64146         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
64147         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
64148         (STDERR_FILENO): Likewise.
64149         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
64150         (STDERR_FILENO): Likewise.
64151         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
64152         (STDERR_FILENO): Likewise.
64153         Reported by Elbert Pol.
64155 2009-01-19  Eric Blake  <ebb9@byu.net>
64157         doc: mention more functions added in cygwin 1.7.0
64158         * doc/posix-functions/abort.texi (abort): Update wording related
64159         to cygwin.
64160         * doc/posix-functions/daylight.texi (daylight): Likewise.
64161         * doc/posix-functions/optarg.texi (optarg): Likewise.
64162         * doc/posix-functions/optarg.texi (opterr): Likewise.
64163         * doc/posix-functions/optarg.texi (optind): Likewise.
64164         * doc/posix-functions/optarg.texi (optopt): Likewise.
64165         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
64166         worked in 1.5.x, and was withdrawn in 1.7.
64167         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
64168         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
64169         cygwin versions.
64170         * doc/posix-functions/perror.texi (perror): Likewise.
64171         * doc/posix-functions/printf.texi (printf): Likewise.
64172         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
64173         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
64174         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
64175         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
64176         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
64177         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
64178         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
64179         Likewise.
64180         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
64181         Likewise.
64182         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
64183         this function.
64184         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
64185         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
64186         Likewise.
64187         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
64188         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
64189         * doc/posix-functions/confstr.texi (confstr): Likewise.
64190         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
64191         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
64192         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
64193         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
64194         * doc/posix-functions/fputws.texi (fputws): Likewise.
64195         * doc/posix-functions/fwide.texi (fwide): Likewise.
64196         * doc/posix-functions/getwc.texi (getwc): Likewise.
64197         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
64198         * doc/posix-functions/putwc.texi (putwc): Likewise.
64199         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
64200         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
64201         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
64202         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
64203         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
64204         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
64205         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
64206         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
64207         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
64208         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
64209         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
64211 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
64213         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
64214         * lib/ioctl.c: Include <sys/ioctl.h>.
64216 2009-01-19  Simon Josefsson  <simon@josefsson.org>
64218         * modules/getdate-tests (Depends-on): Add progname.
64219         * tests/test-getdate.c: Use progname module, to avoid link errors
64220         on non-glibc systems.
64222 2009-01-18  Simon Josefsson  <simon@josefsson.org>
64224         * modules/filenamecat-tests (Depends-on): Add progname.
64225         * modules/fstrcmp-tests (Depends-on): Likewise.
64227         * tests/test-filenamecat.c: Use progname module, to avoid link
64228         errors on non-glibc systems.
64229         * tests/test-fstrcmp.c: Likewise.
64231 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
64233         gettimeofday: avoid warning: nested extern declaration of 'localtime'
64234         * lib/gettimeofday.c: Move extern declaration out of function.
64236 2009-01-18  Bruno Haible  <bruno@clisp.org>
64238         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
64239         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
64240         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
64242 2009-01-18  Bruno Haible  <bruno@clisp.org>
64244         * lib/strftime.c (MEMPCPY): Remove unused macro.
64245         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
64247 2009-01-18  Martin Lambers  <marlam@marlam.de>
64249         New module 'link'.
64250         * lib/unistd.in.h (link): New declaration.
64251         * lib/link.c: New file.
64252         * m4/link.m4: New file.
64253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
64254         HAVE_LINK.
64255         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
64256         * modules/link: New file.
64257         * doc/posix-functions/link.texi: Mention the new module.
64259 2009-01-18  Bruno Haible  <bruno@clisp.org>
64261         * tests/test-avltree_list.c (main): Call set_program_name.
64262         * tests/test-avltree_oset.c (main): Likewise.
64263         * tests/test-obstack-printf.c: Include progname.h.
64264         (main): Call set_program_name.
64265         * tests/test-quotearg.c: Include progname.h.
64266         (main): Call set_program_name.
64267         * tests/test-xmemdup0.c: Include progname.h.
64268         (main): Call set_program_name.
64270 2009-01-18  Bruno Haible  <bruno@clisp.org>
64272         New module 'alphasort'.
64273         * lib/dirent.in.h (alphasort): New declaration.
64274         * lib/alphasort.c: New file, from glibc with modifications.
64275         * m4/alphasort.m4: New file.
64276         * modules/alphasort: New file.
64277         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
64278         HAVE_ALPHASORT.
64279         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
64280         HAVE_ALPHASORT.
64281         * doc/posix-functions/alphasort.texi: Mention the new module and the
64282         portability problems.
64284 2009-01-18  Bruno Haible  <bruno@clisp.org>
64286         New module 'scandir'.
64287         * lib/dirent.in.h (scandir): New declaration.
64288         * lib/scandir.c: New file, from glibc with modifications.
64289         * m4/scandir.m4: New file.
64290         * modules/scandir: New file.
64291         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
64292         HAVE_SCANDIR.
64293         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
64294         HAVE_SCANDIR.
64295         * doc/posix-functions/scandir.texi: Mention the new module and the
64296         portability problems.
64298 2009-01-17  Bruno Haible  <bruno@clisp.org>
64300         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
64301         Update documentation.
64302         (func_remove_suffix): Escape all dots in the suffix. Update
64303         documentation.
64304         (func_filter_filelist): Update documentation.
64305         Reported by Ralf Wildenhues.
64307 2009-01-17  Bruno Haible  <bruno@clisp.org>
64309         * modules/dprintf-posix-tests: New file.
64310         * tests/test-dprintf-posix.sh: New file.
64311         * tests/test-dprintf-posix.c: New file.
64313         New modules 'dprintf', 'dprintf-posix'.
64314         * lib/stdio.in.h (dprintf): New declaration.
64315         * lib/dprintf.c: New file.
64316         * m4/dprintf.m4: New file.
64317         * m4/dprintf-posix.m4: New file.
64318         * modules/dprintf: New file.
64319         * modules/dprintf-posix: New file.
64320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
64321         HAVE_DPRINTF, REPLACE_DPRINTF.
64322         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
64323         HAVE_DPRINTF, REPLACE_DPRINTF.
64324         * doc/posix-functions/dprintf.texi: Mention the new modules.
64326 2009-01-17  Bruno Haible  <bruno@clisp.org>
64328         * modules/vdprintf-posix-tests: New file.
64329         * tests/test-vdprintf-posix.sh: New file.
64330         * tests/test-vdprintf-posix.c: New file.
64332         New modules 'vdprintf', 'vdprintf-posix'.
64333         * lib/stdio.in.h (vdprintf): New declaration.
64334         * lib/vdprintf.c: New file.
64335         * m4/vdprintf.m4: New file.
64336         * m4/vdprintf-posix.m4: New file.
64337         * modules/vdprintf: New file.
64338         * modules/vdprintf-posix: New file.
64339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
64340         HAVE_VDPRINTF, REPLACE_VDPRINTF.
64341         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
64342         HAVE_VDPRINTF, REPLACE_VDPRINTF.
64343         * doc/posix-functions/vdprintf.texi: Mention the new modules.
64345 2009-01-17  Bruno Haible  <bruno@clisp.org>
64347         Fix replacement of fopen on mingw.
64348         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
64349         mingw.
64351 2009-01-17  Bruno Haible  <bruno@clisp.org>
64353         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
64354         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
64356 2009-01-17  Bruno Haible  <bruno@clisp.org>
64358         Avoid test-fflush2.sh failure on mingw.
64359         * tests/test-fflush2.c: Include binary-io.h.
64360         (main): Put standard input into binary mode.
64361         * modules/fflush-tests (Depends-on): Add binary-io.
64363 2009-01-17  Bruno Haible  <bruno@clisp.org>
64365         * lib/wchar.in.h: In another particular situation, include only the
64366         system's <wchar.h> file.
64367         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
64368         Reported by Albert Chin-A-Young <china@thewrittenword.com>
64369         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
64371 2009-01-17  Bruno Haible  <bruno@clisp.org>
64373         Support for stripping executables in --enable-relocatable.
64374         * build-aux/install-reloc: Expect one more argument, or an environment
64375         variable RELOC_STRIP_PROG. If set, strip the destination program and
64376         its wrapper.
64377         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
64378         RELOC_STRIP_PROG.
64379         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
64380         to set RELOCATABLE_STRIP.
64381         * NEWS: Mention the new Makefile requirement.
64383 2009-01-17  Bruno Haible  <bruno@clisp.org>
64385         * build-aux/install-reloc: Remove debugging information left over by
64386         C compiler on MacOS X.
64388 2009-01-17  Bruno Haible  <bruno@clisp.org>
64390         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
64391         * lib/progreloc.c (find_executable): Fix type of pointer passed to
64392         _NSGetExecutablePath.
64394 2009-01-16  Jim Meyering  <meyering@redhat.com>
64396         strerror: avoid warnings about discarding "const"
64397         * lib/strerror.c (rpl_strerror): Instead of returning a const
64398         string from each and every "case", use a variable, and add a single
64399         cast after the switch.
64401 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
64403         * lib/arpa_inet.in.h: Add extern "C" block for C++.
64405 2009-01-16  Bruno Haible  <bruno@clisp.org>
64407         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
64408         array initializer syntax that also works in C++ mode.
64409         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64411 2009-01-16  Jim Meyering  <meyering@redhat.com>
64413         poll: suppress a warning
64414         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
64415         to ignore "...unsigned expression < 0 is always false" warnings.
64417 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
64419         poll: remove declarations of unused variables
64420         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
64421         sockbuf and optlen.
64423 2009-01-15  Bruno Haible  <bruno@clisp.org>
64425         Make fflush-after-ungetc POSIX compliant on BSD systems.
64426         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
64427         (clear_ungetc_buffer): Implement also for other systems.
64428         (rpl_fflush): On glibc systems, invoke
64429         clear_ungetc_buffer_preserving_position. Otherwise, invoke
64430         clear_ungetc_buffer after fetching the stream's position, not before.
64432 2009-01-15  Bruno Haible  <bruno@clisp.org>
64434         Make fflush-after-ungetc POSIX compliant on glibc systems.
64435         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
64436         after ungetc.
64437         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
64438         (rpl_fflush): On glibc systems, simply call the system's fflush
64439         function after clearing the ungetc buffer.
64440         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
64441         Instead, lseek only to the end of file, then use the system's fseeko
64442         for the rest. On glibc systems, reset the EOF indicator bit.
64444 2009-01-15  Jim Meyering  <meyering@redhat.com>
64446         openmp.m4: revert quote-adding change, for portability to older autoconf
64447         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
64448         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
64449         Simon Josefsson noticed the problem when using autoconf-2.61.
64451 2009-01-15  Bruno Haible  <bruno@clisp.org>
64453         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
64454         * tests/test-fflush2.c (ASSERT): Always fail.
64455         (main): Add two tests for fflush() after ungetc(), taking into account
64456         the Austin Group's clarification.
64457         Suggested by Eric Blake.
64459 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
64461         mktime.m4: remove K&R-style function prototypes
64462         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
64463         for the Sun C++ compiler.
64465 2009-01-14  Bruno Haible  <bruno@clisp.org>
64467         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
64468         while including <wchar.h>.
64469         * lib/wchar.in.h: In two particular situations on HP-UX, include only
64470         the system's <wchar.h> file.
64471         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64473 2009-01-14  Bruno Haible  <bruno@clisp.org>
64475         * m4/csharp.m4: Don't mention gettext on the serial number line.
64476         * m4/csharpexec.m4: Likewise.
64477         * m4/eaccess.m4: Likewise.
64478         * m4/javaexec.m4: Likewise.
64479         * m4/sig_atomic_t.m4: Likewise.
64480         * m4/tmpdir.m4: Likewise.
64481         * m4/intldir.m4: Bump gettext version.
64482         * m4/lib-ld.m4: Likewise.
64484 2009-01-14  Bruno Haible  <bruno@clisp.org>
64486         * lib/progname.c (set_program_name): Add more comments.
64487         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
64489 2009-01-14  Simon Josefsson  <simon@josefsson.org>
64491         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
64492         were sys/stat.h does not define it.
64494 2009-01-14  Jim Meyering  <meyering@redhat.com>
64496         many *.m4 files: improve m4 quoting
64497         99% of this change was performed by running the following commands:
64498         git ls-files | grep '\.m4$' | xargs perl -pi \
64499           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
64500           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
64501           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
64502           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
64503         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
64504         The remainder were to add Copyright dates, increment serial numbers,
64505         undo some changes in comments, exclude m4/intl.m4, and add quotes
64506         around the "1" in ",1" where the unusual spacing prohibited the
64507         above regexps from doing the job.  For more details, see
64508         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
64509         * m4/acl.m4: Modified.
64510         * m4/afs.m4: Likewise.
64511         * m4/alloca.m4: Likewise.
64512         * m4/argp.m4: Likewise.
64513         * m4/argz.m4: Likewise.
64514         * m4/atexit.m4: Likewise.
64515         * m4/bison-i18n.m4: Likewise.
64516         * m4/bison.m4: Likewise.
64517         * m4/byteswap.m4: Likewise.
64518         * m4/c-stack.m4: Likewise.
64519         * m4/c-strtod.m4: Likewise.
64520         * m4/calloc.m4: Likewise.
64521         * m4/canonicalize-lgpl.m4: Likewise.
64522         * m4/chown.m4: Likewise.
64523         * m4/clock_time.m4: Likewise.
64524         * m4/codeset.m4: Likewise.
64525         * m4/copy-file.m4: Likewise.
64526         * m4/csharp.m4: Likewise.
64527         * m4/csharpcomp.m4: Likewise.
64528         * m4/csharpexec.m4: Likewise.
64529         * m4/d-ino.m4: Likewise.
64530         * m4/d-type.m4: Likewise.
64531         * m4/dirfd.m4: Likewise.
64532         * m4/double-slash-root.m4: Likewise.
64533         * m4/eaccess.m4: Likewise.
64534         * m4/eealloc.m4: Likewise.
64535         * m4/environ.m4: Likewise.
64536         * m4/errno_h.m4: Likewise.
64537         * m4/euidaccess.m4: Likewise.
64538         * m4/execute.m4: Likewise.
64539         * m4/fatal-signal.m4: Likewise.
64540         * m4/fchdir.m4: Likewise.
64541         * m4/fcntl_h.m4: Likewise.
64542         * m4/fileblocks.m4: Likewise.
64543         * m4/filenamecat.m4: Likewise.
64544         * m4/findprog.m4: Likewise.
64545         * m4/flexmember.m4: Likewise.
64546         * m4/fnmatch.m4: Likewise.
64547         * m4/fopen.m4: Likewise.
64548         * m4/fpending.m4: Likewise.
64549         * m4/fprintf-posix.m4: Likewise.
64550         * m4/free.m4: Likewise.
64551         * m4/frexp.m4: Likewise.
64552         * m4/frexpl.m4: Likewise.
64553         * m4/fsusage.m4: Likewise.
64554         * m4/ftruncate.m4: Likewise.
64555         * m4/gc-camellia.m4: Likewise.
64556         * m4/gc-random.m4: Likewise.
64557         * m4/gc.m4: Likewise.
64558         * m4/getaddrinfo.m4: Likewise.
64559         * m4/getcwd-abort-bug.m4: Likewise.
64560         * m4/getcwd-path-max.m4: Likewise.
64561         * m4/getdate.m4: Likewise.
64562         * m4/getdomainname.m4: Likewise.
64563         * m4/getgroups.m4: Likewise.
64564         * m4/gethostname.m4: Likewise.
64565         * m4/gethrxtime.m4: Likewise.
64566         * m4/getline.m4: Likewise.
64567         * m4/getloadavg.m4: Likewise.
64568         * m4/getndelim2.m4: Likewise.
64569         * m4/getpass.m4: Likewise.
64570         * m4/gettext.m4: Likewise.
64571         * m4/gettime.m4: Likewise.
64572         * m4/gettimeofday.m4: Likewise.
64573         * m4/gnulib-common.m4: Likewise.
64574         * m4/group-member.m4: Likewise.
64575         * m4/host-os.m4: Likewise.
64576         * m4/iconv.m4: Likewise.
64577         * m4/iconv_open.m4: Likewise.
64578         * m4/inet_ntop.m4: Likewise.
64579         * m4/inet_pton.m4: Likewise.
64580         * m4/inline.m4: Likewise.
64581         * m4/intldir.m4: Likewise.
64582         * m4/intlmacosx.m4: Likewise.
64583         * m4/intmax.m4: Likewise.
64584         * m4/intmax_t.m4: Likewise.
64585         * m4/inttypes.m4: Likewise.
64586         * m4/inttypes_h.m4: Likewise.
64587         * m4/inttypes-pri.m4: Likewise.
64588         * m4/isapipe.m4: Likewise.
64589         * m4/isnand.m4: Likewise.
64590         * m4/isnanf.m4: Likewise.
64591         * m4/isnanl.m4: Likewise.
64592         * m4/javacomp.m4: Likewise.
64593         * m4/javaexec.m4: Likewise.
64594         * m4/jm-winsz1.m4: Likewise.
64595         * m4/jm-winsz2.m4: Likewise.
64596         * m4/lchown.m4: Likewise.
64597         * m4/lcmessage.m4: Likewise.
64598         * m4/ldexpl.m4: Likewise.
64599         * m4/lib-ld.m4: Likewise.
64600         * m4/lib-link.m4: Likewise.
64601         * m4/libsigsegv.m4: Likewise.
64602         * m4/link-follow.m4: Likewise.
64603         * m4/localcharset.m4: Likewise.
64604         * m4/locale-fr.m4: Likewise.
64605         * m4/locale-ja.m4: Likewise.
64606         * m4/locale-tr.m4: Likewise.
64607         * m4/locale-zh.m4: Likewise.
64608         * m4/lock.m4: Likewise.
64609         * m4/longlong.m4: Likewise.
64610         * m4/ls-mntd-fs.m4: Likewise.
64611         * m4/lstat.m4: Likewise.
64612         * m4/malloc.m4: Likewise.
64613         * m4/mathl.m4: Likewise.
64614         * m4/mbrtowc.m4: Likewise.
64615         * m4/mbstate_t.m4: Likewise.
64616         * m4/mbswidth.m4: Likewise.
64617         * m4/memchr.m4: Likewise.
64618         * m4/memcmp.m4: Likewise.
64619         * m4/memcpy.m4: Likewise.
64620         * m4/memmem.m4: Likewise.
64621         * m4/memmove.m4: Likewise.
64622         * m4/mempcpy.m4: Likewise.
64623         * m4/memrchr.m4: Likewise.
64624         * m4/memset.m4: Likewise.
64625         * m4/minmax.m4: Likewise.
64626         * m4/mkdir-slash.m4: Likewise.
64627         * m4/mkdtemp.m4: Likewise.
64628         * m4/mktime.m4: Likewise.
64629         * m4/mmap-anon.m4: Likewise.
64630         * m4/mountlist.m4: Likewise.
64631         * m4/nanosleep.m4: Likewise.
64632         * m4/nls.m4: Likewise.
64633         * m4/nocrash.m4: Likewise.
64634         * m4/open.m4: Likewise.
64635         * m4/openat.m4: Likewise.
64636         * m4/openmp.m4: Likewise.
64637         * m4/pathmax.m4: Likewise.
64638         * m4/perl.m4: Likewise.
64639         * m4/physmem.m4: Likewise.
64640         * m4/pipe.m4: Likewise.
64641         * m4/po.m4: Likewise.
64642         * m4/poll.m4: Likewise.
64643         * m4/posixtm.m4: Likewise.
64644         * m4/posixver.m4: Likewise.
64645         * m4/printf-frexp.m4: Likewise.
64646         * m4/printf-frexpl.m4: Likewise.
64647         * m4/printf-posix.m4: Likewise.
64648         * m4/printf-posix-rpl.m4: Likewise.
64649         * m4/printf.m4: Likewise.
64650         * m4/progtest.m4: Likewise.
64651         * m4/putenv.m4: Likewise.
64652         * m4/readline.m4: Likewise.
64653         * m4/readlink.m4: Likewise.
64654         * m4/readutmp.m4: Likewise.
64655         * m4/realloc.m4: Likewise.
64656         * m4/regex.m4: Likewise.
64657         * m4/relocatable.m4: Likewise.
64658         * m4/relocatable-lib.m4: Likewise.
64659         * m4/rename-dest-slash.m4: Likewise.
64660         * m4/rename.m4: Likewise.
64661         * m4/rmdir-errno.m4: Likewise.
64662         * m4/rmdir.m4: Likewise.
64663         * m4/roundf.m4: Likewise.
64664         * m4/roundl.m4: Likewise.
64665         * m4/rpmatch.m4: Likewise.
64666         * m4/save-cwd.m4: Likewise.
64667         * m4/selinux-selinux-h.m4: Likewise.
64668         * m4/setenv.m4: Likewise.
64669         * m4/settime.m4: Likewise.
64670         * m4/sig2str.m4: Likewise.
64671         * m4/sig_atomic_t.m4: Likewise.
64672         * m4/signalblocking.m4: Likewise.
64673         * m4/signbit.m4: Likewise.
64674         * m4/sigpipe.m4: Likewise.
64675         * m4/sockets.m4: Likewise.
64676         * m4/sockpfaf.m4: Likewise.
64677         * m4/st_dm_mode.m4: Likewise.
64678         * m4/stat-time.m4: Likewise.
64679         * m4/stdbool.m4: Likewise.
64680         * m4/stdint.m4: Likewise.
64681         * m4/stdint_h.m4: Likewise.
64682         * m4/stpcpy.m4: Likewise.
64683         * m4/stpncpy.m4: Likewise.
64684         * m4/strcase.m4: Likewise.
64685         * m4/strchrnul.m4: Likewise.
64686         * m4/strcspn.m4: Likewise.
64687         * m4/strdup.m4: Likewise.
64688         * m4/strftime.m4: Likewise.
64689         * m4/strndup.m4: Likewise.
64690         * m4/strnlen.m4: Likewise.
64691         * m4/strpbrk.m4: Likewise.
64692         * m4/strptime.m4: Likewise.
64693         * m4/strsep.m4: Likewise.
64694         * m4/strtod.m4: Likewise.
64695         * m4/strtoimax.m4: Likewise.
64696         * m4/strtok_r.m4: Likewise.
64697         * m4/strtol.m4: Likewise.
64698         * m4/strtoll.m4: Likewise.
64699         * m4/strtoul.m4: Likewise.
64700         * m4/strtoull.m4: Likewise.
64701         * m4/strtoumax.m4: Likewise.
64702         * m4/strverscmp.m4: Likewise.
64703         * m4/threadlib.m4: Likewise.
64704         * m4/timegm.m4: Likewise.
64705         * m4/tm_gmtoff.m4: Likewise.
64706         * m4/tmpdir.m4: Likewise.
64707         * m4/tmpfile.m4: Likewise.
64708         * m4/tzset.m4: Likewise.
64709         * m4/uintmax_t.m4: Likewise.
64710         * m4/unlinkdir.m4: Likewise.
64711         * m4/unlocked-io.m4: Likewise.
64712         * m4/uptime.m4: Likewise.
64713         * m4/userspec.m4: Likewise.
64714         * m4/utimbuf.m4: Likewise.
64715         * m4/utime.m4: Likewise.
64716         * m4/utimes-null.m4: Likewise.
64717         * m4/utimes.m4: Likewise.
64718         * m4/vararrays.m4: Likewise.
64719         * m4/vasnprintf.m4: Likewise.
64720         * m4/vfprintf-posix.m4: Likewise.
64721         * m4/vprintf-posix.m4: Likewise.
64722         * m4/wait-process.m4: Likewise.
64723         * m4/wchar_t.m4: Likewise.
64724         * m4/wint_t.m4: Likewise.
64725         * m4/write-any-file.m4: Likewise.
64726         * m4/yield.m4: Likewise.
64728 2009-01-13  Bruno Haible  <bruno@clisp.org>
64730         Avoid test-copy-file.sh failures when ACL support insufficient.
64731         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
64732         TESTS_ENVIRONMENT.
64733         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
64734         Reported by Jim Meyering.
64736 2009-01-13  Bruno Haible  <bruno@clisp.org>
64738         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
64739         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
64740         * modules/unistdio/u8-printf-parse (Files): Likewise.
64741         * modules/unistdio/u32-printf-parse (Files): Likewise.
64742         * modules/unistdio/ulc-printf-parse (Files): Likewise.
64744 2009-01-13  Simon Josefsson  <simon@josefsson.org>
64746         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
64747         and m4/inttypes_h.m4 too.
64749 2009-01-12  Eric Blake  <ebb9@byu.net>
64751         tests: IRIX 6.2 cc can't compile -0.0 into .data
64752         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
64753         rather than at compile-time.
64754         * tests/test-floorl.c (minus_zero): Likewise.
64755         * tests/test-frexpl.c (minus_zero): Likewise.
64756         * tests/test-isnan.c (minus_zerol): Likewise.
64757         * tests/test-isnanl.h (minus_zero): Likewise.
64758         * tests/test-ldexpl.c (minus_zero): Likewise.
64759         * tests/test-roundl.c (minus_zero): Likewise.
64760         * tests/test-signbit.c (minus_zerol): Likewise.
64761         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
64762         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
64763         * tests/test-truncl.c (minus_zero): Likewise.
64764         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
64765         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
64766         Reported by Tom G. Christensen and Nelson H. F. Beebe.
64768 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
64770         regex: fix glibc bug 9697
64771         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
64772         handling.
64774 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
64776         regex: fix glibc bug 697
64777         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
64778         being NULL also if there are no backreferences.
64780 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
64782         regex: merge glibc changes
64783         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
64784         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
64785         re_string_skip_chars, re_string_reconstruct): Likewise.
64786         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
64788 2009-01-07  Jim Meyering  <meyering@redhat.com>
64790         poll: filter through cppi
64791         * lib/poll.c: Indent cpp directives to reflect nesting.
64793 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
64795         poll: don't return uninitialized
64796         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
64798 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
64800         avoid compile failure on AIX 6.1
64801         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
64802         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
64804 2009-01-04  Jim Meyering  <meyering@redhat.com>
64806         remove duplicate inclusion of <stdio.h>
64807         * tests/test-fprintf-posix.c: Likewise.
64808         * tests/test-printf-posix.c: Likewise.
64809         * tests/test-snprintf-posix.c: Likewise.
64810         * tests/test-sprintf-posix.c: Likewise.
64811         * tests/test-vasprintf-posix.c: Likewise.
64812         * tests/test-vfprintf-posix.c: Likewise.
64813         * tests/test-vprintf-posix.c: Likewise.
64814         * tests/test-vsnprintf-posix.c: Likewise.
64815         * tests/test-vsprintf-posix.c: Likewise.
64817 2009-01-03  Jim Meyering  <meyering@redhat.com>
64819         gnulib-tool: fix sed-based filtering
64820         * gnulib-tool (func_filter_filelist): Remove extra backslash
64821         in sed_fff_filter definition.
64823 2009-01-02  Jim Meyering  <meyering@redhat.com>
64825         strftime: avoid compilation failure on Solaris 2.6
64826         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
64827         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
64828         Don't #define mbrlen or mbsinit, since now they're guaranteed to
64829         be available.  Reported by Tom G. Christensen.  Details in
64830         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
64832 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64833             Bruno Haible  <bruno@clisp.org>
64835         Speed up gnulib-tool by doing more string processing through shell
64836         built-ins.
64837         * gnulib-tool (fast_func_append): New variable.
64838         (func_remove_prefix, func_remove_suffix): New functions.
64839         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
64840         (func_filter_filelist): New function.
64841         (func_get_dependencies): Use func_remove_suffix instead of sed.
64842         (func_get_automake_snippet): Use func_filter_filelist instead of a
64843         subshell and sed invocation.
64845 2009-01-01  Bruno Haible  <bruno@clisp.org>
64847         Fix a security bug.
64848         * gnulib-tool (func_import, import, update): Don't allow the characters
64849         '"', '$', '`', '\' in macro arguments that become part of commands that
64850         are evaluated.
64852 2009-01-01  Bruno Haible  <bruno@clisp.org>
64854         * gnulib-tool (func_reset_sigpipe): Add more comments.
64856 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64858         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
64859         func_emit_tests_Makefile_am, func_import): Abort loops early if we
64860         already know the answer.
64862 2009-01-01  Jim Meyering  <meyering@redhat.com>
64864         * lib/version-etc.c (version_etc_va): Update copyright year.
64866 2008-12-30  Bruno Haible  <bruno@clisp.org>
64868         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
64869         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
64870         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
64872 2008-12-29  Eric Blake  <ebb9@byu.net>
64874         multiarch: avoid autoconf AC_REQUIRE bug
64875         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
64876         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
64877         2.63 and older.
64878         Reported by Bruno Haible, and analyzed in
64879         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
64881 2008-12-29  Bruno Haible  <bruno@clisp.org>
64883         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
64884         files in subdirectories correctly.
64885         Reported by Ralf Wildenhues.
64887 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64889         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
64890         rather than 'join FILE -', for Solaris join.
64892 2008-12-29  Bruno Haible  <bruno@clisp.org>
64894         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
64895         quoting.
64896         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64897         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
64898         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
64899         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
64900         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
64901         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
64902         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
64903         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
64904         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64905         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
64906         * m4/nls.m4 (AM_NLS): Likewise.
64907         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
64908         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
64909         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64910         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
64911         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
64912         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64913         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
64914         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
64915         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
64916         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64917         * m4/xsize.m4 (gl_XSIZE): Likewise.
64918         Suggested by Jim Meyering.
64920 2008-11-17  Bruce Korb  <bkorb@gnu.org>
64922         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
64923         * lib/parse-duration.c: use a switch instead of cascading if's.
64925 2008-12-29  Eric Blake  <ebb9@byu.net>
64927         wchar.h: supply WEOF on Irix 5.3
64928         * lib/wchar.in.h (wint_t): Also supply WEOF.
64929         * lib/wctype.in.h (wint_t): Likewise.
64930         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
64931         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
64932         Reported by Tom G. Christensen.
64934 2008-12-26  Bruno Haible  <bruno@clisp.org>
64936         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
64937         i486, i586, i686.
64939 2008-12-26  Bruno Haible  <bruno@clisp.org>
64941         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
64943 2008-12-26  Bruno Haible  <bruno@clisp.org>
64945         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
64946         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
64947         not __STDC_CONSTANT_MACROS.
64948         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
64950 2008-12-25  Bruno Haible  <bruno@clisp.org>
64952         Add support for universal builds to vasnprintf.
64953         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
64954         universal builds, guess no.
64955         * modules/vasnprintf-posix (Depends-on): Add multiarch.
64956         * modules/vasprintf-posix (Depends-on): Likewise.
64957         * modules/fprintf-posix (Depends-on): Likewise.
64958         * modules/vfprintf-posix (Depends-on): Likewise.
64959         * modules/snprintf-posix (Depends-on): Likewise.
64960         * modules/vsnprintf-posix (Depends-on): Likewise.
64961         * modules/sprintf-posix (Depends-on): Likewise.
64962         * modules/vsprintf-posix (Depends-on): Likewise.
64963         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64964         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64965         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64966         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64967         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64968         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64969         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64971         Add support for universal builds to <inttypes.h>.
64972         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
64973         _SCNu64_PREFIX): In Apple
64974         universal builds, define directly, using _LP64.
64975         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
64976         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
64977         * modules/inttypes (Depends-on): Add multiarch.
64978         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
64980         Add support for universal builds to <stdint.h>.
64981         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
64982         universal builds, define directly, using _LP64.
64983         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
64984         Apple universal builds, don't test for the size and suffix of ptrdiff_t
64985         and size_t.
64986         * modules/stdint (Depends-on): Add multiarch.
64987         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
64989         New module 'multiarch'.
64990         * modules/multiarch: New file.
64991         * m4/multiarch.m4: New file.
64993 2008-12-25  Bruno Haible  <bruno@clisp.org>
64995         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
64997 2008-12-25  Bruno Haible  <bruno@clisp.org>
64999         * modules/btowc (License): Relicense under LGPLv2+.
65000         * modules/mbsinit (License): Likewise.
65001         * modules/mbrtowc (License): Likewise.
65002         * modules/wcrtomb (License): Likewise.
65003         * modules/streq (License): Likewise.
65004         Reported by David Lutterkort <lutter@redhat.com>.
65006 2008-12-23  Bruno Haible  <bruno@clisp.org>
65008         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
65010 2008-12-23  Bruno Haible  <bruno@clisp.org>
65012         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
65013         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
65014         GETADDRINFO_LIB, not in LIBS.
65015         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
65016         * modules/canon-host (Link): Likewise.
65017         * NEWS: Mention the change.
65018         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
65019         GETADDRINFO_LIB.
65021 2008-12-22  Bruno Haible  <bruno@clisp.org>
65023         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
65024         * doc/posix-functions/iswalpha_l.texi: Likewise.
65025         * doc/posix-functions/iswblank_l.texi: Likewise.
65026         * doc/posix-functions/iswcntrl_l.texi: Likewise.
65027         * doc/posix-functions/iswctype_l.texi: Likewise.
65028         * doc/posix-functions/iswdigit_l.texi: Likewise.
65029         * doc/posix-functions/iswgraph_l.texi: Likewise.
65030         * doc/posix-functions/iswlower_l.texi: Likewise.
65031         * doc/posix-functions/iswprint_l.texi: Likewise.
65032         * doc/posix-functions/iswpunct_l.texi: Likewise.
65033         * doc/posix-functions/iswspace_l.texi: Likewise.
65034         * doc/posix-functions/iswupper_l.texi: Likewise.
65035         * doc/posix-functions/iswxdigit_l.texi: Likewise.
65036         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
65037         * doc/posix-functions/open_wmemstream.texi: Likewise.
65038         * doc/posix-functions/swscanf.texi: Likewise.
65039         * doc/posix-functions/towctrans_l.texi: Likewise.
65040         * doc/posix-functions/towlower.texi: Likewise.
65041         * doc/posix-functions/towlower_l.texi: Likewise.
65042         * doc/posix-functions/towupper.texi: Likewise.
65043         * doc/posix-functions/towupper_l.texi: Likewise.
65044         * doc/posix-functions/vfwprintf.texi: Likewise.
65045         * doc/posix-functions/vfwscanf.texi: Likewise.
65046         * doc/posix-functions/vswscanf.texi: Likewise.
65047         * doc/posix-functions/vwprintf.texi: Likewise.
65048         * doc/posix-functions/vwscanf.texi: Likewise.
65049         * doc/posix-functions/wcpcpy.texi: Likewise.
65050         * doc/posix-functions/wcpncpy.texi: Likewise.
65051         * doc/posix-functions/wcscasecmp.texi: Likewise.
65052         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
65053         * doc/posix-functions/wcscoll_l.texi: Likewise.
65054         * doc/posix-functions/wcsdup.texi: Likewise.
65055         * doc/posix-functions/wcsncasecmp.texi: Likewise.
65056         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
65057         * doc/posix-functions/wcsnlen.texi: Likewise.
65058         * doc/posix-functions/wcsnrtombs.texi: Likewise.
65059         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
65060         * doc/posix-functions/wctrans_l.texi: Likewise.
65061         * doc/posix-functions/wctype_l.texi: Likewise.
65062         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
65063         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
65064         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
65065         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
65066         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
65067         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
65068         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
65069         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
65070         * doc/glibc-functions/wcschrnul.texi: Likewise.
65071         * doc/glibc-functions/wcsftime_l.texi: Likewise.
65072         * doc/glibc-functions/wcstod_l.texi: Likewise.
65073         * doc/glibc-functions/wcstof_l.texi: Likewise.
65074         * doc/glibc-functions/wcstol_l.texi: Likewise.
65075         * doc/glibc-functions/wcstold_l.texi: Likewise.
65076         * doc/glibc-functions/wcstoll_l.texi: Likewise.
65077         * doc/glibc-functions/wcstoq.texi: Likewise.
65078         * doc/glibc-functions/wcstoul_l.texi: Likewise.
65079         * doc/glibc-functions/wcstoull_l.texi: Likewise.
65080         * doc/glibc-functions/wcstouq.texi: Likewise.
65081         * doc/glibc-functions/wmempcpy.texi: Likewise.
65083 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
65084             Eric Blake  <ebb9@byu.net>
65085             Paolo Bonzini  <bonzini@gnu.org>
65086             Bruno Haible  <bruno@clisp.org>
65088         Make c-stack work on Haiku.
65089         * lib/c-stack.c (SA_ONSTACK): Define fallback.
65090         (c_stack_action): Use SA_ONSTACK flag.
65092 2008-12-22  Bruno Haible  <bruno@clisp.org>
65094         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
65096 2008-12-22  Bruno Haible  <bruno@clisp.org>
65098         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
65099         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
65100         being overridden.
65101         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
65102         New macros.
65103         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
65104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
65105         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
65106         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
65108 2008-12-22  Bruno Haible  <bruno@clisp.org>
65110         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
65111         from test code.
65113 2008-12-22  Eric Blake  <ebb9@byu.net>
65115         Avoid gcc warnings on cygwin.
65116         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
65117         Avoid unused variable.
65118         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
65119         Likewise.
65121 2008-12-22  Bruno Haible  <bruno@clisp.org>
65123         Remove HAVE_MBRTOWC conditionals.
65124         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
65125         (mbscasecmp): Assume mbrtowc function.
65126         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
65127         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
65128         * lib/mbschr.c: Include mbuiter.h unconditionally.
65129         (mbschr): Assume mbrtowc function.
65130         * lib/mbscspn.c: Include mbuiter.h unconditionally.
65131         (mbscspn): Assume mbrtowc function.
65132         * lib/mbslen.c: Include mbuiter.h unconditionally.
65133         (mbslen): Assume mbrtowc function.
65134         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
65135         (mbsncasecmp): Assume mbrtowc function.
65136         * lib/mbsnlen.c: Include mbiter.h unconditionally.
65137         (mbsnlen): Assume mbrtowc function.
65138         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
65139         (mbspbrk): Assume mbrtowc function.
65140         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
65141         (mbspcasecmp): Assume mbrtowc function.
65142         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
65143         (mbsrchr): Assume mbrtowc function.
65144         * lib/mbssep.c: Include mbuiter.h unconditionally.
65145         (mbssep): Assume mbrtowc function.
65146         * lib/mbsspn.c: Include mbuiter.h unconditionally.
65147         (mbsspn): Assume mbrtowc function.
65148         * lib/mbsstr.c: Include mbuiter.h unconditionally.
65149         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
65150         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
65151         (mbstok_r): Assume mbrtowc function.
65152         * lib/propername.c: Include mbuiter.h unconditionally.
65153         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
65154         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
65155         (trim2): Assume mbrtowc function.
65156         * lib/mbswidth.c (mbsinit): Remove fallback definition.
65157         (mbsnwidth): Assume mbrtowc function.
65158         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
65159         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
65160         fallback definitions.
65161         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
65163 2008-12-22  Bruno Haible  <bruno@clisp.org>
65165         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
65167 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
65169         * modules/regex: Request emulations for the mb*/wc* functions we need.
65170         * m4/regex.m4: Don't look for those functions here.
65171         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
65173 2008-12-22  Bruno Haible  <bruno@clisp.org>
65175         * modules/fnmatch (Depends-on): Remove duplicated dependency.
65177 2008-12-21  Bruno Haible  <bruno@clisp.org>
65179         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
65180         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
65181         (Include): Remove conditionalization.
65182         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
65183         (Include): Remove conditionalization.
65184         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
65185         (Include): Remove conditionalization.
65186         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
65187         * m4/mbfile.m4 (gl_MBFILE): Likewise.
65188         * NEWS: Mention the change.
65189         Reported by Alan Hourihane <alanh@fairlite.co.uk>
65190         via Sergey Poznyakoff <gray@gnu.org.ua>.
65192 2008-12-21  Bruno Haible  <bruno@clisp.org>
65194         * MODULES.html.sh (Extended multibyte and wide character utilities
65195         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
65196         wcrtomb, wcsrtombs.
65197         (Support for systems lacking POSIX:2008): Add accept, bind, close,
65198         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
65199         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
65200         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
65202 2008-12-21  Bruno Haible  <bruno@clisp.org>
65204         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
65206 2008-12-21  Bruno Haible  <bruno@clisp.org>
65208         * modules/wcsnrtombs-tests: New file.
65209         * tests/test-wcsnrtombs1.sh: New file.
65210         * tests/test-wcsnrtombs2.sh: New file.
65211         * tests/test-wcsnrtombs3.sh: New file.
65212         * tests/test-wcsnrtombs4.sh: New file.
65213         * tests/test-wcsnrtombs.c: New file.
65215         New module 'wcsnrtombs'.
65216         * lib/wchar.in.h (wcsnrtombs): New declaration.
65217         * lib/wcsnrtombs.c: New file.
65218         * lib/wcsrtombs-state.c: New file.
65219         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
65220         (internal_state): Remove variable.
65221         * m4/wcsnrtombs.m4: New file.
65222         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
65223         compilation units.
65224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
65225         HAVE_WCSNRTOMBS.
65226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
65227         HAVE_WCSNRTOMBS.
65228         * modules/wcsnrtombs: New file.
65229         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
65230         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
65232 2008-12-21  Bruno Haible  <bruno@clisp.org>
65234         * modules/wcsrtombs-tests: New file.
65235         * tests/test-wcsrtombs1.sh: New file.
65236         * tests/test-wcsrtombs2.sh: New file.
65237         * tests/test-wcsrtombs3.sh: New file.
65238         * tests/test-wcsrtombs4.sh: New file.
65239         * tests/test-wcsrtombs.c: New file.
65241         New module 'wcsrtombs'.
65242         * lib/wchar.in.h (wcsrtombs): New declaration.
65243         * lib/wcsrtombs.c: New file.
65244         * m4/wcsrtombs.m4: New file.
65245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
65246         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
65247         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
65248         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
65249         * modules/wcsrtombs: New file.
65250         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
65251         bugs.
65253 2008-12-21  Bruno Haible  <bruno@clisp.org>
65255         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
65256         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
65257         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
65258         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
65259         if not correct.
65260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
65261         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
65262         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
65263         m4/locale-zh.m4, m4/codeset.m4.
65264         * doc/posix-functions/wcrtomb.texi: Document the bug.
65266 2008-12-21  Bruno Haible  <bruno@clisp.org>
65268         Work around a btowc() bug on IRIX 6.5.
65269         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
65270         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
65271         REPLACE_WTOBC if not.
65272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
65273         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
65274         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
65276 2008-12-21  Bruno Haible  <bruno@clisp.org>
65278         * modules/wcrtomb-tests: New file.
65279         * tests/test-wcrtomb.sh: New file.
65280         * tests/test-wcrtomb.c: New file.
65282         New module 'wcrtomb'.
65283         * lib/wchar.in.h (wcrtomb): New declaration.
65284         * lib/wcrtomb.c: New file.
65285         * m4/wcrtomb.m4: New file.
65286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
65287         HAVE_WCRTOMB.
65288         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
65289         HAVE_WCRTOMB.
65290         * modules/wcrtomb: New file.
65291         * doc/posix-functions/wcrtomb.texi: Mention the new module.
65293 2008-12-21  Bruno Haible  <bruno@clisp.org>
65295         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
65296         * modules/mbsrtowcs (Files): Likewise.
65297         * modules/wctob (Files): Likewise.
65298         * modules/c-strcase-tests (Files): Likewise.
65299         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
65300         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
65301         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
65302         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
65303         * modules/vasnprintf-posix-tests (Files): Likewise.
65305 2008-12-21  William Pursell  <bill.pursell@gmail.com>
65307         gitlog-to-changelog: pass all command-line arguments to git-log
65308         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
65309         it is sometimes convenient to filter the commits in various ways.
65310         gitlog-to-changelog only allows --since to specify a start date,
65311         but git-log itself supports many other filtering mechanisms.
65312         At the moment, I want to filter by branch name.  Rather than
65313         adding a --branch option to gitlog-to-changelog, it seems more
65314         flexible to simply pass all options directly to git-log and let
65315         git do the work.  Notice that this effectively makes --since a
65316         redundant option for gitlog-to-changelog, but removing it would
65317         require current usage to change since calls would then require
65318         an additional '--'.
65320 2008-12-21  Bruno Haible  <bruno@clisp.org>
65322         * modules/mbsnrtowcs-tests: New file.
65323         * tests/test-mbsnrtowcs1.sh: New file.
65324         * tests/test-mbsnrtowcs2.sh: New file.
65325         * tests/test-mbsnrtowcs3.sh: New file.
65326         * tests/test-mbsnrtowcs4.sh: New file.
65327         * tests/test-mbsnrtowcs.c: New file.
65329         New module 'mbsnrtowcs'.
65330         * lib/wchar.in.h (mbsnrtowcs): New declaration.
65331         * lib/mbsnrtowcs.c: New file.
65332         * lib/mbsrtowcs-state.c: New file.
65333         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
65334         (internal_state): Remove variable.
65335         * m4/mbsnrtowcs.m4: New file.
65336         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
65337         compilation units.
65338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
65339         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
65340         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
65341         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
65342         * modules/mbsnrtowcs: New file.
65343         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
65344         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
65345         portability problem.
65347 2008-12-21  Bruno Haible  <bruno@clisp.org>
65349         Work around mbsrtowcs bug.
65350         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
65351         (gl_FUNC_MBSRTOWCS): Invoke it.
65352         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
65353         m4/locale-zh.m4.
65354         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
65356 2008-12-21  Bruno Haible  <bruno@clisp.org>
65358         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
65360 2008-12-21  Bruno Haible  <bruno@clisp.org>
65362         Update doc for AIX.
65363         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
65364         16-bit wchar_t type.
65365         * doc/posix-functions/btowc.texi: Likewise.
65366         * doc/posix-functions/fgetwc.texi: Likewise.
65367         * doc/posix-functions/fgetws.texi: Likewise.
65368         * doc/posix-functions/fputwc.texi: Likewise.
65369         * doc/posix-functions/fputws.texi: Likewise.
65370         * doc/posix-functions/fwide.texi: Likewise.
65371         * doc/posix-functions/fwprintf.texi: Likewise.
65372         * doc/posix-functions/fwscanf.texi: Likewise.
65373         * doc/posix-functions/getwchar.texi: Likewise.
65374         * doc/posix-functions/getwc.texi: Likewise.
65375         * doc/posix-functions/iswalnum.texi: Likewise.
65376         * doc/posix-functions/iswalpha.texi: Likewise.
65377         * doc/posix-functions/iswblank.texi: Likewise.
65378         * doc/posix-functions/iswcntrl.texi: Likewise.
65379         * doc/posix-functions/iswctype.texi: Likewise.
65380         * doc/posix-functions/iswdigit.texi: Likewise.
65381         * doc/posix-functions/iswgraph.texi: Likewise.
65382         * doc/posix-functions/iswlower.texi: Likewise.
65383         * doc/posix-functions/iswprint.texi: Likewise.
65384         * doc/posix-functions/iswpunct.texi: Likewise.
65385         * doc/posix-functions/iswspace.texi: Likewise.
65386         * doc/posix-functions/iswupper.texi: Likewise.
65387         * doc/posix-functions/iswxdigit.texi: Likewise.
65388         * doc/posix-functions/mbrtowc.texi: Likewise.
65389         * doc/posix-functions/mbsrtowcs.texi: Likewise.
65390         * doc/posix-functions/mbstowcs.texi: Likewise.
65391         * doc/posix-functions/mbtowc.texi: Likewise.
65392         * doc/posix-functions/putwchar.texi: Likewise.
65393         * doc/posix-functions/putwc.texi: Likewise.
65394         * doc/posix-functions/swprintf.texi: Likewise.
65395         * doc/posix-functions/tolower.texi: Likewise.
65396         * doc/posix-functions/toupper.texi: Likewise.
65397         * doc/posix-functions/towctrans.texi: Likewise.
65398         * doc/posix-functions/ungetwc.texi: Likewise.
65399         * doc/posix-functions/vswprintf.texi: Likewise.
65400         * doc/posix-functions/wcrtomb.texi: Likewise.
65401         * doc/posix-functions/wcscat.texi: Likewise.
65402         * doc/posix-functions/wcschr.texi: Likewise.
65403         * doc/posix-functions/wcscmp.texi: Likewise.
65404         * doc/posix-functions/wcscoll.texi: Likewise.
65405         * doc/posix-functions/wcscpy.texi: Likewise.
65406         * doc/posix-functions/wcscspn.texi: Likewise.
65407         * doc/posix-functions/wcsftime.texi: Likewise.
65408         * doc/posix-functions/wcslen.texi: Likewise.
65409         * doc/posix-functions/wcsncat.texi: Likewise.
65410         * doc/posix-functions/wcsncmp.texi: Likewise.
65411         * doc/posix-functions/wcsncpy.texi: Likewise.
65412         * doc/posix-functions/wcspbrk.texi: Likewise.
65413         * doc/posix-functions/wcsrchr.texi: Likewise.
65414         * doc/posix-functions/wcsrtombs.texi: Likewise.
65415         * doc/posix-functions/wcsspn.texi: Likewise.
65416         * doc/posix-functions/wcsstr.texi: Likewise.
65417         * doc/posix-functions/wcstod.texi: Likewise.
65418         * doc/posix-functions/wcstof.texi: Likewise.
65419         * doc/posix-functions/wcstoimax.texi: Likewise.
65420         * doc/posix-functions/wcstok.texi: Likewise.
65421         * doc/posix-functions/wcstold.texi: Likewise.
65422         * doc/posix-functions/wcstoll.texi: Likewise.
65423         * doc/posix-functions/wcstol.texi: Likewise.
65424         * doc/posix-functions/wcstombs.texi: Likewise.
65425         * doc/posix-functions/wcstoull.texi: Likewise.
65426         * doc/posix-functions/wcstoul.texi: Likewise.
65427         * doc/posix-functions/wcstoumax.texi: Likewise.
65428         * doc/posix-functions/wcswidth.texi: Likewise.
65429         * doc/posix-functions/wcsxfrm.texi: Likewise.
65430         * doc/posix-functions/wctob.texi: Likewise.
65431         * doc/posix-functions/wctomb.texi: Likewise.
65432         * doc/posix-functions/wctrans.texi: Likewise.
65433         * doc/posix-functions/wctype.texi: Likewise.
65434         * doc/posix-functions/wcwidth.texi: Likewise.
65435         * doc/posix-functions/wmemchr.texi: Likewise.
65436         * doc/posix-functions/wmemcmp.texi: Likewise.
65437         * doc/posix-functions/wmemcpy.texi: Likewise.
65438         * doc/posix-functions/wmemmove.texi: Likewise.
65439         * doc/posix-functions/wmemset.texi: Likewise.
65440         * doc/posix-functions/wprintf.texi: Likewise.
65441         * doc/posix-functions/wscanf.texi: Likewise.
65443 2008-12-21  Bruno Haible  <bruno@clisp.org>
65445         Update doc for HP-UX 11.11.
65446         * doc/posix-functions/btowc.texi: Clarify that the function is missing
65447         in HP-UX version 11.00, not in all versions of HP-UX 11.
65448         * doc/posix-functions/fwide.texi: Likewise.
65449         * doc/posix-functions/fwprintf.texi: Likewise.
65450         * doc/posix-functions/fwscanf.texi: Likewise.
65451         * doc/posix-functions/inet_ntop.texi: Likewise.
65452         * doc/posix-functions/inet_pton.texi: Likewise.
65453         * doc/posix-functions/mbrlen.texi: Likewise.
65454         * doc/posix-functions/mbrtowc.texi: Likewise.
65455         * doc/posix-functions/mbsinit.texi: Likewise.
65456         * doc/posix-functions/mbsrtowcs.texi: Likewise.
65457         * doc/posix-functions/swprintf.texi: Likewise.
65458         * doc/posix-functions/swscanf.texi: Likewise.
65459         * doc/posix-functions/towctrans.texi: Likewise.
65460         * doc/posix-functions/vfwprintf.texi: Likewise.
65461         * doc/posix-functions/vswprintf.texi: Likewise.
65462         * doc/posix-functions/vwprintf.texi: Likewise.
65463         * doc/posix-functions/wcrtomb.texi: Likewise.
65464         * doc/posix-functions/wcsrtombs.texi: Likewise.
65465         * doc/posix-functions/wcsstr.texi: Likewise.
65466         * doc/posix-functions/wctob.texi: Likewise.
65467         * doc/posix-functions/wctrans.texi: Likewise.
65468         * doc/posix-functions/wmemchr.texi: Likewise.
65469         * doc/posix-functions/wmemcmp.texi: Likewise.
65470         * doc/posix-functions/wmemcpy.texi: Likewise.
65471         * doc/posix-functions/wmemmove.texi: Likewise.
65472         * doc/posix-functions/wmemset.texi: Likewise.
65473         * doc/posix-functions/wprintf.texi: Likewise.
65474         * doc/posix-functions/wscanf.texi: Likewise.
65476 2008-12-21  Bruno Haible  <bruno@clisp.org>
65478         Work around a portability problem.
65479         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
65480         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
65482 2008-12-20  Bruno Haible  <bruno@clisp.org>
65484         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
65485         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
65486         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
65487         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
65488         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
65490         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
65491         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
65492         set.
65493         (GNULIB_defined_mbstate_t): New macro.
65494         (mbsinit): Redefine if REPLACE_MBSINIT is set.
65495         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
65496         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
65497         reuses the system's mbrtowc function but works around the bugs.
65498         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
65499         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
65500         macros.
65501         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
65502         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
65503         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
65504         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
65505         REPLACE_MBSINIT if mbsinit needs to be overridden.
65506         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
65507         REPLACE_MBSINIT, REPLACE_MBRTOWC.
65508         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
65509         REPLACE_MBSINIT, REPLACE_MBRTOWC.
65510         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
65511         m4/locale-zh.m4.
65512         (Depends): Add mbsinit.
65513         * modules/mbsinit (Depends): Add mbrtowc.
65514         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
65516 2008-12-20  Bruno Haible  <bruno@clisp.org>
65518         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
65519         so that there are no conversion errors on AIX.
65520         * tests/test-mbsrtowcs.c (main): LIkewise.
65522 2008-12-20  Bruno Haible  <bruno@clisp.org>
65524         Work around wctob bug on Solaris <= 9.
65525         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
65526         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
65527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
65528         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
65529         * modules/wctob (Files): Add m4/locale-fr.m4.
65530         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
65532 2008-12-20  Bruno Haible  <bruno@clisp.org>
65534         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
65535         /dev/null.
65536         * tests/test-select-in.sh: Likewise.
65537         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65539 2008-12-20  Bruno Haible  <bruno@clisp.org>
65541         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
65542         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
65543         Cygwin 1.5.x.
65545 2008-12-20  Bruno Haible  <bruno@clisp.org>
65547         Ensure mbstate_t is defined on HP-UX 11.11.
65548         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
65549         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
65550         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
65551         AC_USE_SYSTEM_EXTENSIONS.
65552         * modules/fnmatch (Depends-on): Add extensions.
65553         * modules/mbrlen (Depends-on): Likewise.
65554         * modules/mbrtowc (Depends-on): Likewise.
65555         * modules/mbsinit (Depends-on): Likewise.
65556         * modules/mbsrtowcs (Depends-on): Likewise.
65557         * modules/mbswidth (Depends-on): Likewise.
65558         * modules/quotearg (Depends-on): Likewise.
65559         * modules/strftime (Depends-on): Likewise.
65561 2008-12-20  Bruno Haible  <bruno@clisp.org>
65563         Ensure wctob is declared on IRIX 6.5.
65564         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
65565         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
65566         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
65567         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
65568         of HAVE_WCTOB.
65569         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
65570         HAVE_WCTOB.
65571         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
65573 2008-12-19  Bruno Haible  <bruno@clisp.org>
65575         * modules/mbsrtowcs-tests: New file.
65576         * tests/test-mbsrtowcs1.sh: New file.
65577         * tests/test-mbsrtowcs2.sh: New file.
65578         * tests/test-mbsrtowcs3.sh: New file.
65579         * tests/test-mbsrtowcs4.sh: New file.
65580         * tests/test-mbsrtowcs.c: New file.
65582         New module 'mbsrtowcs'.
65583         * lib/wchar.in.h (mbsrtowcs): New declaration.
65584         * lib/mbsrtowcs.c: New file.
65585         * m4/mbsrtowcs.m4: New file.
65586         * modules/mbsrtowcs: New file.
65587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
65588         HAVE_MBSRTOWCS.
65589         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
65590         HAVE_MBSRTOWCS.
65591         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
65593 2008-12-19  Bruno Haible  <bruno@clisp.org>
65595         New module 'mbrlen'.
65596         * lib/wchar.in.h (mbrlen): New declaration.
65597         * lib/mbrlen.c: New file.
65598         * m4/mbrlen.m4: New file.
65599         * modules/mbrlen: New file.
65600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
65601         HAVE_MBRLEN.
65602         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
65603         HAVE_MBRLEN.
65604         * doc/posix-functions/mbrlen.texi: Document the new module.
65606 2008-12-19  Bruno Haible  <bruno@clisp.org>
65608         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
65609         * modules/mbrtowc (Depends-on): Add verify.
65610         Suggested by Paul Eggert.
65612 2008-12-18  Bruno Haible  <bruno@clisp.org>
65614         * modules/mbsinit-tests: New file.
65615         * tests/test-mbsinit.sh: New file.
65616         * tests/test-mbsinit.c: New file.
65618 2008-12-18  Bruno Haible  <bruno@clisp.org>
65620         * modules/mbrtowc-tests: New file.
65621         * tests/test-mbrtowc1.sh: New file.
65622         * tests/test-mbrtowc2.sh: New file.
65623         * tests/test-mbrtowc3.sh: New file.
65624         * tests/test-mbrtowc4.sh: New file.
65625         * tests/test-mbrtowc.c: New file.
65627         New module 'mbrtowc'.
65628         * lib/wchar.in.h (mbstate_t): Override when the system does not have
65629         mbsinit and mbrtowc.
65630         (mbrtowc): New declaration.
65631         * lib/mbrtowc.c: New file.
65632         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
65633         * modules/mbrtowc: New file.
65634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
65635         HAVE_MBRTOWC.
65636         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
65637         HAVE_MBRTOWC.
65638         * doc/posix-functions/mbrtowc.texi: Document the new module.
65640 2008-12-18  Bruno Haible  <bruno@clisp.org>
65642         New module 'wctob'.
65643         * lib/wchar.in.h (wctob): New declaration.
65644         * lib/wctob.c: New file.
65645         * m4/wctob.m4: New file.
65646         * modules/wctob: New file.
65647         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
65648         HAVE_WCTOB.
65649         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
65650         * doc/posix-functions/wctob.texi: Document the new module.
65652 2008-12-18  Bruno Haible  <bruno@clisp.org>
65654         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
65655         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
65657 2008-12-18  Simon Josefsson  <simon@josefsson.org>
65659         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
65660         G. Christensen" <tgc@jupiterrise.com>.
65662         * lib/flock.c: Need to include errno.h.  Reported by "Tom
65663         G. Christensen" <tgc@jupiterrise.com>.
65665         * lib/flock.c: Need to include string.h.  Reported by "Tom
65666         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
65667         <ebb9@byu.net>.
65669 2008-12-18  Bruno Haible  <bruno@clisp.org>
65671         * m4/locale-ja.m4: New file, from GNU gettext.
65673 2008-12-17  Bruno Haible  <bruno@clisp.org>
65675         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
65676         Suggested by Eric Blake.
65678 2008-12-17  Bruno Haible  <bruno@clisp.org>
65680         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
65682 2008-12-17  Bruno Haible  <bruno@clisp.org>
65684         * lib/mbsinit.c: Include verify.h. Verify an assumption.
65685         * modules/mbsinit (Depends-on): Add verify.
65686         Suggested by Paul Eggert.
65688 2008-12-17  Bruno Haible  <bruno@clisp.org>
65690         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
65691         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
65692         gl_FUNC_MBRTOWC.
65693         * m4/mbiter.m4 (gl_MBITER): LIkewise.
65694         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
65695         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
65696         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
65697         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
65698         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
65699         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
65700         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
65701         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
65702         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
65703         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
65704         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
65705         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
65706         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
65707         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
65708         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65709         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
65710         * modules/trim (configure.ac): Likewise.
65712 2008-12-17  Bruno Haible  <bruno@clisp.org>
65714         * modules/btowc-tests: New file.
65715         * tests/test-btowc1.sh: New file.
65716         * tests/test-btowc2.sh: New file.
65717         * tests/test-btowc.c: New file.
65719         New module 'btowc'.
65720         * lib/wchar.in.h (btowc): New declaration.
65721         * lib/btowc.c: New file.
65722         * m4/btowc.m4: New file.
65723         * modules/btowc: New file.
65724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
65725         HAVE_BTOWC.
65726         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
65727         * doc/posix-functions/btowc.texi: Document the new module.
65729 2008-12-17  Bruno Haible  <bruno@clisp.org>
65731         New module 'mbsinit'.
65732         * lib/wchar.in.h (mbsinit): New declaration.
65733         * lib/mbsinit.c: New file.
65734         * m4/mbsinit.m4: New file.
65735         * modules/mbsinit: New file.
65736         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
65737         HAVE_MBSINIT.
65738         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
65739         HAVE_MBSINIT.
65740         * doc/posix-functions/mbsinit.texi: Document the new module.
65742 2008-12-16  Bruno Haible  <bruno@clisp.org>
65744         * lib/unistd.in.h: Add comment.
65745         * tests/test-environ.c: Don't include <stdlib.h>.
65747 2008-12-16  Bruno Haible  <bruno@clisp.org>
65749         * lib/parse-duration.h (parse_duration): Document return value
65750         convention.
65751         * lib/parse-duration.c: Include specification header first. Add
65752         comments.
65753         (_): Remove macro.
65754         (parse_year_month_day, parse_hour_minute_second): Move side effects
65755         outside of strchr call.
65756         (parse_non_iso8601): Move side effects outside of isspace call.
65757         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
65758         call.
65760 2008-12-16  Bruno Haible  <bruno@clisp.org>
65762         * tests/test-parse-duration.sh: Produce no output when the test
65763         succeeds.
65765 2008-12-16  Bruno Haible  <bruno@clisp.org>
65767         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
65768         expressions.
65770 2008-12-15  Bruno Haible  <bruno@clisp.org>
65772         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
65773         * doc/glibc-functions/flistxattr.texi: Likewise.
65774         * doc/glibc-functions/fopencookie.texi: Likewise.
65775         * doc/glibc-functions/fremovexattr.texi: Likewise.
65776         * doc/glibc-functions/fsetxattr.texi: Likewise.
65777         * doc/glibc-functions/getxattr.texi: Likewise.
65778         * doc/glibc-functions/lgetxattr.texi: Likewise.
65779         * doc/glibc-functions/listxattr.texi: Likewise.
65780         * doc/glibc-functions/llistxattr.texi: Likewise.
65781         * doc/glibc-functions/lremovexattr.texi: Likewise.
65782         * doc/glibc-functions/lsetxattr.texi: Likewise.
65783         * doc/glibc-functions/removexattr.texi: Likewise.
65784         * doc/glibc-functions/setxattr.texi: Likewise.
65785         * doc/posix-functions/open_memstream.texi: Likewise.
65787 2008-12-15  Eric Blake  <ebb9@byu.net>
65789         Update doc for cygwin 1.7.
65790         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
65791         functions.
65792         * doc/posix-functions/fchmodat.texi: Likewise.
65793         * doc/posix-functions/fchownat.texi: Likewise.
65794         * doc/posix-functions/fdopendir.texi: Likewise.
65795         * doc/posix-functions/fmemopen.texi: Likewise.
65796         * doc/posix-functions/freeaddrinfo.texi: Likewise.
65797         * doc/posix-functions/fstatat.texi: Likewise.
65798         * doc/posix-functions/futimens.texi: Likewise.
65799         * doc/posix-functions/gai_strerror.texi: Likewise.
65800         * doc/posix-functions/getaddrinfo.texi: Likewise.
65801         * doc/posix-functions/getnameinfo.texi: Likewise.
65802         * doc/posix-functions/if_freenameindex.texi: Likewise.
65803         * doc/posix-functions/if_indextoname.texi: Likewise.
65804         * doc/posix-functions/if_nameindex.texi: Likewise.
65805         * doc/posix-functions/if_nametoindex.texi: Likewise.
65806         * doc/posix-functions/insque.texi: Likewise.
65807         * doc/posix-functions/linkat.texi: Likewise.
65808         * doc/posix-functions/llrint.texi: Likewise.
65809         * doc/posix-functions/llrintf.texi: Likewise.
65810         * doc/posix-functions/llrintl.texi: Likewise.
65811         * doc/posix-functions/lockf.texi: Likewise.
65812         * doc/posix-functions/lrintl.texi: Likewise.
65813         * doc/posix-functions/mkdirat.texi: Likewise.
65814         * doc/posix-functions/mkfifoat.texi: Likewise.
65815         * doc/posix-functions/mknodat.texi: Likewise.
65816         * doc/posix-functions/mq_close.texi: Likewise.
65817         * doc/posix-functions/mq_getattr.texi: Likewise.
65818         * doc/posix-functions/mq_notify.texi: Likewise.
65819         * doc/posix-functions/mq_open.texi: Likewise.
65820         * doc/posix-functions/mq_receive.texi: Likewise.
65821         * doc/posix-functions/mq_send.texi: Likewise.
65822         * doc/posix-functions/mq_setattr.texi: Likewise.
65823         * doc/posix-functions/mq_timedreceive.texi: Likewise.
65824         * doc/posix-functions/mq_timedsend.texi: Likewise.
65825         * doc/posix-functions/mq_unlink.texi: Likewise.
65826         * doc/posix-functions/open_memstream.texi: Likewise.
65827         * doc/posix-functions/openat.texi: Likewise.
65828         * doc/posix-functions/posix_fadvise.texi: Likewise.
65829         * doc/posix-functions/posix_fallocate.texi: Likewise.
65830         * doc/posix-functions/posix_madvise.texi: Likewise.
65831         * doc/posix-functions/posix_memalign.texi: Likewise.
65832         * doc/posix-functions/posix_openpt.texi: Likewise.
65833         * doc/posix-functions/readlinkat.texi: Likewise.
65834         * doc/posix-functions/remque.texi: Likewise.
65835         * doc/posix-functions/renameat.texi: Likewise.
65836         * doc/posix-functions/rintl.texi: Likewise.
65837         * doc/posix-functions/sem_unlink.texi: Likewise.
65838         * doc/posix-functions/shm_open.texi: Likewise.
65839         * doc/posix-functions/shm_unlink.texi: Likewise.
65840         * doc/posix-functions/signgam.texi: Likewise.
65841         * doc/posix-functions/sigset.texi: Likewise.
65842         * doc/posix-functions/stpcpy.texi: Likewise.
65843         * doc/posix-functions/stpncpy.texi: Likewise.
65844         * doc/posix-functions/strerror.texi: Likewise.
65845         * doc/posix-functions/strtod.texi: Likewise.
65846         * doc/posix-functions/symlinkat.texi: Likewise.
65847         * doc/posix-functions/unlinkat.texi: Likewise.
65848         * doc/posix-functions/utimensat.texi: Likewise.
65849         * doc/glibc-functions/bindresvport.texi: Likewise.
65850         * doc/glibc-functions/dn_expand.texi: Likewise.
65851         * doc/glibc-functions/exp10.texi: Likewise.
65852         * doc/glibc-functions/exp10f.texi: Likewise.
65853         * doc/glibc-functions/fgetxattr.texi: Likewise.
65854         * doc/glibc-functions/flistxattr.texi: Likewise.
65855         * doc/glibc-functions/fopencookie.texi: Likewise.
65856         * doc/glibc-functions/freeifaddrs.texi: Likewise.
65857         * doc/glibc-functions/fremovexattr.texi: Likewise.
65858         * doc/glibc-functions/fsetxattr.texi: Likewise.
65859         * doc/glibc-functions/getifaddrs.texi: Likewise.
65860         * doc/glibc-functions/getxattr.texi: Likewise.
65861         * doc/glibc-functions/lgetxattr.texi: Likewise.
65862         * doc/glibc-functions/listxattr.texi: Likewise.
65863         * doc/glibc-functions/llistxattr.texi: Likewise.
65864         * doc/glibc-functions/lremovexattr.texi: Likewise.
65865         * doc/glibc-functions/lsetxattr.texi: Likewise.
65866         * doc/glibc-functions/pow10.texi: Likewise.
65867         * doc/glibc-functions/pow10f.texi: Likewise.
65868         * doc/glibc-functions/rcmd_af.texi: Likewise.
65869         * doc/glibc-functions/removexattr.texi: Likewise.
65870         * doc/glibc-functions/res_init.texi: Likewise.
65871         * doc/glibc-functions/res_mkquery.texi: Likewise.
65872         * doc/glibc-functions/res_query.texi: Likewise.
65873         * doc/glibc-functions/res_querydomain.texi: Likewise.
65874         * doc/glibc-functions/res_send.texi: Likewise.
65875         * doc/glibc-functions/rresvport_af.texi: Likewise.
65876         * doc/glibc-functions/setxattr.texi: Likewise.
65877         * doc/glibc-functions/strcasestr.texi: Likewise.
65879 2008-12-15  Bruno Haible  <bruno@clisp.org>
65881         Fix compilation error on OSF/1 4.0.
65882         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
65883         <sys/time.h>, simply delegate to the system header.
65884         Reported by Daniel Richard G. <oss@teragram.com>.
65886 2008-12-15  Bruno Haible  <bruno@clisp.org>
65888         * doc/posix-functions/openat.texi: Mention the 'openat' module.
65889         * doc/posix-functions/fchmodat.texi: Likewise.
65890         * doc/posix-functions/fchownat.texi: Likewise.
65891         * doc/posix-functions/fdopendir.texi: Likewise.
65892         * doc/posix-functions/fstatat.texi: Likewise.
65893         * doc/posix-functions/mkdirat.texi: Likewise.
65894         * doc/posix-functions/unlinkat.texi: Likewise.
65896 2008-12-14  Bruno Haible  <bruno@clisp.org>
65898         Update doc for POSIX:2008.
65899         * doc/posix-functions/faccessat.texi: New file.
65900         * doc/posix-functions/fchmodat.texi: New file.
65901         * doc/posix-functions/fchownat.texi: New file.
65902         * doc/posix-functions/fdopendir.texi: New file.
65903         * doc/posix-functions/fstatat.texi: New file.
65904         * doc/posix-functions/futimens.texi: New file.
65905         * doc/posix-functions/linkat.texi: New file.
65906         * doc/posix-functions/mkdirat.texi: New file.
65907         * doc/posix-functions/mkfifoat.texi: New file.
65908         * doc/posix-functions/mknodat.texi: New file.
65909         * doc/posix-functions/open_wmemstream.texi: New file.
65910         * doc/posix-functions/openat.texi: New file.
65911         * doc/posix-functions/psiginfo.texi: New file.
65912         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
65913         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
65914         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
65915         * doc/posix-functions/readlinkat.texi: New file.
65916         * doc/posix-functions/renameat.texi: New file.
65917         * doc/posix-functions/strerror_l.texi: New file.
65918         * doc/posix-functions/symlinkat.texi: New file.
65919         * doc/posix-functions/unlinkat.texi: New file.
65920         * doc/posix-functions/utimensat.texi: New file.
65921         * doc/gnulib.texi (Function Substitutes): Add these subsections.
65923 2008-12-14  Bruno Haible  <bruno@clisp.org>
65925         Update doc for POSIX:2008.
65926         * doc/posix-functions/alphasort.texi: Renamed from
65927         doc/glibc-functions/alphasort.texi.
65928         * doc/posix-functions/dirfd.texi: Renamed from
65929         doc/glibc-functions/dirfd.texi.
65930         * doc/posix-functions/dprintf.texi: Renamed from
65931         doc/glibc-functions/dprintf.texi.
65932         * doc/posix-functions/duplocale.texi: Renamed from
65933         doc/glibc-functions/duplocale.texi.
65934         * doc/posix-functions/fexecve.texi: Renamed from
65935         doc/glibc-functions/fexecve.texi.
65936         * doc/posix-functions/fmemopen.texi: Renamed from
65937         doc/glibc-functions/fmemopen.texi.
65938         * doc/posix-functions/freelocale.texi: Renamed from
65939         doc/glibc-functions/freelocale.texi.
65940         * doc/posix-functions/getdate_err.texi: Renamed from
65941         doc/glibc-functions/getdate_err.texi.
65942         * doc/posix-functions/isalnum_l.texi: Renamed from
65943         doc/glibc-functions/isalnum_l.texi.
65944         * doc/posix-functions/isalpha_l.texi: Renamed from
65945         doc/glibc-functions/isalpha_l.texi.
65946         * doc/posix-functions/isblank_l.texi: Renamed from
65947         doc/glibc-functions/isblank_l.texi.
65948         * doc/posix-functions/iscntrl_l.texi: Renamed from
65949         doc/glibc-functions/iscntrl_l.texi.
65950         * doc/posix-functions/isdigit_l.texi: Renamed from
65951         doc/glibc-functions/isdigit_l.texi.
65952         * doc/posix-functions/isgraph_l.texi: Renamed from
65953         doc/glibc-functions/isgraph_l.texi.
65954         * doc/posix-functions/islower_l.texi: Renamed from
65955         doc/glibc-functions/islower_l.texi.
65956         * doc/posix-functions/isprint_l.texi: Renamed from
65957         doc/glibc-functions/isprint_l.texi.
65958         * doc/posix-functions/ispunct_l.texi: Renamed from
65959         doc/glibc-functions/ispunct_l.texi.
65960         * doc/posix-functions/isspace_l.texi: Renamed from
65961         doc/glibc-functions/isspace_l.texi.
65962         * doc/posix-functions/isupper_l.texi: Renamed from
65963         doc/glibc-functions/isupper_l.texi.
65964         * doc/posix-functions/iswalnum_l.texi: Renamed from
65965         doc/glibc-functions/iswalnum_l.texi.
65966         * doc/posix-functions/iswalpha_l.texi: Renamed from
65967         doc/glibc-functions/iswalpha_l.texi.
65968         * doc/posix-functions/iswblank_l.texi: Renamed from
65969         doc/glibc-functions/iswblank_l.texi.
65970         * doc/posix-functions/iswcntrl_l.texi: Renamed from
65971         doc/glibc-functions/iswcntrl_l.texi.
65972         * doc/posix-functions/iswctype_l.texi: Renamed from
65973         doc/glibc-functions/iswctype_l.texi.
65974         * doc/posix-functions/iswdigit_l.texi: Renamed from
65975         doc/glibc-functions/iswdigit_l.texi.
65976         * doc/posix-functions/iswgraph_l.texi: Renamed from
65977         doc/glibc-functions/iswgraph_l.texi.
65978         * doc/posix-functions/iswlower_l.texi: Renamed from
65979         doc/glibc-functions/iswlower_l.texi.
65980         * doc/posix-functions/iswprint_l.texi: Renamed from
65981         doc/glibc-functions/iswprint_l.texi.
65982         * doc/posix-functions/iswpunct_l.texi: Renamed from
65983         doc/glibc-functions/iswpunct_l.texi.
65984         * doc/posix-functions/iswspace_l.texi: Renamed from
65985         doc/glibc-functions/iswspace_l.texi.
65986         * doc/posix-functions/iswupper_l.texi: Renamed from
65987         doc/glibc-functions/iswupper_l.texi.
65988         * doc/posix-functions/iswxdigit_l.texi: Renamed from
65989         doc/glibc-functions/iswxdigit_l.texi.
65990         * doc/posix-functions/isxdigit_l.texi: Renamed from
65991         doc/glibc-functions/isxdigit_l.texi.
65992         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
65993         doc/glibc-functions/mbsnrtowcs.texi.
65994         * doc/posix-functions/mkdtemp.texi: Renamed from
65995         doc/glibc-functions/mkdtemp.texi.
65996         * doc/posix-functions/newlocale.texi: Renamed from
65997         doc/glibc-functions/newlocale.texi.
65998         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
65999         doc/glibc-functions/nl_langinfo_l.texi.
66000         * doc/posix-functions/open_memstream.texi: Renamed from
66001         doc/glibc-functions/open_memstream.texi.
66002         * doc/posix-functions/opterr.texi: Renamed from
66003         doc/glibc-functions/opterr.texi.
66004         * doc/posix-functions/optind.texi: Renamed from
66005         doc/glibc-functions/optind.texi.
66006         * doc/posix-functions/optopt.texi: Renamed from
66007         doc/glibc-functions/optopt.texi.
66008         * doc/posix-functions/psignal.texi: Renamed from
66009         doc/glibc-functions/psignal.texi.
66010         * doc/posix-functions/scandir.texi: Renamed from
66011         doc/glibc-functions/scandir.texi.
66012         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
66013         doc/glibc-functions/sched_get_priority_min.texi.
66014         * doc/posix-functions/signgam.texi: Renamed from
66015         doc/glibc-functions/signgam.texi.
66016         * doc/posix-functions/stpcpy.texi: Renamed from
66017         doc/glibc-functions/stpcpy.texi.
66018         * doc/posix-functions/stpncpy.texi: Renamed from
66019         doc/glibc-functions/stpncpy.texi.
66020         * doc/posix-functions/strcasecmp_l.texi: Renamed from
66021         doc/glibc-functions/strcasecmp_l.texi.
66022         * doc/posix-functions/strcoll_l.texi: Renamed from
66023         doc/glibc-functions/strcoll_l.texi.
66024         * doc/posix-functions/strfmon_l.texi: Renamed from
66025         doc/glibc-functions/strfmon_l.texi.
66026         * doc/posix-functions/strftime_l.texi: Renamed from
66027         doc/glibc-functions/strftime_l.texi.
66028         * doc/posix-functions/strncasecmp_l.texi: Renamed from
66029         doc/glibc-functions/strncasecmp_l.texi.
66030         * doc/posix-functions/strndup.texi: Renamed from
66031         doc/glibc-functions/strndup.texi.
66032         * doc/posix-functions/strnlen.texi: Renamed from
66033         doc/glibc-functions/strnlen.texi.
66034         * doc/posix-functions/strsignal.texi: Renamed from
66035         doc/glibc-functions/strsignal.texi.
66036         * doc/posix-functions/strxfrm_l.texi: Renamed from
66037         doc/glibc-functions/strxfrm_l.texi.
66038         * doc/posix-functions/timer_gettime.texi: Renamed from
66039         doc/glibc-functions/timer_gettime.texi.
66040         * doc/posix-functions/tolower_l.texi: Renamed from
66041         doc/glibc-functions/tolower_l.texi.
66042         * doc/posix-functions/toupper_l.texi: Renamed from
66043         doc/glibc-functions/toupper_l.texi.
66044         * doc/posix-functions/towctrans_l.texi: Renamed from
66045         doc/glibc-functions/towctrans_l.texi.
66046         * doc/posix-functions/towlower_l.texi: Renamed from
66047         doc/glibc-functions/towlower_l.texi.
66048         * doc/posix-functions/towupper_l.texi: Renamed from
66049         doc/glibc-functions/towupper_l.texi.
66050         * doc/posix-functions/uselocale.texi: Renamed from
66051         doc/glibc-functions/uselocale.texi.
66052         * doc/posix-functions/vdprintf.texi: Renamed from
66053         doc/glibc-functions/vdprintf.texi.
66054         * doc/posix-functions/wcpcpy.texi:
66055         Renamed from doc/glibc-functions/wcpcpy.texi.
66056         * doc/posix-functions/wcpncpy.texi: Renamed from
66057         doc/glibc-functions/wcpncpy.texi.
66058         * doc/posix-functions/wcscasecmp.texi: Renamed from
66059         doc/glibc-functions/wcscasecmp.texi.
66060         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
66061         doc/glibc-functions/wcscasecmp_l.texi.
66062         * doc/posix-functions/wcscoll_l.texi: Renamed from
66063         doc/glibc-functions/wcscoll_l.texi.
66064         * doc/posix-functions/wcsdup.texi: Renamed from
66065         doc/glibc-functions/wcsdup.texi.
66066         * doc/posix-functions/wcsncasecmp.texi: Renamed from
66067         doc/glibc-functions/wcsncasecmp.texi.
66068         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
66069         doc/glibc-functions/wcsncasecmp_l.texi.
66070         * doc/posix-functions/wcsnlen.texi: Renamed from
66071         doc/glibc-functions/wcsnlen.texi.
66072         * doc/posix-functions/wcsnrtombs.texi: Renamed from
66073         doc/glibc-functions/wcsnrtombs.texi.
66074         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
66075         doc/glibc-functions/wcsxfrm_l.texi.
66076         * doc/posix-functions/wctrans_l.texi: Renamed from
66077         doc/glibc-functions/wctrans_l.texi.
66078         * doc/posix-functions/wctype_l.texi: Renamed from
66079         doc/glibc-functions/wctype_l.texi.
66080         * doc/gnulib.texi (Function Substitutes): Add these subsections.
66081         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
66082         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
66083         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
66084         these subsections.
66085         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
66086         Remove sections.
66088 2008-12-14  Bruno Haible  <bruno@clisp.org>
66090         Update doc for POSIX:2008.
66091         * doc/posix-functions/*.texi: Update URL of POSIX specification.
66093 2008-12-14  Bruno Haible  <bruno@clisp.org>
66095         Update doc for POSIX:2008.
66096         * doc/pastposix-functions/bcmp.texi: Renamed from
66097         doc/posix-functions/bcmp.texi.
66098         * doc/pastposix-functions/bcopy.texi: Renamed from
66099         doc/posix-functions/bcopy.texi.
66100         * doc/pastposix-functions/bsd_signal.texi: Renamed from
66101         doc/posix-functions/bsd_signal.texi.
66102         * doc/pastposix-functions/bzero.texi: Renamed from
66103         doc/posix-functions/bzero.texi.
66104         * doc/pastposix-functions/ecvt.texi: Renamed from
66105         doc/posix-functions/ecvt.texi.
66106         * doc/pastposix-functions/fcvt.texi: Renamed from
66107         doc/posix-functions/fcvt.texi.
66108         * doc/pastposix-functions/ftime.texi: Renamed from
66109         doc/posix-functions/ftime.texi.
66110         * doc/pastposix-functions/gcvt.texi: Renamed from
66111         doc/posix-functions/gcvt.texi.
66112         * doc/pastposix-functions/getcontext.texi: Renamed from
66113         doc/posix-functions/getcontext.texi.
66114         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
66115         doc/posix-functions/gethostbyaddr.texi.
66116         * doc/pastposix-functions/gethostbyname.texi: Renamed from
66117         doc/posix-functions/gethostbyname.texi.
66118         * doc/pastposix-functions/getwd.texi: Renamed from
66119         doc/posix-functions/getwd.texi.
66120         * doc/pastposix-functions/h_errno.texi: Renamed from
66121         doc/posix-functions/h_errno.texi.
66122         * doc/pastposix-functions/index.texi: Renamed from
66123         doc/posix-functions/index.texi.
66124         * doc/pastposix-functions/makecontext.texi: Renamed from
66125         doc/posix-functions/makecontext.texi.
66126         * doc/pastposix-functions/mktemp.texi: Renamed from
66127         doc/posix-functions/mktemp.texi.
66128         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
66129         doc/posix-functions/pthread_attr_getstackaddr.texi.
66130         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
66131         doc/posix-functions/pthread_attr_setstackaddr.texi.
66132         * doc/pastposix-functions/rindex.texi: Renamed from
66133         doc/posix-functions/rindex.texi.
66134         * doc/pastposix-functions/scalb.texi: Renamed from
66135         doc/posix-functions/scalb.texi.
66136         * doc/pastposix-functions/setcontext.texi: Renamed from
66137         doc/posix-functions/setcontext.texi.
66138         * doc/pastposix-functions/swapcontext.texi: Renamed from
66139         doc/posix-functions/swapcontext.texi.
66140         * doc/pastposix-functions/ualarm.texi: Renamed from
66141         doc/posix-functions/ualarm.texi.
66142         * doc/pastposix-functions/usleep.texi: Renamed from
66143         doc/posix-functions/usleep.texi.
66144         * doc/pastposix-functions/vfork.texi: Renamed from
66145         doc/posix-functions/vfork.texi.
66146         * doc/pastposix-functions/wcswcs.texi: Renamed from
66147         doc/posix-functions/wcswcs.texi.
66148         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
66149         (Function Substitutes): Update.
66151 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66153         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
66154         m4/strerror.m4.
66156 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66157             Bruno Haible  <bruno@clisp.org>
66159         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
66161 2008-12-13  Bruno Haible  <bruno@clisp.org>
66163         * modules/strtoull (Depends-on): Remove unistd.
66165 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66167         * modules/strtoull (Depends-on): Add stdlib.
66169 2008-12-11  Simon Josefsson  <simon@josefsson.org>
66171         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
66173 2008-12-10  Jim Meyering  <meyering@redhat.com>
66175         gl_ASSERT: don't say assertions are disabled when they're not
66176         * m4/assert.m4 (gl_ASSERT): Do not make configure report
66177         "checking whether to enable assertions... no", when they are in
66178         fact enabled.  This is solely a bug in the output of configure.
66179         In spite of saying "no", NDEBUG was not defined in that case.
66180         Also, as noted by Eric Blake, leave assertions enabled upon
66181         --enable-assert=INVALID.
66183 2008-12-10  Bruno Haible  <bruno@clisp.org>
66185         Change MODULES.html to refer to POSIX:2008 where possible.
66186         * MODULES.html.sh (POSIX2008_URL): New variable.
66187         (posix_headers): Remove sys/timeb, ucontext.
66188         (posix2001_headers): New variable.
66189         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
66190         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
66191         index, makecontext, mktemp, pthread_attr_getstackaddr,
66192         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
66193         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
66194         (posix2001_functions): New variable.
66195         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
66196         otherwise.
66198 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66200         add missing include to parse-duration.c
66201         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
66202         * modules/parse-duration (Depends-on): Add xalloc.
66204         fix sed script reading maint.mk
66205         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
66206         (syntax-check-rules): Use it.
66208 2008-12-09  Bruno Haible  <bruno@clisp.org>
66210         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
66211         MacOS X 10.4/PowerPC.
66212         Reported by Simon Josefsson.
66214 2008-12-08  Jim Meyering  <meyering@redhat.com>
66216         work around mingw's lack of some S_IF definitions
66217         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
66218         Reported by Simon Josefsson.
66220 2008-12-08  Bruno Haible  <bruno@clisp.org>
66222         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
66223         applied to variables. Needed on MacOS X 10.4/PowerPC.
66224         Reported by Simon Josefsson.
66226 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
66227         and Eric Blake  <ebb9@byu.net>
66229         assert: honor --enable-assert
66230         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
66231         order to honor --enable-assert, rather than treating it as a
66232         synonym for --disable-assert.
66234 2008-12-08  Jim Meyering  <meyering@redhat.com>
66236         * lib/posixtm.c: Remove now-useless declaration of mktime.
66238         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
66240 2008-12-07  Bruno Haible  <bruno@clisp.org>
66242         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
66243         test_once): Mark functions as static.
66244         * tests/test-tls.c (test_tls): Likewise.
66246 2008-12-07  Bruno Haible  <bruno@clisp.org>
66248         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
66249         iconv_register_autodetect.
66251 2008-12-07  Jim Meyering  <meyering@redhat.com>
66253         posixtm.c: avoid a warning
66254         * lib/posixtm.c (posixtime): Don't initialize tm0.
66255         It's no longer needed to placate gcc4's -Wuninitialized,
66256         and the attempt to placate would elicit a new warning.
66258         unicodeio.c: mark unused parameters
66259         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
66260         (fallback_failure_callback): Likewise.
66262 2008-12-07  Bruno Haible  <bruno@clisp.org>
66264         * gnulib-tool (func_create_testdir): When building the tests
66265         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
66266         Reported by Simon Josefsson.
66268 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66270         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
66272 2008-12-06  Bruno Haible  <bruno@clisp.org>
66274         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
66275         Suggested by Eric Blake.
66277 2008-12-06  Bruno Haible  <bruno@clisp.org>
66279         Fix a c-stack test failure on MacOS X.
66280         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
66281         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
66282         handler for SIGBUS as well.
66283         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
66284         install a signal handler for SIGBUS as well.
66285         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
66287 2008-12-06  Bruno Haible  <bruno@clisp.org>
66289         Advocacy documentation.
66290         * doc/gnulib-intro.texi (Benefits): New section.
66291         * doc/gnulib.texi: Update.
66293 2008-12-06  Bruno Haible  <bruno@clisp.org>
66295         Document the 'manywarnings' module.
66296         * doc/manywarnings.texi: New file.
66297         * doc/gnulib.texi: Include it.
66299 2008-12-05  Eric Blake  <ebb9@byu.net>
66301         tests: silence some gcc warnings
66302         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
66303         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
66304         type mismatches.
66306 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66307             Bruno Haible  <bruno@clisp.org>
66309         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
66311 2008-11-29  Jim Meyering  <meyering@redhat.com>
66313         unicodeio.c: mark unused parameters
66314         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
66315         (fallback_failure_callback): Likewise.
66317         fts: fix a thinko
66318         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
66319         (set_stat_type): Return S_IF*-valued "type" directly.
66320         Prompted by James Youngman's spotting a related bug.
66321         Confirmed by further testing through find.
66323         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
66324         * lib/fts.c (D_TYPE): Define.
66325         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
66326         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
66327         (s_ifmt_shift_bits): New function.
66328         (set_stat_type): New function.
66329         (fts_build): When not calling fts_stat, call set_stat_type
66330         to propagate dirent.d_type info to fts_read caller.
66331         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
66332         fts_statp->st_mode type information may be valid.
66334 2008-11-28  Simon Josefsson  <simon@josefsson.org>
66336         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
66337         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
66338         <sds@gnu.org>.
66340 2008-11-20  Bruno Haible  <bruno@clisp.org>
66342         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
66343         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
66344         INCLUDE_NEXT.
66345         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
66346         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
66347         * modules/math (Makefile.am): Substitute
66348         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
66349         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66351 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
66352             Bruno Haible  <bruno@clisp.org>
66354         * lib/stdint.in.h: Define all type macros so that their expansion is
66355         a single typedef'ed token. Fixes a compilation failure in Boost which
66356         does "using ::int8_t;".
66358 2008-11-18  Simon Josefsson  <simon@josefsson.org>
66360         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
66361         gl_MANYWARN_ALL_GCC.
66362         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
66363         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
66364         * modules/manywarnings: New file.
66365         * MODULES.html.sh: Mention manywarnings module.
66367 2008-11-18  Bruno Haible  <bruno@clisp.org>
66369         * doc/gnulib-tool.texi (Unit tests): New section.
66371 2008-11-18  Simon Josefsson  <simon@josefsson.org>
66373         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
66374         paths like 'lib/po/foo.po'.
66376 2008-11-17  Simon Josefsson  <simon@josefsson.org>
66378         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
66379         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
66381 2008-11-17  Simon Josefsson  <simon@josefsson.org>
66383         * m4/warnings.m4: Use CPPFLAGS to really check whether the
66384         parameter works.
66386 2008-11-17  Simon Josefsson  <simon@josefsson.org>
66388         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
66390 2008-11-17  Bruce Korb  <bkorb@gnu.org>
66392         * modules/parse-duration-tests: New file.
66393         * tests/test-parse-duration.sh: New file.
66394         * tests/test-parse-duration.c: New file.
66396         New module 'parse-duration'.
66397         * lib/parse-duration.h: New file.
66398         * lib/parse-duration.c: New file.
66399         * modules/parse-duration: New file.
66401 2008-11-17  Bruno Haible  <bruno@clisp.org>
66403         * tests/test-select-out.sh: Comment out the first pipe test.
66404         Reported by Simon Josefsson.
66406 2008-11-17  Bruno Haible  <bruno@clisp.org>
66408         * modules/getaddrinfo (Depends-on): Add servent, hostent.
66409         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
66410         gl_HOSTENT.
66412 2008-11-17  Bruno Haible  <bruno@clisp.org>
66414         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
66415         -lnetwork and -lnet. Needed for Haiku and BeOS.
66417 2008-11-16  Bruno Haible  <bruno@clisp.org>
66419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
66421 2008-11-16  Bruno Haible  <bruno@clisp.org>
66423         Avoid test failure on Haiku.
66424         * tests/test-fsync.c: Include <errno.h>.
66425         (main): Don't require that fsync (0) fails.
66427 2008-11-15  Bruno Haible  <bruno@clisp.org>
66429         New module 'hostent'.
66430         * modules/hostent: New file.
66431         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
66433 2008-11-15  Bruno Haible  <bruno@clisp.org>
66435         New module 'servent'.
66436         * modules/servent: New file.
66437         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
66439 2008-11-15  Bruno Haible  <bruno@clisp.org>
66441         Avoid generating same test program with two different rules.
66442         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
66443         test-frexp to test-frexp-nolibm.
66444         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
66445         test-frexpl to test-frexpl-nolibm.
66447 2008-11-15  Bruno Haible  <bruno@clisp.org>
66449         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
66450         $(FREXPL_LIBM).
66452 2008-11-15  Bruno Haible  <bruno@clisp.org>
66454         * lib/netdb.in.h: Activate the definitions also when the system's
66455         <netdb.h> has 'struct addrinfo'.
66456         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
66457         EAI_OVERFLOW or AI_NUMERICSERV.
66458         * doc/posix-headers/netdb.texi: Document the problem.
66460 2008-11-15  Bruno Haible  <bruno@clisp.org>
66462         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
66464         Make the 'sched' module work on platforms where <sched.h> exists but
66465         is incomplete (such as Haiku).
66466         * lib/sched.in.h; Include the system's <sched.h> if it exists.
66467         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
66468         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
66469         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
66470         HAVE_STRUCT_SCHED_PARAM.
66471         * modules/sched (Depends-on): Add include_next.
66472         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
66473         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
66474         * doc/posix-headers/sched.texi: Document the issue.
66476 2008-11-13  Jim Meyering  <meyering@redhat.com>
66478         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
66479         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
66480         test would fail due to the difference in the Report bugs to ...
66481         line.  The expected address is empty, "<>", while the actual
66482         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
66484 2008-11-12  Bruno Haible  <bruno@clisp.org>
66486         lstat: don't compile lstat.c on systems lacking lstat
66487         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
66488         which don't have lstat; this is handled by lib/sys_stat.in.h already.
66489         Reported by Daniel P. Berrange via Jim Meyering.
66491 2008-11-12  Jim Meyering  <meyering@redhat.com>
66493         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
66495 2008-11-12  Simon Josefsson  <simon@josefsson.org>
66497         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
66498         instead.
66500 2008-11-12  Bruno Haible  <bruno@clisp.org>
66502         * lib/unicodeio.c: Include unistr.h.
66503         (utf8_wctomb): Remove function.
66504         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
66506 2008-11-12  Simon Josefsson  <simon@josefsson.org>
66508         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
66509         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
66510         <bruno@clisp.org>.
66511         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
66513 2008-11-12  Simon Josefsson  <simon@josefsson.org>
66515         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
66516         * doc/gnulib.texi: Add section for warnings.
66518 2008-11-11  Bruno Haible  <bruno@clisp.org>
66520         * lib/sockets.h: Add a comment.
66522 2008-11-11  Karl Berry  <karl@gnu.org>
66524         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
66526 2008-11-11  Eric Blake  <ebb9@byu.net>
66528         fdl.texi: avoid git symlinks
66529         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
66531 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
66533         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
66535 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
66537         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
66538         (gl_WARN_ADD): Substitute $2 if literal.
66540 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
66542         * m4/warning.m4: Remove.
66544 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
66546         * m4/warnings.m4: Almost complete rewrite. :-)
66548 2008-11-10  Simon Josefsson  <simon@josefsson.org>
66550         * modules/warnings: New module.
66551         * m4/warnings.m4: New file.
66552         * MODULES.html.sh: Mention warnings module.
66553         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
66554         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66556 2008-11-10  Eric Blake  <ebb9@byu.net>
66558         fdl.texi: make a symlink to the latest version
66559         * doc/standards.texi: Revert today's earlier change.
66560         * doc/fdl-1.2.texi: Rename from old fdl.texi...
66561         * doc/fdl.texi: ...and replace this with a symlink to the newer
66562         fdl-1.3.texi.
66564 2008-11-10  Bruno Haible  <bruno@clisp.org>
66566         * tests/test-select-fd.c (main): Accept the result file name as fourth
66567         argument.
66568         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
66569         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
66571 2008-11-10  Bruno Haible  <bruno@clisp.org>
66573         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
66574         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
66575         as autoconf-substituted macros.
66576         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
66577         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
66578         gl_NETDB_H_DEFAULTS. Set these variables.
66579         * modules/netdb (Makefile.am): Substitute these variables.
66581 2008-11-10  Eric Blake  <ebb9@byu.net>
66583         standards.texi: include correct file for FDL 1.3
66584         * doc/standards.texi (GNU Free Documentation License): Change
66585         include file to pull in FDL 1.3, not 1.2.
66587         fdl.texi: revert accidental change to license
66588         * doc/fdl.texi: This is FDL 1.2, not 1.3.
66590 2008-11-10  Bruno Haible  <bruno@clisp.org>
66592         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
66593         cross-compiling guesses also when the native compile gives no result.
66595 2008-11-10  Bruno Haible  <bruno@clisp.org>
66597         * lib/spawni.c (__spawni): Force variable into the stack.
66599 2008-11-10  Bruno Haible  <bruno@clisp.org>
66601         Add support for Haiku.
66602         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
66603         glibc and BeOS, but also on Haiku.
66604         * lib/fpurge.c (fpurge): Likewise.
66605         * lib/freadable.c (freadable): Likewise.
66606         * lib/freadahead.c (freadahead): Likewise.
66607         * lib/freading.c (freading): Likewise.
66608         * lib/freadptr.c (freadptr): Likewise.
66609         * lib/freadseek.c (freadptrinc): Likewise.
66610         * lib/fseeko.c (rpl_fseeko): Likewise.
66611         * lib/fseterr.c (fseterr): Likewise.
66612         * lib/fwritable.c (fwritable): Likewise.
66613         * lib/fwriting.c (fwriting): Likewise.
66614         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
66616 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
66618         * lib/config.charset: Treat Haiku like BeOS.
66620 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
66622         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
66623         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
66625 2008-11-08  Bruno Haible  <bruno@clisp.org>
66627         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
66628         AC_CACHE_CHECK.
66630 2008-11-08  Bruno Haible  <bruno@clisp.org>
66632         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
66634 2008-11-08  Bruno Haible  <bruno@clisp.org>
66636         * tests/test-select-fd.c: New file.
66637         * tests/test-select-in.sh: New file.
66638         * tests/test-select-out.sh: New file.
66639         * tests/test-select-stdin.c: New file.
66640         * modules/select-tests (Files): Add the new files.
66641         (Depends-on): Add gettimeofday.
66642         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
66643         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
66644         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
66646 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
66647             Bruno Haible  <bruno@clisp.org>
66649         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
66651 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
66653         * build-aux/pmccabe2html: Added support for C++ source files.
66655 2008-11-05  Ben Pfaff  <blp@gnu.org>
66657         Fix lib/close.c build on Windows.
66658         * modules/close (Files): Add lib/w32sock.h.
66660 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
66662         Accept Bison's NEWS format.
66663         * build-aux/announce-gen (print_news_deltas): Tweak
66664         $re_prefix.
66666 2008-11-04  Bruno Haible  <bruno@clisp.org>
66668         * modules/random_r (Maintainer): Add glibc.
66670 2008-11-04  Simon Josefsson  <simon@josefsson.org>
66672         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
66673         by karl@freefriends.org (Karl Berry).
66674         * doc/alloca.texi: Likewise.
66675         * doc/c-ctype.texi: Likewise.
66676         * doc/c-strcase.texi: Likewise.
66677         * doc/c-strcaseeq.texi: Likewise.
66678         * doc/c-strcasestr.texi: Likewise.
66679         * doc/c-strstr.texi: Likewise.
66680         * doc/c-strtod.texi: Likewise.
66681         * doc/c-strtold.texi: Likewise.
66682         * doc/ctime.texi: Likewise.
66683         * doc/error.texi: Likewise.
66684         * doc/fdl.texi: Likewise.
66685         * doc/gcd.texi: Likewise.
66686         * doc/getdate.texi: Likewise.
66687         * doc/gnulib-intro.texi: Likewise.
66688         * doc/gnulib-tool.texi: Likewise.
66689         * doc/gnulib.texi: Likewise.
66690         * doc/inet_ntoa.texi: Likewise.
66691         * doc/maintain.texi: Likewise.
66692         * doc/make-stds.texi: Likewise.
66693         * doc/quote.texi: Likewise.
66694         * doc/regexprops-generic.texi: Likewise.
66695         * doc/standards.texi: Likewise.
66696         * doc/verify.texi: Likewise.
66697         * doc/visibility.texi: Likewise.
66698         * doc/gnulib.texi (GNU Free Documentation License): Include
66699         fdl-1.3.texi instead of fdl.texi.
66701 2008-11-04  Simon Josefsson  <simon@josefsson.org>
66703         * doc/fdl-1.3.texi: New file, from
66704         <http://www.gnu.org/licenses/fdl-1.3.texi>.
66705         * modules/fdl-1.3: Add.
66706         * MODULES.html.sh: Add fdl-1.3.
66708 2008-11-03  Bruno Haible  <bruno@clisp.org>
66710         Make determination of absolute name of header file work with AIX xlc.
66711         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
66712         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
66713         preprocessing.
66714         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
66715         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66717 2008-11-03  Simon Josefsson  <simon@josefsson.org>
66719         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
66720         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
66721         <ludo@gnu.org>.
66723 2008-11-02  Bruno Haible  <bruno@clisp.org>
66725         Mark 'strpbrk' obsolete.
66726         * modules/strpbrk (Status, Notice): New sections.
66727         * modules/strtok_r (Depends-on): Add strpbrk.
66729 2008-11-02  Bruno Haible  <bruno@clisp.org>
66731         Mark 'strdup' obsolete.
66732         * modules/strdup (Status, Notice): New sections.
66733         * modules/findprog (Depends-on): Add strdup.
66734         * modules/getaddrinfo (Depends-on): Likewise.
66735         * modules/localename (Depends-on): Likewise.
66736         * modules/relocatable-lib (Depends-on): Likewise.
66737         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
66738         * modules/relocatable-prog (Depends-on): Likewise.
66739         * modules/trim (Depends-on): Likewise.
66740         * modules/unictype/gen-ctype (Depends-on): Likewise.
66741         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
66743 2008-11-02  Bruno Haible  <bruno@clisp.org>
66745         Mark 'strcspn' obsolete.
66746         * modules/strcspn (Status, Notice): New sections.
66748 2008-11-02  Bruno Haible  <bruno@clisp.org>
66750         Mark 'rmdir' obsolete.
66751         * modules/rmdir (Status, Notice): New sections.
66752         * modules/clean-temp (Depends-on): Add rmdir.
66753         * modules/openat (Depends-on): Likewise.
66755 2008-11-02  Bruno Haible  <bruno@clisp.org>
66757         Mark 'raise' obsolete.
66758         * modules/raise (Status, Notice): New sections.
66759         (Include): Specify <signal.h>.
66760         * modules/stdio (Depends-on): Add raise.
66761         * modules/write (Depends-on): Likewise.
66763 2008-11-02  Bruno Haible  <bruno@clisp.org>
66765         Mark 'memset' obsolete.
66766         * modules/memset (Status, Notice): New sections.
66768 2008-11-02  Bruno Haible  <bruno@clisp.org>
66770         Mark 'memmove' obsolete.
66771         * modules/memmove (Status, Notice): New sections.
66772         * modules/argp (Depends-on): Add memmove.
66773         * modules/argz (Depends-on): Likewise.
66774         * modules/canonicalize (Depends-on): Likewise.
66775         * modules/canonicalize-lgpl (Depends-on): Likewise.
66776         * modules/fts (Depends-on): Likewise.
66777         * modules/getcwd (Depends-on): Likewise.
66778         * modules/human (Depends-on): Likewise.
66779         * modules/regex (Depends-on): Likewise.
66780         * modules/striconveh (Depends-on): Likewise.
66781         * modules/trim (Depends-on): Likewise.
66782         * modules/unistr/u8-move (Depends-on): Likewise.
66783         * modules/unistr/u16-move (Depends-on): Likewise.
66784         * modules/unistr/u32-move (Depends-on): Likewise.
66786 2008-11-02  Bruno Haible  <bruno@clisp.org>
66788         Mark 'memcpy' obsolete.
66789         * modules/memcpy (Status, Notice): New sections.
66791 2008-11-02  Bruno Haible  <bruno@clisp.org>
66793         Mark 'memcmp' obsolete.
66794         * modules/memcmp (Status, Notice): New sections.
66795         * modules/argmatch (Depends-on): Add memchr.
66796         * modules/backupfile (Depends-on): Likewise.
66797         * modules/c-strcasestr (Depends-on): Likewise.
66798         * modules/crypto/des (Depends-on): Likewise.
66799         * modules/csharpcomp (Depends-on): Likewise.
66800         * modules/fnmatch (Depends-on): Likewise.
66801         * modules/git-merge-changelog (Depends-on): Likewise.
66802         * modules/isnand (Depends-on): Likewise.
66803         * modules/isnand-nolibm (Depends-on): Likewise.
66804         * modules/isnanf (Depends-on): Likewise.
66805         * modules/isnanf-nolibm (Depends-on): Likewise.
66806         * modules/isnanl (Depends-on): Likewise.
66807         * modules/isnanl-nolibm (Depends-on): Likewise.
66808         * modules/mbchar (Depends-on): Likewise.
66809         * modules/memcoll (Depends-on): Likewise.
66810         * modules/quotearg (Depends-on): Likewise.
66811         * modules/regex (Depends-on): Likewise.
66812         * modules/relocatable-prog (Depends-on): Likewise.
66813         * modules/same (Depends-on): Likewise.
66814         * modules/signbit (Depends-on): Likewise.
66815         * modules/strcasestr-simple (Depends-on): Likewise.
66816         * modules/unictype/gen-ctype (Depends-on): Likewise.
66817         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
66818         * modules/uniname/uniname (Depends-on): Likewise.
66819         * modules/unistr/u8-cmp (Depends-on): Likewise.
66821 2008-11-02  Bruno Haible  <bruno@clisp.org>
66823         Mark 'memchr' obsolete.
66824         * modules/memchr (Status, Notice): New sections.
66825         * modules/argp (Depends-on): Add memchr.
66826         * modules/base64 (Depends-on): Likewise.
66827         * modules/c-strcasestr (Depends-on): Likewise.
66828         * modules/chdir-long (Depends-on): Likewise.
66829         * modules/fnmatch (Depends-on): Likewise.
66830         * modules/getsubopt (Depends-on): Likewise.
66831         * modules/git-merge-changelog (Depends-on): Likewise.
66832         * modules/glob (Depends-on): Likewise.
66833         * modules/strcasestr-simple (Depends-on): Likewise.
66834         * modules/strnlen (Depends-on): Likewise.
66836 2008-11-02  Bruno Haible  <bruno@clisp.org>
66838         Mark 'atexit' obsolete.
66839         * modules/atexit (Status, Notice): New sections.
66840         * modules/chdir-long (Depends-on): Add atexit.
66841         * modules/wait-process (Depends-on): Likewise.
66843 2008-11-02  Bruno Haible  <bruno@clisp.org>
66845         * gnulib-tool: New option --with-obsolete.
66846         (func_usage): Document it.
66847         (func_modules_transitive_closure): Drop obsolete dependencies if
66848         incobsolete is not true.
66849         (func_import): Read and save the incobsolete variable to the cache.
66851 2008-11-02  Bruno Haible  <bruno@clisp.org>
66853         * modules/TEMPLATE-EXTENDED: New field 'Status'.
66854         * gnulib-tool: New option --extract-status.
66855         (func_usage): Document it.
66856         (sed_extract_prog): Recognize it.
66857         (func_get_status): New function.
66859 2008-10-30  Simon Josefsson  <simon@josefsson.org>
66861         * modules/sockets (License): Change from LGPL to LGPLv2+.
66863 2008-10-28  Simon Josefsson  <simon@josefsson.org>
66865         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
66867 2008-10-28  Simon Josefsson  <simon@josefsson.org>
66869         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66870         Mention times and sys_times.
66871         * modules/sys_times, modules/sys_times-tests: New modules.
66872         * modules/times, modules/times-tests: Likewise
66873         * m4/sys_times_h.m4: New file.
66874         * lib/sys_times.in.h: Likewise
66875         * lib/times.c: Likewise.
66876         * tests/test-sys_times.c: Likewise.
66877         * tests/test-times.c: Likewise.
66878         * doc/posix-headers/sys_times.texi: Update.
66879         * doc/posix-functions/times.texi: Update.
66881 2008-10-28  Jim Meyering  <meyering@redhat.com>
66883         * modules/tempname (Depends-on): Add lstat.
66885         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
66887 2008-10-28  Simon Josefsson  <simon@josefsson.org>
66889         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
66890         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
66891         using idiom used elsewhere in gnulib.
66893 2008-10-27  Jim Meyering  <meyering@redhat.com>
66895         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
66897 2008-10-27  Simon Josefsson  <simon@josefsson.org>
66899         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
66900         TESTS_ENVIRONMENT, for shell scripts that needs to call built
66901         programs.
66902         * tests/test-argp-2.sh: Use $EXEEXT when needed.
66904 2008-10-27  Simon Josefsson  <simon@josefsson.org>
66906         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
66908 2008-10-27  Bruno Haible  <bruno@clisp.org>
66910         * tests/test-lstat.c: Include <stdio.h>.
66912 2008-10-27  Simon Josefsson  <simon@josefsson.org>
66914         * modules/lstat-tests: New module.
66915         * tests/test-lstat.c: New file.
66917 2008-10-26  Jim Meyering  <meyering@redhat.com>
66919         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
66921 2008-10-26  Simon Josefsson  <simon@josefsson.org>
66922             Bruno Haible  <bruno@clisp.org>
66924         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
66925         * modules/configmake (Include): Add a note that the include must come
66926         after all system headers.
66927         * lib/javaversion.c: Include configmake.h after all other includes.
66929 2008-10-26  Bruno Haible  <bruno@clisp.org>
66931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
66932         HAVE_STRUCT_RANDOM_DATA to 1.
66933         (gl_STDLIB_H): Simplify.
66935 2008-10-26  Simon Josefsson  <simon@josefsson.org>
66937         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
66938         substitute HAVE_STRUCT_RANDOM_DATA.
66939         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
66940         random_data.
66941         * modules/stdlib (Makefile.am): Substitute
66942         HAVE_STRUCT_RANDOM_DATA.
66944 2008-10-26  Simon Josefsson  <simon@josefsson.org>
66946         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
66947         * doc/gnulib-intro.texi (Copyright): Likewise.
66949 2008-10-26  Simon Josefsson  <simon@josefsson.org>
66951         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
66952         findings.
66954 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
66955             Bruno Haible  <bruno@clisp.org>
66957         * lib/unistd.in.h: Include <winsock2.h>.
66958         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
66959         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
66960         Provide dummy declarations.
66961         (gethostname): Override.
66962         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
66963         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
66964         gl_PREREQ_SYS_H_WINSOCK2.
66965         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
66966         * doc/posix-functions/gethostname.texi: More details.
66968 2008-10-25  Bruno Haible  <bruno@clisp.org>
66970         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
66971         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
66972         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
66974         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
66975         here ...
66976         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
66977         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
66978         gl_UNISTD_H_DEFAULTS.
66980 2008-10-25  Eric Blake  <ebb9@byu.net>
66982         signbit: avoid spurious compiler failure
66983         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
66984         declarations inside function.
66986 2008-10-24  Simon Josefsson  <simon@josefsson.org>
66987             Bruno Haible  <bruno@clisp.org>
66989         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
66990         * modules/random_r (Depends-on): Add stdint.
66992 2008-10-24  Bruno Haible  <bruno@clisp.org>
66994         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
66995         Eggert.
66996         * modules/strerror (License): Likewise.
66998 2008-10-24  Jim Meyering  <meyering@redhat.com>
67000         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
67001         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
67003 2008-10-24  Eric Blake  <ebb9@byu.net>
67005         getgroups: fix compilation when getgroups is available
67006         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
67007         but with <config.h> override of getgroups disabled.
67009 2008-10-24  Simon Josefsson  <simon@josefsson.org>
67011         * doc/gnulib.texi (Header files): Add note about C++ problems.
67012         Explained by Bruno Haible <bruno@clisp.org>.
67014 2008-10-23  Bruno Haible  <bruno@clisp.org>
67016         Define a dummy SA_NODEFER macro on Interix.
67017         * lib/signal.in.h (SA_NODEFER): Define fallback.
67018         Reported by Aleksey Cheusov <cheusov@tut.by> via
67019         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
67021 2008-10-23  Bruno Haible  <bruno@clisp.org>
67023         * modules/freadahead (License): Change to LGPLv2+.
67024         Suggested by Simon Josefsson.
67026 2008-10-23  Jim Meyering  <meyering@redhat.com>
67028         random_r: new module
67029         * modules/random_r: New file.
67030         * m4/random_r.m4: New file.
67031         * lib/random_r.c: New file, from glibc.
67032         * modules/random_r-tests: New file.
67033         * tests/test-random_r.c: New file.
67034         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
67035          Declare.
67036         (RAND_MAX): Define.
67037         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
67038         * modules/stdlib: Substitute them, too.
67039         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
67040         * doc/glibc-functions/initstate_r.texi: Mention the new module.
67041         * doc/glibc-functions/random_r.texi: Likewise.
67042         * doc/glibc-functions/setstate_r.texi: Likewise.
67043         * doc/glibc-functions/srandom_r.texi: Likewise.
67044         * config/srclist.txt: Mention it.
67046 2008-10-23  David Lutterkort  <lutter@redhat.com>
67048         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
67049         link requirement
67051 2008-10-23  Jim Meyering  <meyering@redhat.com>
67053         selinux-h: mark parameters of stub functions as intentionally unused
67054         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
67055         * lib/se-context.in.h: Likewise.
67057 2008-10-22  Simon Josefsson  <simon@josefsson.org>
67059         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
67061 2008-10-22  Simon Josefsson  <simon@josefsson.org>
67063         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
67065 2008-10-22  Eric Blake  <ebb9@byu.net>
67067         glthread/thread: avoid compiler warning
67068         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
67069         Add unreachable abort to silence compiler.
67071 2008-10-22  Eric Blake  <ebb9@byu.net>
67073         netdb: also supply struct addrinfo for cygwin 1.5.x
67074         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
67075         older cygwin.
67076         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
67077         cygwin.
67078         * doc/posix-headers/netdb.texi (netdb.h): Document this.
67080 2008-10-22  Bruno Haible  <bruno@clisp.org>
67082         * users.txt: Update entry about pspp.
67084 2008-10-21  Bruno Haible  <bruno@clisp.org>
67086         Simplification.
67087         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
67088         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
67090         Simplification.
67091         * lib/ioctl.c (ioctl): Don't undefine.
67092         * lib/socket.c (socket): Don't undefine.
67094         Remove unused module indicator macros.
67095         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
67096         GNULIB_$1 as a C macro.
67098         * doc/posix-functions/close.texi: Undo last change.
67099         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
67100         Windows platforms.
67102 2008-10-21  Bruno Haible  <bruno@clisp.org>
67104         Add gethostname() declaration to <unistd.h>.
67105         * lib/unistd.in.h (gethostname): New declaration.
67106         * lib/gethostname.c: Include <unistd.h>.
67107         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
67108         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
67109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
67110         and HAVE_GETHOSTNAME.
67111         * modules/gethostname (Depends-on): Add unistd.
67112         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67113         (Include): Specify <unistd.h>.
67114         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
67115         HAVE_GETHOSTNAME.
67116         * tests/test-gethostname.c: Include <unistd.h> first.
67118 2008-10-21  Bruno Haible  <bruno@clisp.org>
67120         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
67121         * modules/select-tests (Depends-on): Likewise.
67122         Reported by Simon Josefsson.
67124 2008-10-21  Simon Josefsson  <simon@josefsson.org>
67126         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
67127         * lib/accept.c: New file, based on winsock.c.
67128         * lib/bind.c: New file, based on winsock.c.
67129         * lib/connect.c: New file, based on winsock.c.
67130         * lib/getpeername.c: New file, based on winsock.c.
67131         * lib/getsockname.c: New file, based on winsock.c.
67132         * lib/getsockopt.c: New file, based on winsock.c.
67133         * lib/ioctl.c: New file, based on winsock.c.
67134         * lib/listen.c: New file, based on winsock.c.
67135         * lib/recv.c: New file, based on winsock.c.
67136         * lib/recvfrom.c: New file, based on winsock.c.
67137         * lib/send.c: New file, based on winsock.c.
67138         * lib/sendto.c: New file, based on winsock.c.
67139         * lib/setsockopt.c: New file, based on winsock.c.
67140         * lib/shutdown.c: New file, based on winsock.c.
67141         * lib/socket.c: New file, based on winsock.c.
67142         * lib/w32sock.h: New file, based on winsock.c.
67143         * lib/winsock.c: Remove file.
67144         * modules/accept: Likewise.
67145         * modules/bind: Likewise.
67146         * modules/connect: Likewise.
67147         * modules/getpeername: Likewise.
67148         * modules/getsockname: Likewise.
67149         * modules/getsockopt: Likewise.
67150         * modules/ioctl: Likewise.
67151         * modules/listen: Likewise.
67152         * modules/recv: Likewise.
67153         * modules/recvfrom: Likewise.
67154         * modules/send: Likewise.
67155         * modules/sendto: Likewise.
67156         * modules/setsockopt: Likewise.
67157         * modules/shutdown: Likewise.
67158         * modules/socket: Use socket.c instead of winsock.c.
67159         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
67160         * doc/posix-functions/accept.texi: Doc fix.
67161         * doc/posix-functions/bind.texi: Doc fix.
67162         * doc/posix-functions/close.texi: Doc fix.
67163         * doc/posix-functions/connect.texi: Doc fix.
67164         * doc/posix-functions/getpeername.texi: Doc fix.
67165         * doc/posix-functions/getsockname.texi: Doc fix.
67166         * doc/posix-functions/getsockopt.texi: Doc fix.
67167         * doc/posix-functions/ioctl.texi: Doc fix.
67168         * doc/posix-functions/listen.texi: Doc fix.
67169         * doc/posix-functions/recv.texi: Doc fix.
67170         * doc/posix-functions/recvfrom.texi: Doc fix.
67171         * doc/posix-functions/send.texi: Doc fix.
67172         * doc/posix-functions/sendto.texi: Doc fix.
67173         * doc/posix-functions/setsockopt.texi: Doc fix.
67174         * doc/posix-functions/shutdown.texi: Doc fix.
67175         * doc/posix-functions/socket.texi: Doc fix.
67177 2008-10-20  Bruno Haible  <bruno@clisp.org>
67179         Take into account the role of SIGABRT_COMPAT on Windows 2008.
67180         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
67181         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
67182         as an alias for SIGABRT.
67183         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
67184         (sigaction): Map it to SIGABRT.
67185         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
67187 2008-10-20  Bruno Haible  <bruno@clisp.org>
67189         * lib/fts.c: Don't include lstat.h.
67190         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
67192         Move the lstat() declaration to <sys/stat.h>.
67193         * lib/lstat.h: Remove file.
67194         * lib/sys_stat.in.h: Add special invocation convention.
67195         (lstat): New declaration.
67196         * lib/lstat.c (orig_lstat): New function.
67197         (rpl_lstat): Use orig_lstat instead of lstat.
67198         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
67199         AC_C_INLINE. Set REPLACE_LSTAT.
67200         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
67201         and REPLACE_LSTAT.
67202         * modules/lstat (Files): Remove lib/lstat.h.
67203         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
67204         (Include): Specify <sys/stat.h> instead of lstat.h.
67205         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
67206         REPLACE_LSTAT.
67207         * NEWS: Mention the change.
67209 2008-10-20  Bruno Haible  <bruno@clisp.org>
67211         * modules/posix_spawn-tests: New file.
67212         * tests/test-posix_spawn3.c: New file.
67214 2008-10-20  Bruno Haible  <bruno@clisp.org>
67216         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
67217         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
67218         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
67219         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
67220         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
67222 2008-10-20  Bruno Haible  <bruno@clisp.org>
67224         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
67225         of posix_spawn on AIX 5.3.
67227 2008-10-20  Bruno Haible  <bruno@clisp.org>
67229         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
67231 2008-10-20  Bruno Haible  <bruno@clisp.org>
67233         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
67234         of AC_LANG_PROGRAM.
67236 2008-10-20  Simon Josefsson  <simon@josefsson.org>
67238         * lib/netdb.in.h: Don't define GNU specific constants until they
67239         are supported or needed.  Reported by Bruno Haible
67240         <bruno@clisp.org>.
67242 2008-10-20  Simon Josefsson  <simon@josefsson.org>
67244         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
67246 2008-10-20  Simon Josefsson  <simon@josefsson.org>
67248         * lib/getaddrinfo.h: Remove file.
67249         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
67250         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
67251         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
67252         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
67253         * modules/netdb: Substitute GNULIB_GETADDRINFO.
67254         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
67255         * tests/test-getaddrinfo.c: Likewise.
67256         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
67257         * NEWS: Mention change.
67259 2008-10-19  Bruno Haible  <bruno@clisp.org>
67261         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
67263 2008-10-19  Bruno Haible  <bruno@clisp.org>
67265         * lib/wait-process.c: Include simply <sys/wait.h>.
67266         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
67267         WIFSTOPPED): Remove fallback definitions.
67268         * modules/wait-process (Depends-on): Add sys_wait.
67270         New module 'sys_wait'.
67271         * modules/sys_wait: New file.
67272         * lib/sys_wait.in.h: New file, partially copied from
67273         lib/wait-process.c.
67274         * m4/sys_wait_h.m4: New file.
67275         * doc/posix-headers/sys_wait.texi: Mention the new module.
67277 2008-10-19  Bruno Haible  <bruno@clisp.org>
67279         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
67281 2008-10-19  Bruno Haible  <bruno@clisp.org>
67283         Assume that waitpid() fills an 'int' status, not a 'union wait'.
67284         * lib/wait-process.c (WAIT_T): Remove type.
67285         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
67286         (wait_subprocess): Update.
67288 2008-10-19  Bruno Haible  <bruno@clisp.org>
67290         New module 'atoll'.
67291         * modules/atoll: New file.
67292         * lib/stdlib.in.h (atoll): New declaration.
67293         * lib/atoll.c: New file, from glibc with modifications.
67294         * m4/atoll.m4: New file.
67295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
67296         HAVE_ATOLL.
67297         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
67298         * doc/posix-functions/atoll.texi: Mention the new module.
67300 2008-10-19  Bruno Haible  <bruno@clisp.org>
67302         Add strtoull() declaration to <stdlib.h>.
67303         * lib/stdlib.in.h (strtoull): New declaration.
67304         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
67305         Set HAVE_STRTOULL.
67306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
67307         HAVE_STRTOULL.
67308         * modules/strtoull (Depends-on): Add stdlib.
67309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67310         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
67311         HAVE_STRTOULL.
67313 2008-10-19  Bruno Haible  <bruno@clisp.org>
67315         Add strtoll() declaration to <stdlib.h>.
67316         * lib/stdlib.in.h (strtoll): New declaration.
67317         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
67318         Set HAVE_STRTOLL.
67319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
67320         HAVE_STRTOLL.
67321         * modules/strtoll (Depends-on): Add stdlib.
67322         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67323         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
67325 2008-10-19  Bruno Haible  <bruno@clisp.org>
67327         * modules/bcopy (Depends-on): Add strings.
67328         (Include): Specify <strings.h>.
67330 2008-10-19  Bruno Haible  <bruno@clisp.org>
67332         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
67334 2008-10-19  Bruno Haible  <bruno@clisp.org>
67336         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
67337         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
67338         mingw.
67340 2008-10-19  Bruno Haible  <bruno@clisp.org>
67342         * lib/atanl.c: Don't include isnanl.h.
67343         * lib/cosl.c: Likewise.
67344         * lib/ldexpl.c: Likewise.
67345         * lib/logl.c: Likewise.
67346         * lib/sinl.c: Likewise.
67347         * lib/sqrtl.c: Likewise.
67348         * lib/tanl.c: Likewise.
67350         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
67351         * lib/isnanf.h: Remove file.
67352         * lib/isnand.h: Remove file.
67353         * lib/isnanl.h: Remove file.
67354         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
67355         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
67356         macros.
67357         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
67358         HAVE_ISNANF, don't define it as a C macro.
67359         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
67360         HAVE_ISNAND, don't define it as a C macro.
67361         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
67362         HAVE_ISNANL, don't define it as a C macro.
67363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
67364         HAVE_ISNAN[FDL].
67365         * modules/isnanf (Files): Remove lib/isnanf.h.
67366         (Depends-on): Add math.
67367         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
67368         (Include): Specify <math.h> instead of isnanf.h.
67369         * modules/isnand (Files): Remove lib/isnand.h.
67370         (Depends-on): Add math.
67371         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
67372         (Include): Specify <math.h> instead of isnand.h.
67373         * modules/isnanl (Files): Remove lib/isnanl.h.
67374         (Depends-on): Add math.
67375         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
67376         (Include): Specify <math.h> instead of isnanl.h.
67377         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
67378         HAVE_ISNAN[FDL].
67379         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
67380         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
67381         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
67382         * NEWS: Mention the change.
67384 2008-10-18  Bruno Haible  <bruno@clisp.org>
67386         Add getusershell(), setusershell(), endusershell() declarations to
67387         <unistd.h>.
67388         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
67389         declarations.
67390         * lib/getusershell.c: Include unistd.h.
67391         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
67392         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
67393         HAVE_GETUSERSHELL.
67394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
67395         and HAVE_GETUSERSHELL.
67396         * modules/getusershell (Depends-on): Add unistd, extensions.
67397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67398         (Include): Specify <unistd.h>.
67399         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
67400         HAVE_GETUSERSHELL.
67402 2008-10-18  Bruno Haible  <bruno@clisp.org>
67404         Add a getloadavg() declaration to <stdlib.h>.
67405         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
67406         getloadavg declaration.
67407         (getloadavg): New declaration.
67408         * lib/getloadavg.c: Include <stdlib.h> first.
67409         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
67410         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
67411         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
67412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
67413         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
67414         * modules/getloadavg (Depends-on): Add stdlib, extensions.
67415         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67416         (Include): Specify <stdlib.h>.
67417         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
67418         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
67420 2008-10-18  Bruno Haible  <bruno@clisp.org>
67422         * lib/dirchownmod.c: Don't include lchmod.h.
67424         Move the lchmod() declaration to <sys/stat.h>.
67425         * lib/lchmod.h: Remove file.
67426         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
67427         (lchmod): New declaration, moved here from lib/lchown.h.
67428         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
67429         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
67430         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
67431         and HAVE_LCHMOD.
67432         * modules/lchmod (Files): Remove lib/lchmod.h.
67433         (Depends-on): Add sys_stat, extensions.
67434         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
67435         (Include): Specify <sys/stat.h> instead of lchmod.h.
67436         * modules/sys_stat (Depends-on): Add link-warning.
67437         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
67438         definition of GL_LINK_WARNING.
67439         * NEWS: Mention the change.
67441 2008-10-18  Bruno Haible  <bruno@clisp.org>
67443         * lib/fchdir.c: Don't include dirfd.h.
67444         * lib/fts.c: Likewise.
67445         * lib/getcwd.c: Likewise.
67446         * lib/glob.c: Likewise.
67448         Move the dirfd() declaration to <dirent.h>.
67449         * lib/dirfd.h: Remove file.
67450         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
67451         (dirfd): New declaration.
67452         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
67453         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
67454         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
67455         HAVE_DECL_DIRFD.
67456         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
67457         HAVE_DECL_DIRFD.
67458         * modules/dirfd (Files): Remove lib/dirfd.h.
67459         (Depends-on): Add dirent, extensions.
67460         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
67461         (Include): Specify <dirent.h> instead of dirfd.h.
67462         * modules/dirent (Depends-on): Add link-warning.
67463         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
67464         definition of GL_LINK_WARNING.
67465         * NEWS: Mention the change.
67467 2008-10-18  Bruno Haible  <bruno@clisp.org>
67469         Move the euidaccess() declaration to <unistd.h>.
67470         * lib/euidaccess.h: Remove file.
67471         * lib/unistd.in.h (euidaccess): New declaration.
67472         * lib/euidaccess.c: Don't include euidaccess.h.
67473         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
67474         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
67475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
67476         and HAVE_EUIDACCESS.
67477         * modules/euidaccess (Files): Remove lib/euidaccess.h.
67478         (Depends-on): Add unistd.
67479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67480         (Include): Specify <unistd.h> instead of euidaccess.h.
67481         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
67482         HAVE_EUIDACCESS.
67483         * NEWS: Mention the change.
67485 2008-10-18  Bruno Haible  <bruno@clisp.org>
67487         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
67489         Move the getdomainname() declaration to <unistd.h>.
67490         * lib/getdomainname.h: Remove file.
67491         * lib/unistd.in.h (getdomainname): New declaration.
67492         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
67493         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
67494         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
67495         HAVE_GETDOMAINNAME.
67496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67497         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
67498         * modules/getdomainname (Files): Remove lib/getdomainname.h.
67499         (Depends-on): Add unistd, extensions.
67500         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67501         (Includes): Specify <unistd.h> instead of getdomainname.h.
67502         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
67503         HAVE_GETDOMAINNAME.
67504         * NEWS: Mention the change.
67506 2008-10-18  Bruno Haible  <bruno@clisp.org>
67508         * modules/dirent: New file.
67509         * m4/dirent_h.m4: New file.
67510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
67511         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
67512         * modules/fchdir (Files): Remove lib/dirent.in.h.
67513         (Depends-on): Add dirent.
67514         (Makefile.am): Move rules to modules/dirent.
67515         * doc/posix-headers/dirent.texi: Mention the new module.
67517 2008-10-18  Bruno Haible  <bruno@clisp.org>
67519         Avoid -Wunused-parameter warnings in public gnulib header files.
67520         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
67521         macro.
67522         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
67524 2008-10-18  Bruno Haible  <bruno@clisp.org>
67526         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
67527         * doc/glibc-functions/error.texi: Mention the module 'error'.
67528         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
67529         * doc/glibc-functions/getdomainname.texi: Mention the module
67530         'getdomainname'.
67531         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
67532         * doc/glibc-functions/getpagesize.texi: Mention the module
67533         'getpagesize'.
67534         * doc/glibc-functions/getusershell.texi: Mention the module
67535         'getusershell'.
67536         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
67537         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
67538         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
67539         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
67540         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
67541         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
67542         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
67543         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
67544         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
67545         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
67546         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
67547         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
67548         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
67549         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
67551 2008-10-17  Bruno Haible  <bruno@clisp.org>
67553         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
67554         HP-UX and IRIX, use -0.0L.
67555         * tests/test-ceill.c (minus_zero): Likewise.
67556         * tests/test-floorl.c (minus_zero): Likewise.
67557         * tests/test-frexpl.c (minus_zero): Likewise.
67558         * tests/test-isnan.c (minus_zerol): Likewise.
67559         * tests/test-isnanl.h (minus_zero): Likewise.
67560         * tests/test-ldexpl.c (minus_zero): Likewise.
67561         * tests/test-roundl.c (minus_zero): Likewise.
67562         * tests/test-signbit.c (minus_zerol): Likewise.
67563         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
67564         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
67565         * tests/test-truncl.c (minus_zero): Likewise.
67566         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
67567         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
67568         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
67569         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
67571 2008-10-17  Bruno Haible  <bruno@clisp.org>
67573         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
67574         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
67575         that it gets activated only for gcc >= 3.0.
67576         * lib/dirent.in.h: Likewise.
67577         * lib/errno.in.h: Likewise.
67578         * lib/fcntl.in.h: Likewise.
67579         * lib/float.in.h: Likewise.
67580         * lib/iconv.in.h: Likewise.
67581         * lib/inttypes.in.h: Likewise.
67582         * lib/locale.in.h: Likewise.
67583         * lib/math.in.h: Likewise.
67584         * lib/netdb.in.h: Likewise.
67585         * lib/netinet_in.in.h: Likewise.
67586         * lib/search.in.h: Likewise.
67587         * lib/signal.in.h: Likewise.
67588         * lib/spawn.in.h: Likewise.
67589         * lib/stdarg.in.h: Likewise.
67590         * lib/stdint.in.h: Likewise.
67591         * lib/stdio.in.h: Likewise.
67592         * lib/stdlib.in.h: Likewise.
67593         * lib/string.in.h: Likewise.
67594         * lib/strings.in.h: Likewise.
67595         * lib/sys_file.in.h: Likewise.
67596         * lib/sys_ioctl.in.h: Likewise.
67597         * lib/sys_select.in.h: Likewise.
67598         * lib/sys_socket.in.h: Likewise.
67599         * lib/sys_stat.in.h: Likewise.
67600         * lib/sys_time.in.h: Likewise.
67601         * lib/sysexits.in.h: Likewise.
67602         * lib/time.in.h: Likewise.
67603         * lib/unistd.in.h: Likewise.
67604         * lib/wchar.in.h: Likewise.
67605         * lib/wctype.in.h: Likewise.
67606         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67608 2008-10-17  Jim Meyering  <meyering@redhat.com>
67610         ignore-value: don't depend on inline module
67611         * modules/ignore-value (Depends-on): Remove 'inline'.
67612         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
67613         Suggestion from Bruno Haible.
67615 2008-10-17  Bruno Haible  <bruno@clisp.org>
67617         New implementation of condition variables for Win32.
67618         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
67619         (gl_linked_waitqueue_t): New type.
67620         (gl_cond_t): Use it.
67621         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
67622         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
67623         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
67624         (glthread_cond_init_func, glthread_cond_wait_func,
67625         glthread_cond_timedwait_func, glthread_cond_signal_func,
67626         glthread_cond_broadcast_func, glthread_cond_destroy_func):
67627         Reimplemented on the basis of gl_linked_waitqueue_t.
67628         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
67629         gl_waitqueue_t.
67630         (gl_rwlock_t): Update.
67631         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
67633 2008-10-17  Simon Josefsson  <simon@josefsson.org>
67635         * modules/recvfrom (Depends-on): Add dependency on getpeername.
67636         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67638 2008-10-17  Jim Meyering  <meyering@redhat.com>
67640         ignore-value: new module
67641         * modules/ignore-value: New file.
67642         * lib/ignore-value.h: New file.
67643         * MODULES.html.sh (Compiler warning management): New section,
67644         just for this module.  More to come.
67646 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67648         open-safer.c: avoid 'signed and unsigned in conditional...' warning
67649         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
67650         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
67652 2008-10-16  Jim Meyering  <meyering@redhat.com>
67654         openat-die.c: avoid 'no previous prototype' warning
67655         * lib/openat-die.c: Include "openat.h".
67656         Reported by Reuben Thomas <rrt@sc3d.org>.
67658 2008-10-16  Simon Josefsson  <simon@josefsson.org>
67660         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
67661         * lib/netdb.in.h: Fix typo.
67662         Reported by Bruno Haible  <bruno@clisp.org>
67664         * lib/netdb.in.h: Include sys/socket.h for platforms without
67665         netdb.h, to get structures like hostent on MinGW.
67666         * modules/netdb (Depends-on): Add sys_socket.
67668 2008-10-15  Simon Josefsson  <simon@josefsson.org>
67670         * modules/netdb, modules/netdb-tests: New file.
67671         * m4/netdb_h.m4: New file.
67672         * lib/netdb.in.h: Add, currently just an empty file pending
67673         definitions.
67674         * tests/test-netdb.c: New file.
67675         * doc/posix-headers/netdb.texi: Mention that we replace it if
67676         needed.
67677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67678         netdb.
67680 2008-10-15  Simon Josefsson  <simon@josefsson.org>
67682         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
67683         with code.
67685 2008-10-13  Bruno Haible  <bruno@clisp.org>
67687         * lib/glthread/cond.c (glthread_cond_wait_func,
67688         glthread_cond_timedwait_func): Add a comment.
67690 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67692         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
67693         * tests/test-select.c: Likewise,
67695 2008-10-13  Bruno Haible  <bruno@clisp.org>
67697         * lib/glthread/cond.c (glthread_cond_wait_func,
67698         glthread_cond_timedwait_func): Fix variable name.
67699         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67701 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
67703         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
67704         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
67705         struct sockaddr.sa_len.
67706         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
67708 2008-10-13  Simon Josefsson  <simon@josefsson.org>
67710         * build-aux/pmccabe2html: Add css and css_url parameters.
67712 2008-10-12  Bruno Haible  <bruno@clisp.org>
67714         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
67715         calling aclx_get.
67716         Reported by Rainer Tammer <tammer@tammer.net>.
67718 2008-10-12  Bruno Haible  <bruno@clisp.org>
67720         Use msvcrt aware primitives for creation/termination of Win32 threads.
67721         * lib/glthread/thread.c: Include <process.h>.
67722         (glthread_create_func): Use _beginthreadex instead of CreateThread.
67723         (wrapper_func): Update signature.
67724         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
67726 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67727             Bruno Haible  <bruno@clisp.org>
67729         Provide a Win32 implementation of the 'cond' module.
67730         * lib/glthread/cond.h [USE_WIN32]: New implementation.
67731         * lib/glthread/cond.c (glthread_cond_init_func,
67732         glthread_cond_wait_func, glthread_cond_timedwait_func,
67733         glthread_cond_signal_func, glthread_cond_broadcast_func,
67734         glthread_cond_destroy_func) [USE_WIN32]: New functions.
67735         * modules/cond (Dependencies): Add gettimeofday.
67737 2008-10-11  Bruno Haible  <bruno@clisp.org>
67739         Make sleep work on older versions of mingw.
67740         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
67741         only whether it exists.
67742         * doc/posix-functions/sleep.texi: Mention the problem with older
67743         versions of mingw.
67745 2008-10-11  Bruno Haible  <bruno@clisp.org>
67747         New module 'shutdown'.
67748         * modules/shutdown: New file.
67749         * lib/sys_socket.in.h (shutdown): New declaration.
67750         * lib/winsock.c (shutdown): New function.
67751         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
67752         GNULIB_SHUTDOWN.
67753         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
67754         * doc/posix-functions/shutdown.texi: Document the new module.
67756 2008-10-11  Jim Meyering  <meyering@redhat.com>
67758         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
67760 2008-10-11  Bruno Haible  <bruno@clisp.org>
67762         New module 'fclose'.
67763         * modules/fclose: New file.
67764         * lib/stdio.in.h (fclose): New declaration.
67765         * lib/fclose.c: New file.
67766         * m4/fclose.m4: New file.
67767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
67768         REPLACE_FCLOSE.
67769         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
67770         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
67771         REPLACE_FCLOSE.
67772         * modules/close (Depends-on): fclose.
67773         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
67775 2008-10-11  Bruno Haible  <bruno@clisp.org>
67777         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
67778         set errno and don't call _close.
67780 2008-10-10  Bruno Haible  <bruno@clisp.org>
67782         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
67783         ACL, not afterwards. Fixes test failure on Cygwin.
67785 2008-10-09  Ben Pfaff  <blp@gnu.org>
67787         * build-aux/announce-gen: Fix gnulib version related part of usage
67788         message.  Die with a useful error message if no tarballs are
67789         found.
67791 2008-10-10  Jim Meyering  <meyering@redhat.com>
67793         bootstrap: use git's --depth=N option only if it's supported
67794         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
67795         recognize the --depth option.  Reported by Pádraig Brady.
67797 2008-10-09  Bruno Haible  <bruno@clisp.org>
67799         New module 'ioctl'.
67800         * modules/ioctl: New file.
67801         * lib/sys_socket.in.h (ioctl): Remove declaration.
67802         * lib/winsock.c: Include <sys/ioctl.h>.
67803         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
67804         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
67805         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
67806         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
67807         * doc/posix-functions/ioctl.texi: Mention the new module.
67809 2008-10-09  Bruno Haible  <bruno@clisp.org>
67811         New module 'sys_ioctl'.
67812         * lib/sys_ioctl.in.h: New file.
67813         * m4/sys_ioctl_h.m4: New file.
67814         * modules/sys_ioctl: New file.
67815         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
67817 2008-10-09  Bruno Haible  <bruno@clisp.org>
67819         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
67820         * lib/winsock.c: Include <stdarg.h>.
67821         (rpl_ioctl): Change to second argument 'int' and then varargs.
67823 2008-10-09  Bruno Haible  <bruno@clisp.org>
67825         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
67826         when the sys_socket module is present and the system has <winsock2.h>.
67828 2008-10-09  Bruno Haible  <bruno@clisp.org>
67830         * doc/posix-functions/close.texi: Mention module 'close' instead of
67831         module 'sys_socket'.
67833 2008-10-09  Bruno Haible  <bruno@clisp.org>
67835         * doc/glibc-headers/sys_ioctl.texi: New file.
67836         * doc/gnulib.texi: Include it.
67838 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
67839             Bruno Haible  <bruno@clisp.org>
67841         Combine the two replacements of 'close'.
67842         * lib/sys_socket.in.h (close): Define to a reminder to include
67843         <unistd.h>.
67844         (_gl_close_fd_maybe_socket): New declaration.
67845         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
67846         * lib/winsock.c (close): Remove undefinition.
67847         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
67848         needed for the gnulib module 'close'.
67849         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
67850         define to an error symbol or to a warning, if suitable.
67851         * lib/close.c: Include <sys/socket.h>.
67852         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
67853         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
67854         UNISTD_H_HAVE_WINSOCK2_H.
67855         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
67856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67857         UNISTD_H_HAVE_WINSOCK2_H.
67858         * modules/sys_socket (Files): Add m4/unistd_h.m4.
67859         (configure.ac): Set a module indicator.
67860         (Makefile.am): Substitute GNULIB_CLOSE.
67861         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
67862         * modules/poll-tests (Depends-on): Add close.
67863         * modules/select-tests (Depends-on): Likewise.
67865 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
67866             Bruno Haible  <bruno@clisp.org>
67868         New module 'close'.
67869         * modules/close: New file.
67870         * lib/unistd.in.h (close): Move declaration out of the
67871         FCHDIR_REPLACEMENT scope.
67872         (_gl_unregister_fd): New declaration.
67873         * lib/close.c: New file.
67874         * lib/fchdir.c (rpl_close): Remove function.
67875         * m4/close.m4: New file.
67876         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
67877         close.
67878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
67879         REPLACE_CLOSE.
67880         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
67881         REPLACE_CLOSE.
67882         * modules/fchdir (Depends-on): Add close.
67884 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
67885             Bruno Haible  <bruno@clisp.org>
67887         * lib/fcntl.in.h (open): Simplify conditionals.
67888         (_gl_register_fd): New declaration.
67889         * lib/fchdir.c (rpl_open): Remove function.
67890         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
67891         also.
67892         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
67893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
67894         open.
67896 2008-10-09  Jim Meyering  <meyering@redhat.com>
67898         GNUmakefile: use the more name-space-friendly "_version"
67899         * top/GNUmakefile (_dummy): Update.
67900         (_version): Rename from "version".
67902 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
67903             Bruno Haible  <bruno@clisp.org>
67905         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
67906         rpl_close.
67907         (_gl_register_fd): New function, extracted from rpl_open.
67908         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
67909         (rpl_open, rpl_opendir): Use _gl_register_fd.
67911 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
67913         Fix organization of 'open' replacement.
67914         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
67915         (gl_FUNC_OPEN): Use it.
67916         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
67918 2008-10-08  Bruno Haible  <bruno@clisp.org>
67920         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
67922 2008-10-08  Simon Josefsson  <simon@josefsson.org>
67924         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
67925         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
67926         listen).
67928 2008-10-08  Eric Blake  <ebb9@byu.net>
67930         GNUmakefile: add 'make version' target
67931         * top/GNUmakefile (_curr-ver): Split version update rules...
67932         (version): ...into a target.
67934 2008-10-07  Bruno Haible  <bruno@clisp.org>
67936         Use a more portable replacement expression for -0.0L.
67937         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
67938         instead of -0.0L. Fix m4 quotation.
67940         * tests/test-signbit.c: Include <float.h>.
67941         (minus_zero): New variable.
67942         (test_signbitl): Use minus_zero instead of -zero.
67943         * modules/signbit-tests (Depends-on): Add float.
67945         * tests/test-ceill.c: Include <float.h>.
67946         (zero): Remove variable.
67947         (minus_zero): New variable.
67948         (main): Use minus_zero instead of -zero.
67949         * modules/ceill-tests (Depends-on): Add float.
67951         * tests/test-floorl.c: Include <float.h>.
67952         (zero): Remove variable.
67953         (minus_zero): New variable.
67954         (main): Use minus_zero instead of -zero.
67955         * modules/floorl-tests (Depends-on): Add float.
67957         * tests/test-roundl.c: Include <float.h>.
67958         (zero): Remove variable.
67959         (minus_zero): New variable.
67960         (main): Use minus_zero instead of -zero.
67961         * modules/roundl-tests (Depends-on): Add float.
67963         * tests/test-truncl.c: Include <float.h>.
67964         (zero): Remove variable.
67965         (minus_zero): New variable.
67966         (main): Use minus_zero instead of -zero.
67967         * modules/truncl-tests (Depends-on): Add float.
67969         * tests/test-frexpl.c (zero): Remove variable.
67970         (minus_zero): New variable.
67971         (main): Use minus_zero instead of -zero.
67972         * modules/frexpl-tests (Depends-on): Add float.
67974         * tests/test-isnan.c (zerol): Remove variable.
67975         (minus_zerol): New variable.
67976         (test_long_double): Use minus_zerol instead of -zerol.
67977         * modules/isnan-tests (Depends-on): Add float.
67979         * tests/test-isnanl.h (zero): Remove variable.
67980         (minus_zero): New variable.
67981         (main): Use minus_zero instead of -zero.
67982         * modules/isnanl-nolibm-tests (Depends-on): Add float.
67983         * modules/isnanl-tests (Depends-on): Add float.
67985         * tests/test-ldexpl.c (zero): Remove variable.
67986         (minus_zero): New variable.
67987         (main): Use minus_zero instead of -zero.
67988         * modules/ldexpl-tests (Depends-on): Add float.
67990         * tests/test-snprintf-posix.h (zerol): Remove variable.
67991         (minus_zerol): New variable.
67992         (test_function): Use minus_zerol instead of -zerol.
67993         * modules/snprintf-posix-tests (Depends-on): Add float.
67994         * modules/vsnprintf-posix-tests (Depends-on): Add float.
67996         * tests/test-sprintf-posix.h (zerol): Remove variable.
67997         (minus_zerol): New variable.
67998         (test_function): Use minus_zerol instead of -zerol.
67999         * modules/sprintf-posix-tests (Depends-on): Add float.
68000         * modules/vsprintf-posix-tests (Depends-on): Add float.
68002         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
68003         (minus_zerol): New variable.
68004         (test_function): Use minus_zerol instead of -zerol.
68005         * modules/vasnprintf-posix-tests (Depends-on): Add float.
68007         * tests/test-vasprintf-posix.c (zerol): Remove variable.
68008         (minus_zerol): New variable.
68009         (test_function): Use minus_zerol instead of -zerol.
68010         * modules/vasprintf-posix-tests (Depends-on): Add float.
68012 2008-10-07  Simon Josefsson  <simon@josefsson.org>
68014         * MODULES.html.sh (Support for building documentation): Mention
68015         pmccabe2html.  Sort entries.
68017         Add pmccabe2html module, from gnupdf.
68018         * build-aux/pmccabe.css: New file.
68019         * build-aux/pmccabe2html: New file.
68020         * m4/pmccabe2html.m4: New file.
68021         * modules/pmccabe2html: New file.
68023 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
68025         flock: new module
68026         * MODULES.html.sh: Add to list of modules.
68027         * lib/flock.c: flock implementation for Windows and Unix systems
68028         which have fcntl.
68029         * doc/glibc-functions/flock.texi: Update documentation.
68030         * lib/sys_file.in.h: <sys/file.h> header file.
68031         * m4/flock.m4: M4 macros.
68032         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
68033         * modules/flock: flock module.
68034         * modules/flock-tests: flock tests module.
68035         * modules/sys_file: sys/file.h module.
68036         * tests/test-flock.c: test suite for flock.
68038 2008-10-06  Jim Meyering  <meyering@redhat.com>
68040         bootstrap: check for LT_INIT more portably still ;-)
68041         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
68042         Spotted by Bruno Haible.
68044 2008-10-06  Eric Blake  <ebb9@byu.net>
68046         test-signbit: avoid tripping Irix cc bug on -0.0L
68047         * tests/test-signbit.c (minus_zerol): Delete, and replace with
68048         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
68049         entire testsuite consistent and avoids an Irix 6.2 bug.
68051 2008-10-05  Bruno Haible  <bruno@clisp.org>
68052             Jim Meyering  <jim@meyering.net>
68054         Add an option for ignoring EPIPE during close_stdout.
68055         * lib/closeout.h: Include <stdbool.h>.
68056         (close_stdout_set_ignore_EPIPE): New declaration.
68057         * lib/closeout.c: Include <stdbool.h>.
68058         (ignore_EPIPE): New variable.
68059         (close_stdout_set_ignore_EPIPE): New function.
68060         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
68061         * lib/close-stream.c (close_stream): Mention the possible EPIPE
68062         failure.
68063         * modules/closeout (Depends-on): Add stdbool.
68065 2008-10-05  Bruno Haible  <bruno@clisp.org>
68067         * modules/accept: New file.
68068         * modules/bind: New file.
68069         * modules/connect: New file.
68070         * modules/getpeername: New file.
68071         * modules/getsockname: New file.
68072         * modules/getsockopt: New file.
68073         * modules/listen: New file.
68074         * modules/recv: New file.
68075         * modules/recvfrom: New file.
68076         * modules/send: New file.
68077         * modules/sendto: New file.
68078         * modules/setsockopt: New file.
68079         * modules/socket: New file.
68080         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
68081         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
68082         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
68083         the particular module is requested. Add a link warning when the
68084         particular module is not requested.
68085         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
68086         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
68087         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
68088         the particular module is requested.
68089         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
68090         gl_SYS_SOCKET_H_DEFAULTS): New macros.
68091         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
68092         * modules/sys_socket (Depends-on): Add link-warning.
68093         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
68094         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
68095         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
68096         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
68097         GL_LINK_WARNING.
68098         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
68099         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
68100         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
68101         * doc/posix-functions/getpeername.texi: Mention the new module
68102         'getpeername'.
68103         * doc/posix-functions/getsockname.texi: Mention the new module
68104         'getsockname'.
68105         * doc/posix-functions/getsockopt.texi: Mention the new module
68106         'getsockopt'.
68107         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
68108         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
68109         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
68110         * doc/posix-functions/send.texi: Mention the new module 'send'.
68111         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
68112         * doc/posix-functions/setsockopt.texi: Mention the new module
68113         'setsockopt'.
68114         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
68115         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
68116         listen, connect, accept.
68117         * modules/select-tests (Depends-on): Likewise.
68119 2008-10-05  Bruno Haible  <bruno@clisp.org>
68121         * lib/winsock.c (strerror): Remove unused #undef.
68122         (rpl_close): Remove unused local variable.
68124         * modules/sys_socket (Depends-on); Add errno.
68126 2008-10-05  Bruno Haible  <bruno@clisp.org>
68128         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
68129         (select): Add a link warning when the 'select' module is not used.
68130         * modules/sys_select (Depends-on): Add link-warning.
68131         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
68132         Suggested by Paolo Bonzini.
68134 2008-10-05  Jim Meyering  <meyering@redhat.com>
68136         bootstrap: check for LT_INIT more portably
68137         * build-aux/bootstrap: Avoid using grep -E, since it's not
68138         portable enough.  Suggestion from Bruno Haible.
68140 2008-10-05  Bruno Haible  <bruno@clisp.org>
68142         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
68143         as being fixed by gnulib.
68145 2008-10-05  Bruno Haible  <bruno@clisp.org>
68147         * modules/select-tests: New file, mostly copied from
68148         modules/sys_select-tests.
68149         * tests/test-select.c: New file, mostly copied from
68150         tests/test-sys_select.c.
68151         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
68152         * modules/sys_select-tests (Depends-on): Remove all dependencies.
68153         (Makefile.am): Remove test_sys_select_LDADD.
68155         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
68156         to an undefined symbol, for an error message.
68157         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
68158         (gl_SYS_SELECT_H_DEFAULTS): New macro.
68159         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
68160         winsock-select.c here.
68161         * modules/sys_select (Files): Remove lib/winsock-select.c.
68162         (Depends-on): Remove alloca.
68163         (Makefile.am): Substitute GNULIB_SELECT.
68164         * modules/select: New file.
68165         * doc/posix-functions/select.texi: Update.
68167 2008-10-05  Bruno Haible  <bruno@clisp.org>
68169         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
68170         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
68171         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
68172         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
68173         getdtablesize.
68174         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
68175         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
68177 2008-10-05  Bruno Haible  <bruno@clisp.org>
68179         * modules/getdtablesize-tests: New file.
68180         * tests/test-getdtablesize.c: New file.
68182         New module 'getdtablesize'.
68183         * lib/unistd.in.h (getdtablesize): New declaration.
68184         * lib/getdtablesize.c: New file.
68185         * m4/getdtablesize.m4: New file.
68186         * modules/getdtablesize: New file.
68187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68188         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
68189         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
68190         HAVE_GETDTABLESIZE.
68191         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
68193 2008-10-05  Bruno Haible  <bruno@clisp.org>
68195         * modules/sched (Makefile.am): Fix typo.
68196         Reported by Simon Josefsson.
68198 2008-10-05  Jim Meyering  <meyering@redhat.com>
68200         bootstrap: check for LT_INIT, too
68201         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
68202         are deprecated.  Suggestion from Ralf Wildenhues.
68204 2008-10-05  Bruno Haible  <bruno@clisp.org>
68206         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
68207         overriding them by ours.
68208         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
68210 2008-10-05  Jim Meyering  <meyering@redhat.com>
68212         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
68213         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
68214         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
68216 2008-10-04  Bruno Haible  <bruno@clisp.org>
68218         * modules/dup2 (License): Change to LGPLv2+.
68219         * modules/sleep (License): Likewise.
68220         * modules/perror (License): Likewise.
68221         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
68222         Blake.
68223         * modules/signal (License): Likewise.
68224         * modules/sigprocmask (License): Likewise.
68225         * modules/raise (License): Change to LGPLv2+, with approval by Jim
68226         Meyering.
68228 2008-10-04  Bruno Haible  <bruno@clisp.org>
68230         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
68231         Reported by Rainer Tammer <tammer@tammer.net>.
68233 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
68234             Bruno Haible  <bruno@clisp.org>
68236         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
68237         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
68238         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
68240 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
68242         filevercmp: new module
68243         * lib/filevercmp.h: New function filevercmp comparing version strings.
68244         * lib/filevercmp.c: Implementation of filevercmp function.
68245         * modules/filevercmp: Module metadata.
68246         * tests/test-filevercmp.c: Unit test for new module.
68247         * modules/filevercmp-tests: Unit test metadata.
68248         * MODULES.html.sh: Add filevercmp module.
68250 2008-10-03  Bruno Haible  <bruno@clisp.org>
68252         * lib/c-ctype.h: Add comment.
68253         Reported by Jim Meyering.
68255 2008-10-02  Bruno Haible  <bruno@clisp.org>
68257         * modules/posix_spawn-internal (Depends-on): Add 'open'.
68259 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
68261         * build-aux/bootstrap: Allow renaming bootstrap, and change the
68262         name of bootstrap.conf accordingly.
68264 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
68266         * build-aux/bootstrap: Install git-merge-changelog configuration
68267         items into .gitconfig if needed.
68269 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
68271         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
68272         git repository, and initialize/update it accordingly.
68274 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
68276         * modules/fsync-tests: New file.
68277         * tests/test-fsync.c: New file.
68279         New module 'fsync'.
68280         * lib/fsync.c: New file.
68281         * m4/fsync.m4: New file.
68282         * modules/fsync: New file.
68283         * lib/unistd.in.h (fsync): New declaration.
68284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
68285         GNULIB_FSYNC and HAVE_FSYNC.
68286         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
68287         * MODULES.html.sh (posix_functions): Add fsync.
68288         * doc/posix-functions/fsync.texi: Mention the new module.
68290 2008-10-02  Jim Meyering  <meyering@redhat.com>
68292         fts.c: sync with similar code from coreutils' remove.c
68293         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
68294         Guard also with "#if defined __linux__", since for now at least,
68295         this code is Linux-kernel-specific.
68297 2008-10-02  Jim Meyering  <meyering@redhat.com>
68299         fts: bug fixes
68300         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
68301         Include <sys/vfs.h>, not <sys/statfs.h>.
68303         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
68304         Include <sys/vfs.h>, not <sys/statfs.h>.
68306 2008-10-01  Bruno Haible  <bruno@clisp.org>
68308         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
68309         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
68310         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
68311         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
68312         * doc/posix-functions/posix_spawnp.texi: Likewise.
68313         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
68314         whether posix_spawn actually works.
68315         * m4/pipe.m4 (gl_PIPE): Likewise.
68316         * modules/execute (Files): Add m4/posix_spawn.m4.
68317         * modules/pipe (Files): Add m4/posix_spawn.m4.
68318         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
68320 2008-10-01  Jim Meyering  <meyering@redhat.com>
68322         remove trailing spaces
68323         * NEWS: Likewise.
68324         * lib/poll.c (poll): Likewise.
68325         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
68326         * lib/winsock.c (rpl_close): Likewise.
68327         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
68328         * modules/yield: Likewise.
68329         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
68330         * tests/test-sys_select.c (connect_to_socket): Likewise.
68332         fts.c: adjust a new interface to be more generally useful
68333         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
68334         (fts_build): Adjust caller.
68336 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68338         * modules/cond-tests: New file.
68339         * tests/test-cond.c: New file.
68341 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68342             Bruno Haible  <bruno@clisp.org>
68344         * modules/cond (Dependencies): Add errno, time.
68345         * lib/glthread/cond.h: Include <time.h>.
68346         (gl_cond_define, gl_cond_define_initialized): Use the same definition
68347         across platforms.
68349 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68350             Bruno Haible  <bruno@clisp.org>
68352         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
68354 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68355             Bruno Haible  <bruno@clisp.org>
68357         * modules/tls-tests (Depends-on): Add thread, yield.
68358         (configure.ac): Remove all checks.
68359         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
68360         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
68361         gl_thread_self): Remove definitions. Include glthread/thread.h and
68362         glthread/yield.h instead.
68363         (test_tls): Pass an additional NULL argument to gl_thread_join.
68365 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68366             Bruno Haible  <bruno@clisp.org>
68368         * modules/lock-tests (Depends-on): Add thread, yield.
68369         (configure.ac): Remove all checks.
68370         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
68371         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
68372         gl_thread_self): Remove definitions. Include glthread/thread.h and
68373         glthread/yield.h instead.
68374         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
68375         additional NULL argument to gl_thread_join.
68377 2008-09-30  Bruno Haible  <bruno@clisp.org>
68379         Fix the Win32 implementation of the 'thread' module.
68380         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
68381         pointer type.
68382         (gl_thread_self): Invoke gl_thread_self_func.
68383         (gl_thread_self_func): New declaration.
68384         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
68385         (do_init_self_key, init_self_key): New functions.
68386         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
68387         Remove some fields.
68388         (running_threads, running_lock): Remove variables.
68389         (get_current_thread_handle): New function.
68390         (gl_thread_self_func, wrapper_func, glthread_create_func,
68391         glthread_join_func, gl_thread_exit_func): Largely rewritten and
68392         simplified.
68394 2008-09-30  Bruno Haible  <bruno@clisp.org>
68396         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
68397         files.
68399 2008-09-30  Jim Meyering  <meyering@redhat.com>
68401         fts.m4: correct the test for statfs.f_type
68402         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
68403         when checking for statfs.f_type.
68405 2008-09-15  Simon Josefsson  <simon@josefsson.org>
68407         tests: avoid some compiler warnings
68408         * tests/test-memchr.c (main): Pass NULL indirectly.
68409         * tests/test-getdate.c (main): Remove unused variable 'ret'.
68411 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
68413         getdate.y: disallow countable dayshifts like "4 yesterday ago"
68414         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
68415         exactly specified dayshifts.
68416         (dayshift): New rule.
68417         (rel): Add dayshift.
68418         (relative_time_table) [tomorrow, yesterday, today, now]:
68419         Use tDAY_SHIFT in place of tDAY_UNIT.
68420         * tests/test-getdate.c: Add tests for now-disallowed countable
68421         dayshifts, e.g., "4 yesterday ago".
68423 2008-09-29  Bruno Haible  <bruno@clisp.org>
68425         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
68426         * tests/test-posix_spawn1.in.sh: Renamed from
68427         tests/test-posix_spawn.in.sh.
68428         * tests/test-posix_spawn2.c: New file.
68429         * tests/test-posix_spawn2.in.sh: New file.
68430         * modules/posix_spawnp-tests (Files): Update.
68431         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
68433 2008-09-29  Bruno Haible  <bruno@clisp.org>
68435         Propagate effects of putenv/setenv/unsetenv to child processes.
68436         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
68437         * lib/pipe.c (create_pipe): Likewise.
68439 2008-09-29  Bruno Haible  <bruno@clisp.org>
68441         Enable use of shell scripts as executables in mingw.
68442         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
68443         run the program as a shell script.
68444         * lib/pipe.c (create_pipe): Likewise.
68445         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
68446         resulting array.
68448 2008-09-29  Eric Blake  <ebb9@byu.net>
68450         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
68452 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
68454         * doc/posix-functions/accept.texi: Update mingw problems.
68455         * doc/posix-functions/bind.texi: Update mingw problems.
68456         * doc/posix-functions/close.texi: Update mingw problems.
68457         * doc/posix-functions/connect.texi: Update mingw problems.
68458         * doc/posix-functions/getpeername.texi: Update mingw problems.
68459         * doc/posix-functions/getsockname.texi: Update mingw problems.
68460         * doc/posix-functions/getsockopt.texi: Update mingw problems.
68461         * doc/posix-functions/ioctl.texi: Update mingw problems.
68462         * doc/posix-functions/listen.texi: Update mingw problems.
68463         * doc/posix-functions/recv.texi: Update mingw problems.
68464         * doc/posix-functions/recvfrom.texi: Update mingw problems.
68465         * doc/posix-functions/select.texi: Update mingw problems.
68466         * doc/posix-functions/send.texi: Update mingw problems.
68467         * doc/posix-functions/sendto.texi: Update mingw problems.
68468         * doc/posix-functions/setsockopt.texi: Update mingw problems.
68469         * doc/posix-functions/socket.texi: Update mingw problems.
68471 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
68472             Bruno Haible  <bruno@clisp.org>
68474         * lib/sys_select.in.h: Include sys/time.h.
68475         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
68476         * modules/sys_select: Depend on sys_time.
68477         * tests/test-sys_select.c: Test that sys/select.h defines struct
68478         timeval fully.
68480 2008-09-29  Bruno Haible  <bruno@clisp.org>
68482         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
68483         * lib/sys_select.in.h: Likewise.
68485 2008-09-29  Bruno Haible  <bruno@clisp.org>
68487         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
68489 2008-09-29  Bruno Haible  <bruno@clisp.org>
68491         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
68492         Set LIBSOCKET instead of augmenting LIBS.
68493         * modules/sockets (Link): New section.
68494         * modules/sockets-tests (test_sockets_LDADD): New variable.
68495         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
68496         * modules/poll-tests (test_poll_LDADD): New variable.
68497         * NEWS: Document the change.
68499 2008-09-29  Bruno Haible  <bruno@clisp.org>
68501         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
68502         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
68503         ARPA_INET_H directly.
68504         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
68506 2008-09-28  Bruno Haible  <bruno@clisp.org>
68508         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
68509         from gl_HEADER_SYS_SOCKET.
68510         (gl_HEADER_SYS_SOCKET): Invoke it.
68511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68513 2008-09-28  Bruno Haible  <bruno@clisp.org>
68515         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
68516         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
68517         Needed on OSF/1 4.0.
68519 2008-09-28  Bruno Haible  <bruno@clisp.org>
68521         Override open more carefully.
68522         * lib/open.c (orig_open): New function.
68523         (rpl_open): Use orig_open instead of open.
68524         * lib/fcntl.in.h: Add special invocation convention.
68525         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
68526         (gl_FUNC_OPEN): Invoke it.
68528         Override freopen more carefully.
68529         * lib/freopen.c (orig_freopen): New function.
68530         (rpl_freopen): Use orig_freopen instead of freopen.
68531         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
68532         (gl_FUNC_FREOPEN): Invoke it.
68534         Override fopen more carefully.
68535         * lib/fopen.c (orig_fopen): New function.
68536         (rpl_fopen): Use orig_fopen instead of fopen.
68537         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
68538         (gl_FUNC_FOPEN): Invoke it.
68539         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
68541 2008-09-28  Bruno Haible  <bruno@clisp.org>
68543         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
68544         SIGPIPE.
68546 2008-09-28  Bruno Haible  <bruno@clisp.org>
68548         * tests/test-sigaction.c (handler, main): Disable the check whether
68549         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
68550         glibc systems with LinuxThreads.
68552 2008-09-28  Bruno Haible  <bruno@clisp.org>
68554         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
68556         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
68557         with AIX xlc.
68558         * lib/fcntl.in.h (open): Likewise.
68559         Reported by Rainer Tammer <tammer@tammer.net>.
68561 2008-09-28  Bruno Haible  <bruno@clisp.org>
68563         * modules/posix_spawnp-tests: New file.
68564         * tests/test-posix_spawn.c: New file.
68565         * tests/test-posix_spawn.in.sh: New file.
68567         New module 'posix_spawnp'.
68568         * modules/posix_spawnp: New file.
68569         * lib/spawnp.c: New file, from GNU libc with modifications.
68570         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
68572         New module 'posix_spawn'.
68573         * modules/posix_spawn: New file.
68574         * lib/spawn.c: New file, from GNU libc with modifications.
68575         * doc/posix-functions/posix_spawn.texi: Mention the new module.
68577         New module 'posix_spawnattr_destroy'.
68578         * modules/posix_spawnattr_destroy: New file.
68579         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
68580         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
68581         module.
68583         New module 'posix_spawnattr_setsigmask'.
68584         * modules/posix_spawnattr_setsigmask: New file.
68585         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
68586         modifications.
68587         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
68588         new module.
68590         New module 'posix_spawnattr_getsigmask'.
68591         * modules/posix_spawnattr_getsigmask: New file.
68592         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
68593         modifications.
68594         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
68595         new module.
68597         New module 'posix_spawnattr_setsigdefault'.
68598         * modules/posix_spawnattr_setsigdefault: New file.
68599         * lib/spawnattr_setdefault.c: New file, from GNU libc with
68600         modifications.
68601         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
68602         new module.
68604         New module 'posix_spawnattr_getsigdefault'.
68605         * modules/posix_spawnattr_getsigdefault: New file.
68606         * lib/spawnattr_getdefault.c: New file, from GNU libc with
68607         modifications.
68608         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
68609         new module.
68611         New module 'posix_spawnattr_setschedpolicy'.
68612         * modules/posix_spawnattr_setschedpolicy: New file.
68613         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
68614         modifications.
68615         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
68616         new module.
68618         New module 'posix_spawnattr_getschedpolicy'.
68619         * modules/posix_spawnattr_getschedpolicy: New file.
68620         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
68621         modifications.
68622         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
68623         new module.
68625         New module 'posix_spawnattr_setschedparam'.
68626         * modules/posix_spawnattr_setschedparam: New file.
68627         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
68628         modifications.
68629         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
68630         new module.
68632         New module 'posix_spawnattr_getschedparam'.
68633         * modules/posix_spawnattr_getschedparam: New file.
68634         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
68635         modifications.
68636         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
68637         new module.
68639         New module 'posix_spawnattr_setpgroup'.
68640         * modules/posix_spawnattr_setpgroup: New file.
68641         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
68642         modifications.
68643         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
68644         module.
68646         New module 'posix_spawnattr_getpgroup'.
68647         * modules/posix_spawnattr_getpgroup: New file.
68648         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
68649         modifications.
68650         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
68651         module.
68653         New module 'posix_spawnattr_setflags'.
68654         * modules/posix_spawnattr_setflags: New file.
68655         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
68656         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
68657         module.
68659         New module 'posix_spawnattr_getflags'.
68660         * modules/posix_spawnattr_getflags: New file.
68661         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
68662         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
68663         module.
68665         New module 'posix_spawnattr_init'.
68666         * modules/posix_spawnattr_init: New file.
68667         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
68668         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
68669         module.
68671         New module 'posix_spawn_file_actions_destroy'.
68672         * modules/posix_spawn_file_actions_destroy: New file.
68673         * lib/spawn_faction_destroy.c: New file, from GNU libc with
68674         modifications.
68675         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
68676         the new module.
68678         New module 'posix_spawn_file_actions_addopen'.
68679         * modules/posix_spawn_file_actions_addopen: New file.
68680         * lib/spawn_faction_addopen.c: New file, from GNU libc with
68681         modifications.
68682         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
68683         the new module.
68685         New module 'posix_spawn_file_actions_adddup2'.
68686         * modules/posix_spawn_file_actions_adddup2: New file.
68687         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
68688         modifications.
68689         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
68690         the new module.
68692         New module 'posix_spawn_file_actions_addclose'.
68693         * modules/posix_spawn_file_actions_addclose: New file.
68694         * lib/spawn_faction_addclose.c: New file, from GNU libc with
68695         modifications.
68696         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
68697         the new module.
68699         New module 'posix_spawn_file_actions_init'.
68700         * modules/posix_spawn_file_actions_init: New file.
68701         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
68702         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
68703         new module.
68705         New module 'posix_spawn-internal'.
68706         * modules/posix_spawn-internal: New file.
68707         * lib/spawn_int.h: New file, from GNU libc with modifications.
68708         * lib/spawni.c: New file, from GNU libc with modifications.
68709         * m4/posix_spawn.m4: New file.
68711         New module 'spawn'.
68712         * modules/spawn: New file.
68713         * lib/spawn.in.h: New file, from GNU libc with modifications.
68714         * m4/spawn_h.m4: New file.
68715         * doc/posix-headers/spawn.texi: Mention the new module.
68717 2008-09-28  Bruno Haible  <bruno@clisp.org>
68719         * modules/sched-tests: New file.
68720         * tests/test-sched.c: New file.
68722         New module 'sched'.
68723         * modules/sched: New file.
68724         * lib/sched.in.h: New file.
68725         * m4/sched_h.m4: New file.
68726         * doc/posix-headers/sched.texi: Mention the new module.
68728 2008-09-27  Eric Blake  <ebb9@byu.net>
68730         Fix previous patch, and tweak references to $0.
68731         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
68732         (func_version, func_gnulib_dir): Don't call this program
68733         gnulib-tool.
68734         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
68735         with using $0 in function.
68736         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
68737         (func_fatal_error): Reuse the name the user invoked us with.
68739 2008-09-27  Bruno Haible  <bruno@clisp.org>
68741         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
68742         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
68743         (gl_ICONV_H): Not here.
68744         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
68745         instead of assigning ICONV_H directly.
68747         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
68748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
68749         WCHAR_H directly.
68751 2008-09-27  Bruno Haible  <bruno@clisp.org>
68753         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
68754         * modules/arpa_inet (Depends-on): Add link-warning.
68755         (Makefile.am): Insert the definition of GL_LINK-WARNING.
68756         * modules/unistd (Makefile.am): Likewise.
68758 2008-09-26  Bruno Haible  <bruno@clisp.org>
68760         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
68761         variables.
68762         (func_version): Essentially copied from gnulib-tool.
68763         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
68764         func_readlink): Copied from gnulib-tool.
68766 2008-09-26  Bruno Haible  <bruno@clisp.org>
68768         * gnulib-tool (func_version): Change directory to $gnulib_dir before
68769         invoking git-version-gen.
68771 2008-09-26  Bruno Haible  <bruno@clisp.org>
68773         * posix-modules: Update to directory names changed on 2008-01-19.
68774         Remove commas in output before splitting into words. No more need to
68775         avoid 'ftruncate' since 2007-02-19.
68777 2008-09-26  Bruno Haible  <bruno@clisp.org>
68779         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
68781 2008-09-26  Bruno Haible  <bruno@clisp.org>
68783         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
68784         * modules/fwriteerror (Depends-on): Add errno.
68786 2008-09-26  Bruno Haible  <bruno@clisp.org>
68788         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
68789         * tests/test-vc-list-files-cvs.sh: Likewise.
68791 2008-09-26  Bruno Haible  <bruno@clisp.org>
68793         * doc/posix-headers/sys_resource.texi: Reorder items.
68795 2008-09-26  Jim Meyering  <meyering@redhat.com>
68797         fts: tweak inode comparison function
68798         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
68799         inode numbers, as documented.
68801         fts: sort dirent entries on inode number before traversing
68802         This avoids a quadratic, seek-related performance penalty when
68803         operating on a directory containing many entries (measurable at 10k;
68804         3.5 hours at 2 million entries with a cold cache) on certain types
68805         of file systems, including ext3 and ext4, but not tmpfs.
68806         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
68807         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
68808         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
68809         (fs_handles_readdir_ordered_dirents_efficiently): New function.
68810         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
68811         (fts_build): Set the stat.st_ino member from D_INO.
68812         If it is likely to be useful, sort dirent entries on inode number.
68814         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
68815         and the struct statfs.f_type member.
68816         * modules/fts (Depends-on): Add d-ino.
68818 2008-09-26  Bruno Haible  <bruno@clisp.org>
68820         * modules/sigpipe-die (Depends-on): Add sigpipe.
68822         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
68823         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
68824         and GNULIB_STDIO_H_SIGPIPE are set.
68825         * lib/stdio-write.c: New file.
68826         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
68827         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
68828         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
68829         REPLACE_STDIO_WRITE_FUNCS.
68830         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
68831         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
68832         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
68833         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
68834         * modules/stdio (Files): Add lib/stdio-write.c.
68835         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
68836         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
68837         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
68838         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
68839         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
68840         REPLACE_FPRINTF_POSIX.
68841         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
68842         REPLACE_PRINTF_POSIX.
68843         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
68844         REPLACE_VFPRINTF_POSIX.
68845         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
68846         REPLACE_VPRINTF_POSIX.
68847         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
68848         SIGPIPE issue.
68849         * doc/posix-functions/fputc.texi: Likewise.
68850         * doc/posix-functions/fputs.texi: Likewise.
68851         * doc/posix-functions/fwrite.texi: Likewise.
68852         * doc/posix-functions/printf.texi: Likewise.
68853         * doc/posix-functions/putc.texi: Likewise.
68854         * doc/posix-functions/putchar.texi: Likewise.
68855         * doc/posix-functions/puts.texi: Likewise.
68856         * doc/posix-functions/vfprintf.texi: Likewise.
68857         * doc/posix-functions/vprintf.texi: Likewise.
68859         * modules/safe-write (Depends-on): Add write.
68861         * modules/sigpipe-tests: New file.
68862         * tests/test-sigpipe.c: New file.
68863         * tests/test-sigpipe.sh: New file.
68865         * modules/write: New file.
68866         * lib/unistd.in.h: Include <sys/types.h>.
68867         (write): New declaration.
68868         * lib/write.c: New file.
68869         * m4/write.m4: New file.
68870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68871         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
68872         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
68873         GNULIB_WRITE, REPLACE_WRITE.
68874         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
68875         and the SIGPIPE issue.
68877         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
68878         (raise): New declaration.
68879         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
68880         (ext_signal): New function.
68881         (rpl_raise): New function.
68882         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
68883         GNULIB_SIGNAL_H_SIGPIPE.
68884         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
68885         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
68887         * modules/sigpipe: New file.
68888         * m4/sigpipe.m4: New file.
68890 2008-09-25  Derek Price  <derek@ximbiot.com>
68891             Bruno Haible  <bruno@clisp.org>
68893         * gnulib-tool (func_import): Report all license incompatibilities, not
68894         just the first one.
68896 2008-09-25  Bruno Haible  <bruno@clisp.org>
68898         * gnulib-tool (func_import): When computing the edits, consider not
68899         only the Makefile.ams that exist but also those that will be generated.
68901 2008-09-25  Simon Josefsson  <simon@josefsson.org>
68903         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
68904         fixes gnulib-tool --test warning about duplicate dependency.
68906 2008-09-25  Bruno Haible  <bruno@clisp.org>
68908         * gnulib-tool: Don't ask the user to perform edits in the generated
68909         Makefile.ams.
68910         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
68911         apply to the Makefile.am being generated.
68912         (func_emit_tests_Makefile_am): Execute edits that apply to the
68913         Makefile.am being generated.
68914         (func_import): Setup list of Makefile.am edits before emitting the
68915         Makefile.ams, not at the end.
68916         (func_create_testdir): Update.
68917         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68919 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68921         * gnulib-tool (func_import): Store the --tests-base option in the
68922         comment in gnulib-cache.m4.
68924 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
68926         * NEWS: Document increased portability that sys_select now provides.
68928         * lib/sys_select.in.h: Install select wrapper.
68929         * lib/sys_socket.in.h: Use more descriptive name when there is no
68930         select wrapper.
68931         * lib/winsock-select.c: New.
68932         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
68933         Require gl_HEADER_SYS_SOCKET.
68934         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
68935         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
68936         * tests/test-sys_select.c: Add functional tests.
68938 2008-09-24  Eric Blake  <ebb9@byu.net>
68940         open, fopen: close fd leak in last patch
68941         * lib/open.c (rpl_open): Close fd before returning error.
68942         * lib/fopen.c (rpl_fopen): Close fd before returning error.
68943         * doc/posix-functions/open.texi (open): Document that Irix also
68944         has the bug.
68945         * doc/posix-functions/fopen.texi (fopen): Likewise.
68946         Reported by Paolo Bonzini.
68948 2008-09-24  Bruno Haible  <bruno@clisp.org>
68950         Ensure that a filename ending in a slash cannot be used to access a
68951         non-directory.
68952         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
68953         to check whether it's really a directory.
68954         * lib/fopen.c: Include fcntl.h, unistd.h.
68955         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
68956         and fdopen().
68957         * modules/fopen (Depends-on): Add unistd.
68958         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
68959         * tests/test-fopen.c (main): Likewise.
68960         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
68961         * doc/posix-functions/fopen.texi: Likewise.
68962         Reported by Eric Blake.
68964 2008-09-23  Eric Blake  <ebb9@byu.net>
68966         c-stack: avoid compiler optimizations when provoking overflow
68967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
68968         recursion harder to optimize, to ensure a stack overflow occurs.
68969         * tests/test-c-stack.c (recurse): Likewise.
68970         Borrowed from libsigsegv.
68972         c-stack: work around Irix sigaltstack bug
68973         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
68974         whether sigaltstack uses wrong end of stack_t (copied in part from
68975         libsigsegv).
68976         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
68977         Irix bug, without requiring an over-allocation.
68978         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
68979         bug.
68981         fopen: document mingw bug on directories
68982         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
68983         not allowing a stream visiting a directory, even though reading
68984         from such a stream is not portable.
68986 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
68988         * lib/poll.c: Rewrite.
68989         * modules/poll: Depend on alloca.
68991 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
68993         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
68994         instead define prototypes for a full set of wrappers.  Ensure
68995         that Cygwin does not use the compatibility code, which is only
68996         for MinGW.
68997         * lib/winsock.c: New.
68998         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
68999         * modules/sys_socket: Add lib/winsock.c.
69001         * modules/poll-tests: Add errno and perror.
69002         * tests/test-poll.c: Use ioctl, not ioctlsocket.
69004 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
69006         * tests/test-poll.c: Downgrade minimum needed Winsock version.
69008 2008-09-23  Bruno Haible  <bruno@clisp.org>
69010         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
69011         * doc/glibc-functions/*: Likewise.
69013 2008-09-23  Simon Josefsson  <simon@josefsson.org>
69015         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
69016         success.
69018 2008-09-22  Eric Blake  <ebb9@byu.net>
69019             Bruno Haible  <bruno@clisp.org>
69021         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
69022         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
69023         supply %A but mishandle pseudo-NaN.
69024         Reported by Simon Josefsson.
69026 2008-09-21  Bruno Haible  <bruno@clisp.org>
69028         * tests/test-lock.c (main): Tweak skip message.
69029         * tests/test-tls.c (main): Likewise.
69031 2008-09-21  Bruno Haible  <bruno@clisp.org>
69033         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
69034         whether 'struct sigaction' has sa_sigaction here...
69035         (gl_PREREQ_SIG_HANDLER_H): ... not here.
69036         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
69038 2008-09-21  Bruno Haible  <bruno@clisp.org>
69040         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
69041         section.
69042         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
69043         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
69044         the new section.
69045         (Support for obsolete systems lacking POSIX:2001): New section.
69046         (String handling <string.h>): Move strdup to the new section.
69047         Suggested by Simon Josefsson and Paolo Bonzini.
69049 2008-09-21  Bruno Haible  <bruno@clisp.org>
69051         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
69052         exponents in %e and %g results on 'long double'. Needed for mingw's
69053         improved *printf functions.
69054         * tests/test-vasprintf-posix.c (test_function): Likewise.
69055         * tests/test-snprintf-posix.h (test_function): Likewise.
69056         * tests/test-sprintf-posix.h (test_function): Likewise.
69057         Reported by Eric Blake.
69059 2008-09-21  Bruno Haible  <bruno@clisp.org>
69061         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
69062         * tests/test-sprintf-posix.h (test_function): Likewise.
69064 2008-09-21  Bruno Haible  <bruno@clisp.org>
69066         * modules/getpass (Depends-on): Add strdup-posix.
69068         New module 'strdup-posix'.
69069         * modules/strdup-posix: New file.
69070         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
69071         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
69072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69073         REPLACE_STRDUP.
69074         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
69075         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
69076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69077         strdup-posix.
69079         * modules/strdup (Depends-on): Remove malloc-posix.
69081 2008-09-20  Bruno Haible  <bruno@clisp.org>
69083         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
69084         Wildenhues.
69086 2008-09-20  Bruno Haible  <bruno@clisp.org>
69088         Ensure that wint_t gets defined on IRIX 5.3.
69089         * lib/wchar.in.h (wint_t): Define if not defined by the system.
69090         * lib/wctype.in.h (wint_t): Likewise.
69091         (__wctype_wint_t): Remove type.
69092         (isw*): Use wint_t instead of __wctype_wint_t.
69093         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
69094         * modules/wchar (Files): Add m4/wint_t.m4.
69095         (Makefile.am): Substitute HAVE_WINT_T.
69096         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
69097         * tests/test-wctype.c: Check that wint_t is defined.
69098         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
69099         * doc/posix-headers/wctype.texi: Likewise.
69100         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69102 2008-09-18  Bruno Haible  <bruno@clisp.org>
69104         * gnulib-tool (func_exit): Update comment.
69106 2008-09-18  Simon Josefsson  <simon@josefsson.org>
69108         * modules/getaddrinfo (Depends-on): Remove strdup, this module
69109         assumes strdup exists and does not depend on strdup to return
69110         ENOMEM on out of memory conditions.
69112 2008-09-18  Bruno Haible  <bruno@clisp.org>
69114         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
69115         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
69116         digits for the exponent.
69118 2008-09-18  Jim Meyering  <meyering@redhat.com>
69119             Bruno Haible  <bruno@clisp.org>
69121         * lib/vasnprintf.c (decimal_point_char): Define also if
69122         NEED_PRINTF_INFINITE_LONG_DOUBLE.
69124 2008-09-16  Bruno Haible  <bruno@clisp.org>
69125         and Eric Blake  <ebb9@byu.net>
69127         vasnprintf: support Irix 5.3
69128         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
69129         that mishandle long double infinity.
69130         Reported by Tom G. Christensen.
69132 2008-09-16  Bruno Haible  <bruno@clisp.org>
69134         * doc/glibc-functions/scandir.texi: Mention the function is missing on
69135         Solaris 9.
69136         * doc/glibc-functions/alphasort.texi: Likewise.
69137         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
69139 2008-09-16  Jim Meyering  <meyering@redhat.com>
69141         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
69142         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
69143         a umask modification leak out of a subshell.  Otherwise, the
69144         opensolaris /bin/sh would be accepted and thus cause unwarranted
69145         failures in the coreutils test suite.
69147 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
69149         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
69150         to succeed.
69152 2008-09-16  Jim Meyering  <meyering@redhat.com>
69154         avoid spurious test failure when library is built without ACL support
69155         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
69156         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
69157         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
69158         * tests/test-copy-acl.sh: Likewise.
69160 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69162         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
69163         based on character occurrence counts.
69165 2008-09-15  Eric Blake  <ebb9@byu.net>
69167         tests: avoid some compiler warnings
69168         * tests/test-memchr.c (main): Pass NULL indirectly.
69169         * tests/test-closein.c (main): Avoid unused variable.
69171 2008-09-15  Bruno Haible  <bruno@clisp.org>
69173         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
69174         are missing on OpenBSD 4.0 individually.
69175         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69177 2008-09-15  Bruno Haible  <bruno@clisp.org>
69179         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
69180         * doc/posix-functions/strerror.texi: Mention also Cygwin.
69181         * doc/posix-functions/perror.texi: Likewise.
69182         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
69183         is missing.
69184         Reported by Eric Blake.
69186         * lib/errno.in.h: Use replacement values >= 2000.
69187         Reported by Eric Blake.
69189 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69191         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
69192         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
69193         limit.
69194         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
69195         compareseq was aborted.
69197 2008-09-14  Bruno Haible  <bruno@clisp.org>
69199         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
69200         yvec_edit_count.
69201         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
69202         (fstrcmp_bounded): Simplify result computation accordingly.
69204 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69206         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
69207         (fstrcmp): Define in terms of fstrcmp_bounded.
69208         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
69209         lower_bound argument.
69210         Return quickly if the result is certainly < lower_bound.
69211         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
69213 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69215         * lib/diffseq.h (EARLY_ABORT): New macro.
69216         (compareseq): Change return type to bool. Return true when EARLY_ABORT
69217         evaluates to true.
69219 2008-09-14  Bruno Haible  <bruno@clisp.org>
69221         * modules/perror-tests: New file.
69222         * tests/test-perror.sh: New file.
69223         * tests/test-perror.c: New file.
69225         New module 'perror'.
69226         * lib/stdio.in.h (perror): New declaration.
69227         * lib/perror.c: New file.
69228         * m4/perror.m4: New file.
69229         * modules/perror: New file.
69230         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
69231         * doc/posix-functions/perror.texi: Mention the perror module.
69232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
69233         REPLACE_PERROR.
69234         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
69235         REPLACE_PERROR.
69237 2008-09-14  Bruno Haible  <bruno@clisp.org>
69239         * modules/stdio (Makefile.am): Reorder to match the order in
69240         lib/stdio.in.h.
69241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69243 2008-09-13  Bruno Haible  <bruno@clisp.org>
69245         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
69247 2008-09-13  Bruno Haible  <bruno@clisp.org>
69249         Extend strerror to cover the added errno values.
69250         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
69251         (rpl_strerror): Provide error messages for the added errno values and
69252         for the WSA* values.
69253         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
69254         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
69255         strerror.
69256         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
69257         * modules/strerror (Depends-on): Add errno.
69258         * doc/posix-functions/strerror.texi: Document the change.
69259         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
69260         and EOVERFLOW.
69262 2008-09-13  Bruno Haible  <bruno@clisp.org>
69264         * modules/EOVERFLOW: Remove file.
69265         * m4/eoverflow.m4: Remove file.
69266         * modules/EOVERFLOW-tests: Remove file.
69267         * tests/test-EOVERFLOW.c: Remove file.
69268         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
69269         * modules/ftell (Depends-on): Likewise.
69270         * modules/getdelim (Depends-on): Likewise.
69271         * modules/getugroups (Depends-on): Likewise.
69272         * modules/poll (Depends-on): Likewise.
69273         * modules/snprintf (Depends-on): Likewise.
69274         * modules/sprintf-posix (Depends-on): Likewise.
69275         * modules/vasnprintf (Depends-on): Likewise.
69276         * modules/vasprintf (Depends-on): Likewise.
69277         * modules/vfprintf-posix (Depends-on): Likewise.
69278         * modules/vsnprintf (Depends-on): Likewise.
69279         * modules/vsprintf-posix (Depends-on): Likewise.
69280         * modules/xvasprintf (Depends-on): Likewise.
69281         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
69282         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
69283         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
69284         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
69285         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
69286         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
69287         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
69288         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
69289         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
69290         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
69291         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
69292         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
69293         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
69294         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
69295         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
69296         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
69297         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
69298         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
69299         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
69300         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
69301         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
69302         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
69303         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
69304         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
69305         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
69306         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
69307         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
69308         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
69309         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
69310         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
69311         * MODULES.html.sh: Remove EOVERFLOW.
69312         * NEWS: Mention the change.
69314 2008-09-13  Bruno Haible  <bruno@clisp.org>
69316         * modules/errno-tests: New file.
69317         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
69319         * lib/errno.in.h: New file.
69320         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
69321         * modules/errno: New file.
69322         * doc/posix-headers/errno.texi: Update documentation.
69323         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
69325 2008-09-13  Bruno Haible  <bruno@clisp.org>
69327         * tests/test-poll.c: Use #if for native Windows, rather than testing
69328         __MSVCRT__.
69330 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69331             Bruno Haible  <bruno@clisp.org>
69333         * lib/glob.c: Don't include <pwd.h> on native Windows.
69334         (WINDOWS32): New macro.
69335         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
69337 2008-09-13  Bruno Haible  <bruno@clisp.org>
69339         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
69340         (ETIMEDOUT): Remove macro.
69341         (glthread_cond_timedwait_multithreaded): New declaration.
69342         (glthread_cond_timedwait): Use it.
69343         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
69344         (glthread_cond_timedwait_multithreaded): New function.
69346 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
69348         * modules/poll-tests: Do not check for io.h.
69349         * tests/test-poll.c: Check for __MSVCRT__ instead.
69351 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
69353         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
69354         * modules/poll-tests: Add inet_pton, stdbool, sockets.
69355         * tests/test-poll.c: Use them.  Use _pipe on Windows.
69357 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
69359         * modules/poll-tests: New.
69360         * tests/test-poll.c: New.
69362 2008-09-12  Eric Blake  <ebb9@byu.net>
69364         frexp: test for NetBSD failure on -0.0
69365         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
69366         not all, bugs from NetBSD 3.0 have been fixed.
69367         * doc/posix-functions/frexp.texi (frexp): Document bug.
69368         Reported by Thomas Klausner.
69370         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
69371         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
69372         literal -0.0.
69373         Reported by Jonathan C. Patschke <jp@centtech.com>.
69375 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69377         * lib/glthread/cond.h: Use dummy implementation also if
69378         USE_WIN32_THREADS.
69380 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69382         * modules/fnmatch-posix (License): Change to LGPLv2+.
69383         * modules/fnmatch-gnu (License): Likewise.
69385 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69387         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
69389 2008-09-11  Jim Meyering  <meyering@redhat.com>
69391         * users.txt: Add gtk-vnc.
69393 2008-09-08  Simon Josefsson  <simon@josefsson.org>
69395         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
69396         rotate amounts.
69398         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
69399         required for 16-bit and 8-bit rotates.
69400         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
69401         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
69402         UINT8_MAX instead of hard-coded constants.
69403         Suggested by Paul Eggert.
69405 2008-09-07  Bruno Haible  <bruno@clisp.org>
69407         * tests/test-striconveh.c (main): Check behaviour when converting from
69408         UTF-7.
69410         Make striconveh work better with stateful encodings.
69411         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
69412         that iconv does not increment the inptr when returning -1/EINVAL.
69414 2008-09-07  Bruno Haible  <bruno@clisp.org>
69416         * build-aux/config.rpath: Update according to libtool-2.2.6.
69417         * build-aux/config.libpath: Likewise.
69419 2008-09-06  Bruno Haible  <bruno@clisp.org>
69421         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
69422         * lib/freadptr.c (freadptr): Likewise.
69423         * lib/freadseek.c (freadptrinc): Likewise.
69424         Reported by Simon Josefsson.
69426 2008-09-06  Bruno Haible  <bruno@clisp.org>
69428         * modules/freadptr (License): Change to LGPLv2+.
69429         * modules/freadseek (License): Likewise.
69430         Suggested by Eric Blake.
69432         * modules/memchr2 (License): Change to LGPLv2+.
69433         Approved by Eric Blake.
69435 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69436             Bruno Haible  <bruno@clisp.org>
69438         Make gnulib-tool work with native 'sed' on AIX.
69439         * gnulib-tool (sed_noop): New variable.
69440         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
69441         func_add_or_update, func_create_testdir): Use it to initialize sed
69442         script variables.
69443         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69445 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
69446             Bruno Haible  <bruno@clisp.org>
69448         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
69449         also works after #include directives.
69451 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
69453         getdate.y: reject an out-of-range timezone value
69454         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
69455         the range [-24...+24].  When specified with only one or two digits,
69456         * tests/test-getdate.c: Tests for the fix.
69457         * doc/getdate.texi: Document this change.
69459 2008-09-03  Bruno Haible  <bruno@clisp.org>
69461         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
69463 2008-09-02  Simon Josefsson  <simon@josefsson.org>
69465         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
69466         <bruce.korb@gmail.com> with ideas from Ben Pfaff
69467         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
69468         Blake <ebb9@byu.net>.
69470         * tests/test-bitrotate.c: Add more test vectors.
69472 2008-09-02  Eric Blake  <ebb9@byu.net>
69474         vasnprintf-posix: handle large precision via %.*d
69475         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
69476         when handling it ourselves.
69477         * tests/test-vasnprintf-posix.c (test_function): Add test.
69478         * tests/test-snprintf-posix.h (test_function): Likewise.
69479         * tests/test-sprintf-posix.h (test_function): Likewise.
69480         * tests/test-vasprintf-posix.c (test_function): Likewise.
69481         Reported by Alain Guibert.
69483 2008-09-01  Eric Blake  <ebb9@byu.net>
69485         c-stack: make configure-time check more robust
69486         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
69487         successful sigaction call.
69488         Reported by Tom G. Christensen.
69490 2008-09-01  Bruno Haible  <bruno@clisp.org>
69492         New module 'findprog-lgpl'.
69493         * modules/findprog-lgpl: New file.
69494         * lib/findprog-lgpl.c: New file.
69495         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
69496         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
69497         to decide whether to use strdup or xstrdup, concatenated_filename or
69498         xconcatenated_filename.
69500 2008-09-01  Bruno Haible  <bruno@clisp.org>
69502         Split module 'concat-filename' into 'concat-filename' (LGPL) and
69503         'xconcat-filename' (GPL).
69504         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
69505         (License): Change to LGPLv2+.
69506         * modules/xconcat-filename: New file.
69507         * lib/concat-filename.h (concatenated_filename): Change specification.
69508         (xconcatenated_filename): New declaration.
69509         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
69510         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
69511         memory situations.
69512         * lib/xconcat-filename.c: New file.
69513         * NEWS: Mention the change.
69514         * lib/findprog.c: Include concat-filename.h, not filename.h.
69515         (find_in_path): Use xconcatenated_filename instead of
69516         concatenated_filename.
69517         * lib/javacomp.c: Include concat-filename.h, not filename.h.
69518         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69519         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69520         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69521         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
69522         instead of concatenated_filename.
69523         * lib/javaexec.c: Include concat-filename.h, not filename.h.
69524         (execute_java_class): Use xconcatenated_filename instead of
69525         concatenated_filename.
69526         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
69527         * modules/javacomp (Depends-on): Likewise.
69528         * modules/javaexec (Depends-on): Likewise.
69530 2008-09-01  Bruno Haible  <bruno@clisp.org>
69532         Split module 'filename' into 'filename' and 'concat-filename'.
69533         * modules/filename: Keep only lib/filename.h.
69534         (License): Change to LGPLv2+.
69535         * modules/concat-filename: New file, extracted from modules/filename.
69536         * lib/filename.h (concatenated_filename): Remove declaration.
69537         * lib/concat-filename.h: New file, extracted from lib/filename.h.
69538         * lib/concat-filename.c: Include concat-filename.h.
69539         * NEWS: Mention the change.
69541 2008-09-01  Simon Josefsson  <simon@josefsson.org>
69543         * lib/bitrotate.h (rotl8, rotr8): Add.
69545         * modules/bitrotate (configure.ac): Need
69546         AC_REQUIRE([AC_C_INLINE]).
69547         (Description): Mention stdint.h.  Reported by Bruno Haible
69548         <bruno@clisp.org>.
69550         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
69551         Paolo Bonzini <bonzini@gnu.org>.
69553 2008-08-31  Bruno Haible  <bruno@clisp.org>
69555         Assume Solaris specific bi-arch conventions on Solaris systems.
69556         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
69557         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
69558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
69559         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
69560         like acl_libdirstem.
69561         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
69562         acl_libdirstem.
69563         * NEWS: Mention the change.
69564         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
69566 2008-08-31  Jim Meyering  <meyering@redhat.com>
69568         * lib/strftime.h: Add comments describing the two added arguments.
69570         remove duplicate #include directives
69571         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
69572         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
69574 2008-08-31  Bruno Haible  <bruno@clisp.org>
69576         New module 'sigpipe-die'.
69577         * modules/sigpipe-die: New file.
69578         * lib/sigpipe-die.h: New file.
69579         * lib/sigpipe-die.c: New file.
69580         * MODULES.html.sh (Signal handling): Add sigpipe-die.
69582 2008-08-31  Bruno Haible  <bruno@clisp.org>
69584         Don't override previously installed signal handlers.
69585         * lib/fatal-signal.c (saved_sigactions): New variable.
69586         (uninstall_handlers): Reset the signal to the saved handler, not
69587         to SIG_DFL (except when ignored).
69588         (install_handlers): Save the previous handlers.
69590 2008-08-30  Bruno Haible  <bruno@clisp.org>
69592         * gnulib-tool (func_reset_sigpipe): New function.
69593         (func_get_automake_snippet, func_modules_transitive_closure,
69594         func_import): Invoke it before a join command that reads from stdin,
69595         to avoid "echo: write error: Broken pipe" error messages on stderr.
69596         Reported by Sam Steingold <sds@gnu.org>.
69598 2008-08-30  Bruno Haible  <bruno@clisp.org>
69600         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
69601         Code copied from m4/open.m4.
69602         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
69603         access and the filename ends in a slash. Code copied from lib/open.c.
69604         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
69605         * tests/test-fopen.c (main): Check against bug with trailing slash.
69607 2008-08-29  Bruno Haible  <bruno@clisp.org>
69609         Avoid some "gcc -pedantic" warnings.
69610         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
69611         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
69612         * lib/dirent.in.h: Likewise.
69613         * lib/fcntl.in.h: Likewise.
69614         * lib/float.in.h: Likewise.
69615         * lib/iconv.in.h: Likewise.
69616         * lib/inttypes.in.h: Likewise.
69617         * lib/locale.in.h: Likewise.
69618         * lib/math.in.h: Likewise.
69619         * lib/netinet_in.in.h: Likewise.
69620         * lib/search.in.h: Likewise.
69621         * lib/signal.in.h: Likewise.
69622         * lib/stdarg.in.h: Likewise.
69623         * lib/stdint.in.h: Likewise.
69624         * lib/stdio.in.h: Likewise.
69625         * lib/stdlib.in.h: Likewise.
69626         * lib/string.in.h: Likewise.
69627         * lib/strings.in.h: Likewise.
69628         * lib/sys_select.in.h: Likewise.
69629         * lib/sys_socket.in.h: Likewise.
69630         * lib/sys_stat.in.h: Likewise.
69631         * lib/sys_time.in.h: Likewise.
69632         * lib/sysexits.in.h: Likewise.
69633         * lib/time.in.h: Likewise.
69634         * lib/unistd.in.h: Likewise.
69635         * lib/wchar.in.h: Likewise.
69636         * lib/wctype.in.h: Likewise.
69637         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
69638         * modules/fchdir (Makefile.am): Likewise.
69639         * modules/fcntl (Makefile.am): Likewise.
69640         * modules/float (Makefile.am): Likewise.
69641         * modules/iconv_open (Makefile.am): Likewise.
69642         * modules/inttypes (Makefile.am): Likewise.
69643         * modules/locale (Makefile.am): Likewise.
69644         * modules/math (Makefile.am): Likewise.
69645         * modules/netinet_in (Makefile.am): Likewise.
69646         * modules/search (Makefile.am): Likewise.
69647         * modules/signal (Makefile.am): Likewise.
69648         * modules/stdarg (Makefile.am): Likewise.
69649         * modules/stdint (Makefile.am): Likewise.
69650         * modules/stdio (Makefile.am): Likewise.
69651         * modules/stdlib (Makefile.am): Likewise.
69652         * modules/string (Makefile.am): Likewise.
69653         * modules/strings (Makefile.am): Likewise.
69654         * modules/sys_select (Makefile.am): Likewise.
69655         * modules/sys_socket (Makefile.am): Likewise.
69656         * modules/sys_stat (Makefile.am): Likewise.
69657         * modules/sys_time (Makefile.am): Likewise.
69658         * modules/sysexits (Makefile.am): Likewise.
69659         * modules/time (Makefile.am): Likewise.
69660         * modules/unistd (Makefile.am): Likewise.
69661         * modules/wchar (Makefile.am): Likewise.
69662         * modules/wctype (Makefile.am): Likewise.
69663         Reported by Reuben Thomas <rrt@sc3d.org>.
69665 2008-08-29  Bruno Haible  <bruno@clisp.org>
69667         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
69668         any more.
69670 2008-08-29  Simon Josefsson  <simon@josefsson.org>
69672         * MODULES.html.sh (Misc): Add bitrotate.
69674         * modules/bitrotate: New file.
69676         * lib/bitrotate.h: New file.
69678         * modules/bitrotate-tests: New file.
69680         * tests/test-bitrotate.c: New file.
69682         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
69683         on the bitrotate module.
69685         * lib/arctwo.c: Use new bitrotate module.
69687 2008-08-29  Jim Meyering  <meyering@redhat.com>
69689         bootstrap: merge changes from coreutils
69690         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
69691         of copied files.  Remove a kludge, now that this is fixed.
69692         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
69693         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
69694         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
69696 2008-08-29  Bruno Haible  <bruno@clisp.org>
69698         * MODULES.html.sh: Remove --cvs-urls option.
69700 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
69702         maint.mk: adjust to file name change
69703         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
69705 2008-08-28  Jim Meyering  <meyering@redhat.com>
69707         * modules/getndelim2 (License): Relicense to LGPLv2+.
69708         Approved by Richard Stallman for the version of 1995, and by
69709         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
69711 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
69713         * lib/getdelim.c (flockfile, funlockfile): Make all of them
69714         dummy if one is not available.  Do not touch them if
69715         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
69716         (getc_maybe_unlocked): New.
69717         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
69719 2008-08-26  Eric Blake  <ebb9@byu.net>
69721         doc/INSTALL: resync from autoconf
69722         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
69723         (INSTALL_PRELUDE): Delete; this is done more efficiently by
69724         moving...
69725         * install.texi [!autoconf]: ...here.  Resync from autoconf.
69726         * INSTALL: Regenerate.
69727         * INSTALL.ISO: New file.
69728         * INSTALL.UTF-8: Likewise.
69730 2008-08-26  Jim Meyering  <meyering@redhat.com>
69732         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
69733         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
69734         these definitions conditional, so that they may be overridden, too.
69736 2008-08-26  Bruno Haible  <bruno@clisp.org>
69738         Generate INSTALL file variants with prettier quotes.
69739         * doc/Makefile (INSTALL_PRELUDE): New macro.
69740         (INSTALL): Use it.
69741         (INSTALL.ISO, INSTALL.UTF-8): New rules.
69743 2008-08-26  Bruno Haible  <bruno@clisp.org>
69745         Run makeinfo in an English locale.
69746         * doc/Makefile (MAKEINFO): New variable.
69748 2008-08-26  Bruno Haible  <bruno@clisp.org>
69750         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
69751         Suggested by Eric Blake.
69753 2008-08-25  Bruno Haible  <bruno@clisp.org>
69755         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
69757 2008-08-25  Eric Blake  <ebb9@byu.net>
69759         c-stack: test that stack overflow can be caught
69760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
69761         that platform allows handling stack overflow; at least OS/2 EMX
69762         has sigaltstack, but crashes before transferring control to
69763         handler on stack overflow.
69764         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
69765         check for HAVE_STACK_OVERFLOW_HANDLING.
69766         Reported by Elbert Pol.
69768 2008-08-25  Bruno Haible  <bruno@clisp.org>
69770         * doc/posix-functions/strftime.texi: Fix description of strftime
69771         module.
69773 2008-08-24  Bruno Haible  <bruno@clisp.org>
69775         * tests/uniwidth/test-uc_width2.c: New file.
69776         * tests/uniwidth/test-uc_width2.sh: New file.
69777         * modules/uniwidth/width-tests (Files): Add the new files.
69778         (TESTS): Add uniwidth/test-uc_width2.sh.
69779         (TESTS_ENVIRONMENT): New variable.
69780         (check_PROGRAMS): Add test-uc_width2.
69781         (test_uc_width2_SOURCES): New variable.
69783         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
69784         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
69785         not 0x00AB.
69786         Reported by Alexander V. Lukyanov <lav@netis.ru>.
69788 2008-08-22  Eric Blake  <ebb9@byu.net>
69790         test-lock, test-tls: mention why a test is skipped
69791         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
69792         skipped.
69793         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
69795         count-one-bits: relax license
69796         * modules/count-one-bits (License): Relicense to LGPLv2+.
69797         Suggested by Ludovic Courtès, approved by Ben Pfaff.
69799 2008-08-22  Andreas Schwab  <schwab@suse.de>
69801         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
69802         Remove spurious space in assignment.
69804 2008-08-21  Simon Josefsson  <simon@josefsson.org>
69806         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
69807         Paul Eggert <eggert@CS.UCLA.EDU>.
69809 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
69811         * modules/gettext: Add m4/threadlib.m4.
69813 2008-08-19  Eric Blake  <ebb9@byu.net>
69815         test-c-stack: fix compilation failure on FreeBSD 5.0
69816         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
69817         headers before <sys/resource.h>.
69818         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
69819         the bug.
69820         Reported by Nelson H. F. Beebe.
69822         strverscmp: migrate from "strverscmp.h" to <string.h>
69823         * modules/string (Makefile.am): Add new hooks.
69824         * modules/strverscmp (Files): Remove strverscmp.h.
69825         (Depends-on): Add string.
69826         (configure.ac): Add indicator.
69827         (Include): Mention new header.
69828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
69829         defaults.
69830         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
69831         results.
69832         * lib/strverscmp.h: Delete.
69833         * lib/string.in.h (strverscmp): Provide declaration, when needed.
69834         * tests/test-strverscmp.c (includes): Adjust client.
69835         * lib/check-version.c (includes): Likewise.
69836         * NEWS: Document the change.
69838         strverscmp: add unit test
69839         * modules/strverscmp-tests: New file.
69840         * tests/test-strverscmp.c: Likewise.
69842 2008-08-19  Simon Josefsson  <simon@josefsson.org>
69844         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
69845         regarding Windows crypto stuff, from Mono.
69847 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
69849         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
69850         if present, for intel RND.  Return error on failures.
69852 2008-08-18  Ben Pfaff  <blp@gnu.org>
69854         gitlog-to-changelog: give better diagnostic for failed pipe-open
69855         * build-aux/gitlog-to-changelog: Improve error message: suggest
69856         that the version of Git may be too old.
69858 2008-08-18  Simon Josefsson  <simon@josefsson.org>
69860         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
69861         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
69863 2008-08-18  Bruno Haible  <bruno@clisp.org>
69865         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
69866         pthread_in_use().
69868 2008-08-18  Bruno Haible  <bruno@clisp.org>
69870         * lib/glthread/threadlib.c: Include <pthread.h>.
69872 2008-08-18  Bruno Haible  <bruno@clisp.org>
69874         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
69875         glthread_recursive_lock_* macros.
69876         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
69877         Fix syntax error.
69879 2008-08-18  Bruno Haible  <bruno@clisp.org>
69881         * lib/glthread/thread.c: Avoid forcing a context switch right after
69882         thread creation.
69884 2008-08-17  Bruno Haible  <bruno@clisp.org>
69886         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
69887         * lib/glthread/thread.h: Provide Win32 specific implementation.
69888         * modules/thread (Files): Add lib/glthread/thread.c.
69889         (Depends-on): Add lock.
69890         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
69892 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69894         New module 'yield'.
69895         * modules/yield: New file.
69896         * lib/glthread/yield.h: New file.
69897         * m4/yield.m4: New file.
69898         * MODULES.html.sh (Multithreading): Add yield.
69900 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69902         New module 'thread'.
69903         * modules/thread: New file.
69904         * lib/glthread/thread.h: New file.
69905         * m4/thread.m4: New file.
69906         * MODULES.html.sh (Multithreading): Add thread.
69908 2008-08-17  Bruno Haible  <bruno@clisp.org>
69910         * lib/glthread/lock.h: Include <stdlib.h> always.
69911         * lib/glthread/tls.h: Likewise.
69912         * lib/glthread/cond.h: Likewise.
69914 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69916         New module 'cond'.
69917         * modules/cond: New file.
69918         * lib/glthread/cond.h: New file.
69919         * lib/glthread/cond.c: New file.
69920         * m4/cond.m4: New file.
69921         * MODULES.html.sh (Multithreading): Add cond.
69923 2008-08-16  Eric Blake  <ebb9@byu.net>
69925         c-stack: fix regression on Irix 5.3 from 2008-06-21
69926         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
69927         sa_sigaction...
69928         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
69929         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
69930         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
69931         * modules/signal (Makefile.am): Use the value.
69932         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
69933         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
69934         * doc/posix-headers/signal.texi (signal.h): Document this
69935         portability issue.
69936         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
69937         Reported by Tom G. Christensen.
69939 2008-08-17  Bruno Haible  <bruno@clisp.org>
69941         New module 'threadlib'.
69942         * modules/threadlib: New file.
69943         * lib/glthread/threadlib.c: New file, extracted from
69944         lib/glthread/lock.c.
69945         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
69946         functions.
69947         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
69948         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
69949         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
69950         macros.
69951         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
69952         (gl_DISABLE_THREADS): Remove macro.
69953         * modules/lock (Files): Remove build-aux/config.rpath.
69954         (Depends-on): Remove havelib. Add threadlib.
69955         (configure.ac-early): Remove section.
69956         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
69957         * modules/tls (Depends-on): Remove lock. Add threadlib.
69958         (Link): New section, copied from threadlib.
69959         * MODULES.html.sh (Multithreading): Add threadlib.
69961 2008-08-14  Bruno Haible  <bruno@clisp.org>
69963         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
69964         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
69965         glthread_rwlock_unlock, glthread_rwlock_destroy,
69966         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
69967         glthread_recursive_lock_destroy): Define as macros always.
69968         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
69969         glthread_lock_lock.
69970         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
69971         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
69972         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
69973         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
69974         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
69975         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
69976         (glthread_recursive_lock_lock_func): Renamed from
69977         glthread_recursive_lock_lock.
69978         (glthread_recursive_lock_unlock_func): Renamed from
69979         glthread_recursive_lock_unlock.
69980         (glthread_recursive_lock_destroy_func): Renamed from
69981         glthread_recursive_lock_destroy.
69983 2008-08-14  Bruno Haible  <bruno@clisp.org>
69985         * lib/glthread/lock.h: Renamed from lib/lock.h.
69986         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
69987         * lib/glthread/tls.h: Renamed from lib/tls.h.
69988         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
69989         * lib/fstrcmp.c: Update includes.
69990         * lib/strsignal.c: Update includes.
69991         * modules/lock (Files, Makefile.am): Update.
69992         (Include): Change to "glthread/lock.h".
69993         * modules/tls (Files, Makefile.am): Update.
69994         (Include): Change to "glthread/tls.h".
69995         * tests/test-lock.c: Update includes.
69996         * tests/test-tls.c: Update includes.
69997         * NEWS: Mention the renamed header files.
69999 2008-08-11  Jim Meyering  <meyering@redhat.com>
70001         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
70003 2008-08-11  Eric Blake  <ebb9@byu.net>
70005         test-c-stack: avoid C99-ism
70006         * tests/test-c-stack.c (main): Fix whitespace, move declaration
70007         before statement.
70008         Reported by Alain Guibert.
70010 2008-08-10  Jim Meyering  <meyering@redhat.com>
70012         ensure that return value of uinttostr et al are not ignored
70013         * lib/inttostr.h (__GNUC_PREREQ): Define.
70014         (__attribute_warn_unused_result__): Define.
70015         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
70017 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
70019         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
70020         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
70022 2008-08-07  Jim Meyering  <meyering@redhat.com>
70024         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
70026         * modules/mkstemp (License): Relicense under LGPLv2+.
70027         * modules/tempname (License): Likewise.
70029 2008-08-06  Bruno Haible  <bruno@clisp.org>
70031         * lib/poll.c (poll): Further micro-optimization.
70033 2008-08-06  Jim Meyering  <meyering@redhat.com>
70035         inet_pton.c: use locale-independent tolower
70036         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
70037         (inet_pton6): Use c_tolower rather than tolower.
70038         * modules/inet_pton (Depends-on): Add c-ctype.
70040 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
70042         * lib/poll.c (poll): Avoid division when timeout is 0, cache
70043         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
70045 2008-08-06  Jim Meyering  <meyering@redhat.com>
70047         * modules/inet_pton (License): Relicense under LGPLv2+.
70049 2008-08-03  Bruno Haible  <bruno@clisp.org>
70051         Additional non-aborting API for lock and tls.
70052         * lib/lock.h: Include <errno.h>.
70053         (glthread_lock_init): New macro/function.
70054         (gl_lock_init): Define as wrapper around glthread_lock_init.
70055         (glthread_lock_lock): New macro/function.
70056         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
70057         (glthread_lock_unlock): New macro/function.
70058         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
70059         (glthread_lock_destroy): New macro/function.
70060         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
70061         (glthread_rwlock_init): New macro/function.
70062         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
70063         (glthread_rwlock_rdlock): New macro/function.
70064         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
70065         (glthread_rwlock_wrlock): New macro/function.
70066         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
70067         (glthread_rwlock_unlock): New macro/function.
70068         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
70069         (glthread_rwlock_destroy): New macro/function.
70070         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
70071         (glthread_recursive_lock_init): New macro/function.
70072         (gl_recursive_lock_init): Define as wrapper around
70073         glthread_recursive_lock_init.
70074         (glthread_recursive_lock_lock): New macro/function.
70075         (gl_recursive_lock_lock): Define as wrapper around
70076         glthread_recursive_lock_lock.
70077         (glthread_recursive_lock_unlock): New macro/function.
70078         (gl_recursive_lock_unlock): Define as wrapper around
70079         glthread_recursive_lock_unlock.
70080         (glthread_recursive_lock_destroy): New macro/function.
70081         (gl_recursive_lock_destroy): Define as wrapper around
70082         glthread_recursive_lock_destroy.
70083         (glthread_once): New macro/function.
70084         (gl_once): Define as wrapper around glthread_once.
70085         Update function declarations.
70086         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
70087         glthread_rwlock_init. Return error code.
70088         (glthread_rwlock_rdlock_multithreaded): Renamed from
70089         glthread_rwlock_rdlock. Return error code.
70090         (glthread_rwlock_wrlock_multithreaded): Renamed from
70091         glthread_rwlock_wrlock. Return error code.
70092         (glthread_rwlock_unlock_multithreaded): Renamed from
70093         glthread_rwlock_unlock. Return error code.
70094         (glthread_rwlock_destroy_multithreaded): Renamed from
70095         glthread_rwlock_destroy. Return error code.
70096         (glthread_recursive_lock_init_multithreaded): Renamed from
70097         glthread_recursive_lock_init. Return error code.
70098         (glthread_recursive_lock_lock_multithreaded): Renamed from
70099         glthread_recursive_lock_lock. Return error code.
70100         (glthread_recursive_lock_unlock_multithreaded): Renamed from
70101         glthread_recursive_lock_unlock. Return error code.
70102         (glthread_recursive_lock_destroy_multithreaded): Renamed from
70103         glthread_recursive_lock_destroy. Return error code.
70104         (glthread_once_call): Make static.
70105         (glthread_once_multithreaded): Renamed from glthread_once.
70106         * lib/tls.h: Include <errno.h>.
70107         (glthread_tls_key_init): New macro/function.
70108         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
70109         (glthread_tls_set): New macro/function.
70110         (gl_tls_set): Define as wrapper around glthread_tls_set.
70111         (glthread_tls_key_destroy): New macro/function.
70112         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
70113         Update function declarations.
70114         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
70115         glthread_tls_get.
70116         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70118 2008-08-04  Eric Blake  <ebb9@byu.net>
70120         gnumakefile: use space, not TAB, outside of targets
70121         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
70123 2008-08-02  Jim Meyering  <meyering@redhat.com>
70125         getdate.y: avoid locale-dependent date parsing failure
70126         In Turkish locales, getdate would fail to recognize keywords
70127         containing a lowercase "i".  The solution is not to rely on
70128         locale-sensitive case-conversion.
70129         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
70130         (lookup_word): Use c_toupper in place of toupper.
70131         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
70132         Reported by Vefa Bicakci <bicave@superonline.com> in
70133         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
70134         * modules/getdate (Depends-on): Add c-ctype.
70136 2008-08-02  Bruno Haible  <bruno@clisp.org>
70138         * gnulib-tool (func_import): When updating or creating a .gitignore
70139         file, prepend each added line with a slash, and ignore leading slashes
70140         from the existing lines.
70141         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70143 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70145         Portability fix for GNU make 3.79.1.
70146         * top/GNUmakefile: Avoid 'else COND', which older GNU make
70147         versions do not understand.
70149 2008-08-01  Bruno Haible  <bruno@clisp.org>
70151         Work around bug of HP-UX 10.20 cc with -0.0 literal.
70152         * tests/test-isnanf.h (zero): New variable.
70153         (main): Avoid literal -0.0f.
70154         * tests/test-isnand.h (zero): New variable.
70155         (main): Avoid literal -0.0.
70156         * tests/test-isnanl.h (zero): New variable.
70157         (main): Avoid literal -0.0L.
70158         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
70159         (test_float, test_double, test_long_double): Avoid literals -0.0f,
70160         -0.0, -0.0L.
70161         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
70162         (test_signbitd): Avoid literal -0.0.
70163         (test_signbitl): Avoid literal -0.0L.
70164         * tests/test-ceilf1.c (zero): New variable.
70165         (main): Avoid literal -0.0f.
70166         * tests/test-ceill.c (zero): New variable.
70167         (main): Avoid literal -0.0L.
70168         * tests/test-floorf1.c (zero): New variable.
70169         (main): Avoid literal -0.0f.
70170         * tests/test-floorl.c (zero): New variable.
70171         (main): Avoid literal -0.0L.
70172         * tests/test-roundf1.c (zero): New variable.
70173         (main): Avoid literal -0.0f.
70174         * tests/test-round1.c (zero): New variable.
70175         (main): Avoid literal -0.0.
70176         * tests/test-roundl.c (zero): New variable.
70177         (main): Avoid literal -0.0L.
70178         * tests/test-truncf1.c (zero): New variable.
70179         (main): Avoid literal -0.0f.
70180         * tests/test-trunc1.c (zero): New variable.
70181         (main): Avoid literal -0.0.
70182         * tests/test-truncl.c (zero): New variable.
70183         (main): Avoid literal -0.0L.
70184         * tests/test-frexp.c (zero): New variable.
70185         (main): Avoid literal -0.0.
70186         * tests/test-frexpl.c (zero): New variable.
70187         (main): Avoid literal -0.0L.
70188         * tests/test-ldexpl.c (zero): New variable.
70189         (main): Avoid literal -0.0L.
70190         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
70191         (zerod, zerol): New variables.
70192         (test_function): Avoid literals -0.0, -0.0L.
70193         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
70194         (zerod, zerol): New variables.
70195         (test_function): Avoid literals -0.0, -0.0L.
70196         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
70197         (zerod, zerol): New variables.
70198         (test_function): Avoid literals -0.0, -0.0L.
70199         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
70200         (zerod, zerol): New variables.
70201         (test_function): Avoid literals -0.0, -0.0L.
70202         * tests/test-strtod.c (zero): New variable.
70203         (main): Avoid literal -0.0.
70204         Reported by Jonathan C. Patschke <jp@centtech.com>.
70206 2008-07-31  Jim Meyering  <meyering@redhat.com>
70208         sha256.h: correct definition of SHA224_DIGEST_SIZE
70209         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
70210         Reported by Paulie Pena IV <paulie4@gmail.com>.
70211         Define as 224 / 8, rather than as a literal.
70212         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
70213         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
70214         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
70216 2008-07-31  Bruno Haible  <bruno@clisp.org>
70218         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
70219         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
70220         Reported by Jonathan Patschke <jp@centtech.com>.
70222 2008-07-31  Bruno Haible  <bruno@clisp.org>
70224         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
70225         Reported by Paolo Bonzini <bonzini@gnu.org>.
70227 2008-07-30  Eric Blake  <ebb9@byu.net>
70229         test-strtod: allow compilation without -lm
70230         * tests/test-strtod.c (main): Avoid link dependence on fabs.
70231         Reported by Dennis Clarke <blastwave@gmail.com>.
70233 2008-07-28  Jim Meyering  <meyering@redhat.com>
70235         bootstrap: work also when there are no .po files in po/
70236         * build-aux/bootstrap (update_po_files): Complete the change
70237         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
70239 2008-07-27  Jim Meyering  <meyering@redhat.com>
70241         * users.txt: Add zile.
70243 2008-07-26  Ben Pfaff  <blp@gnu.org>
70245         Add missing dependencies on new m4/exponent[fdl].m4 files.
70246         * modules/isnanf-nolibm: Add m4/exponentf.m4.
70247         * modules/isnand-nolibm: Add m4/exponentd.m4.
70248         * modules/isnanl-nolibm: Add m4/exponentl.m4.
70249         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
70250         m4/isnan[fdl].m4, because the macros actually used moved.
70251         Reported by Jim Meyering.
70253 2008-07-14  Ben Pfaff  <blp@gnu.org>
70255         Add isinf module.
70256         * lib/isinf.c: New file.
70257         * lib/math.in.h: Define isinf macro if we have decided to replace
70258         it.
70259         * m4/isinf.m4: New file.
70260         * m4/math_h.m4: Initialize and substitute variables for isinf
70261         module.
70262         * modules/isinf: New file.
70263         * modules/isinf-tests: New file.
70264         * modules/math: Add substitutions for new module.
70265         * tests/test-isinf.c: New file.
70266         * doc/posix-functions/isinf.texi: Mention new module.
70267         * MODULES.html.sh: Mention new module.
70269 2008-07-14  Ben Pfaff  <blp@gnu.org>
70271         Factor out some macros for use by additional modules.
70272         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
70273         exponentf.m4.
70274         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
70275         exponentd.m4.
70276         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
70277         file exponentl.m4.
70278         * m4/exponentf.m4: New file.
70279         * m4/exponentd.m4: New file.
70280         * m4/exponentl.m4: New file.
70281         * modules/isnanf: Use new file m4/exponentf.m4.
70282         * modules/isnand: Use new file m4/exponentd.m4.
70283         * modules/isnanl: Use new file m4/exponentl.m4.
70285 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
70287         mktime.c: normalize tp->tm_isdst value to -1/0/1.
70288         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
70289         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
70290         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
70292         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
70293         readlink on platforms without PATH_MAX.
70295 2008-07-21  Eric Blake  <ebb9@byu.net>
70297         Warn, not fail, on stale version.
70298         * top/GNUmakefile (_curr-ver): Tone down previous patch.
70300         Don't allow installation with stale devel version number.
70301         * top/GNUmakefile (_is-install-target): New macro.
70302         (_curr-ver): Forbid installation with stale version number.
70304 2008-07-20  Bruno Haible  <bruno@clisp.org>
70306         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
70307         TESTS_ENVIRONMENT.
70308         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
70310 2008-07-20  Bruno Haible  <bruno@clisp.org>
70312         * lib/c-stack.h (c_stack_action): Add documentation.
70313         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
70315 2008-07-20  Bruno Haible  <bruno@clisp.org>
70317         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
70318         * modules/readlink (License): Likewise.
70320 2008-07-17  Eric Blake  <ebb9@byu.net>
70322         * modules/c-stack (Link): Fix typo.
70324         Make c-stack use libsigsegv, when available.
70325         * modules/c-stack (Depends-on): Add libsigsegv.
70326         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
70327         needed.
70328         * lib/c-stack.c (SIGSTKSZ): Define fallback.
70329         (segv_handler, overflow_handler, c_stack_action)
70330         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
70331         implementation when libsigsegv is available, but only when using
70332         the library is necessary.
70333         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
70334         comment, explaining why XSI check fails on Linux.
70335         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
70336         * tests/test-c-stack2.sh: Tweak skip message.
70337         * NEWS: Document new link-time requirements.
70339 2008-07-16  Eric Blake  <ebb9@byu.net>
70341         c-stack: Expose false positives when not using libsigsegv.
70342         * modules/c-stack-tests (Files): Expand test.
70343         * tests/test-c-stack.c (main): Add means to conditionally trigger
70344         non-overflow SIGSEGV.
70345         * tests/test-c-stack2.sh: New file.
70347 2008-07-14  Bruno Haible  <bruno@clisp.org>
70349         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
70350         Reported by Eric Blake.
70352 2008-07-14  Sam Steingold  <sds@gnu.org>
70353             Bruno Haible  <bruno@clisp.org>
70355         New module libsigsegv.
70356         * modules/libsigsegv: New file.
70357         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
70358         modifications.
70359         * MODULES.html.sh (Signal handling): New section.
70361 2008-07-14  Bruno Haible  <bruno@clisp.org>
70363         * modules/unictype/ctype-* (Description): Add the word "function".
70364         Improves the resulting doc in MODULES.html.
70366 2008-07-12  Ben Pfaff  <blp@gnu.org>
70368         Add longlong module.
70369         * modules/longlong: New file.
70371 2008-07-12  Bruno Haible  <bruno@clisp.org>
70373         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
70374         to empty.
70376 2008-07-10  Ben Pfaff  <blp@gnu.org>
70378         Add isnan module.
70379         * doc/posix-functions/isnan.texi: Mention new module.
70380         * lib/math.in.h: Define isnan macro if we have decided to replace
70381         it.
70382         * m4/isnan.m4: New file.
70383         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
70384         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
70385         also.
70386         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
70387         redundancy.
70388         * m4/math_h.m4: Initialize and substitute variables for isnan
70389         module.
70390         * modules/isnan: New file.
70391         * modules/isnan-tests: New file.
70392         * modules/math: Add substitutions for new module.
70393         * tests/test-isnan.c: New file.
70394         * MODULES.html.sh: Mention new module.
70396 2008-07-10  Ben Pfaff  <blp@gnu.org>
70398         Add isnanf module.
70399         * lib/isnanf.m4: New file.
70400         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
70401         (gl_HAVE_ISNANF_IN_LIBM): New macro.
70402         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
70403         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
70404         * modules/isnanf: New file.
70405         * modules/isnanf-tests: New file.
70406         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
70407         files.
70408         * tests/test-isnanf-nolibm.c: factored most of its contents into
70409         new file tests/test-isnanf.h.
70410         * tests/test-isnanf.h: New file.
70411         * tests/test-isnanf.c: New file.
70412         * MODULES.html.sh: Mention new module.
70413         * doc/glibc-functions/isnanf.texi: Mention new module.
70415 2008-07-10  Ben Pfaff  <blp@gnu.org>
70417         Add isnand module.
70418         * lib/isnand.h: New file.
70419         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
70420         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
70421         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
70422         functionality also.
70423         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
70424         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
70425         (gl_HAVE_ISNAND_IN_LIBM): New macro.
70426         * modules/isnand: New file.
70427         * modules/isnand-tests: New file.
70428         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
70429         files.
70430         * tests/test-isnand-nolibm.c: factored most of its contents into
70431         new file tests/test-isnand.h.
70432         * tests/test-isnand.h: New file.
70433         * tests/test-isnand.c: New file.
70434         * MODULES.html.sh: Mention new module.
70436 2008-07-10  Ben Pfaff  <blp@gnu.org>
70438         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
70439         * lib/isnand.h: Rename lib/isnand-nolibm.h.
70440         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
70441         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
70442         * modules/isnanf-nolibm: Update references to renamed files.
70443         * modules/isnand-nolibm: Likewise.
70444         * modules/isnanf-nolibm-tests: Likewise.
70445         * modules/isnand-nolibm-tests: Likewise.
70446         * lib/frexp.c: Likewise.
70447         * lib/isfinite.c: Likewise.
70448         * lib/signbitd.c: Likewise.
70449         * lib/signbitf.c: Likewise.
70450         * lib/vasnprintf.c: Likewise.
70451         * tests/test-ceilf1.c: Likewise.
70452         * tests/test-ceilf2.c: Likewise.
70453         * tests/test-floorf1.c: Likewise.
70454         * tests/test-floorf2.c: Likewise.
70455         * tests/test-frexp.c: Likewise.
70456         * tests/test-round1.c: Likewise.
70457         * tests/test-round2.c: Likewise.
70458         * tests/test-roundf1.c: Likewise.
70459         * tests/test-strtod.c: Likewise.
70460         * tests/test-trunc1.c: Likewise.
70461         * tests/test-trunc2.c: Likewise.
70462         * tests/test-truncf1.c: Likewise.
70463         * tests/test-truncf2.c: Likewise.
70464         * NEWS: Mention the renamed header files.
70466 2008-07-11  Jim Meyering  <meyering@redhat.com>
70468         vc-list-files: make the last-resort awk code more portable
70469         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
70470         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
70471         does not support it.
70473 2008-07-10  Eric Blake  <ebb9@byu.net>
70475         Work with tar's bootstrap.
70476         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
70477         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
70478         an m4 comment.
70480 2008-07-09  Jim Meyering  <meyering@redhat.com>
70482         posix-shell.m4: fix typo that made this test malfunction
70483         * m4/posix-shell.m4: Remove capitalization in variable name.
70485 2008-07-08  Bruno Haible  <bruno@clisp.org>
70487         * m4/onceonly.m4: Update comments.
70488         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70490 2008-07-04  Jim Meyering  <meyering@redhat.com>
70492         * users.txt: Add vc-dwim.
70493         (bison, coreutils): Use the gitweb URL.
70495 2008-07-03  Jim Meyering  <meyering@redhat.com>
70497         * users.txt: Add libffcall.  From Sam Steingold.
70499 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
70501         getdate.y: do not ignore TZ with relative day, month or year offset
70502         * lib/getdate.y (get_date): Move the tz-handling block to follow the
70503         relative-date-handling, since otherwise, the latter would clobber the
70504         sole output (an updated Start value) of the tz-handling block.
70505         * tests/test-getdate.c: Tests for the fix
70507 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70509         Recognize 'foo_LIBRARIES += libgnu.a'.
70510         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
70511         makefile snippet has already specified an installation location,
70512         also using '+='.
70514 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
70516         getdate.y: factor out common actions
70517         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
70518         Use them in place of open-coded actions.
70520 2008-07-01  Simon Josefsson  <simon@josefsson.org>
70522         Add self-test for getdate module.
70523         * modules/getdate-tests: New file.
70524         * tests/test-getdate.c: New file.
70526 2008-06-29  Bruno Haible  <bruno@clisp.org>
70528         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
70529         .gitignore.
70530         Reported by Sylvain Beucler <beuc@beuc.net>.
70532 2008-06-29  Bruno Haible  <bruno@clisp.org>
70534         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
70535         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
70537 2008-06-29  Bruno Haible  <bruno@clisp.org>
70539         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
70540         EXTRA_DIST.
70541         Reported by Sylvain Beucler <beuc@beuc.net>.
70543 2008-06-26  Jim Meyering  <meyering@redhat.com>
70545         make several modules depend on the "open" module
70546         This provides slightly increased consistency when opening-for-write
70547         the name of a non-directory spelled with a trailing slash.
70548         * modules/chdir-safer: Likewise.
70549         * modules/chown: Likewise.
70550         * modules/clean-temp: Likewise.
70551         * modules/copy-file: Likewise.
70552         * modules/fchdir: Likewise.
70553         * modules/fcntl-safer: Likewise.
70554         * modules/pipe: Likewise.
70555         * modules/utime: Likewise.
70556         Prompted by Eric Blake and Bruno Haible.
70558 2008-06-24  Andreas Schwab  <schwab@suse.de>
70560         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
70561         literals can be used as initializers for global variables.
70563 2008-06-23  Eric Blake  <ebb9@byu.net>
70565         Make gnulib-cache.m4 easier to diff.
70566         * gnulib-tool (func_import): Allow newlines when reading cached
70567         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
70569 2008-06-23  Bruno Haible  <bruno@clisp.org>
70571         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
70572         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
70573         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
70574         m4/signalblocking.m4.
70575         (gl_PREREQ_SIGACTION): Don't invoke it.
70576         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
70577         gl_PREREQ_SIG_HANDLER_H.
70578         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70579         Don't check for sigaction here.
70581 2008-06-23  Bruno Haible  <bruno@clisp.org>
70583         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
70584         (install_handlers): Don't set the SA_RESETHAND flag.
70586 2008-06-23  Bruno Haible  <bruno@clisp.org>
70588         * m4/sigaction.m4: Comment fixes.
70589         * lib/signal.in.h: Likewise.
70591 2008-06-23  Eric Blake  <ebb9@byu.net>
70593         Fix typo.
70594         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
70596         Avoid SA_ namespace.
70597         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
70598         Reported by Ralf Wildenhues.
70600         Avoid test failure due to SA_RESTORER.
70601         * tests/test-sigaction.c (SA_MASK): New macro.
70602         (main): Avoid failing due to extension flags being set.
70603         Reported by Jim Meyering.
70605         Revert use of sig-handler.h in sigprocmask.c.
70606         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
70607         it requires the existence of struct sigaction.
70608         * lib/sigprocmask.c (handler_t): Restore typedef.
70609         (rpl_signal, old_handlers): Use local type.
70611 2008-06-22  Bruno Haible  <bruno@clisp.org>
70613         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
70614         conditionally.
70615         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70617 2008-06-22  Bruno Haible  <bruno@clisp.org>
70619         * doc/posix-functions/siginterrupt.texi: Move note.
70621         * lib/signal.in.h (SA_RESTART): New macro.
70622         * lib/sigaction.c: Update comment.
70624         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
70626         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
70627         (gl_PREREQ_SIGPROCMASK): Invoke it.
70628         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
70630         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
70632         * lib/sigprocmask.c: Update a comment.
70634 2008-06-21  Eric Blake  <ebb9@byu.net>
70636         Use sigaction module rather than signal().
70637         * modules/c-stack (Depends-on): Add sigaction.
70638         * modules/fatal-signal (Depends-on): Likewise.
70639         * modules/nanosleep (Depends-on): Likewise.
70640         * modules/sigprocmask (Files): Add sig-handler.h.
70641         * modules/sigaction (Files): Likewise.
70642         * lib/sig-handler.h (get_handler): New file, suggested by Paul
70643         Eggert.
70644         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
70645         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
70646         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
70647         (init_fatal_signals): Likewise.
70648         * lib/nanosleep.c (rpl_nanosleep): Likewise.
70649         (siginterrupt): Delete fallback.
70650         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
70651         instead.
70652         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
70653         siginterrupt.
70655         New module sigaction, for mingw.
70656         * modules/sigaction: New module...
70657         * modules/sigaction-tests: ...and its test.
70658         * m4/sigaction.m4: New file.
70659         * lib/sigaction.c: Likewise.
70660         * tests/test-sigaction.c: Likewise.
70661         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
70662         * modules/signal (Makefile.am): Likewise.
70663         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
70664         needed.
70665         * doc/posix-headers/signal.texi (signal.h): Mention provided
70666         types.
70667         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
70668         that sigaction is preferable.
70669         * doc/posix-functions/sigaction.texi (sigaction): Mention new
70670         module.
70671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70672         sigaction.
70674         Improve robustness of sigprocmask by overriding signal.
70675         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
70676         is in use.
70677         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
70678         (SIGKILL, SIGSTOP): Provide fallbacks.
70679         (rpl_signal): Implement.
70680         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
70681         signal can be called inside handlers.
70683         Fix nanosleep module on mingw.
70684         * modules/nanosleep (Depends-on): Add sys_select.
70685         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
70687         Fix licensing of sigprocmask.
70688         * modules/raise (License): Relicense as LGPL.
70690 2008-06-21  Bruno Haible  <bruno@clisp.org>
70692         * lib/propername.c (proper_name_utf8): Don't use the transliterated
70693         result if it contains question marks.
70694         Reported by Michael Geng <linux@michaelgeng.de>.
70696 2008-06-19  Bruno Haible  <bruno@clisp.org>
70698         Fix CVS-ism.
70699         * doc/gnulib.texi: Include updated-stamp.texi.
70700         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
70701         (updated-stamp.texi): New rule.
70702         (gnulib.info): Depend on it.
70703         * doc/.gitignore: Add updated-stamp.texi.
70704         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
70706 2008-06-19  Bruno Haible  <bruno@clisp.org>
70708         * doc/Makefile (gnulib.info): Update and simplify dependencies.
70709         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
70711 2008-06-19  Eric Blake  <ebb9@byu.net>
70713         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
70714         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
70715         Reported by Stepan Kasal.
70717 2008-06-18  Bruno Haible  <bruno@clisp.org>
70719         * lib/fatal-signal.c (init_fatal_signals): Add comment.
70720         Reported by Eric Blake.
70722 2008-06-18  Eric Blake  <ebb9@byu.net>
70724         Work around cygwin 1.5.25 strsignal bug.
70725         * tests/test-strsignal.c: Allow for const char *.
70726         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
70728 2008-06-18  Simon Josefsson  <simon@josefsson.org>
70730         * users.txt: Update URL to article and add author/date
70731         information.
70733 2008-06-17  Bruno Haible  <bruno@clisp.org>
70735         New macro gl_DISABLE_THREADS.
70736         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
70737         if the user did not pass --enable-threads or --disable-threads option.
70738         (gl_DISABLE_THREADS): New macro.
70739         Reported by Eric Blake <ebb9@byu.net>.
70741 2008-06-17  Bruno Haible  <bruno@clisp.org>
70743         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
70744         when the macro ignores it.
70745         Based on a patch by Eric Blake <ebb9@byu.net>.
70747 2008-06-17  Bruno Haible  <bruno@clisp.org>
70749         * modules/tls (License): Change to LGPLv2+.
70750         Reported by Eric Blake.
70752 2008-06-17  Eric Blake  <ebb9@byu.net>
70754         Simplify c-stack prerequisites.
70755         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
70756         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
70757         no longer requires <ucontext.h> to exist.  Optimize setrlimit
70758         check.
70759         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
70760         <sys/resource.h>.
70762         Move c-stack test into testsuite.
70763         * modules/c-stack-tests: New file.
70764         * lib/c-stack.c [DEBUG]: Move test program...
70765         * tests/test-c-stack.c: ...into this new file.  Skip rather than
70766         fail test if sigaltstack is lacking.
70767         * tests/test-c-stack.sh: New driver file.
70769 2008-06-16  Eric Blake  <ebb9@byu.net>
70771         Use raise module consistently.
70772         * modules/fatal-signal (Depends-on): Add raise.
70773         * modules/sigprocmask (Depends-on): Likewise.
70774         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
70775         * lib/sigprocmask.c (sigprocmask): Likewise.
70776         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70777         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
70779         Fix compliance bug in sigpending.
70780         * lib/sigprocmask.c (sigpending): Return pending array via
70781         parameter, not return value.
70783 2008-06-14  Eric Blake  <ebb9@byu.net>
70785         Improve obstack-printf test code.
70786         * tests/test-obstack-printf.c (test_function): Fix comment, and
70787         simplify usage of obstack_* in macros.  Add a test for coverage.
70788         Reported by Bruno Haible.
70790 2008-06-14  Bruno Haible  <bruno@clisp.org>
70792         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
70793         array size as a constant, not as a const variable.
70794         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
70795         AC_USE_SYSTEM_EXTENSIONS.
70796         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
70797         Test whether the obstack_printf function actually exists.
70798         * modules/obstack-printf (Depends-on): Add extensions.
70799         (Include): Remove obstack.h.
70800         * modules/obstack-printf-posix (Depends-on): Add extensions.
70801         (Include): Remove obstack.h.
70803 2008-06-13  Eric Blake  <ebb9@byu.net>
70805         Add obstack-printf and obstack-printf-posix modules.
70806         * modules/obstack-printf: New file.
70807         * modules/obstack-printf-posix: Likewise.
70808         * MODULES.html.sh (Misc): Mention them.
70809         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
70810         Likewise.
70811         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
70812         Likewise.
70813         * modules/stdio (Makefile.am): Accomodate new modules.
70814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70815         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
70816         Declare.
70817         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
70818         functions.
70819         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
70820         (gl_REPLACE_OBSTACK_PRINTF): New macros
70821         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
70822         * tests/test-obstack-printf.c: New file.
70823         * modules/obstack-printf-tests: Likewise.
70824         * modules/obstack-printf-posix-tests: Likewise.
70826 2008-06-11  Bruno Haible  <bruno@clisp.org>
70828         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
70829         * lib/open.c: Include errno.h.
70830         (open): Fail when attempting to write to a file that has a trailing
70831         slash.
70832         * tests/test-open.c (main): Test against trailing slash bug.
70833         * doc/posix-functions/open.texi: Mention the trailing slash bug.
70835 2008-06-10  Bruno Haible  <bruno@clisp.org>
70837         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
70838         for $? to work inside the trap command, with various /bin/sh-s.
70839         * tests/test-vc-list-files-cvs.sh: Likewise.
70841 2008-06-10  Bruno Haible  <bruno@clisp.org>
70843         * lib/acl-internal.h: Don't include gettext.h here.
70844         * lib/set-mode-acl.c: Include gettext.h here.
70845         * lib/copy-acl.c: Likewise.
70847 2008-06-10  Bruno Haible  <bruno@clisp.org>
70849         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
70850         * lib/wait-process.c (wait_subprocess): Likewise.
70851         * lib/execute.h (execute): Add termsigp argument.
70852         * lib/execute.c (execute): Likewise.
70853         * lib/csharpcomp.c (compile_csharp_using_pnet,
70854         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
70855         * lib/csharpexec.c (execute_csharp_using_pnet,
70856         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
70857         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
70858         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
70859         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
70860         is_jikes_present): Update.
70861         * lib/javaexec.c (execute_java_class): Update.
70862         * lib/javaversion.c (execute_and_read_line): Update.
70863         * NEWS: Document the changes.
70864         Reported by Eric Blake.
70866 2008-06-10  Eric Blake  <ebb9@byu.net>
70868         Add missing include.
70869         * tests/test-strstr.c (includes): Add <signal.h>.
70870         * tests/test-strcasestr.c (includes): Likewise.
70871         * tests/test-memmem.c (includes): Likewise.
70873 2008-06-10  Bruno Haible  <bruno@clisp.org>
70875         * lib/wait-process.c (wait_subprocess): Add an assertion.
70877 2008-06-10  Bruno Haible  <bruno@clisp.org>
70879         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
70881 2008-06-10  Bruno Haible  <bruno@clisp.org>
70883         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
70884         using alarm().
70885         * tests/test-strcasestr.c (main): Likewise.
70886         * tests/test-strstr.c (main): Likewise.
70888 2008-06-09  Bruno Haible  <bruno@clisp.org>
70890         Work around the Solaris 10 ACE ACLs ABI change.
70891         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
70892         declare if ACL_NO_TRIVIAL is present.
70893         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
70894         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
70895         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
70896         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
70897         define if ACL_NO_TRIVIAL is present.
70898         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
70899         and use the current ABI.
70900         (file_has_acl): Use same #if condition as elsewhere.
70901         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
70902         in use, and use the current ABI.
70903         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
70904         Reported by Jim Meyering.
70906 2008-06-09  Eric Blake  <ebb9@byu.net>
70908         Work around environments that (stupidly) ignore SIGALRM.
70909         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
70910         before using alarm().
70911         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70912         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
70913         Reported by Ian Beckwith <ianb@erislabs.net>.
70915         Produce autobuild blurb earlier in log.
70916         * modules/autobuild (configure.ac-early): Move AB_INIT here.
70918 2008-06-09  Jim Meyering  <meyering@redhat.com>
70919         and Ondřej Vašík  <ovasik@redhat.com>
70921         utimens.c: correct kernel bug work-around
70922         Ondřej Vašík found that the invalid return value of 280 indicates
70923         failure, not success, and the kernel bug we're trying to work
70924         around affects not just the utimensat call, but also the fallback
70925         futimens call.
70926         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
70927         not success.
70928         [HAVE_FUTIMENS]: Use the same work-around, here.
70930 2008-06-09  Jim Meyering  <meyering@redhat.com>
70932         add more guards around definition of ACE_-related code
70933         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
70934         ALLOW and ACE_OWNER are also defined.
70936 2008-06-08  Bruno Haible  <bruno@clisp.org>
70938         * lib/acl-internal.h: Add me as co-author.
70939         * lib/file-has-acl.c: Likewise.
70940         * lib/set-mode-acl.c: Likewise.
70941         * lib/copy-acl.c: Likewise.
70943 2008-06-08  Bruno Haible  <bruno@clisp.org>
70945         Add support for AIX ACLs.
70946         * lib/acl-internal.h (acl_nontrivial): New declaration.
70947         * lib/file-has-acl.c (acl_nontrivial): New function.
70948         (file_has_acl): Add implementation using AIX 4 ACL API.
70949         * lib/set-mode-acl.c (qset_acl): Likewise.
70950         * lib/copy-acl.c (qcopy_acl): Likewise.
70952 2008-06-08  Bruno Haible  <bruno@clisp.org>
70954         Add support for HP-UX ACLs.
70955         * lib/acl-internal.h (acl_nontrivial): New declaration.
70956         * lib/file-has-acl.c (acl_nontrivial): New function.
70957         (file_has_acl): Add implementation using HP-UX 11 ACL API.
70958         * lib/set-mode-acl.c (qset_acl): Likewise.
70959         * lib/copy-acl.c (qcopy_acl): Likewise.
70961 2008-06-08  Bruno Haible  <bruno@clisp.org>
70963         Add support for Cygwin ACLs.
70964         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
70965         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
70966         the chmod_or_fchmod call.
70967         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
70969 2008-06-08  Bruno Haible  <bruno@clisp.org>
70971         Fix bug with setuid modes in Solaris 10+ code.
70972         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
70973         succeeded, when the mode contains some special bits.
70975 2008-06-08  Bruno Haible  <bruno@clisp.org>
70977         Add support for Solaris 7..10 ACLs.
70978         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
70979         declarations.
70980         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
70981         functions.
70982         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
70983         * lib/set-mode-acl.c (qset_acl): Likewise.
70984         * lib/copy-acl.c (qcopy_acl): Likewise.
70986 2008-06-08  Bruno Haible  <bruno@clisp.org>
70988         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
70989         declaration.
70990         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
70991         (acl_access_nontrivial): Remove MacOS X case.
70992         (file_has_acl): Use acl_extended_nontrivial.
70993         * lib/copy-acl.c (qcopy_acl): Likewise.
70995 2008-06-08  Bruno Haible  <bruno@clisp.org>
70997         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
70999 2008-06-08  Jim Meyering  <meyering@redhat.com>
71001         * modules/acl (Maintainer): Add Bruno Haible.
71003 2008-06-07  Bruno Haible  <bruno@clisp.org>
71005         Improve support for Tru64 ACLs.
71006         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
71007         ACL on OSF/1.
71009 2008-06-07  Bruno Haible  <bruno@clisp.org>
71011         Add support for MacOS X ACLs.
71012         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
71013         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
71014         * lib/set-mode-acl.c (qset_acl): Likewise.
71015         * lib/copy-acl.c (qcopy_acl): Likewise.
71017 2008-06-07  Bruno Haible  <bruno@clisp.org>
71019         Fix memory leak introduced on 2008-05-22.
71020         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
71021         use.
71023 2008-06-07  Bruno Haible  <bruno@clisp.org>
71025         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
71026         to construct an empty ACL.
71028 2008-06-07  Bruno Haible  <bruno@clisp.org>
71030         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
71031         precisely.
71032         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
71034 2008-06-07  Bruno Haible  <bruno@clisp.org>
71036         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
71037         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
71039 2008-06-07  Bruno Haible  <bruno@clisp.org>
71041         * doc/posix-functions/_setjmp.texi: Explain the use of this function
71042         regardless of POSIX.
71043         * doc/posix-functions/_longjmp.texi: Likewise.
71044         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
71045         SystemV platform in this case.
71047 2008-06-06  Eric Blake  <ebb9@byu.net>
71049         Document abort() bugs.
71050         * doc/posix-functions/abort.texi (abort): Mention anomalies.
71052         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
71053         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
71054         sigsetjmp.
71055         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
71056         siglongjmp, but only as a macro.
71057         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
71058         is obsolete.
71059         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
71061         Tweak documentation to cover cygwin argz bugs.
71062         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
71063         argz bug fix; no code change needed since no cygwin releases
71064         occurred between the last fix and the bug being tested.
71065         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
71066         module and recently fixed cygwin bugs.
71067         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
71068         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
71069         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
71070         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
71071         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
71072         Likewise.
71073         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
71074         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
71075         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
71076         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
71077         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
71078         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
71079         Likewise.
71081         Avoid gcc warning on cygwin.
71082         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
71083         !ACL_NO_TRIVIAL]: Avoid unused variable.
71085 2008-06-05  Eric Blake  <ebb9@byu.net>
71087         Be tolerant of UNKNOWN version in gnulib-tool test dir.
71088         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
71089         git-version-gen fails to come up with a version.
71090         Reported by Simon Josefsson.
71092 2008-06-05  Jim Meyering  <meyering@redhat.com>
71093             Paul Eggert  <eggert@cs.ucla.edu>
71095         utimens.c: work around a probable Linux kernel bug
71096         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
71097         appears to be a kernel bug that causes utimensat to return 280
71098         instead of 0, indicating success.
71100 2008-06-04  Bruno Haible  <bruno@clisp.org>
71102         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
71103         2008-06-01 commit.
71105 2008-06-04  Bruno Haible  <bruno@clisp.org>
71107         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
71108         * lib/file-has-acl.c (acl_access_nontrivial): New function.
71109         (file_has_acl): Use it. Save errno afterwards.
71110         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
71112 2008-06-03  Bruno Haible  <bruno@clisp.org>
71114         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
71115         draft code. Simplify #ifs.
71116         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
71117         Put Solaris code after POSIX-draft code. Fix comments regarding
71118         Solaris 10, HP-UX. Mention Cygwin.
71119         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
71121 2008-06-03  Eric Blake  <ebb9@byu.net>
71123         Provide fallback for older kernels.
71124         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
71125         Provide runtime fallback if kernel lacks support.
71126         Reported by Mike Frysinger.
71128 2008-06-02  Bruno Haible  <bruno@clisp.org>
71130         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
71131         it exists.
71133 2008-06-02  Bruno Haible  <bruno@clisp.org>
71135         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
71136         * lib/copy-acl.c (qcopy_acl): Update comment.
71138 2008-06-02  Bruno Haible  <bruno@clisp.org>
71140         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
71141         like ACL APIs.
71143 2008-06-02  Bruno Haible  <bruno@clisp.org>
71145         * tests/test-file-has-acl.sh: Use different code for Cygwin.
71146         * tests/test-set-mode-acl.sh: Likewise.
71147         * tests/test-copy-acl.sh: Likewise.
71148         * tests/test-copy-file.sh: Likewise.
71150 2008-06-02  Bruno Haible  <bruno@clisp.org>
71152         * tests/test-file-has-acl.sh: Remove unused code.
71154 2008-06-01  Bruno Haible  <bruno@clisp.org>
71156         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
71157         (copy_acl): Just a wrapper around qcopy_acl that emits the error
71158         messages.
71159         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
71161 2008-06-01  Bruno Haible  <bruno@clisp.org>
71163         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
71164         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
71165         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
71166         APIs.
71167         * modules/acl-tests (configure.ac): Remove tests now contained in
71168         m4/acl.m4.
71170 2008-06-02  Jim Meyering  <meyering@redhat.com>
71172         announce-gen: use a better key-server host name
71173         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
71174         it may be more consistently reliable.  Suggested by Werner Koch
71175         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
71177 2008-06-01  Bruno Haible  <bruno@clisp.org>
71179         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
71180         Reported by Voroskoi Andras <voroskoi@gmail.com>.
71182 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
71184         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
71186 2008-06-01  Bruno Haible  <bruno@clisp.org>
71188         New ACL tests.
71189         * tests/test-file-has-acl.sh: New file.
71190         * tests/test-file-has-acl.c: New file.
71191         * tests/test-set-mode-acl.sh: New file.
71192         * tests/test-set-mode-acl.c: New file.
71193         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
71194         * tests/test-copy-acl.c: New file.
71195         * modules/acl-tests: New file, based on modules/copy-file-tests.
71196         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
71197         (Depends-on): Add acl-tests.
71198         (configure.ac): Remove checks.
71199         (Makefile.am): Don't create test-sameacls program here any more.
71201 2008-06-01  Bruno Haible  <bruno@clisp.org>
71203         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
71204         * tests/test-sameacls.c: Include progname.h.
71205         (main): Invoke set_program_name. Portability fixes for MacOS X,
71206         Solaris, HP-UX.
71208 2008-06-01  Bruno Haible  <bruno@clisp.org>
71210         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
71211         function.
71212         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
71214 2008-06-01  Bruno Haible  <bruno@clisp.org>
71216         * modules/rpmatch (Depends-on): Add strdup.
71218 2008-06-01  Bruno Haible  <bruno@clisp.org>
71220         * lib/pipe.c: Include unistd-safer.h.
71221         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
71222         * modules/pipe (Depends-on): Add unistd-safer.
71224 2008-05-30  Simon Josefsson  <simon@josefsson.org>
71226         * modules/autobuild (configure.ac): Call AB_INIT.
71228 2008-05-30  Simon Josefsson  <simon@josefsson.org>
71230         * tests/test-getaddrinfo.c: Don't print debug messages by default.
71231         Suggested by Bruno Haible <bruno@clisp.org>.
71233 2008-05-30  Simon Josefsson  <simon@josefsson.org>
71235         * tests/test-base64.c: Cast size_t to unsigned long when invoking
71236         printf.  Use %lu instead of %d.  Reported by Bruno Haible
71237         <bruno@clisp.org>.
71239 2008-05-29  Eric Blake  <ebb9@byu.net>
71241         Prefer new POSIX 200x interfaces over futimesat.
71242         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
71243         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
71244         when available.
71245         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
71247 2008-05-28  Bruno Haible  <bruno@clisp.org>
71249         * modules/stpcpy (License): Change to LGPLv2+.
71250         Requested by David Lutterkort <dlutter@redhat.com>.
71252 2008-05-27  Bruno Haible  <bruno@clisp.org>
71254         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
71255         current mingw.
71256         Reported by Jose E. Marchesi <jemarch@gnu.org>.
71258 2008-05-27  Bruno Haible  <bruno@clisp.org>
71260         * modules/iconv_open (Link): New section, from module 'iconv'.
71261         * modules/striconv (Link): Likewise.
71262         * modules/striconveh (Link): Likewise.
71263         * modules/xstriconv (Link): Likewise.
71264         * modules/unicodeio (Link): Likewise.
71265         * modules/propername (Link): Likewise.
71266         Reported by Jim Meyering.
71268 2008-05-26  Jim Meyering  <meyering@redhat.com>
71270         sha256: do not artificially restrict buffer length to be < 2^32
71271         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
71272         uint32_t to size_t.
71273         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
71274         to match.
71276         avoid unaligned access errors, e.g., on sparc
71277         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
71278         direct access through a possibly-unaligned uint64* pointer.
71279         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
71280         direct access through a possibly-unaligned uint32* pointer.
71281         Prompted by this patch from Tom "spot" Callaway:
71282         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
71284         sha512.c: fix typo in comment
71285         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
71287 2008-05-25  Bruno Haible  <bruno@clisp.org>
71289         * lib/set-mode-acl.c: Renamed from lib/acl.c.
71290         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
71291         (Makefile.am): Update lib_SOURCES.
71293 2008-05-25  Bruno Haible  <bruno@clisp.org>
71295         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
71297 2008-05-25  Jim Meyering  <meyering@redhat.com>
71299         useless-if-before-free: freed expr may have white-space differences
71300         * build-aux/useless-if-before-free: Recognize cases in which the
71301         freed expression differs from the tested one in embedded white
71302         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
71303         $1 was used, so we can't make any regexp shy.  Improved tests now
71304         detect this.
71306         useless-if-before-free: accept white space in the expression.
71307         * build-aux/useless-if-before-free: For now, any white space
71308         in the expression must be identical in the free argument.
71310         useless-if-before-free: efficiency tweak
71311         * build-aux/useless-if-before-free: Make the expression-matching
71312         regexp "shy".
71313         Make the *outer* regexp shy, not the expr-matching one.
71315         update code-in-comment to accept cast of free arg
71316         * build-aux/useless-if-before-free: Update regexp.
71318 2008-05-25  Bruno Haible  <bruno@clisp.org>
71320         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
71321         * modules/copy-file-tests (Files, Makefile.am): Update.
71322         * tests/test-copy-file.c (func_test_copy): Update.
71324 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
71326         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
71328 2008-05-23  Bruno Haible  <bruno@clisp.org>
71330         Improve support for ACLs on OSF/1.
71331         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
71332         Remove fallback for unknown flavors of ACLs.
71334 2008-05-22  Bruno Haible  <bruno@clisp.org>
71336         Add support for ACLs on OSF/1.
71337         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
71338         replacements.
71339         (acl_free_text): New macro fallback.
71340         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
71341         acl_free.
71342         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
71343         acl_free_text function. Require AC_C_INLINE.
71345 2008-05-22  Bruno Haible  <bruno@clisp.org>
71347         Make copy_acl work on MacOS X 10.5.
71348         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
71349         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
71350         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
71351         If MODE_INSIDE_ACL, don't assume that every system has the same text
71352         representation for ACLs as FreeBSD.
71353         * lib/copy-acl.c (copy_acl): Add support for platforms with
71354         !MODE_INSIDE_ACL.
71355         * lib/file-has-acl.c (file_has_acl): Likewise.
71356         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
71357         FreeBSD, MacOS X, or IRIX, respectively.
71359 2008-05-22  Bruno Haible  <bruno@clisp.org>
71361         * lib/acl.h: Don't include <sys/acl.h>.
71362         (GETACLCNT): Move fallback to lib/acl-internal.h.
71363         * lib/acl-internal.h: Include <sys/acl.h> here.
71364         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
71366 2008-05-22  Bruno Haible  <bruno@clisp.org>
71368         Split off copy_acl function to separate file.
71369         * lib/copy-acl.c: New file, extracted from lib/acl.c.
71370         * lib/acl.c (copy_acl): Moved function to separate file.
71371         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
71372         * modules/acl (Files): Add lib/copy-acl.c.
71373         (Makefiles.am): Augment lib_SOURCES.
71375 2008-05-22  Bruno Haible  <bruno@clisp.org>
71377         * modules/copy-file-tests: New file.
71378         * tests/test-copy-file.sh: New file.
71379         * tests/test-copy-file.c: New file.
71380         * tests/test-copy-file-sameacls.c: New file.
71382 2008-05-22  Eric Blake  <ebb9@byu.net>
71384         Avoid gcc warning.
71385         * tests/test-memcmp.c (main): Pass NULL indirectly.
71387 2008-05-21  Bruno Haible  <bruno@clisp.org>
71389         Add reference doc about ACLs.
71390         * doc/acl-resources.txt: New file.
71391         * doc/acl-cygwin.txt: New file.
71393 2008-05-21  Bruno Haible  <bruno@clisp.org>
71395         Avoid one more warning from gcc.
71396         * lib/vasnprintf.c (IF_LINT): Update comments.
71397         (VASNPRINTF): Use it also for the 'prefix' array initializer.
71399 2008-05-21  Jim Meyering  <meyering@redhat.com>
71401         avoid a warning from gcc
71402         * lib/vasnprintf.c (IF_LINT): Define.
71403         (scale10_round_decimal_long_double):
71404         Use it to avoid a "may be used uninitialized" warning.
71405         (scale10_round_decimal_double): Likewise.
71407 2008-05-21  Simon Josefsson  <simon@josefsson.org>
71409         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
71410         declared.
71412 2008-05-20  Bruno Haible  <bruno@clisp.org>
71414         * tests/test-memcmp.c (main): Test also the sign of the result. Test
71415         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
71417 2008-05-20  Simon Josefsson  <simon@josefsson.org>
71419         * modules/memcmp-tests: New file.
71420         * tests/test-memcmp.c: New file.
71422 2008-05-19  Bruno Haible  <bruno@clisp.org>
71424         * modules/propername (Notice, configure.ac): Put quoted "..." into
71425         --keyword option.
71426         * lib/propername.h: Update comments accordingly.
71427         Reported by Eric Blake.
71429 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
71431         * modules/getpass-gnu (Depends-on): Add fseeko.
71433 2008-05-19  Simon Josefsson  <simon@josefsson.org>
71435         * modules/base64-tests: New file.
71437 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
71439         * lib/base64.c (base64_decode_ctx): If a decode context structure
71440         was passed in use it to ignore newlines.  If a context structure
71441         was _not_ passed in, continue to treat newlines as garbage (this
71442         is the historical behavior).  Formerly base64_decode.
71443         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
71444         takes a decode context structure.
71445         * lib/base64.h (base64_decode): Macro for four-argument calls.
71446         (base64_decode_alloc): Likewise.
71447         * lib/base64.c (base64_decode_ctx): If a decode context structure
71448         was passed in use it to ignore newlines.  If a context structure
71449         was _not_ passed in, continue to treat newlines as garbage (this
71450         is the historical behavior).  Formerly base64_decode.
71451         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
71452         takes a decode context structure.
71453         * lib/base64.h (base64_decode): Macro for four-argument calls.
71454         (base64_decode_alloc): Likewise.
71456 2008-05-19  Jim Meyering  <meyering@redhat.com>
71458         avoid a warning from gcc
71459         * lib/trim.c (IF_LINT): Define.
71460         (trim2): Use it to avoid a "may be used uninitialized" warning.
71462         Fix doc typo.
71463         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
71465 2008-05-19  Bruno Haible  <bruno@clisp.org>
71467         * doc/glibc-functions/getpass.texi: Document limits of other
71468         implementations.
71470 2008-05-19  Simon Josefsson  <simon@josefsson.org>
71471             Bruno Haible <bruno@clisp.org>
71473         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
71475 2008-05-18  Bruno Haible  <bruno@clisp.org>
71477         * modules/propername: New file, from GNU gettext.
71478         * lib/propername.h: New file, from GNU gettext.
71479         * lib/propername.c: New file, from GNU gettext.
71480         * MODULES.html.sh (Internationalization functions): Add propername.
71482 2008-05-16  Jim Meyering  <meyering@redhat.com>
71483             Bruno Haible  <bruno@clisp.org>
71485         Avoid some warnings from "gcc -Wshadow".
71486         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
71488 2008-05-15  Eric Blake  <ebb9@byu.net>
71490         Extend previous patch to cygwin 1.7.0.
71491         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
71492         fast implementation in cygwin >= 1.7.0.
71493         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71494         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71496 2008-05-15  Bruno Haible  <bruno@clisp.org>
71498         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
71499         implementation in glibc >= 2.9.
71500         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71503 2008-05-15  Bruno Haible  <bruno@clisp.org>
71505         * MODULES.html.sh (Internationalization functions): Remove linebreak.
71506         (Unicode string functions): Add unilbrk/*.
71507         Reported by Karl Berry.
71509 2008-05-15  Eric Blake  <ebb9@byu.net>
71511         Fix violation of <stdbool.h> replacement in regex.
71512         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
71513         * lib/regexec.c (re_search_internal): Likewise.
71514         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
71516 2008-05-15  Jim Meyering  <meyering@redhat.com>
71518         avoid distracting test output when git or cvs is not found
71519         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
71520         * tests/test-vc-list-files-git.sh: Likewise.
71522 2008-05-15  Eric Blake  <ebb9@byu.net>
71524         Glibc finally accepted the memmem speedup code, bugzilla #5514.
71525         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
71526         glibc version.
71527         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
71528         * doc/posix-functions/strstr.texi (strstr): Likewise.
71529         * lib/str-two-way.h (MAX): Sychronize with glibc.
71531 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
71533         * lib/regcomp.c (optimize_utf8): Add a note on why we test
71534         opr.ctx_type.
71535         (calc_first): Initialize constraint field.
71536         (duplicate_node_closure): Use it instead of special casing ANCHORS.
71537         Fix grammar.
71538         (duplicate_node): Merge constraint field for all node types.
71539         (calc_eclosure_iter): Look at constraint field for all node types.
71540         * lib/regex_internal.c (create_cd_newstate): Don't look at
71541         opr.ctx_type.
71543 2008-05-14  Bruno Haible  <bruno@clisp.org>
71545         Help GCC to do better code generation.
71546         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
71547         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
71548         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
71549         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
71550         Declare with attribute 'malloc' if supported.
71552 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
71554         use "echo STR|wc -c" rather than unportable "expr length STR"
71555         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
71556         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
71558 2008-05-14  Jim Meyering  <meyering@redhat.com>
71560         use dd ibs=$n count=1 ... rather than less-portable head -c$n
71561         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
71562         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
71563         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
71564         via Collin Lasse.
71566 2008-05-14  Eric Blake  <ebb9@byu.net>
71568         Avoid quadratic growth in gl_LIBSOURCES.
71569         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
71570         Suggested by Bruno Haible.
71572         Test xmemdup0.
71573         * modules/xmemdup0-tests: New file.
71574         * tests/test-xmemdup0.c: Likewise.
71576 2008-05-13  Eric Blake  <ebb9@byu.net>
71578         Split xmemdup0 into its own module.
71579         * modules/xmemdup0: New file.
71580         * lib/xmemdup0.h: Likewise.
71581         * lib/xmemdup0.c: Likewise.
71582         * MODULES.html.sh (Memory management functions): Add xmemdup0.
71583         * lib/xalloc.h (xmemdup0): Remove.
71584         * lib/xmalloc.c (xmemdup0): Likewise.
71586 2008-05-13  Eric Blake  <ebb9@byu.net>
71587             Bruno Haible  <bruno@clisp.org>
71589         Reduce number of forks required during autoconf.
71590         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
71591         and gl_LIBSOURCES_DIR.
71592         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
71593         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
71594         m4_syscmd per file.
71595         <m4_foreach_w>: Move...
71596         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
71598 2008-05-13  Eric Blake  <ebb9@byu.net>
71600         * gnulib-tool: Fix various comment typos.
71602 2008-05-12  Bruno Haible  <bruno@clisp.org>
71604         Tailor the linebreaking algorithm.
71605         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
71607 2008-05-12  Bruno Haible  <bruno@clisp.org>
71609         Update to Unicode 5.0.0.
71610         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
71611         LBP_JV, LBP_JT. Redistribute values.
71612         (unilbrk_table): Change size.
71613         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
71614         Unicode TR#14 rev. 22.
71615         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
71616         LBP_JV, LBP_JT. Redistribute values.
71617         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
71618         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
71619         Update.
71620         * lib/unilbrk/lbrkprop1.h: Regenerated.
71621         * lib/unilbrk/lbrkprop2.h: Regenerated.
71622         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
71623         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
71624         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
71625         Likewise.
71626         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
71627         Likewise.
71628         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
71629         result.
71630         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
71631         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
71632         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
71633         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
71634         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
71635         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
71637 2008-05-11  Bruno Haible  <bruno@clisp.org>
71639         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
71641 2008-05-11  Bruno Haible  <bruno@clisp.org>
71643         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
71644         * modules/unilbrk/gen-lbrk: New file.
71646 2008-05-11  Bruno Haible  <bruno@clisp.org>
71648         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
71649         * m4/sha512.m4 (gl_SHA512): Likewise.
71651 2008-05-11  Jim Meyering  <meyering@redhat.com>
71653         New modules: crypto/sha256, crypto/sha512 (from coreutils)
71654         * modules/crypto/sha256: New file.
71655         * modules/crypto/sha512: Likewise.
71656         * lib/sha256.c: Likewise.
71657         * lib/sha256.h: Likewise.
71658         * lib/sha512.c: Likewise.
71659         * lib/sha512.h: Likewise.
71660         * lib/u64.h: Likewise.
71661         * m4/sha256.m4: Likewise.
71662         * m4/sha512.m4: Likewise.
71663         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
71665 2008-05-10  Bruno Haible  <bruno@clisp.org>
71667         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
71668         (Input/Output <stdio.h>): Add xprintf.
71669         (Signal handling <signal.h>): Add strsignal.
71670         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
71671         (Core language properties): Add func.
71672         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
71673         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
71674         strings.
71675         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
71676         (Input/output): New section.
71677         (File system functions): Add openat-die, stat-macros.
71678         (Networking functions): Add sockets.
71679         (Unicode string functions): Add unictype/*.
71680         (Support for building libraries and executables): Add gperf.
71681         (Support for building documentation): Add agpl-3.0.
71682         (Misc): Add nocrash.
71684 2008-05-10  Bruno Haible  <bruno@clisp.org>
71686         * modules/unictype/gen-ctype: New file.
71688 2008-05-10  Jim Meyering  <meyering@redhat.com>
71690         Make chdir-safer.c more efficient on a system with no symlinks.
71691         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
71692         also if ELOOP is zero.  Suggested by Bruno Haible.
71694         Make chdir-safer.c slightly safer.
71695         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
71696         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
71698         Avoid compile failure on systems without ELOOP (like mingw).
71699         * lib/chdir-safer.c (ELOOP): Define if not already defined.
71700         Reported by Bruno Haible.
71702 2008-05-10  Bruno Haible  <bruno@clisp.org>
71704         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
71705         (is_utf8_encoding): Use a case-insensitive comparison.
71706         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
71707         streq.
71709 2008-05-10  Bruno Haible  <bruno@clisp.org>
71711         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
71712         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
71713         * lib/unilbrk/ulc-common.h (iconv_string_length,
71714         iconv_string_keeping_offsets): Remove declarations.
71715         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
71716         Don't include <iconv.h>, streq.h, xsize.h.
71717         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
71718         conversion.
71719         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
71720         <iconv.h>, streq.h, xsize.h.
71721         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
71722         conversion.
71723         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
71724         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
71725         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
71726         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
71728 2008-05-10  Bruno Haible  <bruno@clisp.org>
71730         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
71731         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
71733         * modules/unilbrk/u32-width-linebreaks-tests: New file.
71734         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
71736         * modules/unilbrk/u16-width-linebreaks-tests: New file.
71737         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
71739         * modules/unilbrk/u8-width-linebreaks-tests: New file.
71740         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
71742         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
71743         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
71745         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
71746         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
71748         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
71749         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
71751         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
71752         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
71754 2008-05-10  Bruno Haible  <bruno@clisp.org>
71756         Split up 'linebreak' module.
71757         * lib/unilbrk.h: New file, based on lib/linebreak.h.
71758         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
71759         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
71760         modifications.
71761         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
71762         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
71763         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
71764         lib/linebreak.c.
71765         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
71766         lib/linebreak.c.
71767         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
71768         lib/linebreak.c.
71769         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
71770         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
71771         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
71772         lib/linebreak.c.
71773         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
71774         lib/linebreak.c.
71775         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
71776         lib/linebreak.c.
71777         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
71778         lib/linebreak.c.
71779         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
71780         lib/linebreak.c.
71781         * modules/unilbrk/base: New file.
71782         * modules/unilbrk/tables: New file.
71783         * modules/unilbrk/u8-possible-linebreaks: New file.
71784         * modules/unilbrk/u16-possible-linebreaks: New file.
71785         * modules/unilbrk/u32-possible-linebreaks: New file.
71786         * modules/unilbrk/ulc-common: New file.
71787         * modules/unilbrk/ulc-possible-linebreaks: New file.
71788         * modules/unilbrk/u8-width-linebreaks: New file.
71789         * modules/unilbrk/u16-width-linebreaks: New file.
71790         * modules/unilbrk/u32-width-linebreaks: New file.
71791         * modules/unilbrk/ulc-width-linebreaks: New file.
71792         * lib/linebreak.h: Remove file.
71793         * lib/linebreak.c: Remove file.
71794         * m4/linebreak.m4: Remove file.
71795         * modules/linebreak: Remove file.
71796         * NEWS: Mention the changes.
71798 2008-05-09  Eric Blake  <ebb9@byu.net>
71800         Add xmemdup0.
71801         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
71802         implementation.
71803         * lib/xmalloc.c (xmemdup0): New C implementation.
71805 2008-05-08  Bruno Haible  <bruno@clisp.org>
71807         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
71809 2008-05-07  Eric Blake  <ebb9@byu.net>
71811         Support cross-compilation of <wctype.h>.
71812         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
71813         AC_CACHE_CHECK.
71815 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
71817         * build-aux/vc-list-files: Add support for bzr.
71819 2008-05-03  Jim Meyering  <meyering@redhat.com>
71821         avoid failed assertion with tight malloc
71822         * tests/test-getndelim2.c: Correct an off-by-one assertion.
71824 2008-05-03  Simon Josefsson  <simon@josefsson.org>
71826         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
71827         are needed from arpa/inet.h.
71828         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
71829         Reported by Bruno Haible.
71831 2008-05-02  Jim Meyering  <meyering@redhat.com>
71833         avoid compilation error on FreeBSD 6
71834         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
71836 2008-05-01  Jim Meyering  <meyering@redhat.com>
71838         useless-if-before-free: correct --help's exit status description
71839         * build-aux/useless-if-before-free (usage): Like grep, exit 0
71840         for one or more matches, etc.  Reported by Bruno Haible.
71842         vc-list-files: make the stand-alone gnulib test work
71843         * modules/vc-list-files-tests (configure.ac):
71844         Define and AC_SUBST abs_aux_dir.
71845         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
71846         $(abs_top_srcdir) to each script and having each of them
71847         duplicate the work of setting PATH, set PATH here, using
71848         the new variable, abs_aux_dir instead.
71849         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
71850         * tests/test-vc-list-files-git.sh: Likewise.
71851         Reported by Bruno Haible.
71853 2008-05-01  Bruno Haible  <bruno@clisp.org>
71855         * lib/getndelim2.c (getndelim2): Fix newsize computation during
71856         reallocation. Rename 'done' to 'found_delimiter'.
71858 2008-05-01  Jim Meyering  <meyering@redhat.com>
71860         vc-list-files: accommodate /bin/sh like the one from Solaris 10
71861         * build-aux/vc-list-files: Use `...`, not $(...).
71863 2008-04-30  Jim Meyering  <meyering@redhat.com>
71865         add tests for vc-list-files
71866         * modules/vc-list-files-tests: New module.
71867         * tests/test-vc-list-files-cvs.sh: New file.
71868         * tests/test-vc-list-files-git.sh: New file.
71870         avoid a warning from gcc
71871         * lib/getndelim2.c (IF_LINT): Define.
71872         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
71874         vc-list-files: work properly with build-aux/cvsu, too
71875         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
71876         to all cvs-based clauses.
71878         vc-list-files: work properly in the CVS+awk case, too
71879         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
71881         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
71882         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
71883         take more than one file argument, so .  Add quotes, just in case $dir
71884         ever contains a shell meta-character.  Prompted by Soren Hansen in
71885         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
71887 2008-04-29  Eric Blake  <ebb9@byu.net>
71889         Optimize getndelim2 to use block operations when possible.
71890         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
71891         freadseek, and memchr2.
71892         * lib/getndelim2.c (getndelim2): Use them for block reads.
71894 2008-04-29  Bruno Haible  <bruno@clisp.org>
71896         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
71897         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
71898         * modules/inet_ntop (Depends-on): Add extensions.
71899         * modules/inet_pton (Depends-on): Likewise.
71900         Reported by Simon Josefsson.
71902 2008-04-29  Jim Meyering  <meyering@redhat.com>
71904         When the is more than one match in a block, match all of them.
71905         * build-aux/useless-if-before-free: Iterate through each block
71906         until there are no more matches.
71908         Fix broken useless-if-before-free script.
71909         * build-aux/useless-if-before-free: Fix typo: missing "?" after
71910         the expression to match cast of argument to free-like function.
71912 2008-04-29  Eric Blake  <ebb9@byu.net>
71914         Use new header.
71915         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
71917 2008-04-29  Jim Meyering  <meyering@redhat.com>
71919         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
71920         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
71921         by gnulib to exist and to declare e.g., inet_ntop.
71922         Don't include "inet_ntop.h", now removed.
71924         * m4/arpa_inet_h.m4: Remove trailing blanks.
71926 2008-04-29  Eric Blake  <ebb9@byu.net>
71928         Silence valgrind on safe reads beyond potential array bounds.
71929         * lib/rawmemchr.valgrind: New file.
71930         * lib/strchrnul.valgrind: Likewise.
71931         * modules/rawmemchr (Files): Distribute new file.
71932         * modules/strchrnul (Files): Likewise.
71933         Suggested by Bruno Haible.
71935 2008-04-29  Bruno Haible  <bruno@clisp.org>
71937         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
71938         (inet_ntop, inet_pton): Change portability warning's wording.
71939         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
71940         Invoke gl_CHECK_NEXT_HEADERS.
71941         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
71942         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
71943         set ARPA_INET_H.
71944         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
71945         * modules/arpa_inet (Description): No longer only for systems that
71946         lack it.
71947         (Depends-on): Add include_next.
71948         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
71949         HAVE_ARPA_INET_H.
71951 2008-04-29  Jim Meyering  <meyering@redhat.com>
71953         * modules/mkdir (License): Re-license as LGPLv2+.
71955 2008-04-29  Bruno Haible  <bruno@clisp.org>
71957         * modules/rawmemchr (Maintainer): Set to Eric.
71958         * modules/strchrnul (Maintainer): Likewise.
71960 2008-04-29  Simon Josefsson  <simon@josefsson.org>
71962         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
71963         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
71965         * modules/arpa_inet (arpa/inet.h): Use them.
71967 2008-04-28  Eric Blake  <ebb9@byu.net>
71969         Test getndelim2.
71970         * modules/getndelim2-tests: New file.
71971         * tests/test-getndelim2.c: Likewise.
71972         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
71973         stream.
71974         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
71976         * MODULES.html.sh: Document new module.
71978 2008-04-20  Bruno Haible  <bruno@clisp.org>
71980         * lib/c-stack.c (die): Use raise.
71981         * modules/c-stack (Depends-on): Add raise.
71983 2008-04-28  Bruno Haible  <bruno@clisp.org>
71985         Expect rpmatch to be declared.
71986         * lib/yesno.c (rpmatch): Remove declaration.
71988         Declare rpmatch.
71989         * lib/stdlib.in.h (rpmatch): New declaration.
71990         * lib/rpmatch.c: Include <stdlib.h> first.
71991         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
71992         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
71993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
71994         HAVE_RPMATCH.
71995         * modules/rpmatch (Depends-on): Add stdlib, extensions.
71996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71997         (Include): Set to <stdlib.h>.
71998         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
71999         HAVE_RPMATCH.
72000         * NEWS: Document the change.
72002 2008-04-28  Bruno Haible  <bruno@clisp.org>
72004         Change rpmatch to use nl_langinfo when appropriate.
72005         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
72006         (N_): New macro.
72007         (localized_pattern): New function/macro.
72008         (try): Remove match, nomatch arguments. Copy the pattern into safe
72009         memory before caching it.
72010         (rpmatch): Use localized_pattern. Add translator comments.
72011         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
72012         Suggested by Eric Blake.
72013         * modules/rpmatch (Depends-on): Add stdbool.
72015 2008-04-28  Eric Blake  <ebb9@byu.net>
72017         Add rawmemchr module, matching glibc.
72018         * modules/string (Makefile.am): New indicator.
72019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
72020         * lib/string.in.h (rawmemchr): Declare when appropriate.
72021         * modules/rawmemchr: New file.
72022         * m4/rawmemchr.m4: Likewise.
72023         * lib/rawmemchr.c: Likewise.
72024         * modules/rawmemchr-tests: Likewise.
72025         * tests/test-rawmemchr.c: Likewise.
72026         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
72027         module.
72028         * modules/strchrnul (Depends-on): Add rawmemchr.
72029         * lib/strchrnul.c (strchrnul): Optimize a corner case.
72031         Whitespace cleanup.
72032         * tests/test-strchrnul.c: Reindent.
72033         * lib/strchrnul.c: Likewise.
72035         Optimize and test strchrnul.
72036         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
72037         * modules/strchrnul-tests: New file.
72038         * tests/test-strchrnul.c: Likewise.
72040         Remove intprops dependency.
72041         * modules/memchr (Depends-on): Remove intprops.
72042         * modules/memrchr (Depends-on): Likewise.
72043         * modules/memchr2 (Depends-on): Likewise.
72044         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
72045         * lib/memrchr.c (__memrchr): Likewise.
72046         * lib/memrchr2.c (memchr2): Likewise.
72047         Reported by Simon Josefsson.
72049 2008-04-28  Simon Josefsson  <simon@josefsson.org>
72051         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
72052         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72054 2008-04-28  Simon Josefsson  <simon@josefsson.org>
72056         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
72058         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
72060         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
72062         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
72063         declarations.
72064         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
72066         * m4/inet_pton.m4: Don't check for header files.
72068         * m4/inet_ntop.m4: Don't check for header files.
72070 2008-04-28  Simon Josefsson  <simon@josefsson.org>
72072         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
72073         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
72074         trigger for cygwin).
72075         Reported by Bruno Haible  <bruno@clisp.org>.
72077 2008-04-28  Bruno Haible  <bruno@clisp.org>
72079         * doc/posix-functions/strdup.texi: Mention mingw problem.
72081 2008-04-27  Bruno Haible  <bruno@clisp.org>
72083         * modules/stat-time-tests (Depends-on): Add sleep.
72084         * tests/test-stat-time.c (force_unlink): New function.
72085         (cleanup): Use it.
72086         (test_mtime): Remove the ctime related tests.
72087         (test_ctime): New function, containing the ctime related tests.
72088         (main): Call test_ctime, except on native Windows platforms.
72090 2008-04-27  Bruno Haible  <bruno@clisp.org>
72092         * lib/rpmatch.c (rpmatch): Add some comments.
72093         Reported by James Youngman <jay@gnu.org>.
72095 2008-04-27  Bruno Haible  <bruno@clisp.org>
72097         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
72098         quiet NaNs.
72100 2008-04-27  Bruno Haible  <bruno@clisp.org>
72102         Make test-yesno.sh work on mingw.
72103         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
72104         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
72105         (main): Set stdin to binary mode.
72106         * modules/yesno-tests (Depends-on): Add binary-io.
72108 2008-04-27  Bruno Haible  <bruno@clisp.org>
72110         Fix 'isfinite' on x86, x86_64, ia64 platforms.
72111         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
72112         argument that lie outside the IEEE 854 domain.
72113         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
72114         (gl_ISFINITE): Use it.
72115         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
72117 2008-04-27  Bruno Haible  <bruno@clisp.org>
72119         Allow local renaming in config.h.
72120         * lib/memrchr.c (memrchr): Don't undefine outside libc.
72122 2008-04-27  Bruno Haible  <bruno@clisp.org>
72124         * lib/memchr.c (__memchr): Change type of 'i'.
72125         * lib/memchr2.c (memchr2): Likewise.
72127 2008-04-26  Eric Blake  <ebb9@byu.net>
72128         and Bruno Haible  <bruno@clisp.org>
72130         Optimize and test memrchr.
72131         * modules/memrchr (Depends-on): Add intprops.
72132         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
72133         * modules/memrchr-tests: New file.
72134         * tests/test-memrchr.c: New file.
72136 2008-04-26  Bruno Haible  <bruno@clisp.org>
72138         Add tentative support for DragonFly BSD.
72139         * lib/stdio-impl.h: Add macros for DragonFly BSD.
72140         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
72141         fp.
72142         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
72143         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
72144         * lib/fpurge.c (fpurge): Likewise.
72145         * lib/freadable.c (freaadable): Likewise.
72146         * lib/freadahead.c (freadahead): Likewise.
72147         * lib/freading.c (freading): Likewise.
72148         * lib/freadptr.c (freadptr): Likewise.
72149         * lib/freadseek.c (freadptrinc): Likewise.
72150         * lib/fseeko.c (fseeko): Likewise.
72151         * lib/fseterr.c (fseterr): Likewise.
72152         * lib/fwritable.c (fwritable): Likewise.
72153         * lib/fwriting.c (fwriting): Likewise.
72155 2008-04-26  Bruno Haible  <bruno@clisp.org>
72157         * lib/stdio-impl.h: New file.
72158         * lib/fbufmode.c: Include stdio-impl.h.
72159         (fbufmode): Use fp_, remove redundant #defines.
72160         * lib/fflush.c: Include stdio-impl.h.
72161         (clear_ungetc_buffer): Remove redundant #defines.
72162         * lib/fpurge.c: Include stdio-impl.h.
72163         (fpurge): Remove redundant #defines.
72164         * lib/freadable.c: Include stdio-impl.h.
72165         (freadable): Remove redundant #defines.
72166         * lib/freadahead.c: Include stdio-impl.h.
72167         (freadahead): Remove redundant #defines.
72168         * lib/freading.c: Include stdio-impl.h.
72169         (freading): Remove redundant #defines.
72170         * lib/freadptr.c: Include stdio-impl.h.
72171         (freadptr): Remove redundant #defines.
72172         * lib/freadseek.c: Include stdio-impl.h.
72173         (freadptrinc): Remove redundant #defines.
72174         * lib/fseeko.c: Include stdio-impl.h.
72175         (rpl_fseeko): Remove redundant #defines.
72176         * lib/fseterr.c: Include stdio-impl.h.
72177         (fseterr): Remove redundant #defines.
72178         * lib/fwritable.c: Include stdio-impl.h.
72179         (fwritable: Remove redundant #defines.
72180         * lib/fwriting.c: Include stdio-impl.h.
72181         (fwriting): Remove redundant #defines.
72182         * modules/fbufmode (Files): Add lib/stdio-impl.h.
72183         * modules/fflush (Files): Likewise.
72184         * modules/fpurge (Files): Likewise.
72185         * modules/freadable (Files): Likewise.
72186         * modules/freadahead (Files): Likewise.
72187         * modules/freading (Files): Likewise.
72188         * modules/freadptr (Files): Likewise.
72189         * modules/freadseek (Files): Likewise.
72190         * modules/fseeko (Files): Likewise.
72191         * modules/fseterr (Files): Likewise.
72192         * modules/fwritable (Files): Likewise.
72193         * modules/fwriting (Files): Likewise.
72195 2008-04-26  Bruno Haible  <bruno@clisp.org>
72197         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
72198         restore_seek_optimization, update_fpos_cache): New functions, extracted
72199         from rpl_fflush.
72200         (rpl_fflush): Use them.
72201         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
72202         (gl_REPLACE_FFLUSH): Use it.
72204 2008-04-26  Bruno Haible  <bruno@clisp.org>
72206         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
72207         on Solaris.
72208         * tests/test-xstrtoimax.sh: Likewise.
72209         * tests/test-xstrtoumax.sh: Likewise.
72210         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72212 2008-04-26  Bruno Haible  <bruno@clisp.org>
72214         * modules/memchr-tests: New file.
72215         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
72217 2008-04-26  Eric Blake  <ebb9@byu.net>
72218             Bruno Haible  <bruno@clisp.org>
72220         * lib/memchr.c: Include intprops.h.
72221         (__memchr): Optimize parallel detection of matching bytes. Rename local
72222         variables. Add explanatory comments.
72224 2008-04-26  Bruno Haible  <bruno@clisp.org>
72226         Fix module 'memchr', broken since 2000-10-28.
72227         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
72229 2008-04-26  Bruno Haible  <bruno@clisp.org>
72231         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
72232         comments.
72234 2008-04-25  Eric Blake  <ebb9@byu.net>
72236         Use native fstatat on cygwin 1.7.0.
72237         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
72238         first.
72240 2008-04-23  Eric Blake  <ebb9@byu.net>
72242         Improve memchr2 performance.
72243         * lib/memchr2.c (memchr2): Further optimize parallel detection of
72244         NUL bytes.
72245         * modules/memchr2 (Depends-on): Use intprops.h.
72247 2008-04-23  Simon Josefsson  <simon@josefsson.org>
72249         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
72250         an inline function instead of a CPP macro.  Patch by Ben Pfaff
72251         <blp@cs.stanford.edu>.
72253 2008-04-23  Simon Josefsson  <simon@josefsson.org>
72255         * lib/arpa_inet.in.h: New file.
72257         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
72258         (Makefile.am): Sed in substitute header file.
72260         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
72261         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
72263         * modules/inet_ntop (configure.ac): Use
72264         gl_ARPA_INET_MODULE_INDICATOR.
72266         * modules/inet_pton (configure.ac): Use
72267         gl_ARPA_INET_MODULE_INDICATOR.
72269 2008-04-22  Jim Meyering  <meyering@redhat.com>
72271         * modules/verify (License): Re-license as LGPLv2+.
72273 2008-04-22  Simon Josefsson  <simon@josefsson.org>
72275         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
72276         parameter to void* as per POSIX standard (MinGW uses char*).
72278 2008-04-21  Bruno Haible  <bruno@clisp.org>
72280         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72281         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72282         Define to replacements if REPLACE_ISWCNTRL is 1.
72283         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
72284         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
72285         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
72286         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
72287         what it fixes.
72288         * doc/posix-functions/iswalpha.texi: Likewise.
72289         * doc/posix-functions/iswblank.texi: Likewise.
72290         * doc/posix-functions/iswcntrl.texi: Likewise.
72291         * doc/posix-functions/iswdigit.texi: Likewise.
72292         * doc/posix-functions/iswgraph.texi: Likewise.
72293         * doc/posix-functions/iswlower.texi: Likewise.
72294         * doc/posix-functions/iswprint.texi: Likewise.
72295         * doc/posix-functions/iswpunct.texi: Likewise.
72296         * doc/posix-functions/iswspace.texi: Likewise.
72297         * doc/posix-functions/iswupper.texi: Likewise.
72298         * doc/posix-functions/iswxdigit.texi: Likewise.
72299         Reported by Alain Guibert.
72301 2008-04-21  Bruno Haible  <bruno@clisp.org>
72303         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
72304         Patch by Alain Guibert.
72306 2008-04-21  Bruno Haible  <bruno@clisp.org>
72308         Fix test failures on mingw.
72309         * tests/test-xstrtol.c (print_no_progname): New function.
72310         (main): Install it in error_print_progname hook.
72311         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
72312         * tests/test-xstrtoimax.sh: Likewise.
72313         * tests/test-xstrtoumax.sh: Likewise.
72315 2008-04-21  Bruno Haible  <bruno@clisp.org>
72317         Fix test failure on mingw.
72318         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
72320 2008-04-21  Bruno Haible  <bruno@clisp.org>
72322         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
72323         Actually assign a value.
72325 2008-04-20  Bruno Haible  <bruno@clisp.org>
72327         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
72328         take 2.
72329         * lib/canonicalize.c (canonicalize_file_name): Elide if the
72330         'canonicalize-lgpl' module is also used.
72331         * lib/canonicalize-lgpl.c: Undo last change.
72332         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
72334 2008-04-20  Bruno Haible  <bruno@clisp.org>
72336         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
72337         config.h. Provide _mkdir based fallback for mingw.
72338         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
72339         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
72340         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
72341         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
72342         rather than defining mkdir in config.h.
72343         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
72344         (gl_SYS_STAT_H_DEFAULTS): New macro.
72345         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
72346         HAVE_IO_H any more.
72347         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
72348         HAVE_DECL_MKDIR and HAVE_IO_H.
72350 2008-04-20  Bruno Haible  <bruno@clisp.org>
72352         * lib/isapipe.c: Port to native Windows platforms.
72354 2008-04-20  Bruno Haible  <bruno@clisp.org>
72356         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
72358 2008-04-21  Eric Blake  <ebb9@byu.net>
72360         Work around preprocessors that don't handle UINTMAX_MAX.
72361         * lib/memchr2.c (memchr2): Avoid embedded #if.
72362         Reported by Alain Guibert, fix suggested by Bruno Haible.
72364 2008-04-21  Simon Josefsson  <simon@josefsson.org>
72366         * doc/posix-functions/strftime.texi (strftime): Explain better
72367         Windows incompatibility.  Suggested by Micah Cowan
72368         <micah@cowan.name>.
72370 2008-04-20  Bruno Haible  <bruno@clisp.org>
72372         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
72373         unistr/u8-mblen.
72375 2008-04-20  Bruno Haible  <bruno@clisp.org>
72377         Fix test failure on platforms with non-GNU iconv.
72378         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
72379         (U_TO_U8): Use it, rather than u16_to_u8.
72380         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
72381         units at the end of the input string.
72382         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
72384 2008-04-20  Bruno Haible  <bruno@clisp.org>
72386         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
72387         when the resulting length is 0.
72388         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
72390 2008-04-20  Bruno Haible  <bruno@clisp.org>
72392         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
72393         works.
72394         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
72396 2008-04-20  Bruno Haible  <bruno@clisp.org>
72398         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
72399         * modules/tsearch-tests (configure.ac): Test for initstate function.
72401 2008-04-20  Bruno Haible  <bruno@clisp.org>
72403         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
72404         for nlink_t if missing.
72405         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
72407 2008-04-19  Bruno Haible  <bruno@clisp.org>
72409         Work around snprintf bug on Linux libc5.
72410         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
72411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
72412         gl_SNPRINTF_SIZE1.
72413         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72414         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
72415         that test failed.
72416         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
72417         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
72418         * modules/snprintf (Files): Add m4/printf.m4.
72419         * modules/vsnprintf (Files): Likewise.
72420         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
72421         * doc/posix-functions/vsnprintf.texi: Likewise.
72423 2008-04-19  Bruno Haible  <bruno@clisp.org>
72425         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
72426         from 0.0058 to less than 10^-7.
72428 2008-04-19  Bruno Haible  <bruno@clisp.org>
72430         Fix rounding when a precision is given.
72431         * lib/vasnprintf.c (is_borderline): New function.
72432         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
72433         9...9x.
72434         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
72435         %e, %g.
72436         * tests/test-vasprintf-posix.c (test_function): Likewise.
72437         * tests/test-snprintf-posix.h (test_function): Likewise.
72438         * tests/test-sprintf-posix.h (test_function): Likewise.
72439         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
72440         * tests/test-printf-posix.h (test_function): Likewise.
72441         * tests/test-printf-posix.output: Update.
72442         Reported by John Darrington <john@darrington.wattle.id.au> via
72443         Ben Pfaff <blp@cs.stanford.edu>.
72445 2008-04-18  Simon Josefsson  <simon@josefsson.org>
72447         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
72448         Suggested by Bruno Haible <bruno@clisp.org>.
72450 2008-04-17  Bruno Haible  <bruno@clisp.org>
72452         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
72453         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
72454         implementation.
72455         Patch by Bruce Merry <bmerry@gmail.com>.
72457 2008-04-17  Simon Josefsson  <simon@josefsson.org>
72459         * doc/posix-functions/strftime.texi (strftime): Mention that %e
72460         doesn't work under Windows.
72462 2008-04-16  Bruno Haible  <bruno@clisp.org>
72464         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
72465         New macros.
72466         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
72467         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
72468         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
72469         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
72470         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
72471         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
72472         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
72473         macros.
72474         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
72475         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
72476         Northern Sotho, Uighur.
72478 2008-04-16  Bruno Haible  <bruno@clisp.org>
72480         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
72481         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
72482         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
72483         Reported by Daniel Bergström <daniel@octocode.com>.
72485 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
72486             Bruno Haible  <bruno@clisp.org>
72488         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
72489         function.
72490         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
72491         New functions, mostly extracted from gl_locale_name_default.
72492         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
72494 2008-04-16  Eric Blake  <ebb9@byu.net>
72496         Adjust strtod detection to catch glibc 2.7 bug.
72497         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
72498         Reported by John Gatewood Ham.
72500 2008-04-16  Bruno Haible  <bruno@clisp.org>
72502         Add tentative support for Linux libc5.
72503         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
72504         * lib/fpurge.c (fpurge): Likewise.
72505         * lib/freadable.c (freadable): Likewise.
72506         * lib/freadahead.c (freadahead): Likewise.
72507         * lib/freading.c (freading): Likewise.
72508         * lib/freadptr.c (freadptr): Likewise.
72509         * lib/freadseek.c (freadptrinc): Likewise.
72510         * lib/fseeko.c (rpl_fseeko): Likewise.
72511         * lib/fseterr.c (fseterr): Likewise.
72512         * lib/fwritable.c (fwritable): Likewise.
72513         * lib/fwriting.c (fwriting): Likewise.
72514         Reported by Alain Guibert <alguibert+bts@free.fr>.
72516 2008-04-15  Bruno Haible  <bruno@clisp.org>
72518         * modules/mathl (configure.ac): Define module indicator.
72520 2008-04-15  Bruno Haible  <bruno@clisp.org>
72522         * lib/logl.c (logl): Remove unused variables.
72524 2008-04-15  Bruno Haible  <bruno@clisp.org>
72526         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
72527         fails.
72529 2008-04-15  Bruno Haible  <bruno@clisp.org>
72531         * lib/trim.c (trim2): Fix argument of isspace() macro.
72533 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
72535         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
72536         to 0.
72537         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
72539 2008-04-14  Bruno Haible  <bruno@clisp.org>
72541         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
72542         AC_LANG_PROGRAM argument.
72543         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
72544         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
72545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
72546         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72547         * m4/math_h.m4 (gl_MATH_H): Likewise.
72548         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
72549         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
72550         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
72551         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
72552         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72553         * m4/regex.m4 (gl_REGEX): Likewise.
72554         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
72555         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
72556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72557         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
72558         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72559         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72561         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
72563 2008-04-14  Jim Meyering  <meyering@redhat.com>
72565         test-strtod: fix typos: s/abs/fabs/
72566         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
72568 2008-04-13  Bruno Haible  <bruno@clisp.org>
72570         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
72571         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
72572         module is also used and while not building the reloc-wrapper.
72574 2008-04-13  Bruno Haible  <bruno@clisp.org>
72576         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
72578 2008-04-13  Bruno Haible  <bruno@clisp.org>
72580         Fix AIX compilation failure introduced on 2008-04-02.
72581         * tests/test-frexp.c (exp): Undefine before redefining.
72582         * tests/test-frexpl.c (exp): Likewise.
72584 2008-04-13  Bruno Haible  <bruno@clisp.org>
72586         Work around a HP-UX stdio bug.
72587         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
72588         * tests/test-ftello.c (main): Likewise.
72589         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
72590         * doc/posix-functions/ftello.texi: Likewise.
72592 2008-04-13  Bruno Haible  <bruno@clisp.org>
72594         Make test-signbit pass on HP-UX/hppa.
72595         * tests/test-signbit.c (minus_zerol): New variable.
72596         (test_signbitl): Use it.
72598 2008-04-13  Bruno Haible  <bruno@clisp.org>
72600         Make truncl work on OSF/1 4.0.
72601         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
72602         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
72603         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
72604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
72605         HAVE_DECL_TRUNCL.
72606         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
72607         HAVE_DECL_TRUNCL.
72608         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
72610 2008-04-13  Bruno Haible  <bruno@clisp.org>
72612         * lib/unictype.h: Remove trailing comma from enumeration definitions.
72614 2008-04-13  Bruno Haible  <bruno@clisp.org>
72616         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
72617         expression, so as to avoid HP-UX 11 cc compiler bug.
72619 2008-04-13  Bruno Haible  <bruno@clisp.org>
72621         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
72623 2008-04-13  Bruno Haible  <bruno@clisp.org>
72625         * lib/git-merge-changelog.c: Remove empty declaration outside of
72626         functions.
72628 2008-04-13  Bruno Haible  <bruno@clisp.org>
72630         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
72632 2008-04-13  Bruno Haible  <bruno@clisp.org>
72634         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
72635         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
72636         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
72637         also if it exists but lacks definitions of the SHUT_* macros.
72638         * modules/sys_socket (Description): Update.
72639         Reported by Elbert Pol <e.pol@chello.nl>.
72641 2008-04-13  Bruno Haible  <bruno@clisp.org>
72643         * lib/localcharset.c (OS2): Don't redefine if already defined.
72644         Reported by Elbert Pol <e.pol@chello.nl>.
72646 2008-04-13  Bruno Haible  <bruno@clisp.org>
72648         * lib/binary-io.h [__EMX__]: Include <io.h>.
72649         Reported by Elbert Pol <e.pol@chello.nl>.
72651 2008-04-12  Bruno Haible  <bruno@clisp.org>
72653         * lib/fpucw.h: Enable the definitions also for x86_64.
72654         Needed for NetBSD/x86_64.
72655         Reported by Thomas Klausner <tk@giga.or.at>.
72657 2008-04-12  Bruno Haible  <bruno@clisp.org>
72659         * tests/test-strtod.c: Include isnand.h.
72660         (main): Use isnand instead of isnan.
72661         Reported by Jim Meyering.
72663 2008-04-12  Bruno Haible  <bruno@clisp.org>
72665         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
72666         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72668 2008-04-12  Jim Meyering  <meyering@redhat.com>
72670         * m4/math_h.m4 (gl_MATH_H): Fix typos.
72672 2008-04-12  Bruno Haible  <bruno@clisp.org>
72674         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
72675         Reported by Elbert Pol <e.pol@chello.nl>.
72677 2008-04-12  Eric Blake  <ebb9@byu.net>
72679         Work around Solaris 10 math.h bug.
72680         * m4/math_h.m4 (gl_MATH_H): Check for bug.
72681         (gl_MATH_H_DEFAULTS): Set up default.
72682         * modules/math (Makefile.am): Replace new indicators.
72683         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
72684         * tests/test-math.c (main): Test this.
72685         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
72686         * doc/posix-headers/math.texi (math.h): Mention bug.
72687         Reported by Nelson H. F. Beebe and Jim Meyering.
72689 2008-04-11  Bruno Haible  <bruno@clisp.org>
72691         Adapt to future versions of Apple GCC.
72692         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
72693         Reported by Peter O'Gorman <peter@pogma.com>.
72695 2008-04-11  Bruno Haible  <bruno@clisp.org>
72697         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
72699 2008-04-11  Bruno Haible  <bruno@clisp.org>
72701         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
72703         * modules/getaddrinfo-tests (Makefile.am): Define
72704         test_getaddrinfo_LDADD.
72706 2008-04-11  Bruno Haible  <bruno@clisp.org>
72708         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
72709         (init): Fix syntax error.
72710         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
72711         is declared.
72713 2008-04-11  Bruno Haible  <bruno@clisp.org>
72715         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
72716         * modules/glob (Depends-on): Add stdbool.
72718 2008-04-11  Bruno Haible  <bruno@clisp.org>
72720         * lib/trim.c: Include <string.h>.
72722 2008-04-11  Eric Blake  <ebb9@byu.net>
72724         Avoid compile failure on OS/2.
72725         * lib/regex_internal.h (internal_function): Disable optimization
72726         on OS/2 (__EMX__), where it caused compiler error.
72727         Reported by Elbert Pol.
72729 2008-04-11  Bruno Haible  <bruno@clisp.org>
72731         Flush the standard error stream before aborting. Needed on mingw.
72732         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
72733         * tests/test-array_list.c (ASSERT): Likewise.
72734         * tests/test-array_oset.c (ASSERT): Likewise.
72735         * tests/test-avltree_list.c (ASSERT): Likewise.
72736         * tests/test-avltree_oset.c (ASSERT): Likewise.
72737         * tests/test-avltreehash_list.c (ASSERT): Likewise.
72738         * tests/test-binary-io.c (ASSERT): Likewise.
72739         * tests/test-byteswap.c (ASSERT): Likewise.
72740         * tests/test-c-ctype.c (ASSERT): Likewise.
72741         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
72742         * tests/test-c-strcasestr.c (ASSERT): Likewise.
72743         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
72744         * tests/test-c-strstr.c (ASSERT): Likewise.
72745         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
72746         * tests/test-canonicalize.c (ASSERT): Likewise.
72747         * tests/test-carray_list.c (ASSERT): Likewise.
72748         * tests/test-ceilf1.c (ASSERT): Likewise.
72749         * tests/test-ceilf2.c (ASSERT): Likewise.
72750         * tests/test-ceill.c (ASSERT): Likewise.
72751         * tests/test-count-one-bits.c (ASSERT): Likewise.
72752         * tests/test-fbufmode.c (ASSERT): Likewise.
72753         * tests/test-fflush2.c (ASSERT): Likewise.
72754         * tests/test-floorf1.c (ASSERT): Likewise.
72755         * tests/test-floorf2.c (ASSERT): Likewise.
72756         * tests/test-floorl.c (ASSERT): Likewise.
72757         * tests/test-fopen.c (ASSERT): Likewise.
72758         * tests/test-fpending.c (ASSERT): Likewise.
72759         * tests/test-fprintf-posix.c (ASSERT): Likewise.
72760         * tests/test-fpurge.c (ASSERT): Likewise.
72761         * tests/test-freadable.c (ASSERT): Likewise.
72762         * tests/test-freadahead.c (ASSERT): Likewise.
72763         * tests/test-freading.c (ASSERT): Likewise.
72764         * tests/test-freadptr.c (ASSERT): Likewise.
72765         * tests/test-freadptr2.c (ASSERT): Likewise.
72766         * tests/test-freadseek.c (ASSERT): Likewise.
72767         * tests/test-freopen.c (ASSERT): Likewise.
72768         * tests/test-frexp.c (ASSERT): Likewise.
72769         * tests/test-frexpl.c (ASSERT): Likewise.
72770         * tests/test-fseek.c (ASSERT): Likewise.
72771         * tests/test-fseeko.c (ASSERT): Likewise.
72772         * tests/test-fstrcmp.c (ASSERT): Likewise.
72773         * tests/test-ftell.c (ASSERT): Likewise.
72774         * tests/test-ftello.c (ASSERT): Likewise.
72775         * tests/test-func.c (ASSERT): Likewise.
72776         * tests/test-fwritable.c (ASSERT): Likewise.
72777         * tests/test-fwriting.c (ASSERT): Likewise.
72778         * tests/test-getdelim.c (ASSERT): Likewise.
72779         * tests/test-getline.c (ASSERT): Likewise.
72780         * tests/test-i-ring.c (ASSERT): Likewise.
72781         * tests/test-iconv-utf.c (ASSERT): Likewise.
72782         * tests/test-iconv.c (ASSERT): Likewise.
72783         * tests/test-isfinite.c (ASSERT): Likewise.
72784         * tests/test-isnand.c (ASSERT): Likewise.
72785         * tests/test-isnanf.c (ASSERT): Likewise.
72786         * tests/test-isnanl.h (ASSERT): Likewise.
72787         * tests/test-ldexpl.c (ASSERT): Likewise.
72788         * tests/test-linked_list.c (ASSERT): Likewise.
72789         * tests/test-linkedhash_list.c (ASSERT): Likewise.
72790         * tests/test-localename.c (ASSERT): Likewise.
72791         * tests/test-lseek.c (ASSERT): Likewise.
72792         * tests/test-mbscasecmp.c (ASSERT): Likewise.
72793         * tests/test-mbscasestr1.c (ASSERT): Likewise.
72794         * tests/test-mbscasestr2.c (ASSERT): Likewise.
72795         * tests/test-mbscasestr3.c (ASSERT): Likewise.
72796         * tests/test-mbscasestr4.c (ASSERT): Likewise.
72797         * tests/test-mbschr.c (ASSERT): Likewise.
72798         * tests/test-mbscspn.c (ASSERT): Likewise.
72799         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
72800         * tests/test-mbspbrk.c (ASSERT): Likewise.
72801         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
72802         * tests/test-mbsrchr.c (ASSERT): Likewise.
72803         * tests/test-mbsspn.c (ASSERT): Likewise.
72804         * tests/test-mbsstr1.c (ASSERT): Likewise.
72805         * tests/test-mbsstr2.c (ASSERT): Likewise.
72806         * tests/test-mbsstr3.c (ASSERT): Likewise.
72807         * tests/test-memchr2.c (ASSERT): Likewise.
72808         * tests/test-memmem.c (ASSERT): Likewise.
72809         * tests/test-open.c (ASSERT): Likewise.
72810         * tests/test-printf-frexp.c (ASSERT): Likewise.
72811         * tests/test-printf-frexpl.c (ASSERT): Likewise.
72812         * tests/test-printf-posix.c (ASSERT): Likewise.
72813         * tests/test-quotearg.c (ASSERT): Likewise.
72814         * tests/test-rbtree_list.c (ASSERT): Likewise.
72815         * tests/test-rbtree_oset.c (ASSERT): Likewise.
72816         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
72817         * tests/test-round1.c (ASSERT): Likewise.
72818         * tests/test-roundf1.c (ASSERT): Likewise.
72819         * tests/test-roundl.c (ASSERT): Likewise.
72820         * tests/test-signbit.c (ASSERT): Likewise.
72821         * tests/test-sleep.c (ASSERT): Likewise.
72822         * tests/test-snprintf-posix.c (ASSERT): Likewise.
72823         * tests/test-snprintf.c (ASSERT): Likewise.
72824         * tests/test-sprintf-posix.c (ASSERT): Likewise.
72825         * tests/test-stat-time.c (ASSERT): Likewise.
72826         * tests/test-strcasestr.c (ASSERT): Likewise.
72827         * tests/test-strerror.c (ASSERT): Likewise.
72828         * tests/test-striconv.c (ASSERT): Likewise.
72829         * tests/test-striconveh.c (ASSERT): Likewise.
72830         * tests/test-striconveha.c (ASSERT): Likewise.
72831         * tests/test-strsignal.c (ASSERT): Likewise.
72832         * tests/test-strstr.c (ASSERT): Likewise.
72833         * tests/test-strtod.c (ASSERT): Likewise.
72834         * tests/test-trunc1.c (ASSERT): Likewise.
72835         * tests/test-trunc2.c (ASSERT): Likewise.
72836         * tests/test-truncf1.c (ASSERT): Likewise.
72837         * tests/test-truncf2.c (ASSERT): Likewise.
72838         * tests/test-truncl.c (ASSERT): Likewise.
72839         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
72840         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
72841         * tests/test-vasnprintf.c (ASSERT): Likewise.
72842         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
72843         * tests/test-vasprintf.c (ASSERT): Likewise.
72844         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
72845         * tests/test-vprintf-posix.c (ASSERT): Likewise.
72846         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
72847         * tests/test-vsnprintf.c (ASSERT): Likewise.
72848         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
72849         * tests/test-wcwidth.c (ASSERT): Likewise.
72850         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
72851         * tests/test-xprintf-posix.c (ASSERT): Likewise.
72852         * tests/test-xvasprintf.c (ASSERT): Likewise.
72853         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
72854         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
72855         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
72856         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
72857         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
72858         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
72859         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
72860         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
72861         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
72862         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
72863         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
72864         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
72865         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
72866         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
72867         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
72868         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
72869         * tests/unictype/test-block_list.c (ASSERT): Likewise.
72870         * tests/unictype/test-block_of.c (ASSERT): Likewise.
72871         * tests/unictype/test-block_test.c (ASSERT): Likewise.
72872         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
72873         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
72874         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
72875         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
72876         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
72877         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
72878         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
72879         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
72880         * tests/unictype/test-combining.c (ASSERT): Likewise.
72881         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
72882         * tests/unictype/test-digit.c (ASSERT): Likewise.
72883         * tests/unictype/test-mirror.c (ASSERT): Likewise.
72884         * tests/unictype/test-numeric.c (ASSERT): Likewise.
72885         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
72886         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
72887         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
72888         * tests/unictype/test-scripts.c (ASSERT): Likewise.
72889         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
72890         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
72891         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
72892         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
72893         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
72894         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
72895         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
72896         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
72897         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
72898         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
72899         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
72900         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
72901         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
72902         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
72903         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
72904         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
72905         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
72906         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
72907         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
72908         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
72909         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
72910         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
72911         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
72912         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
72913         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
72914         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
72915         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
72916         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
72917         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
72918         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
72919         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
72920         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
72921         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
72922         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
72923         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
72924         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
72925         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
72926         Reported by Eric Blake.
72928 2008-04-11  Bruno Haible  <bruno@clisp.org>
72930         * lib/wchar.in.h: Tweak comment.
72932 2008-04-11  Bruno Haible  <bruno@clisp.org>
72934         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
72935         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
72936         gl_COMMON.
72937         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
72939 2008-04-11  Bruno Haible  <bruno@clisp.org>
72941         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
72943 2008-04-11  Simon Josefsson  <simon@josefsson.org>
72945         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
72946         of attempting to use non-existing /dev/*random.  Based on patch
72947         from Adam Strzelecki <ono@java.pl> in
72948         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
72950 2008-04-08  Bruno Haible  <bruno@clisp.org>
72952         Add tentative support for emx+gcc.
72953         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
72954         * lib/fpurge.c (fpurge): Likewise.
72955         * lib/freadable.c (freadable): Likewise.
72956         * lib/freadahead.c (freadahead): Likewise.
72957         * lib/freading.c (freading): Likewise.
72958         * lib/freadptr.c (freadptr): Likewise.
72959         * lib/freadseek.c (freadptrinc): Likewise.
72960         * lib/fseeko.c (rpl_fseeko): Likewise.
72961         * lib/fseterr.c (fseterr): Likewise.
72962         * lib/fwritable.c (fwritable): Likewise.
72963         * lib/fwriting.c (fwriting): Likewise.
72964         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
72966 2008-04-09  Eric Blake  <ebb9@byu.net>
72968         Avoid some autoconf warnings.
72969         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
72970         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
72971         * m4/afs.m4 (gl_AFS): Likewise.
72972         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
72973         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
72974         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
72975         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
72976         (gl_INTEGER_TYPE_SUFFIX): Likewise.
72977         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
72978         (AC_CHECK_DECLS_ONCE): Likewise.
72979         Rename file...
72980         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
72981         gnulib-tool requires autoconf 2.59 or better.
72982         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
72984 2008-04-08  Eric Blake  <ebb9@byu.net>
72986         Use 'git describe --match' if present (added in git 1.5.5).
72987         * build-aux/git-version-gen: Limit result to tags that match 'v*'
72988         if possible.
72990 2008-04-08  Bruno Haible  <bruno@clisp.org>
72992         Add tentative support for OpenServer.
72993         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
72994         _ptr, _cnt.
72995         * lib/fpurge.c (fpurge): Likewise.
72996         * lib/freadable.c (freadable): Likewise.
72997         * lib/freadahead.c (freadahead): Likewise.
72998         * lib/freading.c (freading): Likewise.
72999         * lib/freadptr.c (freadptr): Likewise.
73000         * lib/freadseek.c (freadptrinc): Likewise.
73001         * lib/fseeko.c (rpl_fseeko): Likewise.
73002         * lib/fseterr.c (fseterr): Likewise.
73003         * lib/fwritable.c (fwritable): Likewise.
73004         * lib/fwriting.c (fwriting): Likewise.
73005         Reported by Roger Cornelius <rac@tenzing.org> and
73006         Brian K. White <brian@aljex.com>.
73008 2008-04-06  Jim Meyering  <meyering@redhat.com>
73010         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
73012 2008-04-06  Bruno Haible  <bruno@clisp.org>
73014         Avoid possible error with non-ASCII bytes in UTF-8 locales.
73015         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
73016         * tests/test-printf-posix.sh: Likewise.
73017         * tests/test-vfprintf-posix.sh: Likewise.
73018         * tests/test-vprintf-posix.sh: Likewise.
73019         * tests/test-xprintf-posix.sh: Likewise.
73021 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73023         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
73024         hide error from 'ls', needed on OS/2.
73025         Report by Elbert Pol <elbert.pol@gmail.com>.
73027 2008-04-04  Eric Blake  <ebb9@byu.net>
73029         Make test-fseeko.c failures meaningful.
73030         * tests/test-fseeko.c: Print line number on failure.
73031         * tests/test-fseek.c: Likewise.
73032         Reported by Nelson H. F. Beebe.
73034         Improve strtod bug detection check.
73035         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
73036         required for Solaris 10.
73037         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
73039 2008-04-04  Bruno Haible  <bruno@clisp.org>
73041         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
73042         by m4/setenv.m4.
73044 2008-04-03  Eric Blake  <ebb9@byu.net>
73046         Ensure sane .version contents.
73047         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
73048         version string.
73049         * build-aux/git-version-gen: Improve documentation.
73051         Make GNU make output nicer.
73052         * top/GNUmakefile [!_have-Makefile]: Add dependency on
73053         MAKECMDGOALS to enforce message for all command line targets.  Set
73054         srcdir for use in maint.mk.
73056         Another maintainer tweak.
73057         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
73058         a target that regenerates version.
73060 2008-04-03  Jim Meyering  <meyering@redhat.com>
73062         vc-list-files: don't cause coreutils "make po-check" failure
73063         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
73065 2008-04-03  Eric Blake  <ebb9@byu.net>
73067         Allow VPATH usage of vc-list-files.
73068         * build-aux/vc-list-files (scriptversion): Add timestamp.
73069         (options): Add --help, --version, -C.
73070         (CVS): Support installed cvsu.
73072 2008-04-02  Bruno Haible  <bruno@clisp.org>
73074         Avoid some "statement with no effect" warnings from gcc.
73075         * tests/test-wctype.c (main): Explicitly ignore unused values.
73076         Reported by Jim Meyering.
73078 2008-04-02  Jim Meyering  <meyering@redhat.com>
73080         Avoid some warnings from "gcc -Wshadow".
73081         * tests/test-frexp.c (exp): Define to a different identifier.
73082         * tests/test-frexpl.c (exp): Likewise.
73084 2008-04-03  Jim Meyering  <meyering@redhat.com>
73086         bootstrap: remove dangling *.[ch] symlinks from lib
73087         * build-aux/bootstrap [dangling symlink removal]: Move find's
73088         -depth option to precede all others, to avoid a warning.
73089         Remove *.[ch] files too, and from "$source_base" (usually lib/).
73091 2008-04-02  Bruno Haible  <bruno@clisp.org>
73093         Avoid some warnings from "gcc -Wshadow".
73094         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
73095         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
73096         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
73097         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
73098         Reported by Jim Meyering.
73100 2008-04-01  Bruno Haible  <bruno@clisp.org>
73102         Fix test to work on IRIX 6.5 with cc.
73103         * tests/test-math.c (numeric_equal): New function.
73104         (main): Use it.
73106 2008-04-01  Bruno Haible  <bruno@clisp.org>
73108         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
73110 2008-04-01  Bruno Haible  <bruno@clisp.org>
73112         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
73113         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
73114         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
73115         (Depends-on): Remove math.
73117         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
73118         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
73119         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
73120         (Depends-on): Remove math.
73122         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
73123         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
73124         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
73125         (Depends-on): Remove math.
73126         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
73127         (Depends-on): Remove math.
73129         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
73130         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
73131         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
73132         (Depends-on): Remove math.
73133         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
73134         (Depends-on): Remove math.
73136         * tests/test-round1.c: Include nan.h.
73137         (main): Use NaNd instead of NAN.
73138         * modules/round-tests (Files): Add tests/nan.h.
73140         * tests/test-trunc1.c: Include nan.h.
73141         (main): Use NaNd instead of NAN.
73142         * modules/trunc-tests (Files): Add tests/nan.h.
73144         * tests/test-roundf1.c: Include nan.h.
73145         (main): Use NaNf instead of NAN.
73146         * modules/roundf-tests (Files): Add tests/nan.h.
73148         * tests/test-truncf1.c: Include nan.h.
73149         (main): Use NaNf instead of NAN.
73150         * modules/truncf-tests (Files): Add tests/nan.h.
73152         * tests/test-ceilf1.c: Include nan.h.
73153         (main): Use NaNf instead of NAN.
73154         * modules/ceilf-tests (Files): Add tests/nan.h.
73156         * tests/test-floorf1.c: Include nan.h.
73157         (main): Use NaNf instead of NAN.
73158         * modules/floorf-tests (Files): Add tests/nan.h.
73160         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
73161         (main): Use NaNf instead of NAN.
73162         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
73164         * tests/test-isnand.c: Include nan.h instead of <math.h>.
73165         (main): Use NaNd instead of NAN.
73166         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
73168         * tests/test-frexp.c: Include nan.h.
73169         (main): Use NaNd instead of NAN.
73170         * modules/frexp-tests (Files): Add tests/nan.h.
73172         * lib/isnan.c: Don't include <math.h>.
73173         (FUNC): Don't use NAN macro.
73174         * modules/isnand-nolibm (Depends-on): Remove math.
73175         * modules/isnanf-nolibm (Depends-on): Remove math.
73176         * modules/isnanl (Depends-on): Remove math.
73177         * modules/isnanl-nolibm (Depends-on): Remove math.
73179         * tests/nan.h: New file.
73181 2008-04-01  Eric Blake  <ebb9@byu.net>
73183         Fix typos.
73184         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
73185         values to be the right type.
73187         For now, cater to gnulib strtod inaccuracies.
73188         * tests/test-strtod.c (main): Allow 1-ulp error on expected
73189         fractional results.  While not as nice from a QoI perspective, it
73190         is a quicker patch than correctly implementing decimal to binary
73191         rounding.
73193 2008-03-31  Eric Blake  <ebb9@byu.net>
73195         Guarantee a definition of NAN.
73196         * lib/math.in.h (NAN): Define if missing.
73197         * tests/test-math.c (main): Test it.
73198         * doc/posix-headers/math.texi (math.h): Document this.
73199         * lib/isnan.c (rpl_isnand): Use it.
73200         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
73201         * tests/test-floorf1.c (NaN): Likewise.
73202         * tests/test-frexp.c (NaN): Likewise.
73203         * tests/test-isnand.c (NaN): Likewise.
73204         * tests/test-isnanf.c (NaN): Likewise.
73205         * tests/test-round1.c (NaN): Likewise.
73206         * tests/test-roundf1.c (NaN): Likewise.
73207         * tests/test-snprintf-posix.h (NaN): Likewise.
73208         * tests/test-sprintf-posix.h (NaN): Likewise.
73209         * tests/test-trunc1.c (NaN): Likewise.
73210         * tests/test-truncf1.c (NaN): Likewise.
73211         * tests/test-vasnprintf-posix.c (NaN): Likewise.
73212         * tests/test-vasprintf-posix.c (NaN): Likewise.
73213         * modules/isnand-nolibm (Depends-on): Add math.
73214         * modules/isnanf-nolibm (Depends-on): Likewise.
73215         * modules/isnanl (Depends-on): Likewise.
73216         * modules/isnanl-nolibm (Depends-on): Likewise.
73217         * modules/snprintf-posix-tests (Depends-on): Likewise.
73218         * modules/sprintf-posix-tests (Depends-on): Likewise.
73219         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
73220         * modules/vsprintf-posix-tests (Depends-on): Likewise.
73221         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
73222         * modules/vasprintf-posix-tests (Depends-on): Likewise.
73224 2008-03-31  Bruno Haible  <bruno@clisp.org>
73226         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
73227         * doc/posix-functions/strtod.texi: Likewise.
73229 2008-03-31  Bruno Haible  <bruno@clisp.org>
73231         * tests/test-strtod.c (main): Don't use C99 syntax.
73233 2008-03-31  Bruno Haible  <bruno@clisp.org>
73235         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
73236         Reported by Eric Blake.
73238 2008-03-31  Jim Meyering  <meyering@redhat.com>
73240         Don't compare actual signbit return values.
73241         * tests/test-strtod.c (main): Rather, compare only their
73242         zero/non-zero nature.
73244 2008-03-31  Eric Blake  <ebb9@byu.net>
73246         More strtod documentation.
73247         * doc/posix-functions/strtod.texi (strtod): Interpret more test
73248         failures as distinct bugs.
73250 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
73252         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
73253         Problem reported by Erik Benada in
73254         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
73256 2008-03-30  Bruno Haible  <bruno@clisp.org>
73258         * tests/test-strtod.c: Add comments about which assertion fails on which
73259         platform.
73260         * doc/posix-functions/strtod.texi: Add info about many more platforms.
73262 2008-03-30  Eric Blake  <ebb9@byu.net>
73264         Test signbit behavior on zeros.
73265         * tests/test-signbit.c (test_signbitf): Add tests for zero.
73266         (test_signbitd, test_signbitl): Likewise.
73268         More strtod touchups.
73269         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
73270         sign of negative underflow, for now.  Use .5, not .1.
73271         * doc/posix-functions/strtod.texi (strtod): Mention these
73272         limitations.
73273         Reported by Jim Meyering.
73275 2008-03-30  Bruno Haible  <bruno@clisp.org>
73277         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
73278         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
73280 2008-03-30  Bruno Haible  <bruno@clisp.org>
73282         Avoid failure when attempting to return empty iconv results on some
73283         platforms.
73284         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
73285         allocation, don't report ENOMEM when the resulting string is empty.
73287 2008-03-30  Bruno Haible  <bruno@clisp.org>
73289         Fix buffer overrun.
73290         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
73291         Don't consider the width for tmp_length. Check count against tmp_length
73292         before doing the padding. Ensure enough allocation during padding.
73294 2008-03-30  Eric Blake  <ebb9@byu.net>
73296         strtod touchups.
73297         * lib/strtod.c (strtod): Avoid compiler warnings.
73298         Reported by Jim Meyering.
73300 2008-03-30  Bruno Haible  <bruno@clisp.org>
73302         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
73303         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
73304         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
73305         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
73306         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
73307         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
73308         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
73309         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
73311         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
73312         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
73313         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
73314         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
73315         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
73316         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
73317         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
73318         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
73320         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
73321         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
73322         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
73323         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
73324         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
73325         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
73326         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
73327         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
73329         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
73330         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
73332         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
73333         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
73335         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
73336         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
73338         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
73339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
73340         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
73342         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
73343         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
73344         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
73346         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
73347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
73348         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
73350         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
73351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
73352         * modules/vasprintf (Depends-on): Add EOVERFLOW.
73354         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
73355         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
73356         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
73357         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
73358         (Depends-on): Add EOVERFLOW.
73359         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
73360         (Depends-on): Add EOVERFLOW.
73361         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
73362         (Depends-on): Add EOVERFLOW.
73363         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
73364         (Depends-on): Add EOVERFLOW.
73365         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
73366         (Depends-on): Add EOVERFLOW.
73367         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
73368         (Depends-on): Add EOVERFLOW.
73369         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
73370         (Depends-on): Add EOVERFLOW.
73371         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
73372         (Depends-on): Add EOVERFLOW.
73374         * lib/sprintf.c (EOVERFLOW): Remove fallback.
73375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
73376         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
73378         * lib/snprintf.c (EOVERFLOW): Remove fallback.
73379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
73380         * modules/snprintf (Depends-on): Add EOVERFLOW.
73382         * lib/poll.c (EOVERFLOW): Remove fallback.
73383         * modules/poll (Depends-on): Add EOVERFLOW.
73385         * lib/getugroups.c (EOVERFLOW): Remove fallback.
73386         * modules/getugroups (Depends-on): Add EOVERFLOW.
73388         * lib/getdelim.c (EOVERFLOW): Remove fallback.
73389         * modules/getdelim (Depends-on): Add EOVERFLOW.
73391         * lib/ftell.c (EOVERFLOW): Remove fallback.
73392         * modules/ftell (Depends-on): Add EOVERFLOW.
73394         * lib/fprintf.c (EOVERFLOW): Remove fallback.
73395         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
73396         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
73398         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
73400         * modules/EOVERFLOW-tests: New file.
73401         * tests/test-EOVERFLOW.c: New file.
73403         * modules/EOVERFLOW: New file.
73404         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
73406 2008-03-30  Bruno Haible  <bruno@clisp.org>
73408         Fix bug introduced on 2007-06-10.
73409         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
73410         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
73412 2008-03-30  Bruno Haible  <bruno@clisp.org>
73414         Improve freadseek's efficiency after ungetc.
73415         * lib/freadseek.c: Include freadahead.h.
73416         (freadptrinc): New function, extracted from freadseek.
73417         (freadseek): Use it in a loop. Use freadahead to determine the number
73418         of loop iterations.
73419         * modules/freadseek (Depends-on): Add freadahead.
73420         (configure.ac): Require AC_C_INLINE.
73422 2008-03-30  Bruno Haible  <bruno@clisp.org>
73424         * lib/freadseek.c (freadseek): Don't ignore the return value of
73425         freadptr.
73427 2008-03-29  Eric Blake  <ebb9@byu.net>
73429         Add hex float support.
73430         * modules/strtod (Depends-on): Add c-ctype.
73431         (Link): Mention POW_LIB.
73432         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
73433         whitespace between 'e' and exponent.
73434         * tests/test-strtod.c (main): Enable hex float tests.
73435         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
73436         now provides.
73438         Document various strtod bugs, with some fixes.
73439         * doc/posix-functions/strtod.texi (strtod): Document bugs with
73440         "-0x", "inf", "nan", and hex constants.
73441         * doc/posix-functions/atof.texi (atof): Likewise.
73442         * modules/stdlib (Makefile.am): Support strtod.
73443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
73444         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
73445         detect additional strtod bugs.
73446         * lib/stdlib.in.h (rpl_strtod): Add declarations.
73447         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
73448         bool where appropriate.  Parse 'inf' and 'nan'.
73449         * tests/test-strtod.c: New file.
73450         * modules/strtod (Depends-on): Add stdbool, stdlib.
73451         (configure.ac): Turn on module indicator.
73452         * modules/strtod-tests: New module.
73454 2008-03-29  Eric Blake  <ebb9@byu.net>
73456         Fix ftell on mingw.
73457         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
73458         * modules/ftell-tests (Depends-on): Add binary-io.
73459         * modules/ftello-tests (Depends-on): Likewise.
73460         * tests/test-ftell.c (main): Enhance test to cover behavior after
73461         ungetc.  Enforce binary mode.
73462         * tests/test-ftello.c (main): Likewise.
73464         Pass test-freadseek on cygwin.
73465         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
73466         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
73467         ungetc buffer.
73469         * tests/test-fflush2.c (main): Fix typo.
73471 2008-03-29  Bruno Haible  <bruno@clisp.org>
73473         * tests/test-fflush2.c (main): Temporarily disable the contents of
73474         this test.
73475         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
73476         Reported by Eric Blake.
73478 2008-03-28  Simon Josefsson  <simon@josefsson.org>
73480         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
73481         (GC_SHA224_DIGEST_SIZE): Add.
73483         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
73484         (gc_hash_digest_length): Likewise.
73485         (gc_hash_buffer): Likewise.
73487 2008-03-25  Bruno Haible  <bruno@clisp.org>
73489         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
73490         detail which gettext release to use.
73491         Reported by Simon Josefsson.
73493 2008-03-26  Jim Meyering  <meyering@redhat.com>
73495         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
73496         * modules/gnumakefile (clean-GNUmakefile): Also, use
73497         test ... && ... || : syntax rather than if-then ... fi.
73499         gnumakefile: Don't double-quote-expand $(VPATH) value.
73500         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
73502 2008-03-24  Eric Blake  <ebb9@byu.net>
73504         Alter GNUmakefile to install into top directory.
73505         * modules/maintainer-makefile: Split, and add dependency...
73506         * modules/gnumakefile: to this new module.
73507         * build-aux/GNUmakefile: Move...
73508         * top/GNUmakefile: ...here.
73509         * build-aux/maint.mk: Move...
73510         * top/maint.mk: ...here.
73511         * MODULES.html.sh (Support for maintaining...): Document new
73512         module.
73514 2008-03-23  Bruno Haible  <bruno@clisp.org>
73516         * gnulib-tool: New options --vc-files, --no-vc-files.
73517         (func_usage): Document them.
73518         (vc_files): New variable.
73519         (func_import): Consider vc_files.
73520         (func_create_testdir): Set vc_files to empty.
73521         Suggested by Jim Meyering and Karl Berry.
73523 2008-03-23  Bruno Haible  <bruno@clisp.org>
73525         Fix regex compilation error on HP-UX 11.
73526         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
73527         * modules/regex (Files): Add m4/mbstate_t.m4.
73528         Reported by Ton Voon <ton.voon@altinity.com>.
73530 2008-03-23  Bruno Haible  <bruno@clisp.org>
73532         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
73534 2008-03-23  Eric Blake  <ebb9@byu.net>
73535             Bruno Haible  <bruno@clisp.org>
73537         Install files from top/ in the destination directory.
73538         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
73539         augmentation also for the files from top/.
73540         (func_import, func_create_testdir): Rewrite file names:
73541         top/filename -> filename.
73543 2008-03-23  Bruno Haible  <bruno@clisp.org>
73545         Tweak "gnulib --version" output.
73546         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
73548 2008-03-23  Bruno Haible  <bruno@clisp.org>
73550         Tweak "gnulib --version" output.
73551         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
73552         rather than contents of ChangeLog, when possible.
73554 2008-03-21  Eric Blake  <ebb9@byu.net>
73556         More --version tweaks.
73557         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
73558         date of last ChangeLog entry.
73560 2008-03-21  Jim Meyering  <meyering@redhat.com>
73562         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
73564 2008-03-20  Eric Blake  <ebb9@byu.net>
73566         VPATH fix.
73567         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
73569 2008-03-20  Simon Josefsson  <simon@josefsson.org>
73571         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
73572         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
73574 2008-03-20  Eric Blake  <ebb9@byu.net>
73576         Sync GNUmakefile with coreutils.
73577         * build-aux/GNUmakefile (have-Makefile): Rename...
73578         (_have-Makefile): ...to this, for namespace consideration.
73579         (GNUmakefile.cfg): Include, if present.
73580         (_autoreconf): Define a default.
73581         (_is-dist-target): New rule for rebuilds to pick up intra-release
73582         version.
73583         (maint-cfg.mk): Rename...
73584         (cfg.mk): ...to this.
73586 2008-03-18  Jim Meyering  <meyering@redhat.com>
73588         New script and module: mktempd
73589         * MODULES.html.sh (maint+release support): Add mktempd.
73590         * build-aux/mktempd: New file.
73591         * modules/mktempd: New file.
73593 2008-03-15  Jim Meyering  <meyering@redhat.com>
73595         Undo last change.
73596         * lib/sha1.c, lib/md5.c: 63 != ~63.
73597         Reported by Andreas Schwab.
73599         sha1.c, md5.c: Hoist a redundant expression.
73600         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
73601         "ctx->buflen" only once, before calling *_process_block.
73602         * lib/md5.c (md5_process_bytes): Likewise.
73604 2008-03-14  Eric Blake  <ebb9@byu.net>
73606         Bump copyright year in files generated by gnulib-tool.
73607         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
73608         gnulib-tool, rather than hard-coding it.
73610         Fix 'gnulib-tool --version' output to work with git.
73611         * gnulib-tool (func_gnulib_dir): New function, extracted from...
73612         (startup): ...here.
73613         (func_version): Use it to invoke git-version-gen, rather than
73614         relying on CVS keyword expansion.  Modernize wording.
73615         (cvsdatestamp, last_checkin_date, version): Kill unused
73616         variables.
73618 2008-03-12  Jim Meyering  <meyering@redhat.com>
73620         Recognize optional cast of the argument to free.
73621         * build-aux/useless-if-before-free: Update regexps.
73623         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
73625 2008-03-11  Bruno Haible  <bruno@clisp.org>
73627         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
73628         by a single package.
73629         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
73630         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
73631         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
73632         Reported by Sam Steingold <sds@gnu.org>.
73634 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73636         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
73637         repositories.
73639 2008-03-11  Bruno Haible  <bruno@clisp.org>
73641         Avoid conflicts between local macro definitions.
73642         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73643         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
73645 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
73646             Bruno Haible  <bruno@clisp.org>
73648         Make va_copy work with some version of xlc on AIX 5.1.
73649         * lib/stdarg.in.h: New file.
73650         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
73651         On AIX, use a <stdarg.h> file substitute.
73652         * modules/stdarg (Files): Add lib/stdarg.in.h.
73653         (Depends-on): Add include_next.
73654         (Makefile.am): Build a stdarg.h substitute if requested.
73655         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
73657 2008-03-10  Bruno Haible  <bruno@clisp.org>
73659         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
73660         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73661         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
73663 2008-03-10  Bruno Haible  <bruno@clisp.org>
73665         * modules/stdlib (Depends-on): Add include_next, remove
73666         absolute-header.
73668 2008-03-09  Bruno Haible  <bruno@clisp.org>
73670         * lib/freadahead.h (freadahead): Document more precisely.
73671         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
73672         the sum of both buffer sizes.
73673         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
73674         * NEWS: Document the change.
73676 2008-03-09  Bruno Haible  <bruno@clisp.org>
73678         Extend freadptr to return also the buffer size.
73679         * lib/freadptr.h (freadptr): Add sizep argument.
73680         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
73681         (freadptr): Add sizep argument. Determine buffer size like freadahead
73682         does.
73683         * tests/test-freadptr.c: Don't include freadahead.h.
73684         (main): Adapt for new calling convention of freadptr.
73685         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
73686         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
73687         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
73688         tests/test-freadptr2.sh.
73689         (Depends): Remove freadahead.
73690         (TESTS): Add test-freadptr2.sh.
73691         (check_PROGRAMS): Add test-freadptr2.
73693 2008-03-09  Bruno Haible  <bruno@clisp.org>
73695         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
73696         Report and solution by Simon Josefsson.
73698 2008-03-06  Bruno Haible  <bruno@clisp.org>
73700         Make fflush after ungetc work on BSD platforms.
73701         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
73702         * tests/test-fflush2.c: New file.
73703         * tests/test-fflush2.sh: New file.
73704         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
73705         tests/test-fflush2.c.
73706         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
73707         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
73709 2008-03-06  Eric Blake  <ebb9@byu.net>
73711         Likewise for ftello.
73712         * modules/ftello (Dependencies): Add extensions.
73713         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
73715 2008-03-06  Bruno Haible  <bruno@clisp.org>
73717         * modules/fseeko (Dependencies): Add extensions.
73718         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
73719         Needed on glibc systems.
73721 2008-03-06  Bruno Haible  <bruno@clisp.org>
73723         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
73724         email address.
73725         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
73727 2008-03-06  Bruno Haible  <bruno@clisp.org>
73729         * users.txt: Add libgnupdf.
73731 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
73733         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
73734         (Header File Substitutes, Function Substitutes,
73735         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
73736         (Build robot for gnulib): Fix typo.
73738 2008-03-06  Bruno Haible  <bruno@clisp.org>
73740         * doc/gnulib-tool.texi (VCS Issues): Small updates.
73741         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
73743 2008-03-06  Bruno Haible  <bruno@clisp.org>
73745         * doc/func.texi: New file, extracted from doc/gnulib.texi.
73746         * doc/gnulib.texi: Include it.
73748 2008-03-06  Simon Josefsson  <simon@josefsson.org>
73750         * modules/func (License): Change license to unlimited; there was
73751         no LGPL parts in the module anyway.
73753 2008-03-06  Simon Josefsson  <simon@josefsson.org>
73755         * modules/__func__: Renamed to modules/func.
73756         * modules/__func__-tests: Renamed to modules/func-tests.
73757         * tests/test-__func__.c: Renamed to tests/test-func.c.
73758         * m4/__func__.m4: Renamed to m4/func.m4.
73759         * doc/gnulib.texi (__func__): Section renamed to func.
73760         Suggested by Eric Blake <ebb9@byu.net>.
73762 2008-03-06  Simon Josefsson  <simon@josefsson.org>
73764         * doc/gnulib.texi (__func__): Use C99 terminology when talking
73765         about __func__.  Make example self-contained.  Suggested by Eric
73766         Blake <ebb9@byu.net>.
73768         * tests/test-__func__.c (main): Avoid extraneous () around __func.
73769         Suggested by Eric Blake <ebb9@byu.net>.
73771 2008-03-06  Simon Josefsson  <simon@josefsson.org>
73773         * modules/__func__: New file.
73774         * modules/__func__-tests: New file.
73775         * tests/test-__func__.c: New file.
73776         * m4/__func__.m4: New file.
73777         * doc/gnulib.texi (__func__): Document __func__ module.
73779 2008-03-05  Simon Josefsson  <simon@josefsson.org>
73781         * modules/byteswap (License): Re-license as LGPLv2+.
73783 2008-03-05  Simon Josefsson  <simon@josefsson.org>
73785         * doc/Makefile: Add pdf target.
73787 2008-03-05  Simon Josefsson  <simon@josefsson.org>
73789         * modules/inline (License): Use 'unlimited', since there are only
73790         *.m4 files in this module.
73792 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
73793             Bruno Haible  <bruno@clisp.org>
73795         Add support for HP C 7.1 on OpenVMS 8.3.
73796         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
73798 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
73800         Update VMS specifics.
73801         * lib/getopt.c [VMS]: Remove include of unixlib.h.
73803 2008-03-02  Jim Meyering  <meyering@redhat.com>
73805         Remove the last dependency on the "free" module.
73806         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
73807         Reported by Bob Proulx.
73809         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
73811         Remove useless "if" tests before free.  Deprecate "free" module.
73812         * doc/posix-functions/free.texi: Mention that this
73813         module is no longer useful.
73814         * modules/free (Notice): Say this module is obsolete.
73815         * modules/readutmp (Depends-on): Remove free.
73816         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
73817         * lib/putenv.c (putenv): Likewise.
73818         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
73819         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
73820         * tests/test-c-strcasestr.c (main): Likewise.
73821         * tests/test-c-strstr.c (main): Likewise.
73822         * tests/test-mbscasestr1.c (main): Likewise.
73823         * tests/test-mbscasestr2.c (main): Likewise.
73824         * tests/test-mbsstr1.c (main): Likewise.
73825         * tests/test-mbsstr2.c (main): Likewise.
73826         * tests/test-memmem.c (main): Likewise.
73827         * tests/test-strcasestr.c (main): Likewise.
73828         * tests/test-striconv.c (main): Likewise.
73829         * tests/test-striconveh.c (main): Likewise.
73830         * tests/test-striconveha.c (main): Likewise.
73831         * tests/test-strstr.c (main): Likewise.
73833         * build-aux/git-version-gen: Adjust a comment and the Usage string.
73835         bootstrap: sync from coreutils again
73836         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
73838 2008-03-01  Jim Meyering  <meyering@redhat.com>
73840         bootstrap: sync from coreutils
73841         * build-aux/bootstrap (update_po_files): Copy a .po file into place
73842         also when the target doesn't exist.
73844 2008-03-01  Eric Blake  <ebb9@byu.net>
73846         Fix bugs in last patch.
73847         * lib/memchr2.c (memchr2): Fix typo.
73848         * tests/test-memchr2.c: Test previous bug, and don't use GNU
73849         extension.
73850         Reported by Bruce Korb.
73852         New module 'memchr2'.
73853         * modules/memchr2: New file.
73854         * modules/memchr2-tests: Likewise.
73855         * lib/memchr2.h: Likewise.
73856         * lib/memchr2.c: Likewise, based on memchr.c.
73857         * tests/test-memchr2.c: New test.
73858         * MODULES.html.sh (String handling): Add memchr2.
73860 2008-02-29  Bruno Haible  <bruno@clisp.org>
73862         * modules/freadseek-tests: New file.
73863         * tests/test-freadseek.sh: New file.
73864         * tests/test-freadseek.c: New file.
73866         New module 'freadseek'.
73867         * modules/freadseek: New file.
73868         * lib/freadseek.h: New file.
73869         * lib/freadseek.c: New file.
73870         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
73872 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
73874         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
73875         wydawca.
73877         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
73878         program_invocation_name and program_invocation_short_name are
73879         present.
73881 2008-02-28  Bruno Haible  <bruno@clisp.org>
73883         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
73884         * tests/test-freadptr.sh: Also test non-seekable stdin.
73886 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
73888         * build-aux/bootstrap (source_base, m4_base)
73889         (doc_base, tests_base): New variables.
73890         (gnulib_tool_options): Do not hardcode base directories, use
73891         the above variables instead.
73893 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
73895         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
73897 2008-02-28  Bruno Haible  <bruno@clisp.org>
73899         * modules/freadptr-tests: New file.
73900         * tests/test-freadptr.sh: New file.
73901         * tests/test-freadptr.c: New file.
73903         New module 'freadptr'.
73904         * modules/freadptr: New file.
73905         * lib/freadptr.h: New file.
73906         * lib/freadptr.c: New file.
73907         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
73909 2008-02-26  Karl Berry  <karl@freefriends.org>
73911         Sync from Libtool:
73912         * libltdl/argz.c (argz_add, argz_count): New functions.
73913         * libltdl/argz.in.h: Declare them.
73914         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
73916 2008-02-22  Bruno Haible  <bruno@clisp.org>
73918         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
73919         is a pointer type.  Needed for HP-UX 10.
73920         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
73921         * doc/posix-functions/gmtime_r.texi: Likewise.
73922         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
73924 2008-02-24  Bruno Haible  <bruno@clisp.org>
73926         * modules/environ-tests: New file.
73927         * tests/test-environ.c: New file.
73929         New module 'environ'.
73930         * modules/environ: New file.
73931         * lib/unistd.in.h (environ): New declaration.
73932         * m4/environ.m4: New file.
73933         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
73934         after use.
73935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
73936         HAVE_DECL_ENVIRON.
73937         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
73938         HAVE_DECL_ENVIRON.
73939         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
73940         wrong claim that 'environ' is missing on some systems.
73941         * modules/execute (Depends-on): Add environ.
73942         * lib/execute.c (environ): Remove fallback declaration.
73943         * modules/pipe (Depends-on): Add environ.
73944         * lib/pipe.c (environ): Remove fallback declaration.
73945         * modules/setenv (Depends-on): Add environ.
73946         * lib/setenv.c (environ): Remove fallback declaration.
73947         * modules/unsetenv (Depends-on): Add environ.
73948         * lib/unsetenv.c (environ): Remove fallback declaration.
73949         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
73950         m4/environ.m4.
73951         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
73952         (gl_PREREQ_UNSETENV): Likewise.
73954 2008-02-24  Bruno Haible  <bruno@clisp.org>
73956         * doc/posix-functions/environ.texi: Document the MacOS X problem.
73958 2008-02-20  Bob Proulx  <bob@proulx.com>
73960         Enable use of older two part flavor 'git describe'.
73961         * build-aux/git-version-gen: If using the older two part flavor of
73962         git version then recreate the third part now present in the
73963         newer three part flavor of git describe.
73965 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
73967         * lib/fts.c (fts_build): Typo correction to comment.
73969 2008-02-17  Bruno Haible  <bruno@clisp.org>
73971         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
73972         generating no-op conflicts.
73974 2008-02-17  Bruno Haible  <bruno@clisp.org>
73976         Speed up by 10%.
73977         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
73978         result_entries, rather than an index-based loop.
73980 2008-02-17  Bruno Haible  <bruno@clisp.org>
73982         Speed up by 25%.
73983         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
73984         'hashcode_cached'.
73985         (entry_create): New function.
73986         (entry_hashcode): Use the cached hashcode if possible.
73987         (read_changelog_file, try_split_merged_entry): Use entry_create.
73989 2008-02-17  Bruno Haible  <bruno@clisp.org>
73991         Speed up from O(n^2) to O(n) for long ChangeLog files.
73992         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
73993         (read_changelog_file): Change implementation of entries_reversed list
73994         to rbtreehash.
73995         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
73997 2008-02-17  Bruno Haible  <bruno@clisp.org>
73999         New option --split-merged-entry.
74000         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
74001         (find_paragraph_end, try_split_merged_entry): New functions.
74002         (long_options): Add option --split-merged-entry.
74003         (usage): Document option --split-merged-entry.
74004         (main): Implement option --split-merged-entry.
74005         Reported by Eric Blake.
74007 2008-02-17  Bruno Haible  <bruno@clisp.org>
74009         * lib/git-merge-changelog.c: Include c-strstr.h.
74010         (main): Support the "git pull --rebase" situation.
74011         * modules/git-merge-changelog (Depends-on): Add c-strstr.
74012         Reported by Eric Blake.
74014 2008-02-16  Eric Blake  <ebb9@byu.net>
74016         Avoid doubling \ in common case of "c-maybe" quoting style.
74017         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
74018         eliding outer quotes.
74019         * lib/quotearg.h: Document this.
74020         * tests/test-quotearg.c (result_strings, inputs, results_g)
74021         (flag_results, locale_results): Test it by adding a new string to
74022         each test group.
74023         (compare_strings): Test new string.
74025 2008-02-13  Eric Blake  <ebb9@byu.net>
74027         Avoid trigraph quoting in default output.
74028         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
74029         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
74030         unless explicitly requested.
74031         * tests/test-quotearg.c (flag_results, main): Add additional tests.
74033 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
74035         Don't rely on signed integer overflowing to negative value.
74036         * lib/getugroups.c (getugroups): Include <limits.h>.
74037         Instead, compare against INT_MAX, and increment only if the test passes.
74039 2008-02-13  Jim Meyering  <meyering@redhat.com>
74040         and Eric Blake  <ebb9@byu.net>
74042         Avoid shadowing warning and compile errors on Linux.
74043         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
74044         forwarding macros on Linux.
74045         (dcgettext): Define a stub, for Linux.
74046         (results_g, main): Avoid warnings.
74048 2008-02-12  Eric Blake  <ebb9@byu.net>
74050         Silence warning in last patch.
74051         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
74053         Quotearg part 4: add tests, fix c-maybe colon quoting.
74054         * lib/quotearg.h: Improve documentation.
74055         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
74056         escapes when adding outer quotes.  When quoting trigraphs, use
74057         valid C notation.  When quoting NUL, omit extra characters if next
74058         character is not digit.  Alter prototype.
74059         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
74060         callers.
74061         * modules/quotearg-tests: New module.
74062         * tests/test-quotearg.c: New test.
74064 2008-02-07  Eric Blake  <ebb9@byu.net>
74066         Quotearg part 3: add flag to control outer quote elision.
74067         * lib/quotearg.h (c_maybe_quoting_style): New style.
74068         (enum quoting_flags): Better documentation of flags.
74069         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
74070         c-maybe style.
74071         (quotearg_buffer_restyled): Handle new flag to elide outer
74072         quotes.
74074         Quotearg part 2: add flag that can control NUL elision.
74075         * lib/quotearg.h (set_quoting_flags): New prototype.
74076         * lib/quotearg.c (struct quoting_options): Add flag field.
74077         (set_quoting_flags): New function.
74078         (quotearg_buffer_restyled): Add flags parameter.
74079         (quotearg_alloc_mem): Set the flag if length cannot be returned.
74080         (quotearg_n_options): Set the flag, since length cannot be
74081         returned.
74082         (quoting_options_from_style): Default flags correctly.
74084         Quotearg part 1: more wrappers, restore quotearg_char state.
74085         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
74086         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
74087         (quotearg_colon_mem): New wrappers.
74088         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
74089         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
74090         functions.
74091         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
74092         (quotearg_colon_mem): New functions.
74094 2008-02-11  Bruno Haible  <bruno@clisp.org>
74096         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
74097         library in the current directory: it does not work with parallel make.
74098         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74100 2008-02-11  Bruno Haible  <bruno@clisp.org>
74102         * .gitattributes: New file.
74104 2008-02-11  Jim Meyering  <meyering@redhat.com>
74106         useless-if-before-free: Fix reversed exit values.
74107         * build-aux/useless-if-before-free: Use correct values
74108         for EXIT_MATCH and EXIT_NO_MATCH.
74110         * build-aux/useless-if-before-free: Close stdout carefully.
74112 2008-02-10  Bruno Haible  <bruno@clisp.org>
74114         New module 'git-merge-changelog'.
74115         * modules/git-merge-changelog: New file.
74116         * lib/git-merge-changelog.c: New file.
74118 2008-02-10  Jim Meyering  <meyering@redhat.com>
74120         useless-if-before-free: New option: --list (-l).
74122         useless-if-before-free: Don't exit immediately upon open failure.
74123         * build-aux/useless-if-before-free: Exit 2 for errors.
74124         Upon failure to open a file, don't exit immediately.
74125         Rather, just warn and continue with any remaining files.
74127 2008-02-10  Bruno Haible  <bruno@clisp.org>
74129         New abstract list operation 'node_set_value'.
74130         * lib/gl_list.h (gl_list_node_set_value): New function.
74131         (struct gl_list_implementation): New field node_set_value.
74132         * lib/gl_list.c (gl_list_node_set_value): New function.
74133         * lib/gl_array_list.c (gl_array_node_set_value): New function.
74134         (gl_array_list_implementation): Update.
74135         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
74136         (gl_carray_list_implementation): Update.
74137         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
74138         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74139         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74140         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
74141         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74142         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74143         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74144         Update.
74145         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74146         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
74147         (gl_sublist_list_implementation): Update.
74149 2008-02-10  Bruno Haible  <bruno@clisp.org>
74151         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
74152         Needed when ELEMENT is #defined to 'some_type *'.
74154 2008-02-10  Jim Meyering  <meyering@redhat.com>
74156         New script and module: useless-if-before-free
74157         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
74158         * build-aux/useless-if-before-free: New file.
74159         * modules/useless-if-before-free: New file.
74161         * build-aux/gitlog-to-changelog: Use committer date, not author date.
74163         xstrtol_error: Fix typo.
74164         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
74165         s/exit_failure/exit_status/.
74167 2008-02-09  Jim Meyering  <meyering@redhat.com>
74169         New script and module: gitlog-to-changelog
74170         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
74171         * modules/gitlog-to-changelog: New file.
74172         * build-aux/gitlog-to-changelog: New file.
74174 2008-02-08  Jim Meyering  <meyering@redhat.com>
74176         Avoid two "parameter unused" warnings.
74177         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
74178         Mark "st" as used.
74180         Use "git COMMAND", not "git-COMMAND".
74181         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
74182         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
74183         * build-aux/git-version-gen: Use "git status", not "git-status".
74185 2008-02-07  Bruno Haible  <bruno@clisp.org>
74187         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
74188         Avoids a crash on Windows Vista.
74189         Reported by Adam Strzelecki <ono@java.pl> via
74190         Simon Josefsson <simon@josefsson.org>.
74192 2008-02-06  Bruno Haible  <bruno@clisp.org>
74194         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
74195         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
74196         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
74197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
74198         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
74199         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
74200         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
74201         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
74202         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
74203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
74204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
74205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
74206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
74207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
74208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
74209         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
74210         left-adjust flag.
74211         * tests/test-snprintf-posix.h (test_function): Likewise.
74212         * tests/test-sprintf-posix.h (test_function): Likewise.
74213         * tests/test-vasprintf-posix.c (test_function): Likewise.
74214         * doc/posix-functions/fprintf.texi: Update.
74215         * doc/posix-functions/printf.texi: Update.
74216         * doc/posix-functions/snprintf.texi: Update.
74217         * doc/posix-functions/sprintf.texi: Update.
74218         * doc/posix-functions/vfprintf.texi: Update.
74219         * doc/posix-functions/vprintf.texi: Update.
74220         * doc/posix-functions/vsnprintf.texi: Update.
74221         * doc/posix-functions/vsprintf.texi: Update.
74222         Reported by Peter Fales <psfales@alcatel-lucent.com>.
74224 2008-02-06  Bruno Haible  <bruno@clisp.org>
74226         Fix bug introduced on 2008-01-26.
74227         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
74229 2008-02-06  Bruno Haible  <bruno@clisp.org>
74231         Fix bug introduced on 2007-06-10.
74232         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
74233         !NEED_PRINTF_FLAG_ZERO.
74235 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
74237         getloadavg: use libperfstat on AIX5
74238         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
74240 2008-02-03  Bruno Haible  <bruno@clisp.org>
74242         * lib/diffseq.h: Add comments about required #includes.
74243         Reported by Michael Biggs <gnulib@doubleplum.net>.
74245 2008-02-01  Bruno Haible  <bruno@clisp.org>
74247         * users.txt: Add gnuit.
74249 2008-01-31  Bruno Haible  <bruno@clisp.org>
74251         * lib/md4.c (set_uint32): Mark as inline.
74252         * lib/md5.c (set_uint32): Likewise.
74253         * lib/sha1.c (set_uint32): Likewise.
74254         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
74255         * m4/md5.m4 (gl_MD5): Likewise.
74256         * m4/sha1.m4 (gl_SHA1): Likewise.
74258 2008-01-31  Jim Meyering  <meyering@redhat.com>
74260         Use "sizeof VAR", rather than a literal "4".
74261         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
74262         * lib/md4.c (md4_read_ctx): Likewise.
74263         * lib/sha1.c (sha1_read_ctx): Likewise.
74265 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74267         * tests/test-sha1.c: New file, based on test-md5.c.
74269         * modules/crypto/sha1-tests: New file.
74271 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74273         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
74275 2008-01-31  Jim Meyering  <meyering@redhat.com>
74277         Prefer "sizeof v" over the equivalent "4".
74278         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
74279         * lib/md5.c (set_uint32): Likewise.
74280         * lib/sha1.c (set_uint32): Likewise.
74282 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74284         * lib/sha1.c (set_uint32): Mark function as static.
74286 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74288         md2: clarify comments to say that alignment is not required.
74289         * lib/md2.h: Remove warning about alignment in comment.
74290         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
74291         never been required.
74293 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74295         md4: adapt alignment constraint fix from sha1.
74296         * lib/md4.c (set_uint32): New function, from sha1.c
74297         (md4_read_ctx): Use it.
74298         (md4_finish_ctx): Doc fix.
74299         * lib/md4.h: Doc fix.
74301 2008-01-31  Simon Josefsson  <simon@josefsson.org>
74303         md5: adapt alignment constraint fix from sha1.
74304         * lib/md5.c (set_uint32): New function, from sha1.c
74305         (md5_read_ctx): Use it.
74306         (md5_finish_ctx): Doc fix.
74307         * lib/md5.h: Doc fix.
74309 2008-01-30  Peter Palfrader  <weasel@debian.org>
74311         sha1: remove the result buffer alignment constraint
74312         * lib/sha1.c (set_uint32): New function.
74313         (sha1_read_ctx): Rewrite to remove the result buffer alignment
74314         constraint.
74315         (sha1_finish_ctx): Remove comment warning about alignment constraint.
74316         * lib/sha1.h: Likewise.
74318 2008-01-30  Andreas Schwab  <schwab@suse.de>
74319             Bruno Haible  <bruno@clisp.org>
74321         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
74322         correct definition of LDBL_MIN_EXP.
74324 2008-01-30  Karl Berry  <karl@gnu.org>
74326         * config/srclist-update: try to preserve x bit on updates.
74327         * config/srclistvars.sh: update for karl.
74329 2008-01-29  Jim Meyering  <meyering@redhat.com>
74331         vasnprintf.c: Avoid warning about unused label
74332         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
74333         "overflow" label definition and associated code with the
74334         same cpp condition that guards the sole use of that label.
74336 2008-01-26  Bruno Haible  <bruno@clisp.org>
74338         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
74339         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
74340         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
74341         * lib/isnanl-nolibm.h (isnanl): Likewise.
74342         Reported by Paul Eggert <eggert@cs.ucla.edu>.
74344 2008-01-26  Bruno Haible  <bruno@clisp.org>
74346         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
74347         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
74349 2008-01-26  Bruno Haible  <bruno@clisp.org>
74351         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
74352         GCC >= 4.0 built-in.
74353         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
74355 2008-01-26  Bruno Haible  <bruno@clisp.org>
74357         Rename isnan, applicable to 'double' only, to isnand.
74358         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
74359         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
74360         (configure.ac): Update.
74361         (Include): Replace "isnan.h" with "isnand.h".
74362         * m4/isnand.m4: Renamed from m4/isnan.m4.
74363         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
74364         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
74365         instead of isnan.c.
74366         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
74367         instead of HAVE_ISNAN_IN_LIBC.
74368         (isnand): Renamed from isnan.
74369         * lib/isnand.c: New file.
74370         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
74371         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
74372         (Makefile.am): Update.
74373         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
74374         Include isnand.h instead of isnan.h.
74375         (main): Test isnand instead of isnan.
74376         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
74377         isnan-nolibm.
74378         * modules/frexp (Depends-on): Likewise.
74379         * modules/frexp-tests (Depends-on): Likewise.
74380         * modules/frexp-nolibm (Depends-on): Likewise.
74381         * modules/frexp-nolibm-tests (Depends-on): Likewise.
74382         * modules/isfinite (Depends-on): Likewise.
74383         * modules/round-tests (Depends-on): Likewise.
74384         * modules/signbit (Depends-on): Likewise.
74385         * modules/signbit-tests (Depends-on): Likewise.
74386         * modules/snprintf-posix (Depends-on): Likewise.
74387         * modules/sprintf-posix (Depends-on): Likewise.
74388         * modules/trunc-tests (Depends-on): Likewise.
74389         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
74390         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
74391         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
74392         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
74393         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
74394         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
74395         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
74396         * modules/vasnprintf-posix (Depends-on): Likewise.
74397         * modules/vasprintf-posix (Depends-on): Likewise.
74398         * modules/vfprintf-posix (Depends-on): Likewise.
74399         * modules/vsnprintf-posix (Depends-on): Likewise.
74400         * modules/vsprintf-posix (Depends-on): Likewise.
74401         * lib/frexp.c: Include isnand.h instead of isnan.h.
74402         (ISNAN): Set to isnand instead of isnan.
74403         * lib/isfinite.c: Include isnand.h instead of isnan.h.
74404         (gl_isfinited): Use isnand instead of isnan.
74405         * lib/signbitd.c: Include isnand.h instead of isnan.h.
74406         (gl_signbitd): Use isnand instead of isnan.
74407         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
74408         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
74409         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
74410         (main): Use isnand instead of isnan.
74411         * tests/test-round1.c: Include isnand.h.
74412         (main): Use isnand instead of isnan.
74413         * tests/test-round2.c: Include isnand.h instead of isnan.h.
74414         (ISNAN): Set to isnand instead of isnan.
74415         * tests/test-trunc1.c: Include isnand.h.
74416         (main): Use isnand instead of isnan.
74417         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
74418         (equal): Use isnand instead of isnan.
74419         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
74420         isnand-nolibm.
74421         * NEWS: Mention the change.
74423 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74424             Bruno Haible  <bruno@clisp.org>
74426         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
74427         the GCC builtins for signbits are present and set
74428         REPLACE_SIGNBIT_USING_GCC if so.
74429         * lib/math.in.h (signbit): Define using GCC builtins if
74430         REPLACE_SIGNBIT_USING_GCC is set.
74431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
74432         REPLACE_SIGNBIT_USING_GCC.
74433         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
74435 2008-01-25  Jim Meyering  <meyering@redhat.com>
74437         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
74438         * lib/poll.c: Include <config.h>, not "config.h".
74439         * tests/test-getaddrinfo.c: Likewise.
74441 2008-01-25  Simon Josefsson  <simon@josefsson.org>
74443         * modules/sockets-tests: New file.
74445 2008-01-24  Simon Josefsson  <simon@josefsson.org>
74447         * modules/sockets: New module, can be used to call WSA_Startup and
74448         WSA_Cleanup when needed.
74450         * lib/sockets.h, lib/sockets.c: New files.
74452         * m4/sockets.m4: New file.
74454         * tests/test-sockets.c: New file.
74456 2008-01-19  Bruno Haible  <bruno@clisp.org>
74458         * doc/posix-headers: Renamed from doc/headers.
74459         * doc/posix-functions: Renamed from doc/functions.
74460         * doc/gnulib.texi: Update.
74462 2008-01-19  Bruno Haible  <bruno@clisp.org>
74464         * doc/glibc-functions/strcasestr.texi: Include contents of
74465         doc/functions/strcasestr.texi, fixing the list of platforms.
74466         * doc/functions/strcasestr.texi: Remove file.
74468 2008-01-19  Bruno Haible  <bruno@clisp.org>
74470         * doc/glibc-functions/memmem.texi: Include contents of
74471         doc/functions/memmem.texi.
74472         * doc/functions/memmem.texi: Remove file.
74474 2008-01-18  Bruno Haible  <bruno@clisp.org>
74476         * doc/glibc-functions/*.texi: New files.
74477         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
74478         to use the new files.
74480 2008-01-17  Bruno Haible  <bruno@clisp.org>
74482         * tests/test-gethostname.c (main): Fix printf statement.
74484 2008-01-17  Simon Josefsson  <simon@josefsson.org>
74486         * modules/gethostname-tests: New file.
74488         * tests/test-gethostname.c: New file.
74490 2008-01-17  Simon Josefsson  <simon@josefsson.org>
74492         * lib/gethostname.c: Include string.h unconditionally, strncpy is
74493         used by the UNAME case.  Reported by Bruno Haible
74494         <bruno@clisp.org>.
74496 2008-01-17  Eric Blake  <ebb9@byu.net>
74498         Convert c-strcasestr to be more efficient.
74499         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
74500         (Depends-on): Add c-strcase, remove malloca, strnlen.
74501         * tests/test-c-strcasestr.c (main): Enhance test.
74502         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
74504 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74506         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
74507         Use it in creating po/Makevars.
74509 2008-01-15  Simon Josefsson  <simon@josefsson.org>
74511         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
74512         Applications that requires it should initialize libgcrypt
74513         manually.
74515 2008-01-16  Simon Josefsson  <simon@josefsson.org>
74517         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
74519 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
74521         Fix problem with getdate on mingw32 reported by Simon Josefsson
74522         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
74523         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
74524         tzname", when deciding whether to declare tzname.
74525         * lib/strftime.c (tzname): Likewise.
74527 2008-01-15  Bruno Haible  <bruno@clisp.org>
74529         Work around a MacOS X 10.5 bug in frexpl().
74530         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
74531         * doc/functions/frexpl.texi: Document the bug.
74532         Reported by Elias Pipping <pipping@gentoo.org>.
74534 2008-01-14  Eric Blake  <ebb9@byu.net>
74536         Touch up previous patch.
74537         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
74538         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
74540         Convert strcasestr module to use Two-Way algorithm.
74541         * modules/strcasestr-simple: New module, based on the old
74542         strcasestr, but with Two-Way rather than KMP.
74543         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
74544         * lib/string.in.h (rpl_strcasestr): Declare.
74545         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
74546         performance.
74547         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
74548         * modules/string (Makefile.am): Support strcasestr.
74549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
74550         * modules/strcasestr-tests (Depends-on): Check for alarm.
74551         * tests/test-strcasestr.c: Augment test.
74552         * lib/str-two-way.h: Clean up stray macro.
74553         * NEWS: Document new module.
74554         * MODULES.html.sh (string handling): Likewise.
74555         * doc/functions/strcasestr.texi: New file.
74556         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
74557         here, since it is not a POSIX function.
74559 2008-01-14  Colin Watson  <cjwatson@debian.org>
74560             Bruno Haible  <bruno@clisp.org>
74562         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
74563         works fine; if not, set REPLACE_STRSIGNAL.
74564         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
74565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74566         REPLACE_STRSIGNAL.
74567         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
74568         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
74569         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
74571 2008-01-14  Bruno Haible  <bruno@clisp.org>
74573         * modules/strsignal (Include): Change to <string.h>.
74575 2008-01-14  Colin Watson  <cjwatson@debian.org>
74577         * modules/argp (Notice): Add a notice recommending to change
74578         XGETTEXT_OPTIONS.
74579         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
74581 2008-01-13  Colin Watson  <cjwatson@debian.org>
74583         * modules/strsignal-tests: New file.
74584         * tests/test-strsignal.c: New file.
74586         * lib/strsignal.c: New file, from glibc with modifications.
74587         * lib/siglist.h: New file, from glibc with modifications.
74588         * lib/string.in.h (strsignal): New declaration.
74589         * m4/strsignal.m4: New file.
74590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74591         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
74592         * modules/strsignal: New file.
74593         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
74594         HAVE_DECL_STRSIGNAL.
74596 2008-01-13  Bruno Haible  <bruno@clisp.org>
74598         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
74599         locale encoding is not ASCII. Needed for OpenBSD 4.0.
74600         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
74601         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74603 2008-01-13  Bruno Haible  <bruno@clisp.org>
74605         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
74606         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
74607         * lib/argp.h (__attribute__): Likewise.
74608         * lib/c-stack.c (__attribute__): Likewise.
74609         * lib/error.h (__attribute__): Likewise.
74610         * lib/fts.c (__attribute__): Likewise.
74611         * lib/openat.h (__attribute__): Likewise.
74612         * lib/stdio.in.h (__attribute__): Likewise.
74613         * lib/string.in.h (__attribute__): Likewise.
74614         * lib/utimens.c (__attribute__): Likewise.
74615         * lib/vasnprintf.h (__attribute__): Likewise.
74616         * lib/xalloc.h (__attribute__): Likewise.
74617         * lib/xprintf.h (__attribute__): Likewise.
74618         * lib/xstrtol.h (__attribute__): Likewise.
74619         * lib/xvasprintf.h (__attribute__): Likewise.
74621 2008-01-12  Bruno Haible  <bruno@clisp.org>
74623         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
74624         * doc/glibc-headers/a.out.texi: New file.
74625         * doc/glibc-headers/aliases.texi: New file.
74626         * doc/glibc-headers/alloca.texi: New file.
74627         * doc/glibc-headers/ar.texi: New file.
74628         * doc/glibc-headers/argp.texi: New file.
74629         * doc/glibc-headers/argz.texi: New file.
74630         * doc/glibc-headers/byteswap.texi: New file.
74631         * doc/glibc-headers/crypt.texi: New file.
74632         * doc/glibc-headers/endian.texi: New file.
74633         * doc/glibc-headers/envz.texi: New file.
74634         * doc/glibc-headers/err.texi: New file.
74635         * doc/glibc-headers/error.texi: New file.
74636         * doc/glibc-headers/execinfo.texi: New file.
74637         * doc/glibc-headers/fpu_control.texi: New file.
74638         * doc/glibc-headers/fstab.texi: New file.
74639         * doc/glibc-headers/fts.texi: New file.
74640         * doc/glibc-headers/getopt.texi: New file.
74641         * doc/glibc-headers/ieee754.texi: New file.
74642         * doc/glibc-headers/ifaddrs.texi: New file.
74643         * doc/glibc-headers/libintl.texi: New file.
74644         * doc/glibc-headers/mcheck.texi: New file.
74645         * doc/glibc-headers/mntent.texi: New file.
74646         * doc/glibc-headers/obstack.texi: New file.
74647         * doc/glibc-headers/paths.texi: New file.
74648         * doc/glibc-headers/printf.texi: New file.
74649         * doc/glibc-headers/pty.texi: New file.
74650         * doc/glibc-headers/resolv.texi: New file.
74651         * doc/glibc-headers/shadow.texi: New file.
74652         * doc/glibc-headers/sysexits.texi: New file.
74653         * doc/glibc-headers/ttyent.texi: New file.
74655 2008-01-12  Jim Meyering  <meyering@redhat.com>
74657         announce-gen: emit Gnulib's git-based version string.
74658         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
74659         New option --gnulib-version=V, where V is expected to be
74660         the output of running git describe in the gnulib directory.
74661         (get_tool_versions): Request feedback on xdelta.  I suspect it's
74662         not useful, and plan to stop publishing an xdelta file with each
74663         coreutils release.
74665         * build-aux/announce-gen: Also check for lzma-compressed files.
74667 2008-01-11  Bruno Haible  <bruno@clisp.org>
74669         * tests/test-memmem.c (main): Increase maximum allowed time.
74670         * tests/test-strstr.c (main): Likewise.
74672 2008-01-11  Bruno Haible  <bruno@clisp.org>
74674         * doc/functions/memmem.texi: Add more precisions about platforms.
74675         * doc/functions/strstr.texi: Likewise.
74677 2008-01-10  Eric Blake  <ebb9@byu.net>
74679         * m4/strstr.m4: Delete cruft from copy-n-paste.
74680         Reported by Bruno Haible.
74682 2008-01-10  Bruno Haible  <bruno@clisp.org>
74684         Make c-strstr rely on strstr.
74685         * lib/c-strstr.c: Don't include str-kmp.h.
74686         (c_strstr): Define in terms of strstr.
74687         * modules/c-strstr (Files): Remove lib/str-kmp.h.
74688         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
74690 2008-01-10  Bruno Haible  <bruno@clisp.org>
74692         * doc/gnulib.texi (String Functions in C Locale): New section.
74693         * doc/c-ctype.texi: New file.
74694         * doc/c-strcase.texi: New file.
74695         * doc/c-strcaseeq.texi: New file.
74696         * doc/c-strcasestr.texi: New file.
74697         * doc/c-strstr.texi: New file.
74698         * doc/c-strtod.texi: New file.
74699         * doc/c-strtold.texi: New file.
74701 2008-01-10  Eric Blake  <ebb9@byu.net>
74703         * lib/relocatable.h: Fix a comment.
74705 2008-01-10  Eric Blake  <ebb9@byu.net>
74707         Share two-way algorithm.
74708         * lib/str-two-way.h: New file, merged from...
74709         * lib/memmem.c: ...here...
74710         * lib/strstr.c: ...and here.
74711         * modules/memmem (Files): Use it.
74712         * modules/strstr (Files): Likewise.
74714         Avoid quadratic strstr implementations.
74715         * lib/strstr.c: New file.
74716         * m4/strstr.m4: Likewise.
74717         * modules/strstr: Likewise.
74718         * modules/strstr-tests: Likewise.
74719         * tests/test-strstr.c: Likewise.
74720         * lib/string.in.h (rpl_strstr): Declare.
74721         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
74722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
74723         * modules/string (Makefile.am): Likewise.
74724         * MODULES.html.sh (string handling): Mention new module.
74725         * doc/functions/strstr.texi (strstr): Document the bug.
74727 2008-01-10  Bruno Haible  <bruno@clisp.org>
74729         * lib/relocatable.h (relocate): State whether result is freshly
74730         allocated or not.
74731         * lib/relocatable.c (relocate): Return a freshly allocated string
74732         instead of a pointer to a privately held string.
74733         Reported by Sylvain Beucler <beuc@gnu.org>.
74735 2008-01-10  Colin Watson  <cjwatson@debian.org>
74737         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
74738         s/S_ISNLK/S_ISLNK/.
74740 2008-01-09  Bruno Haible  <bruno@clisp.org>
74742         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
74743         and other files.
74744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
74745         if it's only a guess.
74746         * modules/memmem: Simplify by depending on memmem-simple.
74748 2008-01-09  Bruno Haible  <bruno@clisp.org>
74750         Work around OpenBSD 4.0 tdelete() bug.
74751         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
74752         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
74753         macros and don't redefine the enum values.
74754         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
74755         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
74756         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
74758 2008-01-09  Bruno Haible  <bruno@clisp.org>
74760         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
74761         (main): Don't perform the tests if setlocale did not install a UTF-8
74762         locale. Needed on OpenBSD 4.0.
74763         * modules/wcwidth-tests (Depends-on): Add localcharset.
74765 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74767         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
74768         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
74769         * NEWS: announce this.
74770         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
74772 2008-01-09  Simon Josefsson  <simon@josefsson.org>
74773         and Eric Blake  <ebb9@byu.net>
74775         Add memmem-simple module.
74776         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
74777         (gl_FUNC_MEMMEM): Separate performance from presence checks.
74778         * modules/memmem-simple: New file.
74779         * modules/memmem (Description): Tweak.
74780         * MODULES.html.sh (string handling): Mention new module.
74781         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
74782         addressed by memmem-simple.
74783         * NEWS: Document the difference.
74785 2008-01-09  Eric Blake  <ebb9@byu.net>
74787         Give gcc some memmem optimization hints.
74788         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
74789         (strcasestr): Declare as pure.
74790         * modules/memmem (Maintainer): Claim my implementation.
74792 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74794         Support AIX 6.1 and higher.
74795         * build-aux/config.libpath: Likewise.
74796         * build-aux/config.rpath: Likewise.
74798 2008-01-08  Jim Meyering  <meyering@redhat.com>
74799             Bruno Haible  <bruno@clisp.org>
74801         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
74802         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
74803         Reported by Peter Fales in
74804         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
74806 2008-01-08  Bruno Haible  <bruno@clisp.org>
74808         * modules/unictype/category-of (Depends-on): Add
74809         unictype/category-none.
74810         * modules/unictype/category-and-tests (Depends-on): Add
74811         unictype/category-{L,N,Lu,Nd}.
74812         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
74813         * modules/unictype/category-or-tests (Depends-on): Add
74814         unictype/category-{L,N}.
74815         * modules/unictype/category-name-tests (Depends-on): Add
74816         unictype/category-{Z,Nl}.
74817         Reported by Simon Josefsson.
74819 2008-01-08  Bruno Haible  <bruno@clisp.org>
74821         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
74822         convention better.
74823         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
74824         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
74825         Reported by Peter Miller <millerp@canb.auug.org.au>.
74827 2008-01-08  Eric Blake  <ebb9@byu.net>
74829         Rewrite memmem to guarantee linear complexity without malloc.
74830         * lib/memmem.c (memmem): Use Two-Way rather than
74831         Knuth-Morris-Pratt, to allow O(1) space usage.
74832         (critical_factorization, two_way_short_needle)
74833         (two_way_long_needle): New functions.
74834         (knuth_morris_pratt): Delete.
74835         * modules/memmem (Depends-on): No longer need malloca or stdbool.
74836         Add stdint.
74837         * tests/test-memmem.c (main): Add tests for periodic needle and
74838         sublinear performance.
74839         * doc/functions/memmem.texi (memmem): Document other deficiencies
74840         in cygwin and older glibc.
74842 2008-01-08  Bruno Haible  <bruno@clisp.org>
74844         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
74845         augmentation.
74847 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
74849         Add a configure time option: --disable-acl.
74850         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
74851         AC_ARG_ENABLE(acl).
74853 2008-01-06  Simon Josefsson  <simon@josefsson.org>
74855         * tests/test-localename.c: Don't include obsolete "setenv.h".
74857         * modules/localename-tests (Depends-on): Need unsetenv.
74859 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74861         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
74863 2008-01-06  Colin Watson  <cjwatson@debian.org>
74865         * users.txt: Add man-db.
74867 2008-01-07  Bruno Haible  <bruno@clisp.org>
74869         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
74870         previous section name.
74872 2008-01-07  Bruno Haible  <bruno@clisp.org>
74874         * lib/progname.c (set_program_name): Don't strip off a leading
74875         "lt-" prefix outside a .libs directory.
74876         Suggested by Paul Eggert.
74878 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
74879             Bruno Haible  <bruno@clisp.org>
74881         Improve memory cleanup in 'relocatable' module.
74882         * lib/relocatable.h (compute_curr_prefix): Change return type to
74883         'char *'.
74884         * lib/relocatable.c (compute_curr_prefix): Change return type to
74885         'char *'. Free curr_installdir after use.
74886         (relocate): Free curr_prefix_better after use.
74887         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
74889 2008-01-01  Bruno Haible  <bruno@clisp.org>
74891         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
74892         failure on older glibc systems.
74893         Reported by Peter Fales <psfales@alcatel-lucent.com>.
74895 2008-01-05  Eric Blake  <ebb9@byu.net>
74897         Avoid quadratic system memmem.
74898         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
74899         Reported by Ralf Wildenhues.
74901         Fix memmem test for mingw.
74902         * modules/memmem-tests (configure.ac): Check for alarm.
74903         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
74904         it.
74905         * doc/functions/memmem.texi: New file.
74906         * doc/gnulib.texi (Function Substitutes): Add memmem.
74907         Reported by Bruno Haible.
74909 2008-01-04  Bruno Haible  <bruno@clisp.org>
74911         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
74912         Require gl_HEADER_STRINGS_H_DEFAULTS, not
74913         gl_HEADER_STRING_H_DEFAULTS.
74915 2008-01-04  Eric Blake  <ebb9@byu.net>
74917         Shorten duration of memmem test.
74918         * tests/test-memmem.c (main): Use alarm to declare failure if test
74919         is taking too long.
74920         Reported by Ralf Wildenhues.
74922 2007-12-21  Simon Josefsson  <simon@josefsson.org>
74924         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
74925         string, needed by strerror.
74927 2008-01-03  Colin Watson  <cjwatson@debian.org>
74928             Bruno Haible  <bruno@clisp.org>
74930         * doc/gnulib-tool.texi (Localization): New section.
74932 2008-01-02  Bruno Haible  <bruno@clisp.org>
74934         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
74935         variables to 'unsigned char *' type.
74936         Reported by Paul Eggert.
74938 2008-01-02  Jim Meyering  <jim@meyering.net>
74940         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
74942 2007-12-31  Jim Meyering  <jim@meyering.net>
74944         Avoid use of private FTS type name.
74945         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
74947 2007-12-30  Karl Berry  <karl@gnu.org>
74949         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
74950         work around defect in Texinfo and/or the standalone Info browser.
74952 2007-12-30  Bruno Haible  <bruno@clisp.org>
74954         Unify 5 copies of the KMP code.
74955         * lib/str-kmp.h: New file.
74956         * lib/c-strcasestr.c: Include str-kmp.h.
74957         (knuth_morris_pratt): Remove function.
74958         (c_strcasestr): Update.
74959         * lib/c-strstr.c: Include str-kmp.h.
74960         (knuth_morris_pratt): Remove function.
74961         (c_strcasestr): Update.
74962         * lib/mbscasestr.c: Include str-kmp.h.
74963         (knuth_morris_pratt_unibyte): Remove function.
74964         * lib/mbsstr.c: Include str-kmp.h.
74965         (knuth_morris_pratt_unibyte): Remove function.
74966         * lib/strcasestr.c: Include str-kmp.h.
74967         (knuth_morris_pratt): Remove function.
74968         (strcasestr): Update.
74969         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
74970         * modules/c-strstr (Files): Likewise.
74971         * modules/mbscasestr (Files): Likewise.
74972         * modules/mbsstr (Files): Likewise.
74973         * modules/strcasestr (Files): Likewise.
74974         Suggested by Paul Eggert.
74976 2007-12-30  Bruno Haible  <bruno@clisp.org>
74978         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
74979         defined.
74981 2007-12-30  Bruno Haible  <bruno@clisp.org>
74983         * lib/xmalloca.h: Include xalloc.h.
74984         (xnmalloca): New macro.
74986 2007-12-30  Bruno Haible  <bruno@clisp.org>
74988         * lib/malloca.h (nmalloca): New macro.
74989         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
74990         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
74991         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
74992         knuth_morris_pratt_multibyte): Likewise.
74993         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
74994         knuth_morris_pratt_multibyte): Likewise.
74995         * lib/memmem.c (knuth_morris_pratt): Likewise.
74996         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
74998 2007-12-25  Bruno Haible  <bruno@clisp.org>
75000         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
75001         * lib/glob.c: Don't include openat.h.
75002         (link_exists2_p): Add back the code that deals with the
75003         !GLOB_ALTDIRFUNC case.
75004         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
75005         let it do the filename concatenation.
75006         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
75007         * modules/glob (Depends-on): Remove openat.
75009 2007-12-31  Bruno Haible  <bruno@clisp.org>
75011         * modules/dirfd (License): Change to LGPLv2+.
75012         Approved by Jim Meyering.
75014 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75016         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
75017         when multiplying M by sizeof (size_t).
75019 2007-12-10  Martin Lambers  <marlam@marlam.de>
75021         Override getpagesize on mingw.
75022         * lib/getpagesize.c: New file.
75023         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
75024         * modules/getpagesize (Files): Add lib/getpagesize.c.
75025         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
75026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75027         REPLACE_GETPAGESIZE.
75028         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
75030 2007-12-25  Bruno Haible  <bruno@clisp.org>
75032         * modules/localcharset (Notice): New field.
75033         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
75034         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
75036 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75037             Bruno Haible  <bruno@clisp.org>
75039         Avoid using the syntax symbol() in formatted documentation.
75040         * MODULES.html.sh (func_module): When replacing symbol() with a
75041         hyperlink, remove the parentheses. Show an error if some remain.
75042         Recognize and render the '...' syntax.
75043         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
75044         Rework. Add paragraph about GCC's inlining.
75045         * doc/alloca.texi: Likewise.
75046         * doc/error.texi: Remove parentheses from symbol reference.
75047         * doc/gnulib-intro.texi: Likewise.
75048         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
75049         * modules/fnmatch (Description): Reword to say "the ... function".
75050         * modules/full-read (Description): Likewise.
75051         * modules/full-write (Description): Likewise.
75052         * modules/safe-read (Description): Likewise.
75053         * modules/safe-write (Description): Likewise.
75054         * modules/strchrnul (Description): Likewise.
75055         * modules/trim (Description): Likewise.
75056         * modules/error (Description): Remove parentheses from symbol
75057         references.
75058         * modules/verror (Description): Likewise.
75059         Reported by Karl Berry.
75061 2007-12-25  Bruno Haible  <bruno@clisp.org>
75063         Fixup after 2007-10-16 commit.
75064         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
75066 2007-12-24  Bruno Haible  <bruno@clisp.org>
75068         Make --enable-relocatable work with DESTDIR.
75069         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
75070         to compute installdir from destprog.
75071         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
75072         also set the RELOC_DESTDIR variable.
75073         Reported by Левашев Иван <octagram@bluebottle.com>.
75075 2007-12-24  Bruno Haible  <bruno@clisp.org>
75077         Fix link error due to xalloc_die().
75078         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
75079         of xreadlink.
75080         * lib/relocwrapper.c: Update comments.
75081         * build-aux/install-reloc: Remove xreadlink.c from file list.
75082         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
75083         xreadlink.c.
75084         Reported by Левашев Иван <octagram@bluebottle.com>.
75086 2007-12-24  Bruno Haible  <bruno@clisp.org>
75088         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
75089         * lib/setenv.h: Remove file.
75090         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
75091         lib/setenv.h.
75092         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
75093         (Depends-on): Add stdlib.
75094         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
75095         gl_FUNC_UNSETENV.
75096         (Include): Replace setenv.h with <stdlib.h>.
75097         * modules/unsetenv: New file.
75098         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
75099         * lib/unsetenv.c: Include <stdlib.h> first.
75100         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
75101         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
75102         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
75103         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
75104         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
75105         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
75106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
75107         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
75108         * doc/functions/unsetenv.texi: Update.
75109         * modules/xsetenv (Depends-on): Add unsetenv.
75110         * modules/getdate (Depends-on): Likewise.
75111         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
75112         * lib/xsetenv.c: Don't include setenv.h.
75113         * lib/getdate.y: Likewise.
75114         * lib/relocwrapper.c: Likewise.
75115         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
75116         (Depends-on): Add stdlib.
75117         * NEWS: Mention the changes.
75118         Reported by Левашев Иван <octagram@bluebottle.com>.
75120 2007-12-23  Bruno Haible  <bruno@clisp.org>
75122         * lib/memmem.c (memmem): Use lowercase variable names. Tab
75123         indentation.
75125 2007-12-23  Bruno Haible  <bruno@clisp.org>
75127         * lib/c-strcasestr.c: Add more comments.
75128         * lib/c-strstr.c: Likewise.
75129         * lib/mbscasestr.c: Likewise.
75130         * lib/mbsstr.c: Likewise.
75131         * lib/strcasestr.c: Likewise.
75132         * lib/memmem.c: Likewise.
75134 2007-12-23  Bruno Haible  <bruno@clisp.org>
75136         * tests/test-memmem.c: Include <string.h> first.
75138 2007-12-22  Bruno Haible  <bruno@clisp.org>
75140         * gnulib-tool (func_create_testdir): Change $auxdir while generating
75141         the contents of $testsbase.
75142         Reported by Ralf Wildenhues.
75144 2007-12-22  Bruno Haible  <bruno@clisp.org>
75146         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
75147         two variables local_ldadd_before, local_ldadd_last.
75149 2007-12-20  Eric Blake  <ebb9@byu.net>
75151         Work around circular library issue when cross-compiling.
75152         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
75153         that progname.o does not need to pull in rpl_memcmp.
75155 2007-12-19  Eric Blake  <ebb9@byu.net>
75157         Fix memmem to avoid O(n^2) worst-case complexity.
75158         * lib/memmem.c (knuth_morris_pratt): New function.
75159         (memmem): Use it if first few naive iterations fail.
75160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
75161         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
75162         * modules/memchr (License): Likewise.
75163         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
75164         malloca.
75165         * tests/test-memmem.c: Rewrite, borrowing ideas from
75166         test-mbsstr1.c; the old version wouldn't even compile!
75167         * modules/memmem-tests: New file.
75168         * lib/string.in.h (rpl_memmem): Add declaration.
75169         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
75170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
75171         REPLACE_MEMMEM.
75173 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75175         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
75176         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
75177         before any system include files, and undef after them all.  This
75178         should fix a problem on VMS reported by John E. Malmberg in
75179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
75181 2007-12-17  Eric Blake  <ebb9@byu.net>
75183         Revert addition of verify, for BSD/OS.
75184         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
75185         can't handle large files, for the sake of obsolete platforms.
75186         * modules/fseeko (Depends-on): Remove verify.
75187         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
75188         * doc/functions/ftello.texi (ftello): Likewise.
75189         * doc/functions/fgetpos.texi (fgetpos): Likewise.
75190         Reported by Larry Jones.
75192 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
75194         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
75195         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
75197 2007-12-17  Jim Meyering  <meyering@redhat.com>
75199         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
75200         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
75201         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
75202         * modules/getcwd (Depends-on): Add openat.
75203         Reported by Petr Salinger.
75205 2007-12-17  Bruno Haible  <bruno@clisp.org>
75207         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
75208         avoid a segmentation fault of the configure test on x86_64 systems.
75210 2007-12-15  Jim Meyering  <meyering@redhat.com>
75212         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
75214 2007-12-13  Eric Blake  <ebb9@byu.net>
75216         Another fseek test.
75217         * tests/test-fseek.c (main): Also test ungetc handling.
75218         * tests/test-fseeko.c (main): Likewise.
75219         * modules/fseeko (Depends-on): Add verify.
75220         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
75221         large.
75222         Reported by Larry Jones.
75224         Fix fseeko on mingw.
75225         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
75226         seek.
75228         Beef up fseek tests.
75229         * tests/test-fseek.c (main): Also test eof handling.
75230         * tests/test-fseeko.c (main): Likewise.
75231         Reported by Larry Jones.
75233 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
75235         Fix fseeko on BSD-based platforms.
75236         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
75237         successful seek.
75239 2007-12-12  Eric Blake  <ebb9@byu.net>
75241         Allow circular dependency of separate libtests.a
75242         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
75243         when use_libtests.
75245 2007-12-11  Eric Blake  <ebb9@byu.net>
75247         Fix bug with -0.0L in previous patch.
75248         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
75249         * tests/test-isnan.c (main): Also test on zeroes.
75250         * tests/test-isnanf.c (main): Likewise.
75251         * tests/test-isnanl.h (main): Likewise.
75253         Detect pseudo-denormals on x86 even when cross-compiling.
75254         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
75255         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
75256         invalid bit patterns that happen to satisfy ==.
75258         Avoid link failures with separate libtests.a.
75259         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
75260         last, to satisfy circular dependencies.
75262 2007-12-11  Eric Blake  <ebb9@byu.net>
75263         and Bruno Haible  <bruno@clisp.org>
75265         Fix OpenBSD 4.0 <float.h> handling of long double.
75266         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
75267         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
75268         * doc/headers/float.texi (float.h): Document OpenBSD bug.
75270 2007-12-11  Jim Meyering  <meyering@redhat.com>
75272         * users.txt: Add libvirt.
75274         Support versions of autoconf prior to 2.59c.
75275         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
75276         if it is not already defined.
75278 2007-12-09  Bruno Haible  <bruno@clisp.org>
75280         Let 'gnulib-tool --import' collect sources needed for the tests in
75281         tests/ rather than in lib/.
75282         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
75283         argument. If true, add rules to generate libtests.a, and put libtests.a
75284         into $(LDADD). Consider source files in subdirectories and set
75285         uses_subdirs.
75286         (func_emit_initmacro_start, func_emit_initmacro_end,
75287         func_emit_initmacro_done): Pass all arguments explicitly.
75288         (func_import): Determine two module lists main_modules,
75289         testsrelated_modules. Determine use_libtests. Determine two variables
75290         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
75291         instead of just sed_transform_lib_file. Determine two variables
75292         main_files and testsrelated_files. Compute 'files' as the union of
75293         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
75294         func_add_or_update. In the generated gnulib-comp.m4, collect the
75295         object files for tests/ in different variables than those for lib/.
75296         Substitute LIBTESTS_LIBDEPS.
75297         (func_create_testdir): Combine the uses_subdirs results from
75298         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
75300 2007-12-09  Bruno Haible  <bruno@clisp.org>
75302         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
75303         the build-aux directory.
75305 2007-12-09  Bruno Haible  <bruno@clisp.org>
75307         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
75308         introduced on 2006-09-09.
75310 2007-12-07  Jim Meyering  <meyering@redhat.com>
75312         Let these macros work also with autoconf-2.59.
75313         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
75314         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
75315         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
75317 2007-12-06  Jim Meyering  <meyering@redhat.com>
75319         Avoid a configure-time syntax error in gl_FUNC_ACL.
75320         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
75321         function in each branch, before testing the cache variable.
75323 2007-12-04  Eric Blake  <ebb9@byu.net>
75325         Make scripts executable.
75326         * build-aux/config.guess: Add execute permissions.
75327         * build-aux/config.sub: Likewise.
75328         * build-aux/gendocs.sh: Likewise.
75330         Fix frexp on mingw.
75331         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
75332         cross-compiling.
75333         * doc/functions/frexp.texi (frexp): Document the bug.
75335         Make cygwin fseeko check more reliable.
75336         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
75337         version numbers, rather than unrelated feature check.
75338         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
75339         * doc/functions/ftello.texi (ftello): Likewise.
75340         Reported by Bruno Haible.
75342         * m4/strerror.m4: Bump version number.
75344 2007-12-03  Bruno Haible  <bruno@clisp.org>
75346         * doc/functions/mprotect.texi: Mention the mingw problem.
75348 2007-12-03  Eric Blake  <ebb9@byu.net>
75350         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
75351         REPLACE_STRERROR is initialized before this macro.
75353 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75355         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
75356         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
75357         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
75358         put -lsec in even for programs other than 'ls'.  This fixes a problem
75359         for gettext reported by Bruno Haible in
75360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
75361         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
75362         Add support for Solaris 10.  This isn't efficient, but should get the
75363         job done for now.
75365 2007-12-03  James Youngman  <jay@gnu.org>
75367         * doc/regexprops-generic.texi: change "an close-group" to "a
75368         close-group" and "illegal" to "not allowed".
75370 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75372         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
75373         pr_byname.h. Needed for the rare case when the maintainer has done
75374         "make maintainer-clean" in the source directory and then attempts a
75375         build outside the source directory.
75376         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
75377         scripts_byname.h.
75379 2007-12-02  Martin Lambers  <marlam@marlam.de>
75380             Bruno Haible  <bruno@clisp.org>
75382         * lib/getpagesize.h: Remove file.
75383         * lib/unistd.in.h: Include declaration of getpagesize here.
75384         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
75385         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
75386         HAVE_SYS_PARAM_H.
75387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
75388         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
75389         * modules/getpagesize (Files): Remove lib/getpagesize.h.
75390         (Depends-on): Add unistd.
75391         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
75392         (Include): Use <unistd.h> instead of getpagesize.h.
75393         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
75394         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
75395         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
75396         gl_GETPAGESIZE invocation, already handled by module dependency.
75397         * lib/pagealign_alloc.c: Don't include getpagesize.h.
75399 2007-12-02  Bruno Haible  <bruno@clisp.org>
75401         * modules/strings-tests: New file.
75402         * tests/test-strings.c: New file.
75404         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
75405         * lib/strings.in.h: New file.
75406         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
75407         * m4/strings_h.m4: New file.
75408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
75409         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
75410         * modules/strings: New file.
75411         * modules/string (Makefile.am): Update.
75412         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
75413         Reported by Karl Berry.
75415 2007-12-01  Eric Blake  <ebb9@byu.net>
75417         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
75418         accommodate fix in cygwin 1.5.25.
75420 2007-12-01  Jim Meyering  <meyering@redhat.com>
75422         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
75423         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
75424         that would inhibit utf8-optimization of a regexp containing line-
75425         or buffer-anchors, e.g., `^', `$'.
75427 2007-11-30  Bruno Haible  <bruno@clisp.org>
75429         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
75430         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
75431         glthread_recursive_lock_init.
75432         * lib/lock.c (glthread_recursive_lock_init)
75433         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
75434         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75436 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
75438         New function qset_acl, like set_acl but with syscall semantics.
75439         * lib/acl.h (qset_acl): New decl.
75440         * lib/acl.c (qset_acl): New function.
75441         (set_acl): Use new function.  Use more-consistent diagnostics.
75443 2007-11-28  Jim Meyering  <meyering@redhat.com>
75445         * modules/physmem (License): Change from GPL to LGPLv2+.
75447 2007-11-26  Bruno Haible  <bruno@clisp.org>
75449         * lib/vasnprintf.c (decode_long_double): Don't abort if the
75450         'long double' type has excess precision.
75451         Reported by Jim Meyering in
75452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
75454 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75456         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
75457         Sync from <http://gnu.org/licenses>.
75458         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
75459         with license text from same location.
75460         * doc/maintain.texi, doc/standards.texi:  Sync from
75461         <http://savannah.gnu.org/projects/gnustandards>.
75463 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
75464         and Jim Meyering  <meyering@redhat.com>
75466         Adjust getdate' grammar to accept a slightly more regular language.
75467         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
75468         Before, the former was rejected.
75469         * lib/getdate.y (digits_to_date_time): New function, factored
75470         out of ...
75471         (number): ...here.  Just call digits_to_date_time.
75472         (hybrid): New non-terminal to handle an <unsigned number,
75473         signed relative offset> sequence consistently.
75475 2007-11-18  Jim Meyering  <meyering@redhat.com>
75477         Pull my changes from coreutils:
75478         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
75479         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
75480         use of $gnulib_tool_option_extras, so that it's separated from the
75481         preceding argument.
75483         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
75484         * build-aux/bootstrap (cp_mark_as_generated): Create any required
75485         parent destination directories before copying a file into place.
75487 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75489         bootstrap: work also with 4-argument variant of AC_INIT
75490         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
75492 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75494         Port test-getaddrinfo to Solaris.
75495         Problem reported by Bruno Haible in
75496         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
75497         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
75498         explanation of setting 'hints'.
75499         Don't reject an implementation merely because it returns EAI_SERVICE.
75500         (EAI_SERVICE): Define to 0 if not defined.
75502 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75504         The license of gnu-make and posix-shell is now "GPLed build tool".
75505         * modules/gnu-make (License): Likewise.
75506         * modules/posix-shell (License): Likewise.
75508         New module posix-shell, for determining a POSIX shell
75509         or perhaps something that is close enough to a POSIX shell.
75510         * m4/posix-shell.m4: New file.
75511         * modules/posix-shell: New file.
75513         * MODULES.html.sh: Mention new module.
75515         New module gnu-make, for determining whether we're using GNU Make.
75516         * m4/gnu-make.m4: New file.
75517         * modules/gnu-make: New file.
75518         * MODULES.html.sh: Mention new module.
75520 2007-11-14  Jim Meyering  <meyering@redhat.com>
75522         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
75523         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
75524         use this macro to create a function _definition_.
75525         Remove useless "#undef ARGMATCH_DIE".
75527 2007-11-14  Bruno Haible  <bruno@clisp.org>
75529         * lib/config.charset: Update for OpenBSD 4.1.
75530         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
75532 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
75534         Document 64-bit #if problems in stdint.texi.
75535         * doc/headers/stdint.texi (stdint.h): Mention problems with
75536         64-bit-#if, and how to work around them.
75538         Don't insist on 'long long int' support in the preprocessor.  It
75539         breaks too many things.  For example, PRIdMAX still uses a 'long
75540         long int' format with the latest Sun compiler, even though
75541         HAVE_LONG_LONG_INT isn't defined due to that compiler's
75542         preprocessor problem.  This causes the latest coreutils to dump
75543         core on Solaris 10 sparc with the Sun C compiler.
75544         Instead, fix the 2007-10-16 problem in a different way, by evaluating
75545         the troublesome expressions at configure-time, not at #if-time.
75546         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
75547         preprocessor.
75548         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
75549         compile-time C checks, done at 'configure'-time.
75550         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
75551         * modules/inttypes (Makefile): Substitute the new symbols that
75552         gl_INTTYPES_H now generates.
75553         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
75555 2007-11-12  Bruno Haible  <bruno@clisp.org>
75557         Tests for Unicode character classification functions.
75559         * modules/unictype/bidicategory-byname-tests: New file.
75560         * modules/unictype/bidicategory-name-tests: New file.
75561         * modules/unictype/bidicategory-of-tests: New file.
75562         * modules/unictype/bidicategory-test-tests: New file.
75563         * modules/unictype/block-list-tests: New file.
75564         * modules/unictype/block-of-tests: New file.
75565         * modules/unictype/block-test-tests: New file.
75566         * modules/unictype/category-C-tests: New file.
75567         * modules/unictype/category-Cc-tests: New file.
75568         * modules/unictype/category-Cf-tests: New file.
75569         * modules/unictype/category-Cn-tests: New file.
75570         * modules/unictype/category-Co-tests: New file.
75571         * modules/unictype/category-Cs-tests: New file.
75572         * modules/unictype/category-L-tests: New file.
75573         * modules/unictype/category-Ll-tests: New file.
75574         * modules/unictype/category-Lm-tests: New file.
75575         * modules/unictype/category-Lo-tests: New file.
75576         * modules/unictype/category-Lt-tests: New file.
75577         * modules/unictype/category-Lu-tests: New file.
75578         * modules/unictype/category-M-tests: New file.
75579         * modules/unictype/category-Mc-tests: New file.
75580         * modules/unictype/category-Me-tests: New file.
75581         * modules/unictype/category-Mn-tests: New file.
75582         * modules/unictype/category-N-tests: New file.
75583         * modules/unictype/category-Nd-tests: New file.
75584         * modules/unictype/category-Nl-tests: New file.
75585         * modules/unictype/category-No-tests: New file.
75586         * modules/unictype/category-P-tests: New file.
75587         * modules/unictype/category-Pc-tests: New file.
75588         * modules/unictype/category-Pd-tests: New file.
75589         * modules/unictype/category-Pe-tests: New file.
75590         * modules/unictype/category-Pf-tests: New file.
75591         * modules/unictype/category-Pi-tests: New file.
75592         * modules/unictype/category-Po-tests: New file.
75593         * modules/unictype/category-Ps-tests: New file.
75594         * modules/unictype/category-S-tests: New file.
75595         * modules/unictype/category-Sc-tests: New file.
75596         * modules/unictype/category-Sk-tests: New file.
75597         * modules/unictype/category-Sm-tests: New file.
75598         * modules/unictype/category-So-tests: New file.
75599         * modules/unictype/category-Z-tests: New file.
75600         * modules/unictype/category-Zl-tests: New file.
75601         * modules/unictype/category-Zp-tests: New file.
75602         * modules/unictype/category-Zs-tests: New file.
75603         * modules/unictype/category-and-not-tests: New file.
75604         * modules/unictype/category-and-tests: New file.
75605         * modules/unictype/category-byname-tests: New file.
75606         * modules/unictype/category-name-tests: New file.
75607         * modules/unictype/category-none-tests: New file.
75608         * modules/unictype/category-of-tests: New file.
75609         * modules/unictype/category-or-tests: New file.
75610         * modules/unictype/category-test-withtable-tests: New file.
75611         * modules/unictype/combining-class-tests: New file.
75612         * modules/unictype/ctype-alnum-tests: New file.
75613         * modules/unictype/ctype-alpha-tests: New file.
75614         * modules/unictype/ctype-blank-tests: New file.
75615         * modules/unictype/ctype-cntrl-tests: New file.
75616         * modules/unictype/ctype-digit-tests: New file.
75617         * modules/unictype/ctype-graph-tests: New file.
75618         * modules/unictype/ctype-lower-tests: New file.
75619         * modules/unictype/ctype-print-tests: New file.
75620         * modules/unictype/ctype-punct-tests: New file.
75621         * modules/unictype/ctype-space-tests: New file.
75622         * modules/unictype/ctype-upper-tests: New file.
75623         * modules/unictype/ctype-xdigit-tests: New file.
75624         * modules/unictype/decimal-digit-tests: New file.
75625         * modules/unictype/digit-tests: New file.
75626         * modules/unictype/mirror-tests: New file.
75627         * modules/unictype/numeric-tests: New file.
75628         * modules/unictype/property-alphabetic-tests: New file.
75629         * modules/unictype/property-ascii-hex-digit-tests: New file.
75630         * modules/unictype/property-bidi-arabic-digit-tests: New file.
75631         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
75632         * modules/unictype/property-bidi-block-separator-tests: New file.
75633         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
75634         * modules/unictype/property-bidi-common-separator-tests: New file.
75635         * modules/unictype/property-bidi-control-tests: New file.
75636         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
75637         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
75638         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
75639         * modules/unictype/property-bidi-european-digit-tests: New file.
75640         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
75641         * modules/unictype/property-bidi-left-to-right-tests: New file.
75642         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
75643         * modules/unictype/property-bidi-other-neutral-tests: New file.
75644         * modules/unictype/property-bidi-pdf-tests: New file.
75645         * modules/unictype/property-bidi-segment-separator-tests: New file.
75646         * modules/unictype/property-bidi-whitespace-tests: New file.
75647         * modules/unictype/property-byname-tests: New file.
75648         * modules/unictype/property-combining-tests: New file.
75649         * modules/unictype/property-composite-tests: New file.
75650         * modules/unictype/property-currency-symbol-tests: New file.
75651         * modules/unictype/property-dash-tests: New file.
75652         * modules/unictype/property-decimal-digit-tests: New file.
75653         * modules/unictype/property-default-ignorable-code-point-tests: New file.
75654         * modules/unictype/property-deprecated-tests: New file.
75655         * modules/unictype/property-diacritic-tests: New file.
75656         * modules/unictype/property-extender-tests: New file.
75657         * modules/unictype/property-format-control-tests: New file.
75658         * modules/unictype/property-grapheme-base-tests: New file.
75659         * modules/unictype/property-grapheme-extend-tests: New file.
75660         * modules/unictype/property-grapheme-link-tests: New file.
75661         * modules/unictype/property-hex-digit-tests: New file.
75662         * modules/unictype/property-hyphen-tests: New file.
75663         * modules/unictype/property-id-continue-tests: New file.
75664         * modules/unictype/property-id-start-tests: New file.
75665         * modules/unictype/property-ideographic-tests: New file.
75666         * modules/unictype/property-ids-binary-operator-tests: New file.
75667         * modules/unictype/property-ids-trinary-operator-tests: New file.
75668         * modules/unictype/property-ignorable-control-tests: New file.
75669         * modules/unictype/property-iso-control-tests: New file.
75670         * modules/unictype/property-join-control-tests: New file.
75671         * modules/unictype/property-left-of-pair-tests: New file.
75672         * modules/unictype/property-line-separator-tests: New file.
75673         * modules/unictype/property-logical-order-exception-tests: New file.
75674         * modules/unictype/property-lowercase-tests: New file.
75675         * modules/unictype/property-math-tests: New file.
75676         * modules/unictype/property-non-break-tests: New file.
75677         * modules/unictype/property-not-a-character-tests: New file.
75678         * modules/unictype/property-numeric-tests: New file.
75679         * modules/unictype/property-other-alphabetic-tests: New file.
75680         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
75681         * modules/unictype/property-other-grapheme-extend-tests: New file.
75682         * modules/unictype/property-other-id-continue-tests: New file.
75683         * modules/unictype/property-other-id-start-tests: New file.
75684         * modules/unictype/property-other-lowercase-tests: New file.
75685         * modules/unictype/property-other-math-tests: New file.
75686         * modules/unictype/property-other-uppercase-tests: New file.
75687         * modules/unictype/property-paired-punctuation-tests: New file.
75688         * modules/unictype/property-paragraph-separator-tests: New file.
75689         * modules/unictype/property-pattern-syntax-tests: New file.
75690         * modules/unictype/property-pattern-white-space-tests: New file.
75691         * modules/unictype/property-private-use-tests: New file.
75692         * modules/unictype/property-punctuation-tests: New file.
75693         * modules/unictype/property-quotation-mark-tests: New file.
75694         * modules/unictype/property-radical-tests: New file.
75695         * modules/unictype/property-sentence-terminal-tests: New file.
75696         * modules/unictype/property-soft-dotted-tests: New file.
75697         * modules/unictype/property-space-tests: New file.
75698         * modules/unictype/property-terminal-punctuation-tests: New file.
75699         * modules/unictype/property-test-tests: New file.
75700         * modules/unictype/property-titlecase-tests: New file.
75701         * modules/unictype/property-unassigned-code-value-tests: New file.
75702         * modules/unictype/property-unified-ideograph-tests: New file.
75703         * modules/unictype/property-uppercase-tests: New file.
75704         * modules/unictype/property-variation-selector-tests: New file.
75705         * modules/unictype/property-white-space-tests: New file.
75706         * modules/unictype/property-xid-continue-tests: New file.
75707         * modules/unictype/property-xid-start-tests: New file.
75708         * modules/unictype/property-zero-width-tests: New file.
75709         * modules/unictype/scripts-tests: New file.
75710         * modules/unictype/syntax-c-ident-tests: New file.
75711         * modules/unictype/syntax-c-whitespace-tests: New file.
75712         * modules/unictype/syntax-java-ident-tests: New file.
75713         * modules/unictype/syntax-java-whitespace-tests: New file.
75714         * tests/unictype/test-bidi_byname.c: New file.
75715         * tests/unictype/test-bidi_name.c: New file.
75716         * tests/unictype/test-bidi_of.c: New file.
75717         * tests/unictype/test-bidi_test.c: New file.
75718         * tests/unictype/test-block_list.c: New file.
75719         * tests/unictype/test-block_of.c: New file.
75720         * tests/unictype/test-block_test.c: New file.
75721         * tests/unictype/test-categ_and.c: New file.
75722         * tests/unictype/test-categ_and_not.c: New file.
75723         * tests/unictype/test-categ_byname.c: New file.
75724         * tests/unictype/test-categ_name.c: New file.
75725         * tests/unictype/test-categ_none.c: New file.
75726         * tests/unictype/test-categ_of.c: New file.
75727         * tests/unictype/test-categ_or.c: New file.
75728         * tests/unictype/test-categ_test_withtable.c: New file.
75729         * tests/unictype/test-combining.c: New file.
75730         * tests/unictype/test-decdigit.c: New file.
75731         * tests/unictype/test-digit.c: New file.
75732         * tests/unictype/test-mirror.c: New file.
75733         * tests/unictype/test-numeric.c: New file.
75734         * tests/unictype/test-pr_byname.c: New file.
75735         * tests/unictype/test-pr_test.c: New file.
75736         * tests/unictype/test-predicate-part1.h: New file.
75737         * tests/unictype/test-predicate-part2.h: New file.
75738         * tests/unictype/test-scripts.c: New file.
75739         * tests/unictype/test-sy_c_ident.c: New file.
75740         * tests/unictype/test-sy_java_ident.c: New file.
75742         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
75743         for Unicode 5.0.0.
75744         * tests/unictype/test-categ_Cc.c: Likewise.
75745         * tests/unictype/test-categ_Cf.c: Likewise.
75746         * tests/unictype/test-categ_Cn.c: Likewise.
75747         * tests/unictype/test-categ_Co.c: Likewise.
75748         * tests/unictype/test-categ_Cs.c: Likewise.
75749         * tests/unictype/test-categ_L.c: Likewise.
75750         * tests/unictype/test-categ_Ll.c: Likewise.
75751         * tests/unictype/test-categ_Lm.c: Likewise.
75752         * tests/unictype/test-categ_Lo.c: Likewise.
75753         * tests/unictype/test-categ_Lt.c: Likewise.
75754         * tests/unictype/test-categ_Lu.c: Likewise.
75755         * tests/unictype/test-categ_M.c: Likewise.
75756         * tests/unictype/test-categ_Mc.c: Likewise.
75757         * tests/unictype/test-categ_Me.c: Likewise.
75758         * tests/unictype/test-categ_Mn.c: Likewise.
75759         * tests/unictype/test-categ_N.c: Likewise.
75760         * tests/unictype/test-categ_Nd.c: Likewise.
75761         * tests/unictype/test-categ_Nl.c: Likewise.
75762         * tests/unictype/test-categ_No.c: Likewise.
75763         * tests/unictype/test-categ_P.c: Likewise.
75764         * tests/unictype/test-categ_Pc.c: Likewise.
75765         * tests/unictype/test-categ_Pd.c: Likewise.
75766         * tests/unictype/test-categ_Pe.c: Likewise.
75767         * tests/unictype/test-categ_Pf.c: Likewise.
75768         * tests/unictype/test-categ_Pi.c: Likewise.
75769         * tests/unictype/test-categ_Po.c: Likewise.
75770         * tests/unictype/test-categ_Ps.c: Likewise.
75771         * tests/unictype/test-categ_S.c: Likewise.
75772         * tests/unictype/test-categ_Sc.c: Likewise.
75773         * tests/unictype/test-categ_Sk.c: Likewise.
75774         * tests/unictype/test-categ_Sm.c: Likewise.
75775         * tests/unictype/test-categ_So.c: Likewise.
75776         * tests/unictype/test-categ_Z.c: Likewise.
75777         * tests/unictype/test-categ_Zl.c: Likewise.
75778         * tests/unictype/test-categ_Zp.c: Likewise.
75779         * tests/unictype/test-categ_Zs.c: Likewise.
75780         * tests/unictype/test-ctype_alnum.c: Likewise.
75781         * tests/unictype/test-ctype_alpha.c: Likewise.
75782         * tests/unictype/test-ctype_blank.c: Likewise.
75783         * tests/unictype/test-ctype_cntrl.c: Likewise.
75784         * tests/unictype/test-ctype_digit.c: Likewise.
75785         * tests/unictype/test-ctype_graph.c: Likewise.
75786         * tests/unictype/test-ctype_lower.c: Likewise.
75787         * tests/unictype/test-ctype_print.c: Likewise.
75788         * tests/unictype/test-ctype_punct.c: Likewise.
75789         * tests/unictype/test-ctype_space.c: Likewise.
75790         * tests/unictype/test-ctype_upper.c: Likewise.
75791         * tests/unictype/test-ctype_xdigit.c: Likewise.
75792         * tests/unictype/test-decdigit.h: Likewise.
75793         * tests/unictype/test-digit.h: Likewise.
75794         * tests/unictype/test-numeric.h: Likewise.
75795         * tests/unictype/test-pr_alphabetic.c: Likewise.
75796         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
75797         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
75798         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
75799         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
75800         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
75801         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
75802         * tests/unictype/test-pr_bidi_control.c: Likewise.
75803         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
75804         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
75805         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
75806         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
75807         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
75808         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
75809         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
75810         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
75811         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
75812         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
75813         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
75814         * tests/unictype/test-pr_combining.c: Likewise.
75815         * tests/unictype/test-pr_composite.c: Likewise.
75816         * tests/unictype/test-pr_currency_symbol.c: Likewise.
75817         * tests/unictype/test-pr_dash.c: Likewise.
75818         * tests/unictype/test-pr_decimal_digit.c: Likewise.
75819         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
75820         * tests/unictype/test-pr_deprecated.c: Likewise.
75821         * tests/unictype/test-pr_diacritic.c: Likewise.
75822         * tests/unictype/test-pr_extender.c: Likewise.
75823         * tests/unictype/test-pr_format_control.c: Likewise.
75824         * tests/unictype/test-pr_grapheme_base.c: Likewise.
75825         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
75826         * tests/unictype/test-pr_grapheme_link.c: Likewise.
75827         * tests/unictype/test-pr_hex_digit.c: Likewise.
75828         * tests/unictype/test-pr_hyphen.c: Likewise.
75829         * tests/unictype/test-pr_id_continue.c: Likewise.
75830         * tests/unictype/test-pr_id_start.c: Likewise.
75831         * tests/unictype/test-pr_ideographic.c: Likewise.
75832         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
75833         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
75834         * tests/unictype/test-pr_ignorable_control.c: Likewise.
75835         * tests/unictype/test-pr_iso_control.c: Likewise.
75836         * tests/unictype/test-pr_join_control.c: Likewise.
75837         * tests/unictype/test-pr_left_of_pair.c: Likewise.
75838         * tests/unictype/test-pr_line_separator.c: Likewise.
75839         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
75840         * tests/unictype/test-pr_lowercase.c: Likewise.
75841         * tests/unictype/test-pr_math.c: Likewise.
75842         * tests/unictype/test-pr_non_break.c: Likewise.
75843         * tests/unictype/test-pr_not_a_character.c: Likewise.
75844         * tests/unictype/test-pr_numeric.c: Likewise.
75845         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
75846         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
75847         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
75848         * tests/unictype/test-pr_other_id_continue.c: Likewise.
75849         * tests/unictype/test-pr_other_id_start.c: Likewise.
75850         * tests/unictype/test-pr_other_lowercase.c: Likewise.
75851         * tests/unictype/test-pr_other_math.c: Likewise.
75852         * tests/unictype/test-pr_other_uppercase.c: Likewise.
75853         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
75854         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
75855         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
75856         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
75857         * tests/unictype/test-pr_private_use.c: Likewise.
75858         * tests/unictype/test-pr_punctuation.c: Likewise.
75859         * tests/unictype/test-pr_quotation_mark.c: Likewise.
75860         * tests/unictype/test-pr_radical.c: Likewise.
75861         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
75862         * tests/unictype/test-pr_soft_dotted.c: Likewise.
75863         * tests/unictype/test-pr_space.c: Likewise.
75864         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
75865         * tests/unictype/test-pr_titlecase.c: Likewise.
75866         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
75867         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
75868         * tests/unictype/test-pr_uppercase.c: Likewise.
75869         * tests/unictype/test-pr_variation_selector.c: Likewise.
75870         * tests/unictype/test-pr_white_space.c: Likewise.
75871         * tests/unictype/test-pr_xid_continue.c: Likewise.
75872         * tests/unictype/test-pr_xid_start.c: Likewise.
75873         * tests/unictype/test-pr_zero_width.c: Likewise.
75874         * tests/unictype/test-sy_c_whitespace.c: Likewise.
75875         * tests/unictype/test-sy_java_whitespace.c: Likewise.
75877 2007-11-12  Bruno Haible  <bruno@clisp.org>
75879         Unicode character classification functions.
75880         * lib/unictype.h: New file.
75881         * modules/unictype/base: New file.
75882         * modules/unictype/category-L: New file.
75883         * modules/unictype/category-Lu: New file.
75884         * modules/unictype/category-Ll: New file.
75885         * modules/unictype/category-Lt: New file.
75886         * modules/unictype/category-Lm: New file.
75887         * modules/unictype/category-Lo: New file.
75888         * modules/unictype/category-M: New file.
75889         * modules/unictype/category-Mn: New file.
75890         * modules/unictype/category-Mc: New file.
75891         * modules/unictype/category-Me: New file.
75892         * modules/unictype/category-N: New file.
75893         * modules/unictype/category-Nd: New file.
75894         * modules/unictype/category-Nl: New file.
75895         * modules/unictype/category-No: New file.
75896         * modules/unictype/category-P: New file.
75897         * modules/unictype/category-Pc: New file.
75898         * modules/unictype/category-Pd: New file.
75899         * modules/unictype/category-Ps: New file.
75900         * modules/unictype/category-Pe: New file.
75901         * modules/unictype/category-Pi: New file.
75902         * modules/unictype/category-Pf: New file.
75903         * modules/unictype/category-Po: New file.
75904         * modules/unictype/category-S: New file.
75905         * modules/unictype/category-Sm: New file.
75906         * modules/unictype/category-Sc: New file.
75907         * modules/unictype/category-Sk: New file.
75908         * modules/unictype/category-So: New file.
75909         * modules/unictype/category-Z: New file.
75910         * modules/unictype/category-Zs: New file.
75911         * modules/unictype/category-Zl: New file.
75912         * modules/unictype/category-Zp: New file.
75913         * modules/unictype/category-C: New file.
75914         * modules/unictype/category-Cc: New file.
75915         * modules/unictype/category-Cf: New file.
75916         * modules/unictype/category-Cs: New file.
75917         * modules/unictype/category-Co: New file.
75918         * modules/unictype/category-Cn: New file.
75919         * modules/unictype/category-or: New file.
75920         * modules/unictype/category-of: New file.
75921         * modules/unictype/category-test: New file.
75922         * modules/unictype/category-test-withtable: New file.
75923         * modules/unictype/category-byname: New file.
75924         * modules/unictype/category-none: New file.
75925         * modules/unictype/category-and: New file.
75926         * modules/unictype/category-and-not: New file.
75927         * modules/unictype/category-name: New file.
75928         * modules/unictype/combining-class: New file.
75929         * modules/unictype/category-all: New file.
75930         * modules/unictype/bidicategory-all: New file.
75931         * modules/unictype/bidicategory-byname: New file.
75932         * modules/unictype/bidicategory-name: New file.
75933         * modules/unictype/bidicategory-of: New file.
75934         * modules/unictype/bidicategory-test: New file.
75935         * modules/unictype/decimal-digit: New file.
75936         * modules/unictype/digit: New file.
75937         * modules/unictype/numeric: New file.
75938         * modules/unictype/mirror: New file.
75939         * modules/unictype/property-white-space: New file.
75940         * modules/unictype/property-alphabetic: New file.
75941         * modules/unictype/property-other-alphabetic: New file.
75942         * modules/unictype/property-not-a-character: New file.
75943         * modules/unictype/property-default-ignorable-code-point: New file.
75944         * modules/unictype/property-other-default-ignorable-code-point: New
75945         file.
75946         * modules/unictype/property-deprecated: New file.
75947         * modules/unictype/property-logical-order-exception: New file.
75948         * modules/unictype/property-variation-selector: New file.
75949         * modules/unictype/property-private-use: New file.
75950         * modules/unictype/property-unassigned-code-value: New file.
75951         * modules/unictype/property-uppercase: New file.
75952         * modules/unictype/property-other-uppercase: New file.
75953         * modules/unictype/property-lowercase: New file.
75954         * modules/unictype/property-other-lowercase: New file.
75955         * modules/unictype/property-titlecase: New file.
75956         * modules/unictype/property-soft-dotted: New file.
75957         * modules/unictype/property-id-start: New file.
75958         * modules/unictype/property-other-id-start: New file.
75959         * modules/unictype/property-id-continue: New file.
75960         * modules/unictype/property-other-id-continue: New file.
75961         * modules/unictype/property-xid-start: New file.
75962         * modules/unictype/property-xid-continue: New file.
75963         * modules/unictype/property-pattern-white-space: New file.
75964         * modules/unictype/property-pattern-syntax: New file.
75965         * modules/unictype/property-join-control: New file.
75966         * modules/unictype/property-grapheme-base: New file.
75967         * modules/unictype/property-grapheme-extend: New file.
75968         * modules/unictype/property-other-grapheme-extend: New file.
75969         * modules/unictype/property-grapheme-link: New file.
75970         * modules/unictype/property-bidi-control: New file.
75971         * modules/unictype/property-bidi-left-to-right: New file.
75972         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
75973         * modules/unictype/property-bidi-arabic-right-to-left: New file.
75974         * modules/unictype/property-bidi-european-digit: New file.
75975         * modules/unictype/property-bidi-eur-num-separator: New file.
75976         * modules/unictype/property-bidi-eur-num-terminator: New file.
75977         * modules/unictype/property-bidi-arabic-digit: New file.
75978         * modules/unictype/property-bidi-common-separator: New file.
75979         * modules/unictype/property-bidi-block-separator: New file.
75980         * modules/unictype/property-bidi-segment-separator: New file.
75981         * modules/unictype/property-bidi-whitespace: New file.
75982         * modules/unictype/property-bidi-non-spacing-mark: New file.
75983         * modules/unictype/property-bidi-boundary-neutral: New file.
75984         * modules/unictype/property-bidi-pdf: New file.
75985         * modules/unictype/property-bidi-embedding-or-override: New file.
75986         * modules/unictype/property-bidi-other-neutral: New file.
75987         * modules/unictype/property-hex-digit: New file.
75988         * modules/unictype/property-ascii-hex-digit: New file.
75989         * modules/unictype/property-ideographic: New file.
75990         * modules/unictype/property-unified-ideograph: New file.
75991         * modules/unictype/property-radical: New file.
75992         * modules/unictype/property-ids-binary-operator: New file.
75993         * modules/unictype/property-ids-trinary-operator: New file.
75994         * modules/unictype/property-zero-width: New file.
75995         * modules/unictype/property-space: New file.
75996         * modules/unictype/property-non-break: New file.
75997         * modules/unictype/property-iso-control: New file.
75998         * modules/unictype/property-format-control: New file.
75999         * modules/unictype/property-dash: New file.
76000         * modules/unictype/property-hyphen: New file.
76001         * modules/unictype/property-punctuation: New file.
76002         * modules/unictype/property-line-separator: New file.
76003         * modules/unictype/property-paragraph-separator: New file.
76004         * modules/unictype/property-quotation-mark: New file.
76005         * modules/unictype/property-sentence-terminal: New file.
76006         * modules/unictype/property-terminal-punctuation: New file.
76007         * modules/unictype/property-currency-symbol: New file.
76008         * modules/unictype/property-math: New file.
76009         * modules/unictype/property-other-math: New file.
76010         * modules/unictype/property-paired-punctuation: New file.
76011         * modules/unictype/property-left-of-pair: New file.
76012         * modules/unictype/property-combining: New file.
76013         * modules/unictype/property-composite: New file.
76014         * modules/unictype/property-decimal-digit: New file.
76015         * modules/unictype/property-numeric: New file.
76016         * modules/unictype/property-diacritic: New file.
76017         * modules/unictype/property-extender: New file.
76018         * modules/unictype/property-ignorable-control: New file.
76019         * modules/unictype/property-test: New file.
76020         * modules/unictype/property-byname: New file.
76021         * modules/unictype/property-all: New file.
76022         * modules/unictype/scripts: New file.
76023         * modules/unictype/scripts-all: New file.
76024         * modules/unictype/block-of: New file.
76025         * modules/unictype/block-test: New file.
76026         * modules/unictype/block-list: New file.
76027         * modules/unictype/block-all: New file.
76028         * modules/unictype/syntax-c-whitespace: New file.
76029         * modules/unictype/syntax-java-whitespace: New file.
76030         * modules/unictype/syntax-c-ident: New file.
76031         * modules/unictype/syntax-java-ident: New file.
76032         * modules/unictype/ctype-alnum: New file.
76033         * modules/unictype/ctype-alpha: New file.
76034         * modules/unictype/ctype-cntrl: New file.
76035         * modules/unictype/ctype-digit: New file.
76036         * modules/unictype/ctype-graph: New file.
76037         * modules/unictype/ctype-lower: New file.
76038         * modules/unictype/ctype-print: New file.
76039         * modules/unictype/ctype-punct: New file.
76040         * modules/unictype/ctype-space: New file.
76041         * modules/unictype/ctype-upper: New file.
76042         * modules/unictype/ctype-xdigit: New file.
76043         * modules/unictype/ctype-blank: New file.
76044         * lib/unictype/bidi_byname.c: New file.
76045         * lib/unictype/bidi_name.c: New file.
76046         * lib/unictype/bidi_of.c: New file.
76047         * lib/unictype/bidi_test.c: New file.
76048         * lib/unictype/bitmap.h: New file.
76049         * lib/unictype/block_test.c: New file.
76050         * lib/unictype/blocks.c: New file.
76051         * lib/unictype/categ_C.c: New file.
76052         * lib/unictype/categ_Cc.c: New file.
76053         * lib/unictype/categ_Cf.c: New file.
76054         * lib/unictype/categ_Cn.c: New file.
76055         * lib/unictype/categ_Co.c: New file.
76056         * lib/unictype/categ_Cs.c: New file.
76057         * lib/unictype/categ_L.c: New file.
76058         * lib/unictype/categ_Ll.c: New file.
76059         * lib/unictype/categ_Lm.c: New file.
76060         * lib/unictype/categ_Lo.c: New file.
76061         * lib/unictype/categ_Lt.c: New file.
76062         * lib/unictype/categ_Lu.c: New file.
76063         * lib/unictype/categ_M.c: New file.
76064         * lib/unictype/categ_Mc.c: New file.
76065         * lib/unictype/categ_Me.c: New file.
76066         * lib/unictype/categ_Mn.c: New file.
76067         * lib/unictype/categ_N.c: New file.
76068         * lib/unictype/categ_Nd.c: New file.
76069         * lib/unictype/categ_Nl.c: New file.
76070         * lib/unictype/categ_No.c: New file.
76071         * lib/unictype/categ_P.c: New file.
76072         * lib/unictype/categ_Pc.c: New file.
76073         * lib/unictype/categ_Pd.c: New file.
76074         * lib/unictype/categ_Pe.c: New file.
76075         * lib/unictype/categ_Pf.c: New file.
76076         * lib/unictype/categ_Pi.c: New file.
76077         * lib/unictype/categ_Po.c: New file.
76078         * lib/unictype/categ_Ps.c: New file.
76079         * lib/unictype/categ_S.c: New file.
76080         * lib/unictype/categ_Sc.c: New file.
76081         * lib/unictype/categ_Sk.c: New file.
76082         * lib/unictype/categ_Sm.c: New file.
76083         * lib/unictype/categ_So.c: New file.
76084         * lib/unictype/categ_Z.c: New file.
76085         * lib/unictype/categ_Zl.c: New file.
76086         * lib/unictype/categ_Zp.c: New file.
76087         * lib/unictype/categ_Zs.c: New file.
76088         * lib/unictype/categ_and.c: New file.
76089         * lib/unictype/categ_and_not.c: New file.
76090         * lib/unictype/categ_byname.c: New file.
76091         * lib/unictype/categ_name.c: New file.
76092         * lib/unictype/categ_none.c: New file.
76093         * lib/unictype/categ_of.c: New file.
76094         * lib/unictype/categ_or.c: New file.
76095         * lib/unictype/categ_test.c: New file.
76096         * lib/unictype/combining.c: New file.
76097         * lib/unictype/ctype_alnum.c: New file.
76098         * lib/unictype/ctype_alpha.c: New file.
76099         * lib/unictype/ctype_blank.c: New file.
76100         * lib/unictype/ctype_cntrl.c: New file.
76101         * lib/unictype/ctype_digit.c: New file.
76102         * lib/unictype/ctype_graph.c: New file.
76103         * lib/unictype/ctype_lower.c: New file.
76104         * lib/unictype/ctype_print.c: New file.
76105         * lib/unictype/ctype_punct.c: New file.
76106         * lib/unictype/ctype_space.c: New file.
76107         * lib/unictype/ctype_upper.c: New file.
76108         * lib/unictype/ctype_xdigit.c: New file.
76109         * lib/unictype/decdigit.c: New file.
76110         * lib/unictype/digit.c: New file.
76111         * lib/unictype/identsyntaxmap.h: New file.
76112         * lib/unictype/mirror.c: New file.
76113         * lib/unictype/numeric.c: New file.
76114         * lib/unictype/pr_alphabetic.c: New file.
76115         * lib/unictype/pr_ascii_hex_digit.c: New file.
76116         * lib/unictype/pr_bidi_arabic_digit.c: New file.
76117         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
76118         * lib/unictype/pr_bidi_block_separator.c: New file.
76119         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
76120         * lib/unictype/pr_bidi_common_separator.c: New file.
76121         * lib/unictype/pr_bidi_control.c: New file.
76122         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
76123         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
76124         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
76125         * lib/unictype/pr_bidi_european_digit.c: New file.
76126         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
76127         * lib/unictype/pr_bidi_left_to_right.c: New file.
76128         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
76129         * lib/unictype/pr_bidi_other_neutral.c: New file.
76130         * lib/unictype/pr_bidi_pdf.c: New file.
76131         * lib/unictype/pr_bidi_segment_separator.c: New file.
76132         * lib/unictype/pr_bidi_whitespace.c: New file.
76133         * lib/unictype/pr_byname.c: New file.
76134         * lib/unictype/pr_byname.gperf: New file.
76135         * lib/unictype/pr_combining.c: New file.
76136         * lib/unictype/pr_composite.c: New file.
76137         * lib/unictype/pr_currency_symbol.c: New file.
76138         * lib/unictype/pr_dash.c: New file.
76139         * lib/unictype/pr_decimal_digit.c: New file.
76140         * lib/unictype/pr_default_ignorable_code_point.c: New file.
76141         * lib/unictype/pr_deprecated.c: New file.
76142         * lib/unictype/pr_diacritic.c: New file.
76143         * lib/unictype/pr_extender.c: New file.
76144         * lib/unictype/pr_format_control.c: New file.
76145         * lib/unictype/pr_grapheme_base.c: New file.
76146         * lib/unictype/pr_grapheme_extend.c: New file.
76147         * lib/unictype/pr_grapheme_link.c: New file.
76148         * lib/unictype/pr_hex_digit.c: New file.
76149         * lib/unictype/pr_hyphen.c: New file.
76150         * lib/unictype/pr_id_continue.c: New file.
76151         * lib/unictype/pr_id_start.c: New file.
76152         * lib/unictype/pr_ideographic.c: New file.
76153         * lib/unictype/pr_ids_binary_operator.c: New file.
76154         * lib/unictype/pr_ids_trinary_operator.c: New file.
76155         * lib/unictype/pr_ignorable_control.c: New file.
76156         * lib/unictype/pr_iso_control.c: New file.
76157         * lib/unictype/pr_join_control.c: New file.
76158         * lib/unictype/pr_left_of_pair.c: New file.
76159         * lib/unictype/pr_line_separator.c: New file.
76160         * lib/unictype/pr_logical_order_exception.c: New file.
76161         * lib/unictype/pr_lowercase.c: New file.
76162         * lib/unictype/pr_math.c: New file.
76163         * lib/unictype/pr_non_break.c: New file.
76164         * lib/unictype/pr_not_a_character.c: New file.
76165         * lib/unictype/pr_numeric.c: New file.
76166         * lib/unictype/pr_other_alphabetic.c: New file.
76167         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
76168         * lib/unictype/pr_other_grapheme_extend.c: New file.
76169         * lib/unictype/pr_other_id_continue.c: New file.
76170         * lib/unictype/pr_other_id_start.c: New file.
76171         * lib/unictype/pr_other_lowercase.c: New file.
76172         * lib/unictype/pr_other_math.c: New file.
76173         * lib/unictype/pr_other_uppercase.c: New file.
76174         * lib/unictype/pr_paired_punctuation.c: New file.
76175         * lib/unictype/pr_paragraph_separator.c: New file.
76176         * lib/unictype/pr_pattern_syntax.c: New file.
76177         * lib/unictype/pr_pattern_white_space.c: New file.
76178         * lib/unictype/pr_private_use.c: New file.
76179         * lib/unictype/pr_punctuation.c: New file.
76180         * lib/unictype/pr_quotation_mark.c: New file.
76181         * lib/unictype/pr_radical.c: New file.
76182         * lib/unictype/pr_sentence_terminal.c: New file.
76183         * lib/unictype/pr_soft_dotted.c: New file.
76184         * lib/unictype/pr_space.c: New file.
76185         * lib/unictype/pr_terminal_punctuation.c: New file.
76186         * lib/unictype/pr_test.c: New file.
76187         * lib/unictype/pr_titlecase.c: New file.
76188         * lib/unictype/pr_unassigned_code_value.c: New file.
76189         * lib/unictype/pr_unified_ideograph.c: New file.
76190         * lib/unictype/pr_uppercase.c: New file.
76191         * lib/unictype/pr_variation_selector.c: New file.
76192         * lib/unictype/pr_white_space.c: New file.
76193         * lib/unictype/pr_xid_continue.c: New file.
76194         * lib/unictype/pr_xid_start.c: New file.
76195         * lib/unictype/pr_zero_width.c: New file.
76196         * lib/unictype/scripts.c: New file.
76197         * lib/unictype/sy_c_ident.c: New file.
76198         * lib/unictype/sy_c_whitespace.c: New file.
76199         * lib/unictype/sy_java_ident.c: New file.
76200         * lib/unictype/sy_java_whitespace.c: New file.
76202         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
76203         Unicode 5.0.0.
76204         * lib/unictype/blocks.h: Likewise.
76205         * lib/unictype/categ_C.h: Likewise.
76206         * lib/unictype/categ_Cc.h: Likewise.
76207         * lib/unictype/categ_Cf.h: Likewise.
76208         * lib/unictype/categ_Cn.h: Likewise.
76209         * lib/unictype/categ_Co.h: Likewise.
76210         * lib/unictype/categ_Cs.h: Likewise.
76211         * lib/unictype/categ_L.h: Likewise.
76212         * lib/unictype/categ_Ll.h: Likewise.
76213         * lib/unictype/categ_Lm.h: Likewise.
76214         * lib/unictype/categ_Lo.h: Likewise.
76215         * lib/unictype/categ_Lt.h: Likewise.
76216         * lib/unictype/categ_Lu.h: Likewise.
76217         * lib/unictype/categ_M.h: Likewise.
76218         * lib/unictype/categ_Mc.h: Likewise.
76219         * lib/unictype/categ_Me.h: Likewise.
76220         * lib/unictype/categ_Mn.h: Likewise.
76221         * lib/unictype/categ_N.h: Likewise.
76222         * lib/unictype/categ_Nd.h: Likewise.
76223         * lib/unictype/categ_Nl.h: Likewise.
76224         * lib/unictype/categ_No.h: Likewise.
76225         * lib/unictype/categ_P.h: Likewise.
76226         * lib/unictype/categ_Pc.h: Likewise.
76227         * lib/unictype/categ_Pd.h: Likewise.
76228         * lib/unictype/categ_Pe.h: Likewise.
76229         * lib/unictype/categ_Pf.h: Likewise.
76230         * lib/unictype/categ_Pi.h: Likewise.
76231         * lib/unictype/categ_Po.h: Likewise.
76232         * lib/unictype/categ_Ps.h: Likewise.
76233         * lib/unictype/categ_S.h: Likewise.
76234         * lib/unictype/categ_Sc.h: Likewise.
76235         * lib/unictype/categ_Sk.h: Likewise.
76236         * lib/unictype/categ_Sm.h: Likewise.
76237         * lib/unictype/categ_So.h: Likewise.
76238         * lib/unictype/categ_Z.h: Likewise.
76239         * lib/unictype/categ_Zl.h: Likewise.
76240         * lib/unictype/categ_Zp.h: Likewise.
76241         * lib/unictype/categ_Zs.h: Likewise.
76242         * lib/unictype/categ_of.h: Likewise.
76243         * lib/unictype/combining.h: Likewise.
76244         * lib/unictype/ctype_alnum.h: Likewise.
76245         * lib/unictype/ctype_alpha.h: Likewise.
76246         * lib/unictype/ctype_blank.h: Likewise.
76247         * lib/unictype/ctype_cntrl.h: Likewise.
76248         * lib/unictype/ctype_digit.h: Likewise.
76249         * lib/unictype/ctype_graph.h: Likewise.
76250         * lib/unictype/ctype_lower.h: Likewise.
76251         * lib/unictype/ctype_print.h: Likewise.
76252         * lib/unictype/ctype_punct.h: Likewise.
76253         * lib/unictype/ctype_space.h: Likewise.
76254         * lib/unictype/ctype_upper.h: Likewise.
76255         * lib/unictype/ctype_xdigit.h: Likewise.
76256         * lib/unictype/decdigit.h: Likewise.
76257         * lib/unictype/digit.h: Likewise.
76258         * lib/unictype/mirror.h: Likewise.
76259         * lib/unictype/numeric.h: Likewise.
76260         * lib/unictype/pr_alphabetic.h: Likewise.
76261         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
76262         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
76263         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
76264         * lib/unictype/pr_bidi_block_separator.h: Likewise.
76265         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
76266         * lib/unictype/pr_bidi_common_separator.h: Likewise.
76267         * lib/unictype/pr_bidi_control.h: Likewise.
76268         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
76269         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
76270         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
76271         * lib/unictype/pr_bidi_european_digit.h: Likewise.
76272         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
76273         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
76274         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
76275         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
76276         * lib/unictype/pr_bidi_pdf.h: Likewise.
76277         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
76278         * lib/unictype/pr_bidi_whitespace.h: Likewise.
76279         * lib/unictype/pr_combining.h: Likewise.
76280         * lib/unictype/pr_composite.h: Likewise.
76281         * lib/unictype/pr_currency_symbol.h: Likewise.
76282         * lib/unictype/pr_dash.h: Likewise.
76283         * lib/unictype/pr_decimal_digit.h: Likewise.
76284         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
76285         * lib/unictype/pr_deprecated.h: Likewise.
76286         * lib/unictype/pr_diacritic.h: Likewise.
76287         * lib/unictype/pr_extender.h: Likewise.
76288         * lib/unictype/pr_format_control.h: Likewise.
76289         * lib/unictype/pr_grapheme_base.h: Likewise.
76290         * lib/unictype/pr_grapheme_extend.h: Likewise.
76291         * lib/unictype/pr_grapheme_link.h: Likewise.
76292         * lib/unictype/pr_hex_digit.h: Likewise.
76293         * lib/unictype/pr_hyphen.h: Likewise.
76294         * lib/unictype/pr_id_continue.h: Likewise.
76295         * lib/unictype/pr_id_start.h: Likewise.
76296         * lib/unictype/pr_ideographic.h: Likewise.
76297         * lib/unictype/pr_ids_binary_operator.h: Likewise.
76298         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
76299         * lib/unictype/pr_ignorable_control.h: Likewise.
76300         * lib/unictype/pr_iso_control.h: Likewise.
76301         * lib/unictype/pr_join_control.h: Likewise.
76302         * lib/unictype/pr_left_of_pair.h: Likewise.
76303         * lib/unictype/pr_line_separator.h: Likewise.
76304         * lib/unictype/pr_logical_order_exception.h: Likewise.
76305         * lib/unictype/pr_lowercase.h: Likewise.
76306         * lib/unictype/pr_math.h: Likewise.
76307         * lib/unictype/pr_non_break.h: Likewise.
76308         * lib/unictype/pr_not_a_character.h: Likewise.
76309         * lib/unictype/pr_numeric.h: Likewise.
76310         * lib/unictype/pr_other_alphabetic.h: Likewise.
76311         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
76312         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
76313         * lib/unictype/pr_other_id_continue.h: Likewise.
76314         * lib/unictype/pr_other_id_start.h: Likewise.
76315         * lib/unictype/pr_other_lowercase.h: Likewise.
76316         * lib/unictype/pr_other_math.h: Likewise.
76317         * lib/unictype/pr_other_uppercase.h: Likewise.
76318         * lib/unictype/pr_paired_punctuation.h: Likewise.
76319         * lib/unictype/pr_paragraph_separator.h: Likewise.
76320         * lib/unictype/pr_pattern_syntax.h: Likewise.
76321         * lib/unictype/pr_pattern_white_space.h: Likewise.
76322         * lib/unictype/pr_private_use.h: Likewise.
76323         * lib/unictype/pr_punctuation.h: Likewise.
76324         * lib/unictype/pr_quotation_mark.h: Likewise.
76325         * lib/unictype/pr_radical.h: Likewise.
76326         * lib/unictype/pr_sentence_terminal.h: Likewise.
76327         * lib/unictype/pr_soft_dotted.h: Likewise.
76328         * lib/unictype/pr_space.h: Likewise.
76329         * lib/unictype/pr_terminal_punctuation.h: Likewise.
76330         * lib/unictype/pr_titlecase.h: Likewise.
76331         * lib/unictype/pr_unassigned_code_value.h: Likewise.
76332         * lib/unictype/pr_unified_ideograph.h: Likewise.
76333         * lib/unictype/pr_uppercase.h: Likewise.
76334         * lib/unictype/pr_variation_selector.h: Likewise.
76335         * lib/unictype/pr_white_space.h: Likewise.
76336         * lib/unictype/pr_xid_continue.h: Likewise.
76337         * lib/unictype/pr_xid_start.h: Likewise.
76338         * lib/unictype/pr_zero_width.h: Likewise.
76339         * lib/unictype/scripts.h: Likewise.
76340         * lib/unictype/scripts_byname.gperf: Likewise.
76341         * lib/unictype/sy_c_ident.h: Likewise.
76342         * lib/unictype/sy_c_whitespace.h: Likewise.
76343         * lib/unictype/sy_java_ident.h: Likewise.
76344         * lib/unictype/sy_java_whitespace.h: Likewise.
76346         * lib/unictype/Makefile: New file.
76347         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
76348         glibc.
76349         * lib/unictype/3level.h: New file, copied from glibc.
76350         * lib/unictype/3levelbit.h: New file.
76352 2007-11-11  Bruno Haible  <bruno@clisp.org>
76354         * modules/gperf: New file.
76355         * modules/iconv_open (Depends-on): Add it.
76356         (Makefile.am): Remove the GPERF definition.
76358 2007-11-11  Bruno Haible  <bruno@clisp.org>
76360         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
76361         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
76363 2007-11-11  Bruno Haible  <bruno@clisp.org>
76365         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
76366         (usage): Remove function.
76368 2007-11-11  Bruno Haible  <bruno@clisp.org>
76370         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
76371         gl_FUNC_CEILF_LIBS.
76372         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
76373         gl_FUNC_CEIL_LIBS.
76374         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
76375         gl_FUNC_CEILL_LIBS.
76376         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
76377         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
76378         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
76380 2007-11-11  Bruno Haible  <bruno@clisp.org>
76382         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
76383         roundf were declared but do not exist on functions.
76384         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
76385         roundl were declared but do not exist on functions.
76386         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
76387         HAVE_FLOORL_AND_CEILL, respectively.
76388         Needed for Sun C on Solaris 10.
76390 2007-11-11  Bruno Haible  <bruno@clisp.org>
76392         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
76393         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
76394         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
76395         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
76396         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
76397         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
76398         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
76399         HAVE_DECL_ROUNDF.
76400         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
76401         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
76402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
76403         of HAVE_DECL_ROUND*.
76404         * modules/math (Makefile.am): Update.
76406 2007-11-10  Bruno Haible  <bruno@clisp.org>
76408         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
76409         ptrdiff_t as m4/intl.m4.
76411 2007-11-10  Jim Meyering  <meyering@redhat.com>
76413         Avoid link failure for the argmatch test.
76414         * tests/test-argmatch.c (usage): Define function to avoid a link
76415         failure: argmatch_die requires a usage function.
76417 2007-11-09  Bruno Haible  <bruno@clisp.org>
76419         * doc/functions/snprintf.texi: Mention BeOS deficiency.
76420         * doc/functions/vsnprintf.texi: Likewise.
76421         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
76422         with a size argument < 2.
76424 2007-11-09  Bruno Haible  <bruno@clisp.org>
76426         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
76427         buffer. Fixes an inefficiency introduced on 2007-11-03.
76429 2007-11-09  Bruno Haible  <bruno@clisp.org>
76431         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
76432         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
76434 2007-11-08  Jim Meyering  <meyering@redhat.com>
76436         Change cache variable name prefix "jm_" to "gl_" everywhere.
76437         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
76438         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
76439         * m4/uptime.m4: s/gl_/jm_/
76441 2007-11-07  Bruno Haible  <bruno@clisp.org>
76443         Update to GNU gettext 0.17.
76444         * m4/intl.m4: Update to GNU gettext 0.17.
76445         * m4/po.m4: Likewise.
76446         * modules/gettext (Files): Remove m4/ulonglong.m4.
76447         (configure.ac): Require gettext infrastructure from version 0.17.
76449 2007-11-06  Bruno Haible  <bruno@clisp.org>
76451         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
76452         symbolic values are not defined in a public header.
76453         * lib/freadable.c (freadable) [QNX]: Likewise.
76454         * lib/freadahead.c (freadahead) [QNX]: Likewise.
76455         * lib/freading.c (freading) [QNX]: Likewise.
76456         * lib/fseterr.c (fseterr) [QNX]: Likewise.
76457         * lib/fwritable.c (fwritable) [QNX]: Likewise.
76458         * lib/fwriting.c (fwriting) [QNX]: Likewise.
76459         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
76460         Reported by Alain Magloire.
76462         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
76464 2007-11-05  Bruno Haible  <bruno@clisp.org>
76466         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
76467         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
76468         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
76469         Reported by Eric Blake.
76471 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76472             Bruno Haible  <bruno@clisp.org>
76474         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
76475         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
76476         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
76477         (malloc): Undefine also before including <stdlib.h>.
76478         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
76479         Needed on OSF/1 4.0.
76481 2007-11-05  Jim Meyering  <meyering@redhat.com>
76483         git-version-gen: sync from coreutils.
76484         * build-aux/git-version-gen: Add comments.
76485         Change the first '-' to '.' in the snapshot version string,
76486         e.g., 6.9-377-08144 -> 6.9.377-08144
76487         Remove first parameter.
76488         Don't declare a version "-dirty" merely because a time
76489         stamp has changed.
76491 2007-11-04  Bruno Haible  <bruno@clisp.org>
76493         * lib/lock.h: Protect all macro definitions containing an 'if'
76494         statement through a "do { ... } while (0)".
76495         * lib/tls.h: Likewise.
76497 2007-11-04  Bruno Haible  <bruno@clisp.org>
76499         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
76501 2007-11-04  Bruno Haible  <bruno@clisp.org>
76503         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
76504         * modules/fprintf-posix (Depends-on): Add nocrash.
76505         * modules/snprintf-posix (Depends-on): Likewise.
76506         * modules/sprintf-posix (Depends-on): Likewise.
76507         * modules/vasnprintf-posix (Depends-on): Likewise.
76508         * modules/vasprintf-posix (Depends-on): Likewise.
76509         * modules/vfprintf-posix (Depends-on): Likewise.
76510         * modules/vsnprintf-posix (Depends-on): Likewise.
76511         * modules/vsprintf-posix (Depends-on): Likewise.
76512         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76513         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76514         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76515         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76516         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76517         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76518         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76520 2007-11-04  Bruno Haible  <bruno@clisp.org>
76522         * modules/nocrash: New file.
76523         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
76524         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
76526 2007-11-04  Bruno Haible  <bruno@clisp.org>
76528         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
76529         precision handling.
76530         * tests/test-vasprintf-posix.c (test_function): Likewise.
76531         * tests/test-snprintf-posix.h (test_function): Likewise.
76532         * tests/test-sprintf-posix.h (test_function): Likewise.
76534         Fix *printf behaviour for large precisions on mingw and BeOS.
76535         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
76536         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
76537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
76538         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
76539         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
76540         gl_PRINTF_PRECISION and test its result. Invoke
76541         gl_PREREQ_VASNPRINTF_PRECISION.
76542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
76543         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
76544         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
76545         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
76546         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
76547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76548         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
76549         * doc/functions/fprintf.texi: Update.
76550         * doc/functions/printf.texi: Update.
76551         * doc/functions/snprintf.texi: Update.
76552         * doc/functions/sprintf.texi: Update.
76553         * doc/functions/vfprintf.texi: Update.
76554         * doc/functions/vprintf.texi: Update.
76555         * doc/functions/vsnprintf.texi: Update.
76556         * doc/functions/vsprintf.texi: Update.
76558 2007-11-04  Bruno Haible  <bruno@clisp.org>
76560         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
76562 2007-11-04  Bruno Haible  <bruno@clisp.org>
76564         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
76565         Reported by Sylvain Beucler <beuc@gnu.org>.
76567 2007-11-03  Bruno Haible  <bruno@clisp.org>
76569         * tests/test-fprintf-posix2.sh: New file.
76570         * tests/test-fprintf-posix2.c: New file.
76571         * modules/fprintf-posix-tests (Files): Add them.
76572         (TESTS): Add test-fprintf-posix2.sh.
76573         (configure.ac): Check for getrlimit and setrlimit.
76574         (check_PROGRAMS): Add test-fprintf-posix2.
76576         * tests/test-printf-posix2.sh: New file.
76577         * tests/test-printf-posix2.c: New file.
76578         * modules/printf-posix-tests (Files): Add them.
76579         (TESTS): Add test-printf-posix2.sh.
76580         (configure.ac): Check for getrlimit and setrlimit.
76581         (check_PROGRAMS): Add test-printf-posix2.
76583         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
76584         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
76585         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
76586         (decode_double): New function, copied from decode_long_double.
76587         (scale10_round_decimal_decoded): New function, extracted from
76588         scale10_round_decimal_long_double.
76589         (scale10_round_decimal_long_double): Use it.
76590         (scale10_round_decimal_double): New function.
76591         (floorlog10): New function.
76592         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
76593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
76594         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
76595         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
76596         gl_PRINTF_ENOMEM and test its result. Invoke
76597         gl_PREREQ_VASNPRINTF_ENOMEM.
76598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
76599         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
76600         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
76601         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
76602         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
76603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76604         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
76605         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
76606         * modules/snprintf-posix (Depends-on): Likewise.
76607         * modules/sprintf-posix (Depends-on): Likewise.
76608         * modules/vasnprintf-posix (Depends-on): Likewise.
76609         * modules/vasprintf-posix (Depends-on): Likewise.
76610         * modules/vfprintf-posix (Depends-on): Likewise.
76611         * modules/vsnprintf-posix (Depends-on): Likewise.
76612         * modules/vsprintf-posix (Depends-on): Likewise.
76613         * doc/functions/fprintf.texi: Update.
76614         * doc/functions/printf.texi: Update.
76615         * doc/functions/snprintf.texi: Update.
76616         * doc/functions/sprintf.texi: Update.
76617         * doc/functions/vfprintf.texi: Update.
76618         * doc/functions/vprintf.texi: Update.
76619         * doc/functions/vsnprintf.texi: Update.
76620         * doc/functions/vsprintf.texi: Update.
76622 2007-11-03  Bruno Haible  <bruno@clisp.org>
76624         * modules/frexp-nolibm-tests: New file.
76626         * modules/frexp-nolibm: New file.
76627         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
76629 2007-11-03  Bruno Haible  <bruno@clisp.org>
76631         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
76632         value is C99 compliant.
76633         Needed for OSF/1 5.1.
76635 2007-11-03  Bruno Haible  <bruno@clisp.org>
76637         Fix out-of-memory handling of vasnprintf.
76638         * lib/printf-parse.c: Include <errno.h>.
76639         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
76640         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
76641         is already set.
76643 2007-11-02  Eric Blake  <ebb9@byu.net>
76645         Fix tests on cygwin.
76646         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
76648 2007-11-01  Bruno Haible  <bruno@clisp.org>
76650         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
76651         warning.
76652         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
76653         needed for POSIX compatibility.
76655 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76657         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
76658         for compatibility with GNU.
76660 2007-11-01  Bruno Haible  <bruno@clisp.org>
76662         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
76663         (putenv): Renamed from rpl_putenv. Change argument type from
76664         'const char *' to 'char *'.
76665         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
76666         of defining putenv in config.h, just set REPLACE_PUTENV.
76667         * modules/putenv (Depends-on): Add stdlib.
76668         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
76669         (Include): Use <stdlib.h>.
76670         * lib/stdlib.in.h (putenv): New declaration.
76671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
76672         REPLACE_PUTENV.
76673         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
76674         REPLACE_PUTENV.
76675         Needed for MacOS X 10.5.0.
76676         Reported by Peter O'Gorman <peter@pogma.com>.
76678 2007-11-01  Jim Meyering  <meyering@redhat.com>
76680         Treat an empty date string exactly like "0".
76681         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
76682         if the remaining date string (to be parsed) is empty, use "0".
76683         Reported by Mischa Molhoek and discussed in this thread:
76684         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
76686 2007-10-31  Bruno Haible  <bruno@clisp.org>
76688         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
76689         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
76690         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
76691         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
76692         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
76693         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
76695 2007-10-31  Bruno Haible  <bruno@clisp.org>
76697         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
76698         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
76699         (AC_TYPE_LONG_LONG_INT): Use it.
76700         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
76701         it as well.
76702         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
76703         to m4/longlong.m4.
76704         * modules/stdint (Files): Remove m4/ulonglong.m4.
76705         * modules/strtoull (Files): Use m4/longlong.m4 instead of
76706         m4/ulonglong.m4.
76707         * modules/strtoumax (Files): Likewise.
76709 2007-10-30  Bruno Haible  <bruno@clisp.org>
76711         * modules/xvasprintf-posix: New file.
76712         Suggested by Eric Blake.
76714 2007-10-30  Bruno Haible  <bruno@clisp.org>
76716         * modules/xprintf-posix-tests: New file.
76717         * tests/test-xprintf-posix.sh: New file.
76718         * tests/test-xprintf-posix.c: New file.
76719         * tests/test-xfprintf-posix.c: New file.
76721         * modules/xprintf-posix: New file.
76723 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76725         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
76726         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
76727         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
76729 2007-10-29  Bruno Haible  <bruno@clisp.org>
76731         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
76732         contain the special marker '_cv_'.
76733         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
76734         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
76735         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
76736         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
76737         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
76738         Reported by Ralf Wildenhues.
76740 2007-10-29  Bruno Haible  <bruno@clisp.org>
76742         * gnulib-tool (func_import): When --lgpl is not specified, set
76743         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
76744         GPLv3.
76745         Reported by Simon Josefsson.
76747 2007-10-28  Bruno Haible  <bruno@clisp.org>
76749         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
76750         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
76751         HAVE_DECL_ISFINITE.
76752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
76753         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
76754         HAVE_DECL_ISFINITE.
76756 2007-10-28  Bruno Haible  <bruno@clisp.org>
76758         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
76759         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
76761 2007-10-28  Bruno Haible  <bruno@clisp.org>
76763         Fix link errors with Sun C 5.0 on Solaris 10.
76764         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
76765         function is declared but not present in the compiler's libm.
76766         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
76767         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
76768         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
76769         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
76770         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
76771         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
76772         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
76773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
76774         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
76775         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
76776         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
76777         HAVE_DECL_FLOORL.
76779 2007-10-28  Bruno Haible  <bruno@clisp.org>
76781         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
76782         gl_FUNC_FLOORL. Cache the result.
76783         (gl_FUNC_FLOORL): Use it.
76784         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
76785         gl_FUNC_CEILL. Cache the result.
76786         (gl_FUNC_CEILL): Use it.
76788         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
76789         gl_FUNC_FLOOR. Cache the result.
76790         (gl_FUNC_FLOOR): Use it.
76791         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
76792         gl_FUNC_CEIL. Cache the result.
76793         (gl_FUNC_CEIL): Use it.
76795         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
76796         gl_FUNC_FLOORF. Cache the result.
76797         (gl_FUNC_FLOORF): Use it.
76798         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
76799         gl_FUNC_CEILF. Cache the result.
76800         (gl_FUNC_CEILF): Use it.
76802 2007-10-28  Bruno Haible  <bruno@clisp.org>
76804         * gnulib-tool: Allow specifying the LGPL version number through
76805         --lgpl=2 or --lgpl=3.
76806         (func_usage): Document --lgpl with argument.
76807         Handle --lgpl=... arguments.
76808         (func_import): Recognize also gl_LGPL calls with an argument. When
76809         --lgpl=2 is used and the module's license is just LGPL, report an
76810         error. Set sed_transform_lib_file according to the lgpl variable. In
76811         the generated files, use --lgpl or gl_LGPL invocations with argument,
76812         if necessary.
76813         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
76814         an LGPv2+ license.
76815         * doc/gnulib-tool.texi (Modified imports): Update explanation of
76816         gl_LGPL macro.
76818 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76819             Bruno Haible  <bruno@clisp.org>
76821         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
76822         (u16_uctomb_aux): Likewise.
76823         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
76824         !HAVE_INLINE.
76825         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
76827 2007-10-28  Bruno Haible  <bruno@clisp.org>
76829         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
76830         Invoke AM_GETTEXT_OPTION if it exists.
76831         * modules/vasprintf: Likewise.
76832         * modules/verror: Likewise.
76833         * modules/xprintf: Likewise.
76834         * modules/xvasprintf: Likewise.
76836 2007-10-27  Ben Pfaff  <blp@gnu.org>
76838         * lib/math.in.h: Define isfinite macro and prototypes for
76839         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
76840         implementations.
76841         * m4/math_h.m4: New substitutions for isfinite module.
76842         * lib/isfinite.c: New file.
76843         * m4/isfinite.m4: New file.
76844         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
76845         * modules/isfinite: New file.
76846         * modules/isfinite-tests: New file.
76847         * tests/tests-isfinite.c: New file.
76848         * doc/functions/isfinite.texi: Mention isfinite module.
76849         * MODULES.html.sh: Mention new module.
76851 2007-10-27  Ben Pfaff  <blp@gnu.org>
76853         Ralf Wildenhues reported that Tru64 4.0D declares the round
76854         functions but does not have definitions.
76855         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
76856         cannot be found in any library, set the output variable to
76857         "missing" instead of "".
76858         * m4/round.m4: Also use our substitute if we cannot find round in
76859         any library, even if it is declared.
76860         * m4/roundf.m4: Likewise for roundf.
76861         * m4/roundl.m4: Likewise for roundl.
76862         * lib/math.in.h: Undefine roundf, round, roundl before defining
76863         their replacements, to allow for hypothetical systems where these
76864         may be defined as macros but not available in libraries.
76866 2007-10-27  Bruno Haible  <bruno@clisp.org>
76868         * doc/gnulib.texi: Invoke @firstparagraphindent.
76869         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
76870         changes in gnulib.
76871         (Source changes): New section.
76873 2007-10-26  Bruno Haible  <bruno@clisp.org>
76875         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
76876         borrowed from autoconf.
76878 2007-10-26  Bruno Haible  <bruno@clisp.org>
76880         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
76881         strerror returned the empty string. Needed on HP-UX 11.00.
76883 2007-10-24  Micah Cowan  <micah@cowan.name>
76885         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
76886         * build-aux/bootstrap: Remove support for now-unnecessary option,
76887         --cvs-user, and envvars CVS_USER, CVS_RSH.
76889 2007-10-24  Jim Meyering  <meyering@redhat.com>
76891         Avoid diagnostics from sha1sum when there is no cached checksum.
76892         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
76893         if the po.s1 file hasn't been created yet.
76895         * build-aux/bootstrap: Sync from coreutils:
76896         2007-10-24  Jim Meyering  <meyering@redhat.com>
76897         Get gnulib from the git repository, not from an obsolete cvs one.
76898         * build-aux/bootstrap: Suggestion from Micah Cowan.
76899         2007-10-04  Jim Meyering  <jim@meyering.net>
76900         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
76901         (update_po_files): Work also when there are no .po files in po/.
76903 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76905         * README: Append ".git" to git and cg examples.
76906         Problem reported by Benoit Sigoure.
76908 2007-10-23  Micah Cowan  <micah@cowan.name>
76910         * users.txt: Add wget.
76912 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76914         Fix linking of some unistdio tests on FreeBSD.
76915         * modules/unistdio/u16-vsnprintf-tests
76916         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
76917         * modules/unistdio/u16-vsprintf-tests
76918         (test_u16_vsnprintf1_LDADD): Likewise.
76919         * modules/unistdio/u32-vsnprintf-tests
76920         (test_u32_vsnprintf1_LDADD): Likewise.
76921         * modules/unistdio/u32-vsprintf-tests
76922         (test_u32_vsprintf1_LDADD): Likewise.
76923         * modules/unistdio/u8-vsnprintf-tests
76924         (test_u8_vsnprintf1_LDADD): Likewise.
76925         * modules/unistdio/u8-vsprintf-tests
76926         (test_u8_vsprintf1_LDADD): Likewise.
76927         * modules/unistdio/ulc-vsnprintf-tests
76928         (test_ulc_vsnprintf1_LDADD): Likewise.
76929         * modules/unistdio/ulc-vsprintf-tests
76930         (test_ulc_vsprintf1_LDADD): Likewise.
76932         Fix linking of some uniconv tests on FreeBSD.
76933         * modules/uniconv/u16-conv-from-enc-tests
76934         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
76935         * modules/uniconv/u16-conv-to-enc-tests
76936         (test_u16_conv_to_enc_LDADD): Likewise.
76937         * modules/uniconv/u16-strconv-from-enc-tests
76938         (test_u16_strconv_from_enc_LDADD): Likewise.
76939         * modules/uniconv/u16-strconv-to-enc-tests
76940         (test_u16_strconv_to_enc_LDADD): Likewise.
76941         * modules/uniconv/u32-conv-from-enc-tests
76942         (test_u32_conv_from_enc_LDADD): Likewise.
76943         * modules/uniconv/u32-conv-to-enc-tests
76944         (test_u32_conv_to_enc_LDADD): Likewise.
76945         * modules/uniconv/u32-strconv-from-enc-tests
76946         (test_u32_strconv_from_enc_LDADD): Likewise.
76947         * modules/uniconv/u32-strconv-to-enc-tests
76948         (test_u32_strconv_to_enc_LDADD): Likewise.
76949         * modules/uniconv/u8-conv-from-enc-tests
76950         (test_u8_conv_from_enc_LDADD): Likewise.
76951         * modules/uniconv/u8-conv-to-enc-tests
76952         (test_u8_conv_to_enc_LDADD): Likewise.
76953         * modules/uniconv/u8-strconv-from-enc-tests
76954         (test_u8_strconv_from_enc_LDADD): Likewise.
76955         * modules/uniconv/u8-strconv-to-enc-tests
76956         (test_u8_strconv_to_enc_LDADD): Likewise.
76958 2007-10-22  Bruno Haible  <bruno@clisp.org>
76960         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
76961         size.
76963 2007-10-22  Eric Blake  <ebb9@byu.net>
76965         Tweak x*printf documentation.
76966         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
76967         variable name and comments.
76968         Suggested by Bruno Haible.
76970 2007-10-22  Bruno Haible  <bruno@clisp.org>
76972         * lib/acl.c (copy_acl): Fix file name in comment.
76974 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76976         Fix Tru64 problem with stdbool.h.
76977         * lib/stdbool.in.h (false, true):
76978         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
76979         Don't declare as an enum in this situation; it runs afoul of Tru64.
76980         Problem reported by Steven M. Schweda in
76981         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
76983 2007-10-22  Eric Blake  <ebb9@byu.net>
76985         Also wrap vf?printf.
76986         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
76987         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
76988         (xvprintf, xvfprintf): New functions.
76990 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76992         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
76993         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
76995         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
76996         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
76998 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77000         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
77001         by Bruno Haible.
77003 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77005         * lib/getloadavg.c
77006         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
77007         Undef `sys' after including sys/table.h, for Tru64 4.0D.
77009         * tests/test-i-ring.c: Work for C89.
77011 2007-10-22  Bruno Haible  <bruno@clisp.org>
77013         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
77014         -1u, in preprocessor expression, so that we don't test for the bug
77015         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
77016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
77018 2007-10-22  Eric Blake  <ebb9@byu.net>
77020         * tests/test-yesno.sh: Silence stderr during test.
77022 2007-10-22  Simon Josefsson  <simon@josefsson.org>
77024         * modules/crypto/gc-camellia: New file.
77026         * m4/gc-camellia.m4: New file.
77028         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
77030         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
77032 2007-10-22  Simon Josefsson  <simon@josefsson.org>
77034         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
77035         --help to stdout.  Reported by sms@antinode.org (Steven
77036         M. Schweda).
77038 2007-10-22  Simon Josefsson  <simon@josefsson.org>
77040         * users.txt: Fix link to libksba.
77042 2007-10-21  Ben Pfaff  <blp@gnu.org>
77044         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
77045         round.c roundf implementation that depends on floorf and ceilf to
77046         be tested unconditionally.
77048 2007-10-21  Ben Pfaff  <blp@gnu.org>
77050         * m4/check-libm-func.m4: Removed.
77051         * m4/check-math-lib.m4: New file.
77052         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
77053         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
77054         definition and lack of AC_LIBOBJ([roundf]).
77055         * m4/roundl.m4: Ditto, and similarly for roundl.
77056         * modules/round: Reference new m4 file.
77057         * modules/roundf: Ditto.
77058         * modules/roundl: Ditto.
77059         * tests/test-round2.c (main): Use ROUND instead of round.
77060         Bug report from Bruno Haible.
77062 2007-10-21  Bruno Haible  <bruno@clisp.org>
77064         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
77065         context.
77067 2007-10-21  Bruno Haible  <bruno@clisp.org>
77069         * tests/test-wcwidth.c (main): Allow negative result for some control
77070         characters.
77072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
77073         Needed on OSF/1 5.1.
77075 2007-10-21  Bruno Haible  <bruno@clisp.org>
77077         * tests/test-floorf1.c: Include isnanf.h.
77078         (main): Use isnanf() instead of isnan().
77079         * tests/test-ceilf1.c: Include isnanf.h.
77080         (main): Use isnanf() instead of isnan().
77081         * tests/test-truncf1.c: Include isnanf.h.
77082         (main): Use isnanf() instead of isnan().
77083         * tests/test-roundf1.c: Include isnanf.h.
77084         (main): Use isnanf() instead of isnan().
77086 2007-10-21  Eric Blake  <ebb9@byu.net>
77088         * users.txt: Update URL for m4.
77090 2007-10-21  Bruno Haible  <bruno@clisp.org>
77092         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
77094 2007-10-21  Bruno Haible  <bruno@clisp.org>
77096         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
77097         Git's management files if the CVS files are not present.
77099 2007-10-20  Bruno Haible  <bruno@clisp.org>
77101         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
77102         gcc-3.4.x.
77104 2007-10-20  Ben Pfaff  <blp@gnu.org>
77106         * lib/math.in.h: Declare round, roundf, roundl if we are providing
77107         implementations.
77108         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
77109         * lib/round.c: New file.
77110         * lib/roundf.c: New file.
77111         * lib/roundl.c: New file.
77112         * m4/round.m4: New file.
77113         * m4/roundf.m4: New file.
77114         * m4/roundl.m4: New file.
77115         * m4/check-libm-func-m4: New file.
77116         * modules/math: Replace round, roundf, roundl related @VARS@ in
77117         math.in.h.
77118         * modules/round: New file.
77119         * modules/round-tests: New file.
77120         * modules/roundf: New file.
77121         * modules/roundf-tests: New file.
77122         * modules/roundl: New file.
77123         * modules/roundl-tests: New file.
77124         * tests/test-round1.c: New file.
77125         * tests/test-round2.c: New file.
77126         * tests/test-roundf1.c: New file.
77127         * tests/test-roundf2.c: New file.
77128         * tests/test-roundl.c: New file.
77129         * doc/functions/round.texi: Mention round module.
77130         * doc/functions/roundf.texi: Mention roundf module.
77131         * doc/functions/roundl.texi: Mention roundl module.
77132         * MODULES.html.sh: Mention new modules.
77133         Thanks to Bruno Haible for suggestions.
77135 2007-10-20  Jim Meyering  <meyering@redhat.com>
77137         * lib/xprintf.c: Include <config.h> unconditionally.
77139         Change xprintf's license to GPL.
77140         * modules/xprintf (License): s/LGPL/GPL/, since this module
77141         depends on modules (exit and exitfail) which are GPL.
77142         Suggestion from Bruno Haible.
77144         xprintf fixes.
77145         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
77146         Use a clearer diagnostic.
77147         Patch from Bruno Haible.
77149 2007-10-20  Bruno Haible  <bruno@clisp.org>
77151         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
77152         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
77153         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77155 2007-10-20  Bruno Haible  <bruno@clisp.org>
77157         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
77158         precision in the comparison result > x - 1 or similar.
77159         * tests/test-ceilf2.c (correct_result_p): Likewise.
77160         * tests/test-truncf2.c (correct_result_p): Likewise.
77161         * tests/test-trunc2.c (correct_result_p): Likewise.
77162         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77164 2007-10-20  Bruno Haible  <bruno@clisp.org>
77166         * modules/ceil: New file.
77167         * m4/ceil.m4: New file.
77168         * doc/functions/ceil.texi: Mention the 'ceil' module.
77170 2007-10-20  Bruno Haible  <bruno@clisp.org>
77172         * modules/floor: New file.
77173         * m4/floor.m4: New file.
77174         * doc/functions/floor.texi: Mention the 'floor' module.
77176 2007-10-20  Bruno Haible  <bruno@clisp.org>
77178         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
77179         of %a.
77180         * modules/floorf-tests (Depends-on): Likewise.
77181         * modules/truncf-tests (Depends-on): Likewise.
77182         * modules/trunc-tests (Depends-on): Likewise.
77183         Reported by Ben Pfaff.
77185 2007-10-19  Jim Meyering  <meyering@redhat.com>
77187         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
77188         Don't bother testing specific errno values.  Just test ferror.
77190         New module: xprintf
77191         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
77193 2007-10-19  Bruno Haible  <bruno@clisp.org>
77195         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
77196         syntax.
77197         * modules/javaexec (Makefile.am): Likewise.
77198         * modules/relocatable-prog (Makefile.am): Likewise.
77199         Suggested by Jim Meyering.
77201 2007-10-18  Bruno Haible  <bruno@clisp.org>
77203         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
77204         Reported by Jim Meyering.
77206 2007-10-18  Eric Blake  <ebb9@byu.net>
77208         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
77210 2007-10-18  Bruno Haible  <bruno@clisp.org>
77212         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
77213         the format string into writable memory. Needed in Fortify conditions.
77215 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
77216             Bruno Haible  <bruno@clisp.org>
77218         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
77219         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
77220         * modules/trim (Depends-on): Add mbchar.
77221         (configure.ac): Add gl_FUNC_MBRTOWC.
77222         (Makefile.am): Augment lib_SOURCES.
77224 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77226         Modify glob.c to use fstatat and dirfd, to simplify it.
77227         Suggested by Eric Blake.
77228         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
77229         Don't include <stdbool.h>; not used.
77230         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
77231         (link_exists_p): Simplify implementation, since we can now assume
77232         dirfd and fstatat.
77233         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
77235 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77237         * gnulib-tool (func_get_dependencies): Fix sed script to
77238         match only tests.
77240 2007-10-17  Bruno Haible  <bruno@clisp.org>
77242         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
77243         allow locale names without encoding suffix.
77244         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
77245         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
77247 2007-10-16  Bruno Haible  <bruno@clisp.org>
77249         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
77250         * lib/getgroups.c (getgroups): Likewise.
77251         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
77253 2007-10-16  Bruno Haible  <bruno@clisp.org>
77255         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
77256         * modules/malloc-posix (License): Likewise.
77257         * modules/realloc-posix (License): Likewise.
77258         * modules/calloc-posix (License): Likewise.
77259         * modules/intprops (License): Change from GPL to LGPL, with
77260         Paul Eggert's approval.
77262 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77264         Merge glibc changes into lib/glob.c.
77266         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
77267         2007-10-15 04:59:03 UTC.  Here are the changes:
77269         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
77271         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
77273         * lib/glob.c: Add some branch prediction throughout.
77275         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
77277         [BZ #5103]
77278         * lib/glob.c (glob): Recognize patterns starting \/.
77280         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
77282         [BZ #3996]
77283         * lib/glob.c (attribute_hidden): Define if not defined.
77284         (glob): Unescape dirname, filename or username when needed and not
77285         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
77286         is NULL.  Handle unescaped [ in pattern without closing ].
77287         Don't pass GLOB_CHECK down to recursive glob for directories.
77288         (__glob_pattern_type): New function.
77289         (__glob_pattern_p): Implement using __glob_pattern_type.
77290         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
77291         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
77292         Remove unreachable code.
77294         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
77296         * lib/glob.c (glob_in_dir): Add some comments and asserts to
77297         explain why there are no leaks.
77299         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
77301         [BZ #3253]
77302         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
77303         time, rather allocate increasingly bigger arrays of pointers, if
77304         possible with alloca, if too large with malloc.
77306 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77308         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
77309         Problem reported by H.Merijn Brand in
77310         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
77311         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
77312         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77314 2007-10-15  Bruno Haible  <bruno@clisp.org>
77316         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
77317         with explicit rpl_ prefix.
77318         * lib/fopen.c (fopen): Likewise.
77319         * lib/freopen.c (freopen): Likewise.
77320         * lib/iconv.c (iconv): Likewise.
77321         * lib/iconv_close.c (iconv_close): Likewise.
77323 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77325         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
77327 2007-10-15  Bruno Haible  <bruno@clisp.org>
77329         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
77330         <stddef.h> instead of <stdlib.h> since we only need NULL.
77331         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77333 2007-10-15  Bruno Haible  <bruno@clisp.org>
77335         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
77336         Replace paragraph talking about LIBOBJS.
77337         Reported by Colin Watson <cjwatson@debian.org>.
77339 2007-10-15  Bruno Haible  <bruno@clisp.org>
77341         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
77342         <stdlib.h> before using NULL.
77344 2007-10-15  Simon Josefsson  <simon@josefsson.org>
77346         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
77347         Reported by Albert Chin <china@thewrittenword.com>.
77349 2007-10-14  Bruno Haible  <bruno@clisp.org>
77351         * modules/iconv_open-utf-tests: New file.
77352         * tests/test-iconv-utf.c: New file.
77354         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
77355         * modules/iconv_open-utf: New file.
77356         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
77357         (iconv, iconv_close): New declarations.
77358         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
77359         be defined.
77360         (iconv_open): Add special handling of conversion between UTF-8 and
77361         UTF-{16,32}{BE,LE}.
77362         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
77363         * lib/iconv_close.c: New file.
77364         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
77365         gl_FUNC_ICONV_OPEN.
77366         (gl_FUNC_ICONV_OPEN): Use it.
77367         (gl_FUNC_ICONV_OPEN_UTF): New macro.
77368         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
77369         and REPLACE_ICONV_UTF.
77370         * modules/iconv_open (Depends-on): Add c-strcase.
77371         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
77372         ICONV_CONST.
77373         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
77375 2007-10-13  Albert Chin  <china@thewrittenword.com>
77376             Bruno Haible  <bruno@clisp.org>
77378         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
77379         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
77381 2007-10-13  Bruno Haible  <bruno@clisp.org>
77383         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
77384         defined, use the ISO C99 inline semantics.
77385         * lib/argp.h (ARGP_EI): Likewise.
77387 2007-10-13  Bruno Haible  <bruno@clisp.org>
77389         Handle 'inline' change in gcc 4.3.0.
77390         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
77391         argp_fmtstream_write, argp_fmtstream_set_lmargin,
77392         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
77393         argp_fmtstream_point): Disable 'extern' declaration if the function
77394         definition is going to be provided inline.
77395         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
77396         semantics, not the ISO C99 inline semantics.
77397         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
77398         'extern' declaration if the function definition is going to be provided
77399         inline.
77400         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
77401         the GNU C inline semantics, not the ISO C99 inline semantics. With
77402         GCC 4.2, avoid a warning.
77404 2007-10-13  Bruno Haible  <bruno@clisp.org>
77406         * lib/freading.h (freading): Enable the use of __freading for
77407         glibc >= 2.7.
77408         * lib/freading.c (freading): Likewise.
77410 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77412         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
77413         "warning: C99 inline functions are not supported; using GNU89".
77415 2007-10-12  Bruno Haible  <bruno@clisp.org>
77417         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
77418         of 2.
77419         * tests/test-ceilf2.c: New file.
77420         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
77422         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
77423         * modules/ceilf-tests: Update.
77425 2007-10-12  Bruno Haible  <bruno@clisp.org>
77427         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
77428         of 2.
77429         * tests/test-floorf2.c: New file.
77430         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
77432         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
77433         * modules/floorf-tests: Update.
77435 2007-10-12  Bruno Haible  <bruno@clisp.org>
77437         * tests/test-trunc2.c: New file.
77438         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
77440         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
77441         * modules/trunc-tests: Update.
77443 2007-10-12  Bruno Haible  <bruno@clisp.org>
77445         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
77446         of 2.
77447         * tests/test-truncf2.c: New file.
77448         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
77450         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
77451         * modules/truncf-tests: Update.
77453 2007-10-11  Eric Blake  <ebb9@byu.net>
77455         Don't claim strerror is broken on Interix.
77456         * doc/functions/strerror.texi (strerror): Known broken systems are
77457         now Solaris 8, and not Interix.
77458         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
77459         Interix on cross-compile.
77460         Reported by Martin Koeppe in
77461         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
77463 2007-10-11  Bruno Haible  <bruno@clisp.org>
77465         * modules/i-ring-tests: New file.
77466         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
77467         instead of assert.
77469 2007-10-11  Bruno Haible  <bruno@clisp.org>
77471         * modules/filenamecat-tests: New file.
77472         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
77473         * lib/filenamecat.c: Remove test code.
77475 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77477         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
77479         * lib/strerror.c: Include <string.h> always, to test interface,
77480         and to remove the need for the dummy.
77481         Include intprops.h to compute width instead of doing it ourselves
77482         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
77483         (strerror): Define it to return NULL if there's no system strerror.
77484         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
77485         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
77486         ancient pre-strerror Unix systems well any more.  Saying "unknown
77487         system error" is enough.
77488         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
77489         simpler strerror.c implementation.
77490         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
77491         Simplify the tests to reflect the simpler strerror implementation.
77492         * modules/strerror (Depends-on): Add intprops.
77494 2007-10-09  Eric Blake  <ebb9@byu.net>
77496         Silence test-fpending.
77497         * modules/fpending-tests (Files): Add wrapper script.
77498         * tests/test-fpending.sh: New file.
77500 2007-10-09  Bruno Haible  <bruno@clisp.org>
77502         * MODULES.html.sh (func_module): Don't create a hyperlink for
77503         function names like 'printf_frexp'.
77504         (Misc): Add crc, memxor.
77505         (Characteristics of floating types): New section.
77506         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
77507         isnanf-nolibm, signbit, trunc, truncf, truncl.
77508         (Enhancements for ISO C 99 functions): New subsection Input/output.
77509         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
77510         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
77511         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
77512         (Compatibility checks for POSIX:2001 functions): Add clock-time.
77513         (Enhancements for POSIX:2001 functions): Add chdir-long.
77514         (File system functions): Add areadlink, chdir-safer, read-file.
77515         Remove cycle-check.
77516         (File system as inode set): New section.
77517         (Date and time): Add gethrxtime.
77518         (Multithreading): Add openmp.
77519         (Internationalization functions): Add localename.
77520         (Unicode string functions): Add unistr/u*-mbsnlen.
77521         (Support for maintaining and releasing projects): Add git-version-gen.
77522         (Lone files): Remove directories.
77524 2007-10-08  Ben Pfaff  <blp@gnu.org>
77526         * lib/xmalloca.h: Fix typo in comment.
77528 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77530         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
77531         when avoiding problems with integer overflow.  Use a portable test
77532         instead.
77534 2007-10-08  Simon Josefsson  <simon@josefsson.org>
77536         * modules/dummy (License): Change to LGPLv2+.
77537         * modules/float (License): Likewise
77538         * modules/realloc (License): Likewise
77539         * modules/stdlib (License): Likewise
77541 2007-10-07  Bruno Haible  <bruno@clisp.org>
77543         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
77544         * floor.c (TWO_MANT_DIG): Likewise.
77545         * ceil.c (TWO_MANT_DIG): Likewise.
77546         Reported by Ben Pfaff.
77548 2007-10-07  Bruno Haible  <bruno@clisp.org>
77550         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
77551         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
77552         * lib/frexp.c (FUNC): Likewise.
77553         * lib/printf-frexp.h (printf_frexp): Likewise.
77554         * lib/printf-frexpl.h (printf_frexpl): Likewise.
77555         * lib/printf-frexp.c (FUNC): Likewise.
77556         Suggested by Jim Meyering.
77558 2007-10-07  Jim Meyering  <meyering@redhat.com>
77560         Make xnanosleep's integer overflow test more robust.
77561         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
77562         so that gcc-4.3.0 doesn't optimize away this test for overflow.
77564 2007-10-07  Bruno Haible  <bruno@clisp.org>
77566         * NEWS: Mention the license change.
77568         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
77569         abbreviations in the modules files.
77571         Change copyright notice from GPLv2+ to GPLv3+.
77572         * README: Change copyright notice.
77573         * MODULES.html.sh: Likewise.
77574         * build-aux/bootstrap.conf: Likewise.
77575         * build-aux/config.libpath: Likewise.
77576         * build-aux/csharpcomp.sh.in: Likewise.
77577         * build-aux/csharpexec.sh.in: Likewise.
77578         * build-aux/install-reloc: Likewise.
77579         * build-aux/javacomp.sh.in: Likewise.
77580         * build-aux/javaexec.sh.in: Likewise.
77581         * build-aux/ldd.sh.in: Likewise.
77582         * build-aux/reloc-ldflags: Likewise.
77583         * build-aux/relocatable.sh.in: Likewise.
77584         * build-aux/x-to-1.in: Likewise.
77585         * check-module: Likewise.
77586         * config/srclistvars.sh: Likewise.
77587         * gnulib-tool: Likewise.
77588         * lib/acl-internal.h: Likewise.
77589         * lib/acl.c: Likewise.
77590         * lib/acl.h: Likewise.
77591         * lib/acl_entries.c: Likewise.
77592         * lib/areadlink-with-size.c: Likewise.
77593         * lib/areadlink.c: Likewise.
77594         * lib/areadlink.h: Likewise.
77595         * lib/argmatch.c: Likewise.
77596         * lib/argmatch.h: Likewise.
77597         * lib/argp-ba.c: Likewise.
77598         * lib/argp-eexst.c: Likewise.
77599         * lib/argp-fmtstream.c: Likewise.
77600         * lib/argp-fmtstream.h: Likewise.
77601         * lib/argp-fs-xinl.c: Likewise.
77602         * lib/argp-help.c: Likewise.
77603         * lib/argp-namefrob.h: Likewise.
77604         * lib/argp-parse.c: Likewise.
77605         * lib/argp-pin.c: Likewise.
77606         * lib/argp-pv.c: Likewise.
77607         * lib/argp-pvh.c: Likewise.
77608         * lib/argp-xinl.c: Likewise.
77609         * lib/argp.h: Likewise.
77610         * lib/at-func.c: Likewise.
77611         * lib/atanl.c: Likewise.
77612         * lib/backupfile.c: Likewise.
77613         * lib/backupfile.h: Likewise.
77614         * lib/basename.c: Likewise.
77615         * lib/binary-io.h: Likewise.
77616         * lib/byteswap.in.h: Likewise.
77617         * lib/c-stack.c: Likewise.
77618         * lib/c-stack.h: Likewise.
77619         * lib/c-strcasestr.c: Likewise.
77620         * lib/c-strcasestr.h: Likewise.
77621         * lib/c-strstr.c: Likewise.
77622         * lib/c-strstr.h: Likewise.
77623         * lib/c-strtod.c: Likewise.
77624         * lib/calloc.c: Likewise.
77625         * lib/canon-host.c: Likewise.
77626         * lib/canon-host.h: Likewise.
77627         * lib/canonicalize-lgpl.c: Likewise.
77628         * lib/canonicalize.c: Likewise.
77629         * lib/canonicalize.h: Likewise.
77630         * lib/ceil.c: Likewise.
77631         * lib/ceilf.c: Likewise.
77632         * lib/ceill.c: Likewise.
77633         * lib/chdir-long.c: Likewise.
77634         * lib/chdir-long.h: Likewise.
77635         * lib/chdir-safer.c: Likewise.
77636         * lib/chdir-safer.h: Likewise.
77637         * lib/chown.c: Likewise.
77638         * lib/classpath.c: Likewise.
77639         * lib/classpath.h: Likewise.
77640         * lib/clean-temp.c: Likewise.
77641         * lib/clean-temp.h: Likewise.
77642         * lib/cloexec.c: Likewise.
77643         * lib/close-stream.c: Likewise.
77644         * lib/closein.c: Likewise.
77645         * lib/closein.h: Likewise.
77646         * lib/closeout.c: Likewise.
77647         * lib/closeout.h: Likewise.
77648         * lib/concat-filename.c: Likewise.
77649         * lib/copy-file.c: Likewise.
77650         * lib/copy-file.h: Likewise.
77651         * lib/count-one-bits.h: Likewise.
77652         * lib/crc.c: Likewise.
77653         * lib/crc.h: Likewise.
77654         * lib/creat-safer.c: Likewise.
77655         * lib/csharpcomp.c: Likewise.
77656         * lib/csharpcomp.h: Likewise.
77657         * lib/csharpexec.c: Likewise.
77658         * lib/csharpexec.h: Likewise.
77659         * lib/cycle-check.c: Likewise.
77660         * lib/cycle-check.h: Likewise.
77661         * lib/diacrit.c: Likewise.
77662         * lib/diacrit.h: Likewise.
77663         * lib/diffseq.h: Likewise.
77664         * lib/dirchownmod.c: Likewise.
77665         * lib/dirent.in.h: Likewise.
77666         * lib/dirfd.c: Likewise.
77667         * lib/dirfd.h: Likewise.
77668         * lib/dirname.c: Likewise.
77669         * lib/dirname.h: Likewise.
77670         * lib/dummy.c: Likewise.
77671         * lib/dup-safer.c: Likewise.
77672         * lib/dup2.c: Likewise.
77673         * lib/eealloc.h: Likewise.
77674         * lib/error.c: Likewise.
77675         * lib/error.h: Likewise.
77676         * lib/euidaccess.c: Likewise.
77677         * lib/exclude.c: Likewise.
77678         * lib/exclude.h: Likewise.
77679         * lib/execute.c: Likewise.
77680         * lib/execute.h: Likewise.
77681         * lib/exitfail.c: Likewise.
77682         * lib/exitfail.h: Likewise.
77683         * lib/expl.c: Likewise.
77684         * lib/fatal-signal.c: Likewise.
77685         * lib/fatal-signal.h: Likewise.
77686         * lib/fbufmode.c: Likewise.
77687         * lib/fbufmode.h: Likewise.
77688         * lib/fchdir.c: Likewise.
77689         * lib/fchmodat.c: Likewise.
77690         * lib/fchownat.c: Likewise.
77691         * lib/fcntl--.h: Likewise.
77692         * lib/fcntl-safer.h: Likewise.
77693         * lib/fcntl.in.h: Likewise.
77694         * lib/fd-safer.c: Likewise.
77695         * lib/fflush.c: Likewise.
77696         * lib/file-has-acl.c: Likewise.
77697         * lib/file-set.c: Likewise.
77698         * lib/file-type.c: Likewise.
77699         * lib/file-type.h: Likewise.
77700         * lib/fileblocks.c: Likewise.
77701         * lib/filemode.c: Likewise.
77702         * lib/filemode.h: Likewise.
77703         * lib/filename.h: Likewise.
77704         * lib/filenamecat.c: Likewise.
77705         * lib/filenamecat.h: Likewise.
77706         * lib/findprog.c: Likewise.
77707         * lib/findprog.h: Likewise.
77708         * lib/float.in.h: Likewise.
77709         * lib/floor.c: Likewise.
77710         * lib/floorf.c: Likewise.
77711         * lib/floorl.c: Likewise.
77712         * lib/fopen-safer.c: Likewise.
77713         * lib/fopen.c: Likewise.
77714         * lib/fpending.c: Likewise.
77715         * lib/fpending.h: Likewise.
77716         * lib/fprintf.c: Likewise.
77717         * lib/fprintftime.h: Likewise.
77718         * lib/fpucw.h: Likewise.
77719         * lib/fpurge.c: Likewise.
77720         * lib/fpurge.h: Likewise.
77721         * lib/freadable.c: Likewise.
77722         * lib/freadable.h: Likewise.
77723         * lib/freadahead.c: Likewise.
77724         * lib/freadahead.h: Likewise.
77725         * lib/freading.c: Likewise.
77726         * lib/freading.h: Likewise.
77727         * lib/free.c: Likewise.
77728         * lib/freopen.c: Likewise.
77729         * lib/frexp.c: Likewise.
77730         * lib/frexpl.c: Likewise.
77731         * lib/fseek.c: Likewise.
77732         * lib/fseterr.c: Likewise.
77733         * lib/fseterr.h: Likewise.
77734         * lib/fstatat.c: Likewise.
77735         * lib/fstrcmp.c: Likewise.
77736         * lib/fstrcmp.h: Likewise.
77737         * lib/fsusage.c: Likewise.
77738         * lib/fsusage.h: Likewise.
77739         * lib/ftell.c: Likewise.
77740         * lib/ftello.c: Likewise.
77741         * lib/fts-cycle.c: Likewise.
77742         * lib/fts.c: Likewise.
77743         * lib/fts_.h: Likewise.
77744         * lib/full-read.c: Likewise.
77745         * lib/full-read.h: Likewise.
77746         * lib/full-write.c: Likewise.
77747         * lib/full-write.h: Likewise.
77748         * lib/fwritable.c: Likewise.
77749         * lib/fwritable.h: Likewise.
77750         * lib/fwriteerror.c: Likewise.
77751         * lib/fwriteerror.h: Likewise.
77752         * lib/fwriting.c: Likewise.
77753         * lib/fwriting.h: Likewise.
77754         * lib/gcd.c: Likewise.
77755         * lib/gcd.h: Likewise.
77756         * lib/getcwd.c: Likewise.
77757         * lib/getdate.h: Likewise.
77758         * lib/getdate.y: Likewise.
77759         * lib/getdomainname.c: Likewise.
77760         * lib/getdomainname.h: Likewise.
77761         * lib/getgroups.c: Likewise.
77762         * lib/gethostname.c: Likewise.
77763         * lib/gethrxtime.c: Likewise.
77764         * lib/gethrxtime.h: Likewise.
77765         * lib/getloadavg.c: Likewise.
77766         * lib/getndelim2.c: Likewise.
77767         * lib/getndelim2.h: Likewise.
77768         * lib/getnline.c: Likewise.
77769         * lib/getnline.h: Likewise.
77770         * lib/getopt.c: Likewise.
77771         * lib/getopt.in.h: Likewise.
77772         * lib/getopt1.c: Likewise.
77773         * lib/getopt_int.h: Likewise.
77774         * lib/getpagesize.h: Likewise.
77775         * lib/getsubopt.c: Likewise.
77776         * lib/gettime.c: Likewise.
77777         * lib/getugroups.c: Likewise.
77778         * lib/getugroups.h: Likewise.
77779         * lib/getusershell.c: Likewise.
77780         * lib/gl_anyavltree_list1.h: Likewise.
77781         * lib/gl_anyavltree_list2.h: Likewise.
77782         * lib/gl_anyhash_list1.h: Likewise.
77783         * lib/gl_anyhash_list2.h: Likewise.
77784         * lib/gl_anylinked_list1.h: Likewise.
77785         * lib/gl_anylinked_list2.h: Likewise.
77786         * lib/gl_anyrbtree_list1.h: Likewise.
77787         * lib/gl_anyrbtree_list2.h: Likewise.
77788         * lib/gl_anytree_list1.h: Likewise.
77789         * lib/gl_anytree_list2.h: Likewise.
77790         * lib/gl_anytree_oset.h: Likewise.
77791         * lib/gl_anytreehash_list1.h: Likewise.
77792         * lib/gl_anytreehash_list2.h: Likewise.
77793         * lib/gl_array_list.c: Likewise.
77794         * lib/gl_array_list.h: Likewise.
77795         * lib/gl_array_oset.c: Likewise.
77796         * lib/gl_array_oset.h: Likewise.
77797         * lib/gl_avltree_list.c: Likewise.
77798         * lib/gl_avltree_list.h: Likewise.
77799         * lib/gl_avltree_oset.c: Likewise.
77800         * lib/gl_avltree_oset.h: Likewise.
77801         * lib/gl_avltreehash_list.c: Likewise.
77802         * lib/gl_avltreehash_list.h: Likewise.
77803         * lib/gl_carray_list.c: Likewise.
77804         * lib/gl_carray_list.h: Likewise.
77805         * lib/gl_linked_list.c: Likewise.
77806         * lib/gl_linked_list.h: Likewise.
77807         * lib/gl_linkedhash_list.c: Likewise.
77808         * lib/gl_linkedhash_list.h: Likewise.
77809         * lib/gl_list.c: Likewise.
77810         * lib/gl_list.h: Likewise.
77811         * lib/gl_oset.c: Likewise.
77812         * lib/gl_oset.h: Likewise.
77813         * lib/gl_rbtree_list.c: Likewise.
77814         * lib/gl_rbtree_list.h: Likewise.
77815         * lib/gl_rbtree_oset.c: Likewise.
77816         * lib/gl_rbtree_oset.h: Likewise.
77817         * lib/gl_rbtreehash_list.c: Likewise.
77818         * lib/gl_rbtreehash_list.h: Likewise.
77819         * lib/gl_sublist.c: Likewise.
77820         * lib/gl_sublist.h: Likewise.
77821         * lib/group-member.c: Likewise.
77822         * lib/group-member.h: Likewise.
77823         * lib/hard-locale.c: Likewise.
77824         * lib/hard-locale.h: Likewise.
77825         * lib/hash-pjw.c: Likewise.
77826         * lib/hash-pjw.h: Likewise.
77827         * lib/hash-triple.c: Likewise.
77828         * lib/hash.c: Likewise.
77829         * lib/hash.h: Likewise.
77830         * lib/human.c: Likewise.
77831         * lib/human.h: Likewise.
77832         * lib/i-ring.c: Likewise.
77833         * lib/i-ring.h: Likewise.
77834         * lib/idcache.c: Likewise.
77835         * lib/imaxabs.c: Likewise.
77836         * lib/imaxdiv.c: Likewise.
77837         * lib/inet_pton.c: Likewise.
77838         * lib/inet_pton.h: Likewise.
77839         * lib/intprops.h: Likewise.
77840         * lib/inttostr.c: Likewise.
77841         * lib/inttostr.h: Likewise.
77842         * lib/inttypes.in.h: Likewise.
77843         * lib/isapipe.c: Likewise.
77844         * lib/isdir.c: Likewise.
77845         * lib/isnan.c: Likewise.
77846         * lib/isnan.h: Likewise.
77847         * lib/isnanf.c: Likewise.
77848         * lib/isnanf.h: Likewise.
77849         * lib/isnanl-nolibm.h: Likewise.
77850         * lib/isnanl.c: Likewise.
77851         * lib/isnanl.h: Likewise.
77852         * lib/javacomp.c: Likewise.
77853         * lib/javacomp.h: Likewise.
77854         * lib/javaexec.c: Likewise.
77855         * lib/javaexec.h: Likewise.
77856         * lib/javaversion.c: Likewise.
77857         * lib/javaversion.h: Likewise.
77858         * lib/javaversion.java: Likewise.
77859         * lib/lbrkprop.h: Likewise.
77860         * lib/lchmod.h: Likewise.
77861         * lib/lchown.c: Likewise.
77862         * lib/ldexpl.c: Likewise.
77863         * lib/linebreak.c: Likewise.
77864         * lib/linebreak.h: Likewise.
77865         * lib/linebuffer.c: Likewise.
77866         * lib/linebuffer.h: Likewise.
77867         * lib/locale.in.h: Likewise.
77868         * lib/logl.c: Likewise.
77869         * lib/long-options.c: Likewise.
77870         * lib/long-options.h: Likewise.
77871         * lib/lstat.c: Likewise.
77872         * lib/lstat.h: Likewise.
77873         * lib/math.in.h: Likewise.
77874         * lib/mbchar.c: Likewise.
77875         * lib/mbchar.h: Likewise.
77876         * lib/mbfile.h: Likewise.
77877         * lib/mbiter.h: Likewise.
77878         * lib/mbscasecmp.c: Likewise.
77879         * lib/mbscasestr.c: Likewise.
77880         * lib/mbschr.c: Likewise.
77881         * lib/mbscspn.c: Likewise.
77882         * lib/mbslen.c: Likewise.
77883         * lib/mbsncasecmp.c: Likewise.
77884         * lib/mbsnlen.c: Likewise.
77885         * lib/mbspbrk.c: Likewise.
77886         * lib/mbspcasecmp.c: Likewise.
77887         * lib/mbsrchr.c: Likewise.
77888         * lib/mbssep.c: Likewise.
77889         * lib/mbsspn.c: Likewise.
77890         * lib/mbsstr.c: Likewise.
77891         * lib/mbstok_r.c: Likewise.
77892         * lib/mbswidth.c: Likewise.
77893         * lib/mbswidth.h: Likewise.
77894         * lib/mbuiter.h: Likewise.
77895         * lib/memcasecmp.c: Likewise.
77896         * lib/memcasecmp.h: Likewise.
77897         * lib/memchr.c: Likewise.
77898         * lib/memcmp.c: Likewise.
77899         * lib/memcoll.c: Likewise.
77900         * lib/memcoll.h: Likewise.
77901         * lib/memcpy.c: Likewise.
77902         * lib/memrchr.c: Likewise.
77903         * lib/mkancesdirs.c: Likewise.
77904         * lib/mkdir-p.c: Likewise.
77905         * lib/mkdir-p.h: Likewise.
77906         * lib/mkdir.c: Likewise.
77907         * lib/mkdirat.c: Likewise.
77908         * lib/mkdtemp.c: Likewise.
77909         * lib/mkstemp-safer.c: Likewise.
77910         * lib/mkstemp.c: Likewise.
77911         * lib/modechange.c: Likewise.
77912         * lib/modechange.h: Likewise.
77913         * lib/mountlist.c: Likewise.
77914         * lib/mountlist.h: Likewise.
77915         * lib/mpsort.c: Likewise.
77916         * lib/nanosleep.c: Likewise.
77917         * lib/obstack.c: Likewise.
77918         * lib/obstack.h: Likewise.
77919         * lib/open-safer.c: Likewise.
77920         * lib/open.c: Likewise.
77921         * lib/openat-die.c: Likewise.
77922         * lib/openat-priv.h: Likewise.
77923         * lib/openat-proc.c: Likewise.
77924         * lib/openat.c: Likewise.
77925         * lib/openat.h: Likewise.
77926         * lib/pagealign_alloc.c: Likewise.
77927         * lib/pagealign_alloc.h: Likewise.
77928         * lib/physmem.c: Likewise.
77929         * lib/physmem.h: Likewise.
77930         * lib/pipe-safer.c: Likewise.
77931         * lib/pipe.c: Likewise.
77932         * lib/pipe.h: Likewise.
77933         * lib/posixtm.c: Likewise.
77934         * lib/posixtm.h: Likewise.
77935         * lib/posixver.c: Likewise.
77936         * lib/printf-frexp.c: Likewise.
77937         * lib/printf-frexp.h: Likewise.
77938         * lib/printf-frexpl.c: Likewise.
77939         * lib/printf-frexpl.h: Likewise.
77940         * lib/printf.c: Likewise.
77941         * lib/progname.c: Likewise.
77942         * lib/progname.h: Likewise.
77943         * lib/progreloc.c: Likewise.
77944         * lib/putenv.c: Likewise.
77945         * lib/quote.c: Likewise.
77946         * lib/quote.h: Likewise.
77947         * lib/quotearg.c: Likewise.
77948         * lib/quotearg.h: Likewise.
77949         * lib/raise.c: Likewise.
77950         * lib/readline.c: Likewise.
77951         * lib/readline.h: Likewise.
77952         * lib/readlink.c: Likewise.
77953         * lib/readtokens.c: Likewise.
77954         * lib/readtokens.h: Likewise.
77955         * lib/readtokens0.c: Likewise.
77956         * lib/readtokens0.h: Likewise.
77957         * lib/readutmp.c: Likewise.
77958         * lib/readutmp.h: Likewise.
77959         * lib/realloc.c: Likewise.
77960         * lib/relocwrapper.c: Likewise.
77961         * lib/rename-dest-slash.c: Likewise.
77962         * lib/rename.c: Likewise.
77963         * lib/rmdir.c: Likewise.
77964         * lib/rpmatch.c: Likewise.
77965         * lib/safe-read.c: Likewise.
77966         * lib/safe-read.h: Likewise.
77967         * lib/safe-write.c: Likewise.
77968         * lib/safe-write.h: Likewise.
77969         * lib/same-inode.h: Likewise.
77970         * lib/same.c: Likewise.
77971         * lib/same.h: Likewise.
77972         * lib/save-cwd.c: Likewise.
77973         * lib/save-cwd.h: Likewise.
77974         * lib/savedir.c: Likewise.
77975         * lib/savedir.h: Likewise.
77976         * lib/savewd.c: Likewise.
77977         * lib/savewd.h: Likewise.
77978         * lib/search.in.h: Likewise.
77979         * lib/setenv.c: Likewise.
77980         * lib/setenv.h: Likewise.
77981         * lib/settime.c: Likewise.
77982         * lib/sh-quote.c: Likewise.
77983         * lib/sh-quote.h: Likewise.
77984         * lib/sig2str.c: Likewise.
77985         * lib/sig2str.h: Likewise.
77986         * lib/signal.in.h: Likewise.
77987         * lib/signbitd.c: Likewise.
77988         * lib/signbitf.c: Likewise.
77989         * lib/signbitl.c: Likewise.
77990         * lib/sigprocmask.c: Likewise.
77991         * lib/sincosl.c: Likewise.
77992         * lib/sleep.c: Likewise.
77993         * lib/sprintf.c: Likewise.
77994         * lib/sqrtl.c: Likewise.
77995         * lib/stat-time.h: Likewise.
77996         * lib/stdio--.h: Likewise.
77997         * lib/stdio-safer.h: Likewise.
77998         * lib/stdlib--.h: Likewise.
77999         * lib/stdlib-safer.h: Likewise.
78000         * lib/stdlib.in.h: Likewise.
78001         * lib/stpcpy.c: Likewise.
78002         * lib/stpncpy.c: Likewise.
78003         * lib/strchrnul.c: Likewise.
78004         * lib/strcspn.c: Likewise.
78005         * lib/strerror.c: Likewise.
78006         * lib/strftime.c: Likewise.
78007         * lib/strftime.h: Likewise.
78008         * lib/striconveh.c: Likewise.
78009         * lib/striconveh.h: Likewise.
78010         * lib/striconveha.c: Likewise.
78011         * lib/striconveha.h: Likewise.
78012         * lib/stripslash.c: Likewise.
78013         * lib/strnlen1.c: Likewise.
78014         * lib/strnlen1.h: Likewise.
78015         * lib/strtod.c: Likewise.
78016         * lib/strtoimax.c: Likewise.
78017         * lib/strtok_r.c: Likewise.
78018         * lib/strtol.c: Likewise.
78019         * lib/strtoll.c: Likewise.
78020         * lib/strtoul.c: Likewise.
78021         * lib/strtoull.c: Likewise.
78022         * lib/sysexits.in.h: Likewise.
78023         * lib/tempname.c: Likewise.
78024         * lib/tempname.h: Likewise.
78025         * lib/timespec.h: Likewise.
78026         * lib/tls.c: Likewise.
78027         * lib/tls.h: Likewise.
78028         * lib/tmpdir.c: Likewise.
78029         * lib/tmpdir.h: Likewise.
78030         * lib/tmpfile-safer.c: Likewise.
78031         * lib/tmpfile.c: Likewise.
78032         * lib/trigl.c: Likewise.
78033         * lib/trigl.h: Likewise.
78034         * lib/trim.c: Likewise.
78035         * lib/trim.h: Likewise.
78036         * lib/trunc.c: Likewise.
78037         * lib/truncf.c: Likewise.
78038         * lib/truncl.c: Likewise.
78039         * lib/tsearch.c: Likewise.
78040         * lib/unicodeio.c: Likewise.
78041         * lib/unicodeio.h: Likewise.
78042         * lib/unistd--.h: Likewise.
78043         * lib/unistd-safer.h: Likewise.
78044         * lib/unistdio/ulc-fprintf.c: Likewise.
78045         * lib/unistdio/ulc-vfprintf.c: Likewise.
78046         * lib/unlinkdir.c: Likewise.
78047         * lib/unlinkdir.h: Likewise.
78048         * lib/unlocked-io.h: Likewise.
78049         * lib/unsetenv.c: Likewise.
78050         * lib/userspec.c: Likewise.
78051         * lib/utime.c: Likewise.
78052         * lib/utimecmp.c: Likewise.
78053         * lib/utimecmp.h: Likewise.
78054         * lib/utimens.c: Likewise.
78055         * lib/verify.h: Likewise.
78056         * lib/verror.c: Likewise.
78057         * lib/verror.h: Likewise.
78058         * lib/version-etc-fsf.c: Likewise.
78059         * lib/version-etc.c: Likewise.
78060         * lib/version-etc.h: Likewise.
78061         * lib/vfprintf.c: Likewise.
78062         * lib/vprintf.c: Likewise.
78063         * lib/vsprintf.c: Likewise.
78064         * lib/w32spawn.h: Likewise.
78065         * lib/wait-process.c: Likewise.
78066         * lib/wait-process.h: Likewise.
78067         * lib/wcwidth.c: Likewise.
78068         * lib/write-any-file.c: Likewise.
78069         * lib/xalloc-die.c: Likewise.
78070         * lib/xalloc.h: Likewise.
78071         * lib/xasprintf.c: Likewise.
78072         * lib/xgetcwd.c: Likewise.
78073         * lib/xgetcwd.h: Likewise.
78074         * lib/xgetdomainname.c: Likewise.
78075         * lib/xgetdomainname.h: Likewise.
78076         * lib/xgethostname.c: Likewise.
78077         * lib/xmalloc.c: Likewise.
78078         * lib/xmalloca.c: Likewise.
78079         * lib/xmalloca.h: Likewise.
78080         * lib/xmemcoll.c: Likewise.
78081         * lib/xnanosleep.c: Likewise.
78082         * lib/xreadlink.c: Likewise.
78083         * lib/xreadlink.h: Likewise.
78084         * lib/xsetenv.c: Likewise.
78085         * lib/xsetenv.h: Likewise.
78086         * lib/xstriconv.c: Likewise.
78087         * lib/xstriconv.h: Likewise.
78088         * lib/xstrndup.c: Likewise.
78089         * lib/xstrndup.h: Likewise.
78090         * lib/xstrtod.c: Likewise.
78091         * lib/xstrtod.h: Likewise.
78092         * lib/xstrtol-error.c: Likewise.
78093         * lib/xstrtol.c: Likewise.
78094         * lib/xstrtol.h: Likewise.
78095         * lib/xtime.h: Likewise.
78096         * lib/xvasprintf.c: Likewise.
78097         * lib/xvasprintf.h: Likewise.
78098         * lib/yesno.c: Likewise.
78099         * lib/yesno.h: Likewise.
78100         * posix-modules: Likewise.
78101         * tests/test-alloca-opt.c: Likewise.
78102         * tests/test-arcfour.c: Likewise.
78103         * tests/test-arctwo.c: Likewise.
78104         * tests/test-argmatch.c: Likewise.
78105         * tests/test-argp-2.sh: Likewise.
78106         * tests/test-argp.c: Likewise.
78107         * tests/test-arpa_inet.c: Likewise.
78108         * tests/test-array_list.c: Likewise.
78109         * tests/test-array_oset.c: Likewise.
78110         * tests/test-atexit.c: Likewise.
78111         * tests/test-avltree_list.c: Likewise.
78112         * tests/test-avltree_oset.c: Likewise.
78113         * tests/test-avltreehash_list.c: Likewise.
78114         * tests/test-base64.c: Likewise.
78115         * tests/test-binary-io.c: Likewise.
78116         * tests/test-byteswap.c: Likewise.
78117         * tests/test-c-ctype.c: Likewise.
78118         * tests/test-c-strcasecmp.c: Likewise.
78119         * tests/test-c-strcasestr.c: Likewise.
78120         * tests/test-c-strncasecmp.c: Likewise.
78121         * tests/test-c-strstr.c: Likewise.
78122         * tests/test-canonicalize-lgpl.c: Likewise.
78123         * tests/test-canonicalize.c: Likewise.
78124         * tests/test-carray_list.c: Likewise.
78125         * tests/test-ceilf.c: Likewise.
78126         * tests/test-ceill.c: Likewise.
78127         * tests/test-count-one-bits.c: Likewise.
78128         * tests/test-crc.c: Likewise.
78129         * tests/test-dirname.c: Likewise.
78130         * tests/test-fbufmode.c: Likewise.
78131         * tests/test-fcntl.c: Likewise.
78132         * tests/test-fflush.c: Likewise.
78133         * tests/test-floorf.c: Likewise.
78134         * tests/test-floorl.c: Likewise.
78135         * tests/test-fopen.c: Likewise.
78136         * tests/test-fprintf-posix.c: Likewise.
78137         * tests/test-fprintf-posix.h: Likewise.
78138         * tests/test-fpurge.c: Likewise.
78139         * tests/test-freadable.c: Likewise.
78140         * tests/test-freadahead.c: Likewise.
78141         * tests/test-freading.c: Likewise.
78142         * tests/test-freopen.c: Likewise.
78143         * tests/test-frexp.c: Likewise.
78144         * tests/test-frexpl.c: Likewise.
78145         * tests/test-fseek.c: Likewise.
78146         * tests/test-fseeko.c: Likewise.
78147         * tests/test-fseterr.c: Likewise.
78148         * tests/test-fstrcmp.c: Likewise.
78149         * tests/test-ftell.c: Likewise.
78150         * tests/test-ftello.c: Likewise.
78151         * tests/test-fwritable.c: Likewise.
78152         * tests/test-fwriting.c: Likewise.
78153         * tests/test-getaddrinfo.c: Likewise.
78154         * tests/test-getpass.c: Likewise.
78155         * tests/test-gettimeofday.c: Likewise.
78156         * tests/test-hmac-md5.c: Likewise.
78157         * tests/test-hmac-sha1.c: Likewise.
78158         * tests/test-iconv.c: Likewise.
78159         * tests/test-iconvme.c: Likewise.
78160         * tests/test-inttypes.c: Likewise.
78161         * tests/test-isnan.c: Likewise.
78162         * tests/test-isnanf.c: Likewise.
78163         * tests/test-isnanl-nolibm.c: Likewise.
78164         * tests/test-isnanl.c: Likewise.
78165         * tests/test-isnanl.h: Likewise.
78166         * tests/test-ldexpl.c: Likewise.
78167         * tests/test-linked_list.c: Likewise.
78168         * tests/test-linkedhash_list.c: Likewise.
78169         * tests/test-locale.c: Likewise.
78170         * tests/test-localename.c: Likewise.
78171         * tests/test-lock.c: Likewise.
78172         * tests/test-lseek.c: Likewise.
78173         * tests/test-malloca.c: Likewise.
78174         * tests/test-math.c: Likewise.
78175         * tests/test-mbscasecmp.c: Likewise.
78176         * tests/test-mbscasestr1.c: Likewise.
78177         * tests/test-mbscasestr2.c: Likewise.
78178         * tests/test-mbscasestr3.c: Likewise.
78179         * tests/test-mbscasestr4.c: Likewise.
78180         * tests/test-mbschr.c: Likewise.
78181         * tests/test-mbscspn.c: Likewise.
78182         * tests/test-mbsncasecmp.c: Likewise.
78183         * tests/test-mbspbrk.c: Likewise.
78184         * tests/test-mbspcasecmp.c: Likewise.
78185         * tests/test-mbsrchr.c: Likewise.
78186         * tests/test-mbsspn.c: Likewise.
78187         * tests/test-mbsstr1.c: Likewise.
78188         * tests/test-mbsstr2.c: Likewise.
78189         * tests/test-mbsstr3.c: Likewise.
78190         * tests/test-md5.c: Likewise.
78191         * tests/test-memmem.c: Likewise.
78192         * tests/test-netinet_in.c: Likewise.
78193         * tests/test-open.c: Likewise.
78194         * tests/test-printf-frexp.c: Likewise.
78195         * tests/test-printf-frexpl.c: Likewise.
78196         * tests/test-printf-posix.c: Likewise.
78197         * tests/test-printf-posix.h: Likewise.
78198         * tests/test-rbtree_list.c: Likewise.
78199         * tests/test-rbtree_oset.c: Likewise.
78200         * tests/test-rbtreehash_list.c: Likewise.
78201         * tests/test-read-file.c: Likewise.
78202         * tests/test-rijndael.c: Likewise.
78203         * tests/test-search.c: Likewise.
78204         * tests/test-signbit.c: Likewise.
78205         * tests/test-sleep.c: Likewise.
78206         * tests/test-snprintf-posix.c: Likewise.
78207         * tests/test-snprintf-posix.h: Likewise.
78208         * tests/test-snprintf.c: Likewise.
78209         * tests/test-sprintf-posix.c: Likewise.
78210         * tests/test-sprintf-posix.h: Likewise.
78211         * tests/test-stat-time.c: Likewise.
78212         * tests/test-stdbool.c: Likewise.
78213         * tests/test-stdint.c: Likewise.
78214         * tests/test-stdio.c: Likewise.
78215         * tests/test-stdlib.c: Likewise.
78216         * tests/test-stpncpy.c: Likewise.
78217         * tests/test-strcasestr.c: Likewise.
78218         * tests/test-striconv.c: Likewise.
78219         * tests/test-striconveh.c: Likewise.
78220         * tests/test-striconveha.c: Likewise.
78221         * tests/test-string.c: Likewise.
78222         * tests/test-sys_select.c: Likewise.
78223         * tests/test-sys_socket.c: Likewise.
78224         * tests/test-sys_stat.c: Likewise.
78225         * tests/test-sys_time.c: Likewise.
78226         * tests/test-sysexits.c: Likewise.
78227         * tests/test-time.c: Likewise.
78228         * tests/test-tls.c: Likewise.
78229         * tests/test-trunc.c: Likewise.
78230         * tests/test-truncf.c: Likewise.
78231         * tests/test-truncl.c: Likewise.
78232         * tests/test-unistd.c: Likewise.
78233         * tests/test-vasnprintf-posix.c: Likewise.
78234         * tests/test-vasnprintf-posix2.c: Likewise.
78235         * tests/test-vasnprintf.c: Likewise.
78236         * tests/test-vasprintf-posix.c: Likewise.
78237         * tests/test-vasprintf.c: Likewise.
78238         * tests/test-verify.c: Likewise.
78239         * tests/test-vfprintf-posix.c: Likewise.
78240         * tests/test-vprintf-posix.c: Likewise.
78241         * tests/test-vsnprintf-posix.c: Likewise.
78242         * tests/test-vsnprintf.c: Likewise.
78243         * tests/test-vsprintf-posix.c: Likewise.
78244         * tests/test-wchar.c: Likewise.
78245         * tests/test-wctype.c: Likewise.
78246         * tests/test-wcwidth.c: Likewise.
78247         * tests/test-xstrtol.c: Likewise.
78248         * tests/test-xvasprintf.c: Likewise.
78249         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
78250         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
78251         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
78252         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
78253         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
78254         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
78255         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
78256         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
78257         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
78258         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
78259         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
78260         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
78261         * tests/uniname/test-uninames.c: Likewise.
78262         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
78263         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
78264         * tests/unistdio/test-u16-printf1.h: Likewise.
78265         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
78266         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
78267         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
78268         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
78269         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
78270         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
78271         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
78272         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
78273         * tests/unistdio/test-u32-printf1.h: Likewise.
78274         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
78275         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
78276         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
78277         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
78278         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
78279         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
78280         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
78281         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
78282         * tests/unistdio/test-u8-printf1.h: Likewise.
78283         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
78284         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
78285         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
78286         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
78287         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
78288         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
78289         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
78290         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
78291         * tests/unistdio/test-ulc-printf1.h: Likewise.
78292         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
78293         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
78294         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
78295         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
78296         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
78297         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
78298         * tests/uniwidth/test-u16-strwidth.c: Likewise.
78299         * tests/uniwidth/test-u16-width.c: Likewise.
78300         * tests/uniwidth/test-u32-strwidth.c: Likewise.
78301         * tests/uniwidth/test-u32-width.c: Likewise.
78302         * tests/uniwidth/test-u8-strwidth.c: Likewise.
78303         * tests/uniwidth/test-u8-width.c: Likewise.
78304         * tests/uniwidth/test-uc_width.c: Likewise.
78305         * config/srclist-update: Likewise.
78306         (fixlicense): Update to GPLv3+.
78308         Change copyright notice from LGPLv2.1+ to LGPLv3+.
78309         * tests/test-tsearch.c: Change copyright notice.
78311         Change copyright notice from LGPLv2.0+ to LGPLv3+.
78312         * lib/c-strcaseeq.h: Change copyright notice.
78313         * lib/streq.h: Likewise.
78314         * lib/uniconv.h: Likewise.
78315         * lib/uniconv/u-conv-from-enc.h: Likewise.
78316         * lib/uniconv/u-conv-to-enc.h: Likewise.
78317         * lib/uniconv/u-strconv-from-enc.h: Likewise.
78318         * lib/uniconv/u-strconv-to-enc.h: Likewise.
78319         * lib/uniconv/u16-conv-from-enc.c: Likewise.
78320         * lib/uniconv/u16-conv-to-enc.c: Likewise.
78321         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
78322         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
78323         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
78324         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
78325         * lib/uniconv/u32-conv-from-enc.c: Likewise.
78326         * lib/uniconv/u32-conv-to-enc.c: Likewise.
78327         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
78328         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
78329         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
78330         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
78331         * lib/uniconv/u8-conv-from-enc.c: Likewise.
78332         * lib/uniconv/u8-conv-to-enc.c: Likewise.
78333         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
78334         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
78335         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
78336         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
78337         * lib/uniname.h: Likewise.
78338         * lib/uniname/uniname.c: Likewise.
78339         * lib/unistdio.h: Likewise.
78340         * lib/unistdio/u-asnprintf.h: Likewise.
78341         * lib/unistdio/u-asprintf.h: Likewise.
78342         * lib/unistdio/u-printf-args.c: Likewise.
78343         * lib/unistdio/u-printf-args.h: Likewise.
78344         * lib/unistdio/u-printf-parse.h: Likewise.
78345         * lib/unistdio/u-snprintf.h: Likewise.
78346         * lib/unistdio/u-sprintf.h: Likewise.
78347         * lib/unistdio/u-vasprintf.h: Likewise.
78348         * lib/unistdio/u-vsnprintf.h: Likewise.
78349         * lib/unistdio/u-vsprintf.h: Likewise.
78350         * lib/unistdio/u16-asnprintf.c: Likewise.
78351         * lib/unistdio/u16-asprintf.c: Likewise.
78352         * lib/unistdio/u16-printf-parse.c: Likewise.
78353         * lib/unistdio/u16-snprintf.c: Likewise.
78354         * lib/unistdio/u16-sprintf.c: Likewise.
78355         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
78356         * lib/unistdio/u16-u16-asprintf.c: Likewise.
78357         * lib/unistdio/u16-u16-snprintf.c: Likewise.
78358         * lib/unistdio/u16-u16-sprintf.c: Likewise.
78359         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
78360         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
78361         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
78362         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
78363         * lib/unistdio/u16-vasnprintf.c: Likewise.
78364         * lib/unistdio/u16-vasprintf.c: Likewise.
78365         * lib/unistdio/u16-vsnprintf.c: Likewise.
78366         * lib/unistdio/u16-vsprintf.c: Likewise.
78367         * lib/unistdio/u32-asnprintf.c: Likewise.
78368         * lib/unistdio/u32-asprintf.c: Likewise.
78369         * lib/unistdio/u32-printf-parse.c: Likewise.
78370         * lib/unistdio/u32-snprintf.c: Likewise.
78371         * lib/unistdio/u32-sprintf.c: Likewise.
78372         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
78373         * lib/unistdio/u32-u32-asprintf.c: Likewise.
78374         * lib/unistdio/u32-u32-snprintf.c: Likewise.
78375         * lib/unistdio/u32-u32-sprintf.c: Likewise.
78376         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
78377         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
78378         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
78379         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
78380         * lib/unistdio/u32-vasnprintf.c: Likewise.
78381         * lib/unistdio/u32-vasprintf.c: Likewise.
78382         * lib/unistdio/u32-vsnprintf.c: Likewise.
78383         * lib/unistdio/u32-vsprintf.c: Likewise.
78384         * lib/unistdio/u8-asnprintf.c: Likewise.
78385         * lib/unistdio/u8-asprintf.c: Likewise.
78386         * lib/unistdio/u8-printf-parse.c: Likewise.
78387         * lib/unistdio/u8-snprintf.c: Likewise.
78388         * lib/unistdio/u8-sprintf.c: Likewise.
78389         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
78390         * lib/unistdio/u8-u8-asprintf.c: Likewise.
78391         * lib/unistdio/u8-u8-snprintf.c: Likewise.
78392         * lib/unistdio/u8-u8-sprintf.c: Likewise.
78393         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
78394         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
78395         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
78396         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
78397         * lib/unistdio/u8-vasnprintf.c: Likewise.
78398         * lib/unistdio/u8-vasprintf.c: Likewise.
78399         * lib/unistdio/u8-vsnprintf.c: Likewise.
78400         * lib/unistdio/u8-vsprintf.c: Likewise.
78401         * lib/unistdio/ulc-asnprintf.c: Likewise.
78402         * lib/unistdio/ulc-asprintf.c: Likewise.
78403         * lib/unistdio/ulc-printf-parse.c: Likewise.
78404         * lib/unistdio/ulc-snprintf.c: Likewise.
78405         * lib/unistdio/ulc-sprintf.c: Likewise.
78406         * lib/unistdio/ulc-vasnprintf.c: Likewise.
78407         * lib/unistdio/ulc-vasprintf.c: Likewise.
78408         * lib/unistdio/ulc-vsnprintf.c: Likewise.
78409         * lib/unistdio/ulc-vsprintf.c: Likewise.
78410         * lib/unistr.h: Likewise.
78411         * lib/unistr/u-cpy-alloc.h: Likewise.
78412         * lib/unistr/u-cpy.h: Likewise.
78413         * lib/unistr/u-endswith.h: Likewise.
78414         * lib/unistr/u-move.h: Likewise.
78415         * lib/unistr/u-set.h: Likewise.
78416         * lib/unistr/u-startswith.h: Likewise.
78417         * lib/unistr/u-stpcpy.h: Likewise.
78418         * lib/unistr/u-stpncpy.h: Likewise.
78419         * lib/unistr/u-strcat.h: Likewise.
78420         * lib/unistr/u-strcpy.h: Likewise.
78421         * lib/unistr/u-strcspn.h: Likewise.
78422         * lib/unistr/u-strdup.h: Likewise.
78423         * lib/unistr/u-strlen.h: Likewise.
78424         * lib/unistr/u-strncat.h: Likewise.
78425         * lib/unistr/u-strncpy.h: Likewise.
78426         * lib/unistr/u-strnlen.h: Likewise.
78427         * lib/unistr/u-strpbrk.h: Likewise.
78428         * lib/unistr/u-strspn.h: Likewise.
78429         * lib/unistr/u-strstr.h: Likewise.
78430         * lib/unistr/u-strtok.h: Likewise.
78431         * lib/unistr/u16-check.c: Likewise.
78432         * lib/unistr/u16-chr.c: Likewise.
78433         * lib/unistr/u16-cmp.c: Likewise.
78434         * lib/unistr/u16-cpy-alloc.c: Likewise.
78435         * lib/unistr/u16-cpy.c: Likewise.
78436         * lib/unistr/u16-endswith.c: Likewise.
78437         * lib/unistr/u16-mblen.c: Likewise.
78438         * lib/unistr/u16-mbsnlen.c: Likewise.
78439         * lib/unistr/u16-mbtouc-aux.c: Likewise.
78440         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
78441         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
78442         * lib/unistr/u16-mbtouc.c: Likewise.
78443         * lib/unistr/u16-mbtoucr.c: Likewise.
78444         * lib/unistr/u16-move.c: Likewise.
78445         * lib/unistr/u16-next.c: Likewise.
78446         * lib/unistr/u16-prev.c: Likewise.
78447         * lib/unistr/u16-set.c: Likewise.
78448         * lib/unistr/u16-startswith.c: Likewise.
78449         * lib/unistr/u16-stpcpy.c: Likewise.
78450         * lib/unistr/u16-stpncpy.c: Likewise.
78451         * lib/unistr/u16-strcat.c: Likewise.
78452         * lib/unistr/u16-strchr.c: Likewise.
78453         * lib/unistr/u16-strcmp.c: Likewise.
78454         * lib/unistr/u16-strcpy.c: Likewise.
78455         * lib/unistr/u16-strcspn.c: Likewise.
78456         * lib/unistr/u16-strdup.c: Likewise.
78457         * lib/unistr/u16-strlen.c: Likewise.
78458         * lib/unistr/u16-strmblen.c: Likewise.
78459         * lib/unistr/u16-strmbtouc.c: Likewise.
78460         * lib/unistr/u16-strncat.c: Likewise.
78461         * lib/unistr/u16-strncmp.c: Likewise.
78462         * lib/unistr/u16-strncpy.c: Likewise.
78463         * lib/unistr/u16-strnlen.c: Likewise.
78464         * lib/unistr/u16-strpbrk.c: Likewise.
78465         * lib/unistr/u16-strrchr.c: Likewise.
78466         * lib/unistr/u16-strspn.c: Likewise.
78467         * lib/unistr/u16-strstr.c: Likewise.
78468         * lib/unistr/u16-strtok.c: Likewise.
78469         * lib/unistr/u16-to-u32.c: Likewise.
78470         * lib/unistr/u16-to-u8.c: Likewise.
78471         * lib/unistr/u16-uctomb-aux.c: Likewise.
78472         * lib/unistr/u16-uctomb.c: Likewise.
78473         * lib/unistr/u32-check.c: Likewise.
78474         * lib/unistr/u32-chr.c: Likewise.
78475         * lib/unistr/u32-cmp.c: Likewise.
78476         * lib/unistr/u32-cpy-alloc.c: Likewise.
78477         * lib/unistr/u32-cpy.c: Likewise.
78478         * lib/unistr/u32-endswith.c: Likewise.
78479         * lib/unistr/u32-mblen.c: Likewise.
78480         * lib/unistr/u32-mbsnlen.c: Likewise.
78481         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
78482         * lib/unistr/u32-mbtouc.c: Likewise.
78483         * lib/unistr/u32-mbtoucr.c: Likewise.
78484         * lib/unistr/u32-move.c: Likewise.
78485         * lib/unistr/u32-next.c: Likewise.
78486         * lib/unistr/u32-prev.c: Likewise.
78487         * lib/unistr/u32-set.c: Likewise.
78488         * lib/unistr/u32-startswith.c: Likewise.
78489         * lib/unistr/u32-stpcpy.c: Likewise.
78490         * lib/unistr/u32-stpncpy.c: Likewise.
78491         * lib/unistr/u32-strcat.c: Likewise.
78492         * lib/unistr/u32-strchr.c: Likewise.
78493         * lib/unistr/u32-strcmp.c: Likewise.
78494         * lib/unistr/u32-strcpy.c: Likewise.
78495         * lib/unistr/u32-strcspn.c: Likewise.
78496         * lib/unistr/u32-strdup.c: Likewise.
78497         * lib/unistr/u32-strlen.c: Likewise.
78498         * lib/unistr/u32-strmblen.c: Likewise.
78499         * lib/unistr/u32-strmbtouc.c: Likewise.
78500         * lib/unistr/u32-strncat.c: Likewise.
78501         * lib/unistr/u32-strncmp.c: Likewise.
78502         * lib/unistr/u32-strncpy.c: Likewise.
78503         * lib/unistr/u32-strnlen.c: Likewise.
78504         * lib/unistr/u32-strpbrk.c: Likewise.
78505         * lib/unistr/u32-strrchr.c: Likewise.
78506         * lib/unistr/u32-strspn.c: Likewise.
78507         * lib/unistr/u32-strstr.c: Likewise.
78508         * lib/unistr/u32-strtok.c: Likewise.
78509         * lib/unistr/u32-to-u16.c: Likewise.
78510         * lib/unistr/u32-to-u8.c: Likewise.
78511         * lib/unistr/u32-uctomb.c: Likewise.
78512         * lib/unistr/u8-check.c: Likewise.
78513         * lib/unistr/u8-chr.c: Likewise.
78514         * lib/unistr/u8-cmp.c: Likewise.
78515         * lib/unistr/u8-cpy-alloc.c: Likewise.
78516         * lib/unistr/u8-cpy.c: Likewise.
78517         * lib/unistr/u8-endswith.c: Likewise.
78518         * lib/unistr/u8-mblen.c: Likewise.
78519         * lib/unistr/u8-mbsnlen.c: Likewise.
78520         * lib/unistr/u8-mbtouc-aux.c: Likewise.
78521         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
78522         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
78523         * lib/unistr/u8-mbtouc.c: Likewise.
78524         * lib/unistr/u8-mbtoucr.c: Likewise.
78525         * lib/unistr/u8-move.c: Likewise.
78526         * lib/unistr/u8-next.c: Likewise.
78527         * lib/unistr/u8-prev.c: Likewise.
78528         * lib/unistr/u8-set.c: Likewise.
78529         * lib/unistr/u8-startswith.c: Likewise.
78530         * lib/unistr/u8-stpcpy.c: Likewise.
78531         * lib/unistr/u8-stpncpy.c: Likewise.
78532         * lib/unistr/u8-strcat.c: Likewise.
78533         * lib/unistr/u8-strchr.c: Likewise.
78534         * lib/unistr/u8-strcmp.c: Likewise.
78535         * lib/unistr/u8-strcpy.c: Likewise.
78536         * lib/unistr/u8-strcspn.c: Likewise.
78537         * lib/unistr/u8-strdup.c: Likewise.
78538         * lib/unistr/u8-strlen.c: Likewise.
78539         * lib/unistr/u8-strmblen.c: Likewise.
78540         * lib/unistr/u8-strmbtouc.c: Likewise.
78541         * lib/unistr/u8-strncat.c: Likewise.
78542         * lib/unistr/u8-strncmp.c: Likewise.
78543         * lib/unistr/u8-strncpy.c: Likewise.
78544         * lib/unistr/u8-strnlen.c: Likewise.
78545         * lib/unistr/u8-strpbrk.c: Likewise.
78546         * lib/unistr/u8-strrchr.c: Likewise.
78547         * lib/unistr/u8-strspn.c: Likewise.
78548         * lib/unistr/u8-strstr.c: Likewise.
78549         * lib/unistr/u8-strtok.c: Likewise.
78550         * lib/unistr/u8-to-u16.c: Likewise.
78551         * lib/unistr/u8-to-u32.c: Likewise.
78552         * lib/unistr/u8-uctomb-aux.c: Likewise.
78553         * lib/unistr/u8-uctomb.c: Likewise.
78554         * lib/unitypes.h: Likewise.
78555         * lib/uniwidth.h: Likewise.
78556         * lib/uniwidth/cjk.h: Likewise.
78557         * lib/uniwidth/u16-strwidth.c: Likewise.
78558         * lib/uniwidth/u16-width.c: Likewise.
78559         * lib/uniwidth/u32-strwidth.c: Likewise.
78560         * lib/uniwidth/u32-width.c: Likewise.
78561         * lib/uniwidth/u8-strwidth.c: Likewise.
78562         * lib/uniwidth/u8-width.c: Likewise.
78563         * lib/uniwidth/width.c: Likewise.
78565 2007-10-07  Bruno Haible  <bruno@clisp.org>
78567         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
78568         The file is still under LGPL (see modules/inttypes).
78570 2007-10-06  Bruno Haible  <bruno@clisp.org>
78572         * modules/trunc (Dependencies): Add 'extensions'.
78573         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
78574         Reported by Ben Pfaff <blp@gnu.org>.
78576 2007-10-06  Bruno Haible  <bruno@clisp.org>
78578         * modules/freopen-tests: New file.
78579         * tests/test-freopen.c: New file.
78581         * modules/fopen-tests: New file.
78582         * tests/test-fopen.c: New file.
78584         * modules/fopen: New file.
78585         * lib/fopen.c: New file.
78586         * m4/fopen.m4: New file.
78587         * modules/freopen: New file.
78588         * lib/freopen.c: New file.
78589         * m4/freopen.m4: New file.
78590         * lib/stdio.in.h (fopen, freopen): New declarations.
78591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
78592         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
78593         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
78594         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
78595         * doc/functions/fopen.texi: Mention the 'fopen' module.
78596         * doc/functions/freopen.texi: Mention the 'freopen' module.
78598 2007-10-06  Bruno Haible  <bruno@clisp.org>
78600         * modules/open-tests: New file.
78601         * tests/test-open.c: New file.
78603         * modules/open: New file.
78604         * lib/open.c: New file.
78605         * m4/open.m4: New file.
78606         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
78607         lib/open.c does.
78608         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
78609         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
78610         macros.
78611         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
78612         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
78613         REPLACE_OPEN.
78614         * doc/functions/open.texi: Mention the 'open' module.
78616 2007-10-04  Bruno Haible  <bruno@clisp.org>
78618         * modules/ceill-tests: New file.
78619         * tests/test-ceill.c: New file.
78621         * modules/ceill: New file.
78622         * lib/ceill.c: Replace entire file.
78623         * m4/ceill.m4: New file.
78624         * lib/math.in.h (ceill): Replace declaration.
78625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
78626         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
78627         * doc/functions/ceill.texi: Mention the 'ceill' module.
78628         * modules/mathl (Files): Remove lib/ceill.c.
78629         (Depends-on): Add ceill.
78631 2007-10-04  Bruno Haible  <bruno@clisp.org>
78633         * modules/ceilf-tests: New file.
78634         * tests/test-ceilf.c: New file.
78636         * modules/ceilf: New file.
78637         * lib/ceil.c: New file.
78638         * lib/ceilf.c: New file.
78639         * m4/ceilf.m4: New file.
78640         * lib/math.in.h (ceilf): New declaration.
78641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
78642         HAVE_DECL_CEILF.
78643         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
78644         HAVE_DECL_CEILF.
78645         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
78647 2007-10-04  Bruno Haible  <bruno@clisp.org>
78649         * modules/floorl-tests: New file.
78650         * tests/test-floorl.c: New file.
78652         * modules/floorl: New file.
78653         * lib/floorl.c: Replace entire file.
78654         * m4/floorl.m4: New file.
78655         * lib/math.in.h (floorl): Replace declaration.
78656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
78657         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
78658         * doc/functions/floorl.texi: Mention the 'floorl' module.
78659         * modules/mathl (Files): Remove lib/floorl.c.
78660         (Depends-on): Add floorl.
78662 2007-10-04  Bruno Haible  <bruno@clisp.org>
78664         * modules/floorf-tests: New file.
78665         * tests/test-floorf.c: New file.
78667         * modules/floorf: New file.
78668         * lib/floor.c: New file.
78669         * lib/floorf.c: New file.
78670         * m4/floorf.m4: New file.
78671         * lib/math.in.h (floorf): New declaration.
78672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
78673         HAVE_DECL_FLOORF.
78674         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
78675         HAVE_DECL_FLOORF.
78676         * doc/functions/floorf.texi: Mention the 'floorf' module.
78678 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
78679             Bruno Haible  <bruno@clisp.org>
78681         Advertise for the Git server instead of the CVS server.
78682         * doc/gnulib-intro.texi (Steady Development): Mention the Git
78683         repository instead of the CVS one.
78684         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
78685         about all VCS systems generically.
78686         * doc/gnulib.texi (Introduction): Capitalize `Git'.
78688 2007-10-04  Bruno Haible  <bruno@clisp.org>
78690         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
78691         means.
78692         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
78694 2007-10-04  Bruno Haible  <bruno@clisp.org>
78696         * modules/truncl-tests: New file.
78697         * tests/test-truncl.c: New file.
78699         * modules/truncl: New file.
78700         * lib/truncl.c: New file.
78701         * m4/truncl.m4: New file.
78702         * lib/math.in.h (truncl): New declaration.
78703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
78704         HAVE_DECL_TRUNCL.
78705         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
78706         HAVE_DECL_TRUNCL.
78707         * doc/functions/truncl.texi: Mention the 'truncl' module.
78709 2007-10-04  Bruno Haible  <bruno@clisp.org>
78711         * modules/truncf-tests: New file.
78712         * tests/test-truncf.c: New file.
78714         * modules/truncf: New file.
78715         * lib/trunc.c: Make paramerizable through USE_* macros.
78716         * lib/truncf.c: New file.
78717         * m4/truncf.m4: New file.
78718         * lib/math.in.h (truncf): New declaration.
78719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
78720         HAVE_DECL_TRUNCF.
78721         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
78722         HAVE_DECL_TRUNCF.
78723         * doc/functions/truncf.texi: Mention the 'truncf' module.
78725 2007-10-03  Bruno Haible  <bruno@clisp.org>
78727         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
78728         augmentation also for tests modules.
78729         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
78730         * modules/atexit-tests (Makefile.am): Likewise.
78731         * modules/binary-io-tests (Makefile.am): Likewise.
78732         * modules/c-strcase-tests (Makefile.am): Likewise.
78733         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
78734         * modules/canonicalize-tests (Makefile.am): Likewise.
78735         * modules/closein-tests (Makefile.am): Likewise.
78736         * modules/fprintf-posix-tests (Makefile.am): Likewise.
78737         * modules/freadahead-tests (Makefile.am): Likewise.
78738         * modules/fseek-tests (Makefile.am): Likewise.
78739         * modules/fseeko-tests (Makefile.am): Likewise.
78740         * modules/ftell-tests (Makefile.am): Likewise.
78741         * modules/ftello-tests (Makefile.am): Likewise.
78742         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
78743         * modules/isnanl-tests (Makefile.am): Likewise.
78744         * modules/lseek-tests (Makefile.am): Likewise.
78745         * modules/mbscasecmp-tests (Makefile.am): Likewise.
78746         * modules/mbscasestr-tests (Makefile.am): Likewise.
78747         * modules/mbschr-tests (Makefile.am): Likewise.
78748         * modules/mbscspn-tests (Makefile.am): Likewise.
78749         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
78750         * modules/mbspbrk-tests (Makefile.am): Likewise.
78751         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
78752         * modules/mbsrchr-tests (Makefile.am): Likewise.
78753         * modules/mbsspn-tests (Makefile.am): Likewise.
78754         * modules/mbsstr-tests (Makefile.am): Likewise.
78755         * modules/printf-posix-tests (Makefile.am): Likewise.
78756         * modules/snprintf-posix-tests (Makefile.am): Likewise.
78757         * modules/sprintf-posix-tests (Makefile.am): Likewise.
78758         * modules/tsearch-tests (Makefile.am): Likewise.
78759         * modules/uniname/uniname-tests (Makefile.am): Likewise.
78760         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
78761         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
78762         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
78763         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
78764         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
78765         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
78766         * modules/vprintf-posix-tests (Makefile.am): Likewise.
78767         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
78768         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
78769         * modules/xstrtoimax-tests (Makefile.am): Likewise.
78770         * modules/xstrtol-tests (Makefile.am): Likewise.
78771         * modules/xstrtoumax-tests (Makefile.am): Likewise.
78772         * modules/yesno-tests (Makefile.am): Likewise.
78774 2007-10-03  Bruno Haible  <bruno@clisp.org>
78776         * modules/trunc-tests: New file.
78777         * tests/test-trunc.c: New file.
78779         * modules/trunc: New file.
78780         * lib/trunc.c: New file.
78781         * m4/trunc.m4: New file.
78782         * lib/math.in.h (trunc): New declaration.
78783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
78784         HAVE_DECL_TRUNC.
78785         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
78786         HAVE_DECL_TRUNC.
78787         * doc/functions/trunc.texi: Mention the 'trunc' module.
78789 2007-10-03  Bruno Haible  <bruno@clisp.org>
78791         * tests/test-fpending.c: New file, mostly copied
78792         from coreutils/lib/t-fpending.c.
78793         * modules/fpending-tests: New file.
78795 2007-10-03  Bruno Haible  <bruno@clisp.org>
78797         Port the stdio extensions to QNX (untested).
78798         * lib/fseterr.c (fseterr): Add support for QNX.
78799         * lib/fbufmode.c (fbufmode): Likewise.
78800         * lib/freadable.c (freadable): Likewise.
78801         * lib/fwritable.c (fwritable): Likewise.
78802         * lib/freading.c (freading): Likewise.
78803         * lib/fwriting.c (fwriting): Likewise.
78804         * lib/freadahead.c (freadahed): Likewise.
78805         * lib/fpurge.c (fpurge): Likewise.
78806         * lib/fseeko.c (rpl_fseeko): Likewise.
78808 2007-10-03  Bruno Haible  <bruno@clisp.org>
78809             Jim Meyering  <jim@meyering.net>
78810             Eric Blake  <ebb9@byu.net>
78812         * doc/relocatable.texi: Use @command instead of @program.
78814 2007-10-02  Jim Meyering  <jim@meyering.net>
78816         Perform one more "_.h" -> ".in.h" substitution.
78817         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
78818         instead of unistd_.h here, too.
78820 2007-10-01  Bruno Haible  <bruno@clisp.org>
78822         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
78823         Needed for the alloca-opt module.
78825 2007-09-30  Bruno Haible  <bruno@clisp.org>
78827         * lib/alloca.in.h: Renamed from lib/alloca_.h.
78828         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
78829         alloca_.h.
78830         * lib/argz.in.h: Renamed from lib/argz_.h.
78831         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
78832         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
78833         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
78834         byteswap_.h.
78835         * lib/dirent.in.h: Renamed from lib/dirent_.h.
78836         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
78837         dirent_.h.
78838         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
78839         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
78840         fcntl_.h.
78841         * lib/float.in.h: Renamed from lib/float_.h.
78842         * modules/float (Files, Makefile.am): Use float.in.h instead of
78843         float_.h.
78844         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
78845         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
78846         fnmatch_.h.
78847         * lib/getopt.in.h: Renamed from lib/getopt_.h.
78848         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
78849         getopt_.h.
78850         * lib/glob.in.h: Renamed from lib/glob_.h.
78851         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
78852         * lib/iconv.in.h: Renamed from lib/iconv_.h.
78853         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
78854         iconv_.h.
78855         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
78856         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
78857         inttypes_.h.
78858         * lib/locale.in.h: Renamed from lib/locale_.h.
78859         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
78860         locale_.h.
78861         * lib/math.in.h: Renamed from lib/math_.h.
78862         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
78863         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
78864         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
78865         of netinet_in_.h. Add dependency.
78866         * lib/poll.in.h: Renamed from lib/poll_.h.
78867         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
78868         * lib/search.in.h: Renamed from lib/search_.h.
78869         * modules/search (Files, Makefile.am): Use search.in.h instead of
78870         search_.h.
78871         * lib/signal.in.h: Renamed from lib/signal_.h.
78872         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
78873         _signal.h.
78874         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
78875         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
78876         stdbool_.h.
78877         * lib/stdint.in.h: Renamed from lib/stdint_.h.
78878         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
78879         stdint_.h.
78880         * lib/stdio.in.h: Renamed from lib/stdio_.h.
78881         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
78882         stdio_.h.
78883         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
78884         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
78885         stdlib_.h.
78886         * lib/string.in.h: Renamed from lib/string_.h.
78887         * modules/string (Files, Makefile.am): Use string.in.h instead of
78888         string_.h.
78889         * doc/gnulib-tool.texi (Initial import): Update.
78890         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
78891         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
78892         of sys_select_.h. Add dependency.
78893         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
78894         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
78895         of sys_socket_.h.
78896         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
78897         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
78898         sys_stat_.h.
78899         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
78900         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
78901         sys_time_.h.
78902         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
78903         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
78904         sysexits_.h.
78905         * lib/time.in.h: Renamed from lib/time_.h.
78906         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
78907         * lib/unistd.in.h: Renamed from lib/unistd_.h.
78908         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
78909         unistd_.h.
78910         * lib/wchar.in.h: Renamed from lib/wchar_.h.
78911         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
78912         wchar_.h.
78913         * lib/wctype.in.h: Renamed from lib/wctype_.h.
78914         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
78915         wctype_.h.
78916         * build-aux/bootstrap (slurp): Update.
78917         * lib/.cppi-disable: Update.
78919 2007-09-30  Bruno Haible  <bruno@clisp.org>
78921         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
78922         Needed on BeOS.
78924 2007-09-30  Bruno Haible  <bruno@clisp.org>
78926         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
78928 2007-09-29  Bruno Haible  <bruno@clisp.org>
78930         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
78932 2007-09-29  Bruno Haible  <bruno@clisp.org>
78934         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
78935         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
78936         * build-aux/install-reloc: Compile also areadlink.c.
78937         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
78939 2007-09-29  Bruno Haible  <bruno@clisp.org>
78941         * gnulib-tool (func_emit_initmacro_done): Indentation.
78943 2007-09-29  Bruno Haible  <bruno@clisp.org>
78945         * README: Add CVS checkout update instructions.
78946         Info from Bob Proulx <bob@proulx.com>.
78948 2007-09-28  Eric Blake  <ebb9@byu.net>
78950         Provide move-if-change.
78951         * build-aux/move-if-change: New file, based on best practice
78952         rather than any canonical upstream location.
78954 2007-09-28  Jim Meyering  <jim@meyering.net>
78956         Fix canonicalize loop-detection corner case.
78957         Do not attempt to stat the symlink values stored via seen_triple.
78958         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
78959         on linux-2.6.18, (but not 2.6.22).
78960         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
78961         triple_compare.  The former compares dev,ino,filename, while the latter
78962         would actually stat dirname(filename) when dev and ino were equal.
78963         * lib/hash-triple.c: Install <string.h>.
78964         (STREQ): Define.
78965         (triple_compare_ino_str): New function.
78966         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
78968 2007-09-28  Eric Blake  <ebb9@byu.net>
78970         Enforce that AC_REPLACE_FUNCS files exist.
78971         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
78972         override check for typos.
78974         Fix test-closein on Solaris 10.
78975         * tests/test-closein.c (main): Don't assume stdin can be inherited
78976         closed on all systems.
78977         * tests/test-closein.sh: Likewise.
78978         Reported by Piotr Tarnowski.
78980 2007-09-28  Jim Meyering  <jim@meyering.net>
78982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
78984 2007-09-27  Jim Meyering  <jim@meyering.net>
78986         canonicalize: Avoid a false-positive cycle failure.
78987         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
78988         Sort.  Remove cycle-check.
78989         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
78990         not cycle-check.h.
78991         (seen_triple): New function.
78992         (canonicalize_filename_mode): Use it instead of cycle-check.
78993         * tests/test-canonicalize.c: Add a test for this bug.
78994         * tests/test-canonicalize.sh: Set up and run the test.
78996         New module, file-set, from coreutils.
78997         * modules/file-set: Define it.
78998         * lib/file-set.c, lib/file-set.h: Implement.
79000         New module, hash-triple, from coreutils.
79001         * modules/hash-triple: Define it.
79002         * lib/hash-triple.c, lib/hash-triple.h: Implement.
79004 2007-09-25  Eric Blake  <ebb9@byu.net>
79006         Fix strerror on Interix.
79007         * lib/string_.h (strerror): Declare replacement.
79008         * doc/functions/strerror.texi (strerror): Document the Interix
79009         shortcoming.
79010         * modules/string (Makefile.am): Support new hooks.
79011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
79012         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
79013         gl_FUNC_STRERROR_SEPARATE.
79014         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
79015         * lib/strerror.c (rpl_strerror): Provide replacement.
79016         * modules/strerror (Depends-on): Add string.
79017         (configure.ac): Detect use of module.
79018         * tests/test-strerror.c: New file.
79019         * modules/strerror-tests: New test module.
79020         * modules/argp (Depends-on): Add strerror.
79021         * modules/error (Depends-on): Likewise.
79022         Reported by Martin Koeppe.
79024 2007-09-24  Bruno Haible  <bruno@clisp.org>
79026         * README: Update git instructions.
79028 2007-09-24  Eric Blake  <ebb9@byu.net>
79030         Revert fpending breakage from 2007-09-08.
79031         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
79032         __fpending.c.
79034 2007-09-24  Jim Meyering  <jim@meyering.net>
79036         filenamecat.c: Add a test.
79037         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
79038         showing how the function works when DIR is the empty string.
79040 2007-09-21  Simon Josefsson  <simon@josefsson.org>
79042         * tests/test-canonicalize.sh: Turn on executable bit.
79044 2007-09-19  Eric Blake  <ebb9@byu.net>
79046         * README: Update CVS instructions.
79048 2007-09-18  Bruno Haible  <bruno@clisp.org>
79050         * modules/areadlink: New file.
79051         * lib/areadlink.h (areadlink): New declaration.
79052         * lib/areadlink.c: New file, based on lib/xreadlink.c.
79054 2007-09-17  Jim Meyering  <jim@meyering.net>
79056         * lib/savewd.c (ESTALE) [!defined]: Define.
79057         Reported to be required on Interix by Martin Koeppe.
79059 2007-09-17  Bruno Haible  <bruno@clisp.org>
79061         * gnulib-tool (func_version): Use $version.
79063 2007-09-16  Bruno Haible  <bruno@clisp.org>
79065         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
79066         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
79067         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
79068         Reported by Greg Schafer <gschafer@zip.com.au>.
79070 2007-09-15  Bruno Haible  <bruno@clisp.org>
79072         * gnulib-tool (sed): Try a little harder to make bash understand the
79073         alias.
79074         Reported by Bruce Korb <bruce.korb@gmail.com>.
79076 2007-09-13  Eric Blake  <ebb9@byu.net>
79078         * ChangeLog: Remove conflict markers.
79080 2007-09-13  Simon Josefsson  <simon@josefsson.org>
79082         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
79083         Reported by Bruno Haible <bruno@clisp.org>.
79085 2007-09-12  Bruno Haible  <bruno@clisp.org>
79087         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
79088         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
79089         is not defined.
79091 2007-09-12  Eric Blake  <ebb9@byu.net>
79093         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
79094         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
79095         Autoconf definition.
79096         * modules/euidaccess (Depends-on): Add extensions, for
79097         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
79098         * modules/fnmatch (Depends-on): Likewise.
79099         * modules/getaddrinfo (Depends-on): Likewise.
79100         * modules/getdelim (Depends-on): Likewise.
79101         * modules/getline (Depends-on): Likewise.
79102         * modules/getsubopt (Depends-on): Likewise.
79103         * modules/gettext (Depends-on): Likewise.
79104         * modules/group-member (Depends-on): Likewise.
79105         * modules/mbchar (Depends-on): Likewise.
79106         * modules/memmem (Depends-on): Likewise.
79107         * modules/mempcpy (Depends-on): Likewise.
79108         * modules/memrchr (Depends-on): Likewise.
79109         * modules/pagealign_alloc (Depends-on): Likewise.
79110         * modules/readutmp (Depends-on): Likewise.
79111         * modules/stpcpy (Depends-on): Likewise.
79112         * modules/stpncpy (Depends-on): Likewise.
79113         * modules/strchrnul (Depends-on): Likewise.
79114         * modules/strndup (Depends-on): Likewise.
79115         * modules/strsep (Depends-on): Likewise.
79116         * modules/strverscmp (Depends-on): Likewise.
79117         * modules/vasprintf (Depends-on): Likewise.
79118         * modules/wcwidth (Depends-on): Likewise.
79119         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
79120         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
79121         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
79122         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
79123         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
79124         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79125         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
79126         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79127         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
79128         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
79129         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79130         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
79131         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
79132         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
79133         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
79134         * m4/readutmp.m4 (gl_READUTMP): Likewise.
79135         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
79136         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
79137         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
79138         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
79139         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79140         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
79141         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
79142         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
79143         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
79144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
79145         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
79146         so that lock.m4 can be used in gettext without extensions module.
79148 2007-09-11  Bruno Haible  <bruno@clisp.org>
79150         * m4/isc-posix.m4: Remove file.
79151         Suggested by Eric Blake.
79153 2007-09-11  Eric Blake  <ebb9@byu.net>
79155         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
79157 2007-09-10  Bruno Haible  <bruno@clisp.org>
79159         * posix-modules: Fix typo in error message.
79160         Reported by Matt <mkraai@beckman.com>.
79162 2007-09-09  Bruno Haible  <bruno@clisp.org>
79164         * doc/functions/getdelim.texi: Update list of platforms lacking the
79165         function.
79166         * doc/functions/getline.texi: Likewise.
79168 2007-09-09  Jim Meyering  <jim@meyering.net>
79170         * lib/hash.c (hash_initialize): Detect calloc failure.
79171         Reported by Bruno Haible.
79173 2007-09-09  Bruno Haible  <bruno@clisp.org>
79175         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
79176         malloc or realloc fails.
79178 2007-09-09  Bruno Haible  <bruno@clisp.org>
79180         * modules/getcwd (Depends-on): Add malloc-posix.
79181         * modules/glob (Depends-on): Likewise.
79182         * modules/putenv (Depends-on): Likewise.
79183         * modules/strdup (Depends-on): Likewise.
79184         * modules/getdelim (Depends-on): Add realloc-posix.
79185         * modules/read-file (Depends-on): Likewise.
79187 2007-09-09  Bruno Haible  <bruno@clisp.org>
79189         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
79190         (gl_FUNC_MALLOC_POSIX): Require it.
79191         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
79192         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
79193         * modules/realloc (Files): Add m4/malloc.m4.
79194         * modules/calloc (Files): Likewise.
79196 2007-09-09  Bruno Haible  <bruno@clisp.org>
79198         * modules/malloc-posix: New file.
79199         * modules/malloc (Depends-on): Add malloc-posix.
79200         * lib/malloc.c: Include errno.h.
79201         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
79202         and a POSIX-compatible malloc into a single function. Set ENOMEM
79203         when returning NULL.
79204         * m4/malloc.m4: New file.
79205         * doc/functions/malloc.texi: Mention the malloc-posix module.
79206         * lib/stdlib_.h (malloc): New declaration.
79207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
79208         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
79209         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
79210         and HAVE_MALLOC_POSIX.
79212 2007-09-09  Bruno Haible  <bruno@clisp.org>
79214         * modules/realloc-posix: New file.
79215         * modules/realloc (Depends-on): Add realloc-posix.
79216         * lib/realloc.c: Include errno.h.
79217         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
79218         and a POSIX-compatible realloc into a single function. Set ENOMEM
79219         when returning NULL.
79220         * m4/realloc.m4: New file.
79221         * doc/functions/realloc.texi: Mention the realloc-posix module.
79222         * lib/stdlib_.h (realloc): New declaration.
79223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
79224         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
79225         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
79226         and HAVE_REALLOC_POSIX.
79228 2007-09-09  Bruno Haible  <bruno@clisp.org>
79230         * modules/calloc-posix: New file.
79231         * modules/calloc (Depends-on): Add calloc-posix.
79232         * lib/calloc.c: Include errno.h.
79233         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
79234         and a POSIX-compatible calloc into a single function. Set ENOMEM
79235         when returning NULL.
79236         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
79237         * doc/functions/calloc.texi: Mention the calloc-posix module.
79238         * lib/stdlib_.h (calloc): New declaration.
79239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
79240         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
79241         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
79242         and HAVE_CALLOC_POSIX.
79244 2007-09-09  Bruno Haible  <bruno@clisp.org>
79246         Allow for modules to show an arbitrary notice.
79247         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
79248         * gnulib-tool: New option --extract-notice.
79249         (func_usage): Document it.
79250         (sed_extract_prog): Update.
79251         (func_get_notice): New function.
79252         (func_modules_notice): New function.
79253         (func_import, func_create_testdir): Invoke it.
79254         Suggested by Jim Meyering.
79256 2007-09-09  Bruno Haible  <bruno@clisp.org>
79258         * gnulib-tool: New options --verbose, --quiet.
79259         (func_usage): Document them.
79260         (verbose): New variable.
79261         (func_execute_command): New function.
79262         (func_import): Don't show the module list and the file list if
79263         $verbose < 0.
79264         (func_create_testdir): Likewise. Use func_execute_command.
79265         (func_create_megatestdir): Use func_execute_command.
79267 2007-09-08  Bruno Haible  <bruno@clisp.org>
79269         * gnulib-tool (func_import): Prefer rsync over wget when available,
79270         for fetching the PO files.
79272 2007-09-08  Bruno Haible  <bruno@clisp.org>
79274         * posix-modules: New file. Portions copied from gnulib-tool.
79275         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
79277 2007-09-08  Jim Meyering  <jim@meyering.net>
79279         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
79280         * lib/fpending.h: Rename from __fpending.h.
79281         * lib/fpending.c: Rename from __fpending.c.
79282         Include "fpending.h", not "__fpending.h".
79283         * lib/__fpending.h, lib/__fpending.c: Remove files.
79284         * modules/fpending (Files): Reflect new file names.
79285         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
79287 2007-09-08  Bruno Haible  <bruno@clisp.org>
79289         * m4/inttypes-h.m4: Remove stub file.
79291 2007-09-07  Simon Josefsson  <simon@josefsson.org>
79293         * doc/headers/stdint.texi: Discuss #include_next issue.
79295 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79297         * build-aux/bootstrap: Remove obsolete comment about wget --help.
79299 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79301         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
79302         in variable name.
79304 2007-09-03  Jim Meyering  <jim@meyering.net>
79306         New module: git-version-gen.
79307         * modules/git-version-gen: New file.
79309         Import changes from coreutils for bootstrap script.
79311         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
79313         bootstrap: uses rsync to download the .po files
79314         * build-aux/bootstrap (po_download_command_format): New global.
79315         (download_po_files): Use rsync.
79316         (update_po_files): Don't remove .po files after download,
79317         so future rsync runs can take advantage of the copies.
79319         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
79321         Solve the unnecessary-.po-file-regeneration problem once and for all.
79322         * build-aux/bootstrap (download_po_files): New function, renamed from
79323         get_translations.  Now, downloads, but doesn't update LINGUAS.
79324         (update_po_files): New function.
79326         bootstrap: Ignore more.
79327         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
79328         uniwidth to e.g., lib/.gitignore.
79329         (slurp): Handle the sys_stat_.h -> sys mapping, too.
79331         * build-aux/bootstrap: New setting: vc_ignore.
79332         (insert_sorted_if_absent): Create $file if absent.
79333         Adapt to new, possibly empty, list: $vc_ignore.
79335         bootstrap: generate more ignorable names
79336         * build-aux/bootstrap (slurp): When generating ignorable names,
79337         also map .sin to .sed, .gperf to .c, and .y to .c.
79339 2007-09-03  Jim Meyering  <jim@meyering.net>
79341         * build-aux/git-version-gen: New file, from coreutils.  For details, see
79342         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
79344 2007-09-02  Bruno Haible  <bruno@clisp.org>
79346         Fix mis-recognition of 'mcs' on QNX 6.
79347         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
79348         output contains the string "Mono".
79349         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
79350         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
79352 2007-09-01  Bruno Haible  <bruno@clisp.org>
79354         Fix collision between uniwidth/* and linebreak modules.
79355         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
79356         u32_width): Remove declarations.
79357         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
79358         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
79359         streq3, streq2, streq1, streq0): Remove functions.
79360         (STREQ): Remove macro.
79361         (is_cjk_encoding): Remove function.
79362         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
79363         (uc_width, u8_width, u16_width, u32_width): Remove functions.
79364         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
79365         * NEWS: Document the change.
79367 2007-09-01  Bruno Haible  <bruno@clisp.org>
79369         * lib/streq.h: Add double-inclusion guard.
79371 2007-09-01  Karl Berry  <karl@gnu.org>
79373         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
79375 2007-08-28  Jim Meyering  <jim@meyering.net>
79377         Rename mreadlink_with_size to areadlink_with_size.
79378         * NEWS: Document the change.
79379         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
79380         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
79381         * lib/mreadlink.h: Rename this to...
79382         * lib/areadlink.h: ...this.
79383         * modules/mreadlink-with-size: Rename this to...
79384         * modules/areadlink-with-size: ...this.
79385         * lib/canonicalize.c: Reflect the renaming.
79386         * modules/canonicalize: Likewise.
79388 2007-08-26  Bruno Haible  <bruno@clisp.org>
79390         * gnulib-tool (func_import): When deciding which files to remove,
79391         consider also dangling symbolic links.
79392         Reported by Eric Blake.
79394 2007-08-26  Bruno Haible  <bruno@clisp.org>
79396         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
79398 2007-08-23  Simon Josefsson  <simon@josefsson.org>
79400         * lib/readline.c: Don't include getline.h, the prototype is now
79401         found in stdio.h.
79403 2007-08-23  Jim Meyering  <jim@meyering.net>
79405         Getdelim touchup.
79406         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
79407         around the funlockfile call, since funlockfile never sets errno.
79408         Don't set errno upon failed realloc.
79410 2007-08-22  Eric Blake  <ebb9@byu.net>
79412         Getline touchups.
79413         * lib/getdelim.c (getdelim): Revert regression that required *n to
79414         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
79415         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
79416         getdelim, rather than whether implementation is missing.
79417         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
79418         * lib/stdio_.h (getline): Also declare if replacement is
79419         required.
79420         * doc/functions/getdelim.texi: New file.
79421         * doc/functions/getline.texi: Likewise.
79422         * doc/gnulib.texi (Function Substitutes): Add new files.
79423         Reported by Bruno Haible.
79425 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
79427         * users.txt: Add Guile.
79429 2007-08-22  Eric Blake  <ebb9@byu.net>
79431         * tests/test-getdelim.c (main): Use remove, not unlink.
79432         * tests/test-getline.c (main): Likewise.
79434         Move getline and getdelim into stdio.h, per POSIX 200x.
79435         * modules/getline (Files): Remove getline.h.
79436         (Depends-on): Add stdio.
79437         (configure.ac): Add module indicator.
79438         * modules/getdelim (Files): Remove getdelim.h.
79439         (Depends-on): Add stdio.
79440         (configure.ac): Add module indicator.
79441         * modules/stdio (Makefile.am): Work with new indicators.
79442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
79443         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
79444         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79445         * lib/getdelim.h: Delete.
79446         * lib/getline.h: Delete.
79447         * lib/stdio_.h (getdelim, getline): Declare.
79448         * modules/getdelim-tests: New module.
79449         * modules/getline-tests: Likewise.
79450         * tests/test-getdelim.c: New file.
79451         * tests/test-getline.c: Likewise.
79452         * NEWS: Document the change.
79453         * lib/getline.c: Update choice of header.
79454         * lib/csharpcomp.c: Likewise.
79455         * lib/getpass.c: Likewise.
79456         * lib/javacomp.c: Likewise.
79457         * lib/javaversion.c: Likewise.
79458         * lib/yesno.c: Likewise.
79459         * lib/getdelim.c: Likewise.
79460         (getdelim): Set errno on failure, and avoid memory leak.
79462 2007-08-19  Bruno Haible  <bruno@clisp.org>
79464         * modules/closein (Depends-on): Add freadahead.
79465         * lib/closein.c: Include freadahead.h.
79466         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
79467         is zero.
79469 2007-08-19  Bruno Haible  <bruno@clisp.org>
79471         * modules/freadahead-tests: New file.
79472         * tests/test-freadahead.sh: New file.
79473         * tests/test-freadahead.c: New file.
79475         * modules/freadahead: New file.
79476         * lib/freadahead.h: New file.
79477         * lib/freadahead.c: New file.
79478         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
79479         fbufmode, fpurge, freadable, fwritable.
79481 2007-08-19  Eric Blake  <ebb9@byu.net>
79483         Test yesno in combination with closein.
79484         * lib/yesno.c (yesno): Document use of stdin.
79485         * modules/yesno-tests (Files): New module.
79486         * tests/test-yesno.c (main): New file.
79487         * tests/test-yesno.sh: Likewise.
79489 2007-08-19  Bruno Haible  <bruno@clisp.org>
79491         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
79492         * lib/fseeko.c (rpl_fseeko): Likewise.
79493         * lib/fseterr.c (fseterr): Likewise.
79495 2007-08-19  Bruno Haible  <bruno@clisp.org>
79497         * tests/test-lseek.c (main): Disable a test for BeOS.
79498         * doc/functions/lseek.texi: Document the BeOS bug.
79500 2007-08-19  Bruno Haible  <bruno@clisp.org>
79501             Eric Blake  <ebb9@byu.net>
79503         * lib/lseek.c: Include <sys/stat.h>.
79504         (rpl_lseek): Add workaround code also for Unix platforms.
79505         Needed for BeOS.
79506         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
79507         * doc/functions/lseek.texi: Document BeOS definiency.
79509 2007-08-18  Bruno Haible  <bruno@clisp.org>
79511         * modules/fstrcmp-tests: New file.
79512         * tests/test-fstrcmp.c: New file.
79514 2007-08-18  Bruno Haible  <bruno@clisp.org>
79516         * modules/fstrcmp: New file, from GNU gettext with modifications.
79517         * lib/fstrcmp.h: New file, from GNU gettext.
79518         * lib/fstrcmp.c: New file, from GNU gettext.
79519         * MODULES.html.sh (String handling): Add fstrcmp.
79521 2007-08-18  Bruno Haible  <bruno@clisp.org>
79523         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
79524         'bool'.
79525         (diag, compareseq): Remove const from the ctxt argument.
79526         (USE_HEURISTIC): Undefine at the end.
79528 2007-08-18  Jim Meyering  <jim@meyering.net>
79530         New file: lib/idcache.h
79531         * NEWS: Mention the addition.
79532         * modules/idcache (Files): Add lib/idcache.h
79533         * lib/idcache.c: Include "idcache.h".
79534         Don't include <sys/types.h>.
79535         Add a FIXME comment.
79536         Move file-scoped "static" declarations to the top.
79537         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
79539 2007-08-17  Bruno Haible  <bruno@clisp.org>
79540         and Paul Eggert  <eggert@cs.ucla.edu>
79542         * MODULES.html.sh: Add diffseq.
79543         * modules/diffseq: New file.
79544         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
79545         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
79547 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79549         Import changes from coreutils for bootstrap script.
79551         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
79553         * build-aux/bootstrap (slurp): Work even in environments where
79554         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
79555         current code does not slurp files whose names start with ".", and
79556         this looks like it might be a troublesome area.
79558         2007-07-11  Jim Meyering  <jim@meyering.net>
79560         If there's a GPL vN copyright comment, require that N == 3.
79562         2007-07-08  Jim Meyering  <jim@meyering.net>
79564         Run the coreutils-specific code only if tests/Makefile.am.in exists.
79565         * build-aux/bootstrap (mam_template): Move definition out of loop.
79567         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
79569         * build-aux/bootstrap (symlink_to_dir): Rename function from
79570         symlink_to_gnulib.  Add a directory parameter.  Update all
79571         callers.
79572         (cp_mark_as_generated): Also check for -- and link to -- files in
79573         gl/.
79575         2007-07-08  Jim Meyering  <jim@meyering.net>
79577         Adapt to deeper hierarchy in gnulib.
79578         * build-aux/bootstrap (symlink_to_dir): If the destination
79579         directory doesn't exist, create it. This is required at least for
79580         "lib/uniwidth/cjk.h".
79582         2007-05-15  Jim Meyering  <jim@meyering.net>
79584         * build-aux/bootstrap: Now that generated Makefile.am files
79585         are no longer under version control, they must be created at
79586         bootstrap time.
79588 2007-08-14  Ben Pfaff  <blp@gnu.org>
79590         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
79592 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79594         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
79595         given the changes below.
79596         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
79597         even on hosts that have padding bits beyond the supported 64.
79599 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79601         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
79602         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
79603         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
79604         depends on it.
79605         (xstrtol_error): Remove.
79606         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
79607         but with a different signature.
79608         (ATTRIBUTE_NORETURN, __attribute__): New macros.
79609         * lib/xstrtol-error.c: Include exitfail.h.
79610         (xstrtol_fatal): New function, with a different signature from the
79611         old xstrtol_error, so that the caller need not worry about passing
79612         in an exit status, or about storage management of the option argument.
79613         (xstrtol_error): Now a static function.  Redo signature to
79614         implement xstrtol_fatal.  Output the correct number of hyphens in
79615         front of the option so that the caller need not worry about
79616         storage management.
79617         (N_): New macro.
79618         (_): Remove; not used now.
79619         * modules/xstrtol: Depend on getopt.
79620         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
79621         of old STRTOL_FATAL_ERROR macro.
79622         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
79623         of test program.
79624         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
79625         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
79627 2007-08-08  Eric Blake  <ebb9@byu.net>
79629         * lib/xstrtol-error.c: Add missing include.
79631         Move xstrtol messages into gnulib domain, when --pobase is used.
79632         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
79633         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
79634         * modules/xstrtol (Files): Distribute new file.
79635         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
79636         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
79637         * tests/test-xstrtol.c: ...into new file.
79638         * tests/test-xstrtoul.c: Also test xstrtoul.
79639         * tests/test-xstrtoimax.c: Also test xstrtoimax.
79640         * tests/test-xstrtoumax.c: Also test xstrtoumax.
79641         * tests/test-xstrtol.sh: Drive the tests.
79642         * tests/test-xstrtoimax.sh: Likewise.
79643         * tests/test-xstrtoumax.sh: Likewise.
79644         * modules/xstrtol-tests: New module.
79645         * modules/xstrtoimax-tests: Likewise.
79646         * modules/xstrtoumax-tests: Likewise.
79648 2007-08-08  Jim Meyering  <jim@meyering.net>
79650         New function: mfile_name_concat.
79651         * lib/filenamecat.c (mfile_name_concat): New function, just like
79652         file_name_concat, but return NULL upon failure rather than exiting
79653         with a diagnostic.
79654         * lib/filenamecat.h: Declare it.
79656 2007-08-07  Bruno Haible  <bruno@clisp.org>
79658         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
79659         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
79660         warning from gcc.
79661         Reported by Eric Blake.
79663 2007-08-07  Simon Josefsson  <simon@josefsson.org>
79665         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
79666         * modules/crypto/arcfour (License): Likewise.
79667         * modules/crypto/des-tests (License): Likewise.
79668         * modules/crypto/gc-arctwo-tests (License): Likewise.
79669         * modules/crypto/gc-des-tests (License): Likewise.
79670         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
79671         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
79672         * modules/crypto/gc-md2-tests (License): Likewise.
79673         * modules/crypto/gc-md4-tests (License): Likewise.
79674         * modules/crypto/gc-md5-tests (License): Likewise.
79675         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
79676         * modules/crypto/gc-rijndael-tests (License): Likewise.
79677         * modules/crypto/gc-sha1-tests (License): Likewise.
79678         * modules/crypto/gc-tests (License): Likewise.
79679         * modules/crypto/hmac-md5 (License): Likewise.
79680         * modules/crypto/hmac-sha1 (License): Likewise.
79681         * modules/crypto/md2-tests (License): Likewise.
79682         * modules/crypto/md4-tests (License): Likewise.
79683         * modules/crypto/md5 (License): Likewise.
79684         * modules/crypto/rijndael (License): Likewise.
79685         * modules/crypto/sha1 (License): Likewise.
79686         * modules/memxor (License): Likewise.
79688 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79689         and Bruno Haible  <bruno@clisp.org>
79691         * NEWS: Describe interface changes to human, xstrtol.
79692         * lib/human.h: Include <xstrtol.h>.
79693         (human_options): Return enum strtol_error, not int.  Remove
79694         bool arg; take int * instead.
79695         * lib/human.c: Don't include "gettext.h".
79696         (_): Remove; no longer used.
79697         Don't include <xstrtol.h>, since human.h does it.
79698         (human_options): Adjust to abovementioned interface changes.
79699         Do not report error to stderr; that's now the caller's
79700         responsibility.
79701         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
79702         interface change.
79703         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
79704         Str, Argument_type_string.  All uses changed.  Put " argument"
79705         in diagnostics to make them clearer.  Change wording of suffix
79706         message for clarity.
79707         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
79708         Argument_type_string.
79709         (STRTOL_FATAL_WARN): Remove; no longer used.
79710         * modules/human (Depends-on): Remove gettext-h.
79712 2007-08-06  Simon Josefsson  <simon@josefsson.org>
79714         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
79716 2007-07-31  Bruno Haible  <bruno@clisp.org>
79718         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
79719         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
79720         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
79722 2007-07-31  Bruno Haible  <bruno@clisp.org>
79724         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
79725         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
79727 2007-07-30  Bruno Haible  <bruno@clisp.org>
79729         * modules/base64 (License): Use the synonymous term "LGPLv2+".
79730         * modules/c-ctype (License): Likewise.
79731         * modules/c-strcase (License): Likewise.
79732         * modules/check-version (License): Likewise.
79733         * modules/iconv (License): Likewise.
79734         * modules/iconv_open (License): Likewise.
79735         * modules/read-file (License): Likewise.
79736         * modules/striconv (License): Likewise.
79737         * modules/strverscmp (License): Likewise.
79738         * modules/vasprintf (License): Likewise.
79739         * modules/crypto/des (License): Likewise.
79740         * modules/crypto/gc (License): Likewise.
79741         * modules/crypto/gc-arcfour (License): Likewise.
79742         * modules/crypto/gc-arctwo (License): Likewise.
79743         * modules/crypto/gc-des (License): Likewise.
79744         * modules/crypto/gc-hmac-md5 (License): Likewise.
79745         * modules/crypto/gc-hmac-sha1 (License): Likewise.
79746         * modules/crypto/gc-md2 (License): Likewise.
79747         * modules/crypto/gc-md4 (License): Likewise.
79748         * modules/crypto/gc-md5 (License): Likewise.
79749         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
79750         * modules/crypto/gc-random (License): Likewise.
79751         * modules/crypto/gc-rijndael (License): Likewise.
79752         * modules/crypto/gc-sha1 (License): Likewise.
79753         * modules/crypto/md2 (License): Likewise.
79754         * modules/crypto/md4 (License): Likewise.
79756 2007-07-30  Jim Meyering  <jim@meyering.net>
79758         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
79759         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
79760         it has valid stat data.  This bug would cause du not to count the
79761         sizes of inaccessible directories.
79762         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
79763         in <http://bugzilla.redhat.com/250077>.
79765 2007-07-25  Peter O'Gorman  <peter@pogma.com>
79766             Bruno Haible  <bruno@clisp.org>
79768         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
79769         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
79770         #include_next, gives a diagnostic about it, but reports no error in
79771         the exit code.
79772         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
79774 2007-07-24  Ben Pfaff  <blp@gnu.org>
79776         Improve name: "count-one-bits" is better than "popcount".
79777         * MODULES.html.sh: Update name.
79778         * lib/popcount.h: Renamed lib/count-one-bits.h.
79779         (popcount): Renamed count_one_bits.
79780         (popcountl): Renamed count_one_bits_l.
79781         (popcountll): Renamed count_one_bits_ll.
79782         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
79783         * modules/popcount: Renamed module/count-one-bits.
79784         * modules/popcount-tests: Renamed module/count-one-bits-tests.
79785         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
79787 2007-07-23  Ben Pfaff  <blp@gnu.org>
79789         * lib/popcount.h (popcount32): Reduce size of constants, to allow
79790         better code generation, and add U to large constants to avoid
79791         warnings, in non-GCC case.
79792         Suggested by Bruno Haible.
79794 2007-07-23  Ben Pfaff  <blp@gnu.org>
79796         * lib/popcount.h: Use verify_true instead of if...abort.
79797         * modules/popcount: Depend on verify module.
79798         Suggested by Jim Meyering.
79800 2007-07-23  Bruno Haible  <bruno@clisp.org>
79802         * gnulib-tool (func_import): Create a .cvsignore file also when the
79803         directory is not yet in CVS but the toplevel directory is. When
79804         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
79805         Reported by Karl Berry.
79807 2007-07-22  Ben Pfaff  <blp@gnu.org>
79809         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
79810         case.
79811         Suggested by Eric Blake.
79813 2007-07-22  Ben Pfaff  <blp@gnu.org>
79815         New module: popcount.
79816         * MODULES.html.sh: Add popcount.
79817         * modules/popcount: New file.
79818         * modules/popcount-tests: New file.
79819         * tests/test-popcount.c: New file.
79820         * lib/popcount.h: New file.
79821         * m4/popcount.m4: New file.
79823 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79825         * build-aux/announce-gen: Update to GPLv3.
79827         * build-aux/config.guess: Update from config.
79829 2007-07-21  Bruno Haible  <bruno@clisp.org>
79831         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
79832         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
79834 2007-07-20  Jim Meyering  <jim@meyering.net>
79836         * check-module: Diagnose a self-dependency.
79838 2007-07-19  Bruno Haible  <bruno@clisp.org>
79840         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
79841         empty.
79842         Reported by Eric Blake.
79844 2007-07-18  Bruno Haible  <bruno@clisp.org>
79846         * gnulib-tool: New options --po-base, --po-domain.
79847         (func_usage): Document them.
79848         (pobase, po_domain): New variables.
79849         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
79850         DEFAULT_TEXT_DOMAIN.
79851         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
79852         (func_import): Consider pobase and po_domain. Create a po/ directory.
79853         (func_create_testdir): Set pobase and po_domain to empty.
79854         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
79855         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
79857 2007-07-18  Bruno Haible  <bruno@clisp.org>
79859         * gnulib-tool (func_get_automake_snippet): Synthesize also an
79860         EXTRA_DIST augmentation for files in build-aux/.
79862 2007-07-16  Bruno Haible  <bruno@clisp.org>
79864         * modules/lseek (License): Use the synonymous term "LGPLv2+".
79865         * modules/getdelim (License): Likewise.
79867 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79869         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
79870         * modules/d-type (License): Likewise.
79871         * modules/extensions (License): Likewise.
79872         * modules/fnmatch (License): Likewise.
79873         * modules/fseeko (License): Likewise.
79874         * modules/getaddrinfo (License): Likewise.
79875         * modules/getline (License): Likewise.
79876         * modules/getlogin_r (License): Likewise.
79877         * modules/getpass (License): Likewise.
79878         * modules/gettimeofday (License): Likewise.
79879         * modules/glob (License): Likewise.
79880         * modules/inet_ntop (License): Likewise.
79881         * modules/malloc (License): Likewise.
79882         * modules/malloca (License): Likewise.
79883         * modules/memmem (License): Likewise.
79884         * modules/mempcpy (License): Likewise.
79885         * modules/memset (License): Likewise.
79886         * modules/minmax (License): Likewise.
79887         * modules/mktime (License): Likewise.
79888         * modules/netinet_in (License): Likewise.
79889         * modules/pathmax (License): Likewise.
79890         * modules/poll (License): Likewise.
79891         * modules/regex (License): Likewise.
79892         * modules/snprintf (License): Likewise.
79893         * modules/stdbool (License): Likewise.
79894         * modules/stdint (License): Likewise.
79895         * modules/stdio (License): Likewise.
79896         * modules/strcase (License): Likewise.
79897         * modules/strcasestr (License): Likewise.
79898         * modules/strdup (License): Likewise.
79899         * modules/string (License): Likewise.
79900         * modules/strndup (License): Likewise.
79901         * modules/strnlen (License): Likewise.
79902         * modules/strpbrk (License): Likewise.
79903         * modules/strptime (License): Likewise.
79904         * modules/strsep (License): Likewise.
79905         * modules/sys_select (License): Likewise.
79906         * modules/sys_socket (License): Likewise.
79907         * modules/sys_stat (License): Likewise.
79908         * modules/sys_time (License): Likewise.
79909         * modules/time (License): Likewise.
79910         * modules/time_r (License): Likewise.
79911         * modules/timegm (License): Likewise.
79912         * modules/unistd (License): Likewise.
79913         * modules/vsnprintf (License): Likewise.
79914         * modules/wctype (License): Likewise.
79916 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79918         * modules/argz (License): LGPLv2+.
79920 2007-07-15  Karl Berry  <karl@gnu.org>
79922         * doc/gnulib.texi: revise node structure per new fdl.texi.
79924 2007-07-14  Bruno Haible  <bruno@clisp.org>
79926         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
79927         the output file.
79928         * lib/uniname/uninames.h: Regenerated.
79930 2007-07-14  Karl Berry  <karl@gnu.org>
79932         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
79933         omitting sectioning and index commands.
79935 2007-07-13  Bruno Haible  <bruno@clisp.org>
79937         New gnulib-tool option --more-symlinks.
79938         * gnulib-tool (func_usage): Document --more-symlinks.
79939         (do_copyrights): New variable.
79940         Recognize option --more-symlinks.
79941         (func_import): Don't add a copyright notice transform to
79942         sed_transform_lib_file if do_copyrights is empty.
79944 2007-07-13  Bruno Haible  <bruno@clisp.org>
79946         * lib/vasnprintf.c (decimal_point_char): Define also if
79947         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
79948         && !NEED_PRINTF_DIRECTIVE_A.
79949         Reported by Clemens Koller <clemens.koller@anagramm.de> via
79950         Gary V. Vaughan <gary@gnu.org>.
79952 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
79954         * lib/inttypes_.h: Undo previous change, since it was fixed
79955         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
79957 2007-07-13  Bruno Haible  <bruno@clisp.org>
79959         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
79960         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
79962 2007-07-13  Jim Meyering  <jim@meyering.net>
79964         df: Don't fail for Tru64's "file-on-file mount".
79965         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
79966         so we fall through and use statfs instead.  Details here:
79967         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
79968         Reported by Albert Chin.
79970 2007-07-13  Bruno Haible  <bruno@clisp.org>
79972         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
79973         * modules/configmake (License): Likewise.
79974         * modules/gettext (License): Likewise.
79975         * modules/gettext-h (License): Likewise.
79976         * modules/include_next (License): Likewise.
79977         * modules/link-warning (License): Likewise.
79978         * modules/localcharset (License): Likewise.
79979         * modules/localename (License): Likewise.
79980         * modules/lock (License): Likewise.
79981         * modules/relocatable-lib-lgpl (License): Likewise.
79982         * modules/size_max (License): Likewise.
79983         * modules/vasnprintf (License): Likewise.
79984         * modules/wchar (License): Likewise.
79985         * modules/xsize (License): Likewise.
79987 2007-07-13  Bruno Haible  <bruno@clisp.org>
79989         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
79990         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
79992 2007-07-12  Bruno Haible  <bruno@clisp.org>
79994         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
79995         in the modules files.
79997 2007-07-11  Karl Berry  <karl@gnu.org>
79999         * MODULES.html.sh (func_module): use
80000          sed -e '\|^'"${includefile}"'$|d'
80001          instead of /.../d, to avoid errors on $includefile's containing /.
80003 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80005         * gnulib-tool (func_import): Avoid duplication of --avoid
80006         statements
80007         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
80008         names to `_' in variable names.
80010 2007-07-10  Eric Blake  <ebb9@byu.net>
80012         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
80013         * NEWS: Document this change.
80015 2007-07-08  Bruno Haible  <bruno@clisp.org>
80017         Update to Unicode 5.0.
80018         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
80019         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
80020         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
80021         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
80022         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
80023         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
80024         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
80025         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
80026         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
80027         U+10A3F, U+1D242..U+1D244.
80028         (nonspacing_table_ind): Update.
80029         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
80030         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
80032 2007-07-08  Bruno Haible  <bruno@clisp.org>
80034         Update to Unicode 5.0.
80035         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
80036         code transform. Extend the name index field of unicode_name_to_code and
80037         unicode_code_to_name from 16 to 24 bits.
80038         * lib/uniname/uniname.c (unicode_character_name,
80039         unicode_name_character): Add the range 0x12xxx to the code transform.
80040         * lib/uniname/uninames.h: Regenerated.
80041         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
80043 2007-07-07  Bruno Haible  <bruno@clisp.org>
80045         * modules/wcwidth-tests: New file.
80046         * tests/test-wcwidth.c: New file.
80048         Work around MacOS X wcwidth() bug.
80049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
80050         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
80051         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
80052         original wcwidth in non-UTF-8 locales.
80053         * modules/wcwidth (Depends-on): Add localcharset, streq,
80054         uniwidth/width.
80055         * doc/functions/wcwidth.texi: Update.
80057 2007-07-07  Bruno Haible  <bruno@clisp.org>
80059         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
80060         (wcwidth): New declaration.
80061         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
80062         macros.
80063         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
80064         here. Prepare for creating <wchar.h> unconditionally.
80065         * modules/wchar (Depends-on): Add link-warning.
80066         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
80067         REPLACE_WCWIDTH, and GL_LINK_WARNING.
80068         * lib/wcwidth.h: Remove file.
80069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
80070         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
80071         * modules/wcwidth (Files): Remove lib/wcwidth.h.
80072         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
80073         (Include): Replace wcwidth.h with <wchar.h>.
80074         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
80075         * lib/mbchar.h: Don't include wcwidth.h.
80076         * lib/mbswidth.c: Likewise.
80077         * NEWS: Mention the change.
80079 2007-07-07  Bruno Haible  <bruno@clisp.org>
80081         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
80082         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
80083         definition with an external declaration.
80084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
80085         defined as a function. Remove AC_C_INLINE requirement.
80086         * modules/wcwidth (Files): Add lib/wcwidth.c.
80087         (Makefile.am): Remove redundant statement.
80089 2007-07-07  Bruno Haible  <bruno@clisp.org>
80091         * MODULES.html.sh (Unicode string functions): Add the new modules.
80093         * tests/uniwidth/test-u32-strwidth.c: New file.
80094         * modules/uniwidth/u32-strwidth-tests: New file.
80096         * lib/uniwidth/u32-strwidth.c: New file.
80097         * modules/uniwidth/u32-strwidth: New file.
80099         * tests/uniwidth/test-u16-strwidth.c: New file.
80100         * modules/uniwidth/u16-strwidth-tests: New file.
80102         * lib/uniwidth/u16-strwidth.c: New file.
80103         * modules/uniwidth/u16-strwidth: New file.
80105         * tests/uniwidth/test-u8-strwidth.c: New file.
80106         * modules/uniwidth/u8-strwidth-tests: New file.
80108         * lib/uniwidth/u8-strwidth.c: New file.
80109         * modules/uniwidth/u8-strwidth: New file.
80111         * tests/uniwidth/test-u32-width.c: New file.
80112         * modules/uniwidth/u32-width-tests: New file.
80114         * lib/uniwidth/u32-width.c: New file.
80115         * modules/uniwidth/u32-width: New file.
80117         * tests/uniwidth/test-u16-width.c: New file.
80118         * modules/uniwidth/u16-width-tests: New file.
80120         * lib/uniwidth/u16-width.c: New file.
80121         * modules/uniwidth/u16-width: New file.
80123         * tests/uniwidth/test-u8-width.c: New file.
80124         * modules/uniwidth/u8-width-tests: New file.
80126         * lib/uniwidth/u8-width.c: New file.
80127         * modules/uniwidth/u8-width: New file.
80129         * tests/uniwidth/test-uc_width.c: New file.
80130         * modules/uniwidth/width-tests: New file.
80132         * lib/uniwidth/width.c: New file, from GNU libiconv.
80133         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
80134         * modules/uniwidth/width: New file.
80136         * lib/uniwidth.h: New file, from GNU libiconv.
80137         * modules/uniwidth/base: New file.
80139 2007-07-07  Bruno Haible  <bruno@clisp.org>
80141         * lib/uniname.h: New file, from GNU gettext.
80142         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
80143         * lib/uniname/uninames.h: New file, from GNU gettext.
80144         * lib/uniname/uniname.c: New file, from GNU gettext.
80145         * tests/uniname/test-uninames.sh: New file.
80146         * tests/uniname/test-uninames.c: New file, from GNU gettext.
80147         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
80148         * modules/uniname/base: New file.
80149         * modules/uniname/uniname: New file.
80150         * modules/uniname/uniname-tests: New file.
80151         * MODULES.html.sh (Unicode string functions): Add the new modules.
80153 2007-07-06  Bruno Haible  <bruno@clisp.org>
80155         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
80157 2007-07-06  Bruno Haible  <bruno@clisp.org>
80159         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
80160         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
80161         includes <cygwin/sys_time.h> which includes <sys/select.h> which
80162         include <sys/time.h>.
80163         Reported by Eric Blake.
80165 2007-07-06  Eric Blake  <ebb9@byu.net>
80167         Fix testing canonicalize on cygwin.
80168         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
80169         Revert patch from 2007-06-19.
80170         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
80171         canonicalize module is also in use.
80172         * tests/test-canonicalize.c: New file.
80173         * tests/test-canonicalize.sh: Likewise.
80174         * modules/canonicalize-tests: Likewise.
80176 2007-07-06  Jim Meyering  <jim@meyering.net>
80178         * lib/getugroups.c (getugroups): Detect getgrent failure.
80179         Adjust comment to reflect reality: this function may return -1.
80181 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
80183         * build-aux/bootstrap (TP_URL,get_translations): Update to use
80184         the new TP address.
80185         (usage): Fix typo
80186         (gnulib_mk): New variable.
80188 2007-07-05  Jim Meyering  <jim@meyering.net>
80190         Don't let endgrent clobber errno, no matter how improbable.
80191         * lib/getugroups.c (getugroups): Save and restore errno around
80192         endgrent call.
80194         Close the group DB even when failing with 2^31 or more members.
80195         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
80197 2007-07-04  Jim Meyering  <jim@meyering.net>
80199         * lib/getugroups.h: New file.
80200         * lib/getugroups.c: Include "getugroups.h".
80201         Remove uses of "register" keyword.
80202         Move local variable, "cp", down into scope where used.
80203         Give "username" parameter the "const" attribute.
80204         * modules/getugroups (Files): Add lib/getugroups.h
80206 2007-07-04  Karl Berry  <karl@gnu.org>
80208         * MODULES.html.sh (func_all_modules): Complete rename of
80209         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
80211 2007-07-02  Bruno Haible  <bruno@clisp.org>
80213         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
80214         mode, when inttypes.h comes from gnulib.
80215         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
80217 2007-07-02  Simon Josefsson  <simon@josefsson.org>
80219         * NEWS: Mention lgpl module name change.
80221         * modules/lgpl-2.1: Renamed from lgpl.
80223         * NEWS: Mention gpl module name change.
80225         * modules/gpl-3.0: New file, based on gpl-2.0.
80227         * modules/gpl-2.0: Renamed from gpl.
80229         * modules/gpl: Fix filename, doc/gpl.texi is now found at
80230         doc/gpl-2.0.texi.
80232 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80234         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
80235         #define __STDC_LIMIT_MACROS temporarily while including
80236         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
80237         Problem reported by Joel E. Denny in
80238         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
80240 2007-07-01  Bruno Haible  <bruno@clisp.org>
80242         * lib/unistdio.h: New file.
80243         * lib/unistdio/u-asnprintf.h: New file.
80244         * lib/unistdio/u-asprintf.h: New file.
80245         * lib/unistdio/u-printf-args.c: New file.
80246         * lib/unistdio/u-printf-args.h: New file.
80247         * lib/unistdio/u-printf-parse.h: New file.
80248         * lib/unistdio/u-snprintf.h: New file.
80249         * lib/unistdio/u-sprintf.h: New file.
80250         * lib/unistdio/u-vasprintf.h: New file.
80251         * lib/unistdio/u-vsnprintf.h: New file.
80252         * lib/unistdio/u-vsprintf.h: New file.
80253         * lib/unistdio/ulc-asnprintf.c: New file.
80254         * lib/unistdio/ulc-asprintf.c: New file.
80255         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
80256         * lib/unistdio/ulc-printf-parse.c: New file.
80257         * lib/unistdio/ulc-snprintf.c: New file.
80258         * lib/unistdio/ulc-sprintf.c: New file.
80259         * lib/unistdio/ulc-vasnprintf.c: New file.
80260         * lib/unistdio/ulc-vasprintf.c: New file.
80261         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
80262         * lib/unistdio/ulc-vsnprintf.c: New file.
80263         * lib/unistdio/ulc-vsprintf.c: New file.
80264         * lib/unistdio/u8-asnprintf.c: New file.
80265         * lib/unistdio/u8-asprintf.c: New file.
80266         * lib/unistdio/u8-printf-parse.c: New file.
80267         * lib/unistdio/u8-snprintf.c: New file.
80268         * lib/unistdio/u8-sprintf.c: New file.
80269         * lib/unistdio/u8-vasnprintf.c: New file.
80270         * lib/unistdio/u8-vasprintf.c: New file.
80271         * lib/unistdio/u8-vsnprintf.c: New file.
80272         * lib/unistdio/u8-vsprintf.c: New file.
80273         * lib/unistdio/u8-u8-asnprintf.c: New file.
80274         * lib/unistdio/u8-u8-asprintf.c: New file.
80275         * lib/unistdio/u8-u8-snprintf.c: New file.
80276         * lib/unistdio/u8-u8-sprintf.c: New file.
80277         * lib/unistdio/u8-u8-vasnprintf.c: New file.
80278         * lib/unistdio/u8-u8-vasprintf.c: New file.
80279         * lib/unistdio/u8-u8-vsnprintf.c: New file.
80280         * lib/unistdio/u8-u8-vsprintf.c: New file.
80281         * lib/unistdio/u16-asnprintf.c: New file.
80282         * lib/unistdio/u16-asprintf.c: New file.
80283         * lib/unistdio/u16-printf-parse.c: New file.
80284         * lib/unistdio/u16-snprintf.c: New file.
80285         * lib/unistdio/u16-sprintf.c: New file.
80286         * lib/unistdio/u16-vasnprintf.c: New file.
80287         * lib/unistdio/u16-vasprintf.c: New file.
80288         * lib/unistdio/u16-vsnprintf.c: New file.
80289         * lib/unistdio/u16-vsprintf.c: New file.
80290         * lib/unistdio/u16-u16-asnprintf.c: New file.
80291         * lib/unistdio/u16-u16-asprintf.c: New file.
80292         * lib/unistdio/u16-u16-snprintf.c: New file.
80293         * lib/unistdio/u16-u16-sprintf.c: New file.
80294         * lib/unistdio/u16-u16-vasnprintf.c: New file.
80295         * lib/unistdio/u16-u16-vasprintf.c: New file.
80296         * lib/unistdio/u16-u16-vsnprintf.c: New file.
80297         * lib/unistdio/u16-u16-vsprintf.c: New file.
80298         * lib/unistdio/u32-asnprintf.c: New file.
80299         * lib/unistdio/u32-asprintf.c: New file.
80300         * lib/unistdio/u32-printf-parse.c: New file.
80301         * lib/unistdio/u32-snprintf.c: New file.
80302         * lib/unistdio/u32-sprintf.c: New file.
80303         * lib/unistdio/u32-vasnprintf.c: New file.
80304         * lib/unistdio/u32-vasprintf.c: New file.
80305         * lib/unistdio/u32-vsnprintf.c: New file.
80306         * lib/unistdio/u32-vsprintf.c: New file.
80307         * lib/unistdio/u32-u32-asnprintf.c: New file.
80308         * lib/unistdio/u32-u32-asprintf.c: New file.
80309         * lib/unistdio/u32-u32-snprintf.c: New file.
80310         * lib/unistdio/u32-u32-sprintf.c: New file.
80311         * lib/unistdio/u32-u32-vasnprintf.c: New file.
80312         * lib/unistdio/u32-u32-vasprintf.c: New file.
80313         * lib/unistdio/u32-u32-vsnprintf.c: New file.
80314         * lib/unistdio/u32-u32-vsprintf.c: New file.
80315         * tests/unistdio/test-ulc-asnprintf1.c: New file.
80316         * tests/unistdio/test-ulc-asnprintf1.h: New file.
80317         * tests/unistdio/test-ulc-printf1.h: New file.
80318         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
80319         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
80320         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
80321         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
80322         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
80323         * tests/unistdio/test-ulc-vasprintf1.c: New file.
80324         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
80325         * tests/unistdio/test-ulc-vsprintf1.c: New file.
80326         * tests/unistdio/test-u8-asnprintf1.c: New file.
80327         * tests/unistdio/test-u8-asnprintf1.h: New file.
80328         * tests/unistdio/test-u8-printf1.h: New file.
80329         * tests/unistdio/test-u8-vasnprintf1.c: New file.
80330         * tests/unistdio/test-u8-vasnprintf2.c: New file.
80331         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
80332         * tests/unistdio/test-u8-vasnprintf3.c: New file.
80333         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
80334         * tests/unistdio/test-u8-vasprintf1.c: New file.
80335         * tests/unistdio/test-u8-vsnprintf1.c: New file.
80336         * tests/unistdio/test-u8-vsprintf1.c: New file.
80337         * tests/unistdio/test-u16-asnprintf1.c: New file.
80338         * tests/unistdio/test-u16-asnprintf1.h: New file.
80339         * tests/unistdio/test-u16-printf1.h: New file.
80340         * tests/unistdio/test-u16-vasnprintf1.c: New file.
80341         * tests/unistdio/test-u16-vasnprintf2.c: New file.
80342         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
80343         * tests/unistdio/test-u16-vasnprintf3.c: New file.
80344         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
80345         * tests/unistdio/test-u16-vasprintf1.c: New file.
80346         * tests/unistdio/test-u16-vsnprintf1.c: New file.
80347         * tests/unistdio/test-u16-vsprintf1.c: New file.
80348         * tests/unistdio/test-u32-asnprintf1.c: New file.
80349         * tests/unistdio/test-u32-asnprintf1.h: New file.
80350         * tests/unistdio/test-u32-printf1.h: New file.
80351         * tests/unistdio/test-u32-vasnprintf1.c: New file.
80352         * tests/unistdio/test-u32-vasnprintf2.c: New file.
80353         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
80354         * tests/unistdio/test-u32-vasnprintf3.c: New file.
80355         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
80356         * tests/unistdio/test-u32-vasprintf1.c: New file.
80357         * tests/unistdio/test-u32-vsnprintf1.c: New file.
80358         * tests/unistdio/test-u32-vsprintf1.c: New file.
80359         * modules/unistdio/base: New file.
80360         * modules/unistdio/u-printf-args: New file.
80361         * modules/unistdio/ulc-asnprintf: New file.
80362         * modules/unistdio/ulc-asprintf: New file.
80363         * modules/unistdio/ulc-fprintf: New file.
80364         * modules/unistdio/ulc-printf-parse: New file.
80365         * modules/unistdio/ulc-snprintf: New file.
80366         * modules/unistdio/ulc-sprintf: New file.
80367         * modules/unistdio/ulc-vasnprintf: New file.
80368         * modules/unistdio/ulc-vasprintf: New file.
80369         * modules/unistdio/ulc-vfprintf: New file.
80370         * modules/unistdio/ulc-vsnprintf: New file.
80371         * modules/unistdio/ulc-vsprintf: New file.
80372         * modules/unistdio/u8-asnprintf: New file.
80373         * modules/unistdio/u8-asprintf: New file.
80374         * modules/unistdio/u8-printf-parse: New file.
80375         * modules/unistdio/u8-snprintf: New file.
80376         * modules/unistdio/u8-sprintf: New file.
80377         * modules/unistdio/u8-vasnprintf: New file.
80378         * modules/unistdio/u8-vasprintf: New file.
80379         * modules/unistdio/u8-vsnprintf: New file.
80380         * modules/unistdio/u8-vsprintf: New file.
80381         * modules/unistdio/u8-u8-asnprintf: New file.
80382         * modules/unistdio/u8-u8-asprintf: New file.
80383         * modules/unistdio/u8-u8-snprintf: New file.
80384         * modules/unistdio/u8-u8-sprintf: New file.
80385         * modules/unistdio/u8-u8-vasnprintf: New file.
80386         * modules/unistdio/u8-u8-vasprintf: New file.
80387         * modules/unistdio/u8-u8-vsnprintf: New file.
80388         * modules/unistdio/u8-u8-vsprintf: New file.
80389         * modules/unistdio/u16-asnprintf: New file.
80390         * modules/unistdio/u16-asprintf: New file.
80391         * modules/unistdio/u16-printf-parse: New file.
80392         * modules/unistdio/u16-snprintf: New file.
80393         * modules/unistdio/u16-sprintf: New file.
80394         * modules/unistdio/u16-vasnprintf: New file.
80395         * modules/unistdio/u16-vasprintf: New file.
80396         * modules/unistdio/u16-vsnprintf: New file.
80397         * modules/unistdio/u16-vsprintf: New file.
80398         * modules/unistdio/u16-u16-asnprintf: New file.
80399         * modules/unistdio/u16-u16-asprintf: New file.
80400         * modules/unistdio/u16-u16-snprintf: New file.
80401         * modules/unistdio/u16-u16-sprintf: New file.
80402         * modules/unistdio/u16-u16-vasnprintf: New file.
80403         * modules/unistdio/u16-u16-vasprintf: New file.
80404         * modules/unistdio/u16-u16-vsnprintf: New file.
80405         * modules/unistdio/u16-u16-vsprintf: New file.
80406         * modules/unistdio/u32-asnprintf: New file.
80407         * modules/unistdio/u32-asprintf: New file.
80408         * modules/unistdio/u32-printf-parse: New file.
80409         * modules/unistdio/u32-snprintf: New file.
80410         * modules/unistdio/u32-sprintf: New file.
80411         * modules/unistdio/u32-vasnprintf: New file.
80412         * modules/unistdio/u32-vasprintf: New file.
80413         * modules/unistdio/u32-vsnprintf: New file.
80414         * modules/unistdio/u32-vsprintf: New file.
80415         * modules/unistdio/u32-u32-asnprintf: New file.
80416         * modules/unistdio/u32-u32-asprintf: New file.
80417         * modules/unistdio/u32-u32-snprintf: New file.
80418         * modules/unistdio/u32-u32-sprintf: New file.
80419         * modules/unistdio/u32-u32-vasnprintf: New file.
80420         * modules/unistdio/u32-u32-vasprintf: New file.
80421         * modules/unistdio/u32-u32-vsnprintf: New file.
80422         * modules/unistdio/u32-u32-vsprintf: New file.
80423         * modules/unistdio/ulc-asnprintf-tests: New file.
80424         * modules/unistdio/ulc-vasnprintf-tests: New file.
80425         * modules/unistdio/ulc-vasprintf-tests: New file.
80426         * modules/unistdio/ulc-vsnprintf-tests: New file.
80427         * modules/unistdio/ulc-vsprintf-tests: New file.
80428         * modules/unistdio/u8-asnprintf-tests: New file.
80429         * modules/unistdio/u8-vasnprintf-tests: New file.
80430         * modules/unistdio/u8-vasprintf-tests: New file.
80431         * modules/unistdio/u8-vsnprintf-tests: New file.
80432         * modules/unistdio/u8-vsprintf-tests: New file.
80433         * modules/unistdio/u16-asnprintf-tests: New file.
80434         * modules/unistdio/u16-vasnprintf-tests: New file.
80435         * modules/unistdio/u16-vasprintf-tests: New file.
80436         * modules/unistdio/u16-vsnprintf-tests: New file.
80437         * modules/unistdio/u16-vsprintf-tests: New file.
80438         * modules/unistdio/u32-asnprintf-tests: New file.
80439         * modules/unistdio/u32-vasnprintf-tests: New file.
80440         * modules/unistdio/u32-vasprintf-tests: New file.
80441         * modules/unistdio/u32-vsnprintf-tests: New file.
80442         * modules/unistdio/u32-vsprintf-tests: New file.
80443         * MODULES.html.sh (Unicode string functions): Add the new modules.
80445 2007-07-01  Bruno Haible  <bruno@clisp.org>
80447         * lib/sprintf.c (sprintf): Limit the available length estimation,
80448         to avoid address wraparound.
80449         * lib/vsprintf.c (vsprintf): Likewise.
80450         * modules/sprintf-posix (Dependencies): Add stdint.
80451         * modules/vsprintf-posix (Dependencies): Likewise.
80453 2007-07-01  Bruno Haible  <bruno@clisp.org>
80455         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
80456         Windows PATH as well. Conservative double-quoting. Comments.
80458 2007-07-01  Bruno Haible  <bruno@clisp.org>
80459             Eric Blake  <ebb9@byu.net>
80460             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80462         * gnulib-tool (self_abspathname): Fix algorithm to cope with
80463         empty components in $PATH, denoting '.'.
80465 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80467         * gnulib-tool: Fix indentation.
80468         (func_create_megatestdir): Likewise.
80469         Report by Bruno Haible.
80471 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80473         Sync from Automake.
80474         * build-aux/gnupload: Fix shell portability issues with for loops.
80475         Report by Karl Berry.
80477 2007-06-29  Simon Josefsson  <simon@josefsson.org>
80479         * build-aux/maint.mk (POURL): Use translationproject.org.
80481 2007-06-27  Simon Josefsson  <simon@josefsson.org>
80482             Bruno Haible  <bruno@clisp.org>
80484         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
80485         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
80486         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
80487         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
80488         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
80490 2007-06-27  Bruno Haible  <bruno@clisp.org>
80492         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
80493         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
80495 2007-06-26  Karl Berry  <karl@gnu.org>
80497         * MODULES.html.sh: remove xreadlink-with-size.
80499 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
80501         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
80502         method that I hope also handles the double-include problem noted
80503         by Bruno Haible in
80504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
80506 2007-06-23  Bruno Haible  <bruno@clisp.org>
80508         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80509         Don't let the 'mostlyclean' target fail if the last subdirectory could
80510         not be removed.
80511         Reported by Karl Berry.
80513 2007-06-23  Bruno Haible  <bruno@clisp.org>
80515         * gnulib-tool (echo): Add a speedier workaround for ksh.
80516         * tests/test-echo.sh: Likewise.
80518 2007-06-23  Bruno Haible  <bruno@clisp.org>
80520         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
80521         * tests/test-echo.sh: Likewise.
80523 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80525         * gnulib-tool (IFS): Initialize early, so we don't set it to
80526         empty later.
80527         (self_abspathname): Rewrite algorithm to set it, reindent.
80528         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
80529         (func_create_megatestdir): Merge some sed scripts.
80531 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
80533         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
80534         exposed by Sun Studio 11 cc on Solaris 8.
80536 2007-06-22  Bruno Haible  <bruno@clisp.org>
80538         * gnulib-tool (echo): Ensure the echo primitive does not interpret
80539         backslashes.
80540         * tests/test-echo.sh: New file.
80542 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80544         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
80545         simplify `sed_replace_build_aux' scripts, they are portable but
80546         echoing them with `echo' is not.
80547         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
80549 2007-06-21  Karl Berry  <karl@gnu.org>
80551         * config/srclist.txt: guess we can't handle the licenses via
80552         srclist at the moment.
80554 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80556         * MODULES.html.sh: Add include_next.
80557         * modules/include_next: New file.
80559 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80561         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
80562         INCLUDE_NEXT.
80563         (gl_CHECK_NEXT_HEADERS): New macro.
80564         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
80565         the obsolescent gl_ABSOLUTE_HEADER.
80566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
80567         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
80568         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
80569         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
80570         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
80571         * m4/math_h.m4 (gl_MATH_H): Likewise.
80572         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
80573         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
80574         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
80575         * m4/stdint.m4 (gl_STDINT_H): Likewise.
80576         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
80577         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
80578         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
80579         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
80580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
80581         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
80582         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
80583         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
80584         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
80585         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
80586         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
80587         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
80588         * m4/inttypes.m4 (gl_INTTYPES_H): Define
80589         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
80590         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
80591         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
80592         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
80593         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
80594         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
80595         * lib/float_.h: Likewise.
80596         * lib/inttypes_.h: Likewise.
80597         * lib/math_.h: Likewise.
80598         * lib/search_.h: Likewise.
80599         * lib/signal_.h: Likewise.
80600         * lib/stdint_.h: Likewise.
80601         * lib/stdio_.h: Likewise.
80602         * lib/stdlib_.h: Likewise.
80603         * lib/string_.h: Likewise.
80604         * lib/sys_stat_.h: Likewise.
80605         * lib/sys_time_.h: Likewise.
80606         * lib/time_.h: Likewise.
80607         * lib/unistd_.h: Likewise.
80608         * lib/wchar_.h: Likewise.
80609         * lib/wctype_.h: Likewise.
80610         * lib/dirent_.h: Likewise.
80611         * lib/iconv_.h: Likewise.
80612         * lib/locale_.h: Likewise.
80613         * lib/netinet_in_.h: Likewise.
80614         * lib/sys_select_.h: Likewise.
80615         * lib/sys_socket_.h: Likewise.
80616         * lib/sysexits_.h: Likewise.
80617         * modules/fcntl (Depends-on): Depend on include_next, not
80618         absolute_header.
80619         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
80620         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
80621         * modules/fchdir: Likewise.
80622         * modules/float: Likewise.
80623         * modules/iconv_open: Likewise.
80624         * modules/inttypes: Likewise.
80625         * modules/locale: Likewise.
80626         * modules/math: Likewise.
80627         * modules/netinet_in: Likewise.
80628         * modules/search: Likewise.
80629         * modules/signal: Likewise.
80630         * modules/stdint: Likewise.
80631         * modules/stdio: Likewise.
80632         * modules/stdlib: Likewise.
80633         * modules/string: Likewise.
80634         * modules/sys_select: Likewise.
80635         * modules/sys_socket: Likewise.
80636         * modules/sys_stat: Likewise.
80637         * modules/sys_time: Likewise.
80638         * modules/sysexits: Likewise.
80639         * modules/time: Likewise.
80640         * modules/unistd: Likewise.
80641         * modules/wchar: Likewise.
80642         * modules/wctype: Likewise.
80643         * modules/sys_stat: Change maintainer to "all".
80644         * modules/unistd: Likewise.
80646 2007-06-20  Karl Berry  <karl@gnu.org>
80648         * config/srclist.txt: track www changes in license files.
80650 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
80652         * build-aux/bootstrap: Remove stray dot.
80653         Make sure build_aux settings are honored when linking
80654         gnulib_extra_files.
80656 2007-06-19  Eric Blake  <ebb9@byu.net>
80658         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
80659         Allow compilation on cygwin.
80661 2007-06-19  Jim Meyering  <jim@meyering.net>
80663         xreadlink-with-size: Remove module.  No longer used.
80664         Ex-callers now use xreadlink or mreadlink-with-size.
80665         * modules/xreadlink-with-size: Remove module.
80666         * lib/xreadlink-with-size.c: Remove file.
80667         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
80668         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
80669         just before the function definition *is* accurate.
80671         Eliminate one way canonicalize_filename_mode could exit.
80672         * lib/canonicalize.c (canonicalize_filename_mode):
80673         Use mreadlink_with_size, not xreadlink_with_size.
80675 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
80677         Detect porting problems to FreeBSD/arm, which has time_t wider than
80678         long int.  Original problem reported for GNU diff by Xin Li in
80679         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
80680         * modules/getdate (Depends-on): Add intprops, verify.
80681         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
80682         is an integer type no wider than long int.
80684 2007-06-18  Jim Meyering  <jim@meyering.net>
80686         New module: mreadlink-with-size.
80687         * MODULES.html.sh: Add mreadlink-with-size.
80688         * modules/mreadlink-with-size: New module
80689         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
80690         not xreadlink-with-size.
80691         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
80693 2007-06-16  Bruno Haible  <bruno@clisp.org>
80695         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
80696         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
80697         Reported by Gary V. Vaughan <gary@gnu.org>.
80699 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
80701         Revamp lchown so that it lives in unistd.h where it belongs.
80702         * lib/lchown.h: Remove.
80703         * lib/dirchownmod.c: Don't include lib/lchown.h.
80704         * lib/fchownat.c: Likewise.
80705         * lib/openat.c: Likewise.
80706         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
80707         does not follow symlinks.
80708         (EOPNOTSUPP): Define if not defined.
80709         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
80710         is defined to 0.
80711         (lchown): New decl.
80712         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
80713         Do not check for lchown decl.
80714         Set REPLACE_LCHOWN.
80715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
80716         REPLACE_LCHOWN.
80717         * modules/chown: Make it clear it follows symlinks.
80718         * modules/lchown: Make it clear it doesn't follow symlinks.
80719         (Files): Remove lib/lchown.h
80720         (Depends-on): Add unistd.
80721         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
80722         (Include): Include <unistd.h>, not "lchown.h".
80723         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
80724         REPLACE_LCHOWN.
80726 2007-06-15  Jim Meyering  <jim@meyering.net>
80728         Change license (GPL to LGPL) of fsusage and dependents.
80729         * modules/fsusage (License): Change to LGPL.
80730         * modules/full-read (License): Likewise.
80731         * modules/full-write (License): Likewise.
80732         * modules/safe-read (License): Likewise.
80733         * modules/safe-write (License): Likewise.
80735 2007-06-14  Ben Pfaff  <blp@gnu.org>
80737         Missing part of allocsa -> malloca transition.
80738         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
80739         gl_MALLOCA.
80741 2007-06-12  Bruno Haible  <bruno@clisp.org>
80743         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
80744         to ia64, x86_64, i386.
80745         Reported by Eric Blake.
80747 2007-06-12  Bruno Haible  <bruno@clisp.org>
80749         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
80750         cross-compiling to x86_64.
80752 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
80754         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
80755         glitch reported by Ralf Wildenhues in
80756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
80758         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
80759         Vin Shelton.
80761 2007-06-11  Bruno Haible  <bruno@clisp.org>
80763         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
80764         replacement string.
80765         Reported by Eric Blake.
80767 2007-06-10  Bruno Haible  <bruno@clisp.org>
80769         Prepare vasnprintf code for use with Unicode strings.
80770         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
80771         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
80772         TYPE_U32_STRING.
80773         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
80774         a_u32_string variants.
80775         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
80776         * lib/printf-args.c: Don't include config.h and the specification
80777         header if PRINTF_FETCHARGS is already defined.
80778         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
80779         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
80780         TYPE_U16_STRING, TYPE_U32_STRING.
80781         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
80782         u16_directive, u16_directives, u32_directive, u32_directives): New
80783         types.
80784         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
80785         New declarations.
80786         * lib/printf-parse.c: Don't include config.h and the specification
80787         header if PRINTF_PARSE is already defined. Eliminate the set of
80788         parameters for WIDE_CHAR_VERSION; the user of this file must provide
80789         them now. Include c-ctype.h.
80790         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
80791         directive and CHAR_T_ONLY_ASCII.
80792         * lib/vasnprintf.c: Don't include config.h and the specification header
80793         if VASNPRINTF is already defined.
80794         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
80795         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
80796         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
80797         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
80798         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
80799         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
80800         code accordingly.
80801         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
80802         pad_ourselves also in this case, with the 'c' and 's' directives, and
80803         with a different notion of "width".
80804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
80806 2007-06-10  Bruno Haible  <bruno@clisp.org>
80808         * modules/unistr/u32-mbsnlen: New file.
80809         * lib/unistr/u32-mbsnlen.c: New file.
80811         * modules/unistr/u16-mbsnlen: New file.
80812         * lib/unistr/u16-mbsnlen.c: New file.
80814         * modules/unistr/u8-mbsnlen: New file.
80815         * lib/unistr/u8-mbsnlen.c: New file.
80817         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
80818         declarations.
80820 2007-06-10  Bruno Haible  <bruno@clisp.org>
80822         * lib/string_.h (mbsnlen): New declaration.
80823         * lib/mbsnlen.c: New file.
80824         * m4/mbsnlen.m4: New file.
80825         * modules/mbsnlen: New file.
80826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
80827         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
80828         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
80830 2007-06-10  Bruno Haible  <bruno@clisp.org>
80832         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
80834 2007-06-10  Bruno Haible  <bruno@clisp.org>
80836         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
80837         * lib/mbuiter.h: Likewise.
80839 2007-06-10  Bruno Haible  <bruno@clisp.org>
80841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
80842         declaration.
80844 2007-06-10  Karl Berry  <karl@gnu.org>
80846         * config/srclist.txt: remove gettext entries, Bruno prefers
80847         to update individually.
80849 2007-06-10  Bruno Haible  <bruno@clisp.org>
80851         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
80852         'maxlen'. Ensure only length + width bytes are allocated, not
80853         length + 1 + width.
80855 2007-06-09  Bruno Haible  <bruno@clisp.org>
80857         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
80858         (CHAR_T): Remove macro.
80859         (VASNPRINTF): Update.
80861 2007-06-09  Bruno Haible  <bruno@clisp.org>
80863         * MODULES.html.sh (Unicode string functions): Add the new modules.
80865         * modules/uniconv/u32-conv-to-enc: New file.
80866         * lib/uniconv/u32-conv-to-enc.c: New file.
80867         * modules/uniconv/u32-conv-to-enc-tests: New file.
80868         * tests/uniconv/test-u32-conv-to-enc.c: New file.
80870         * modules/uniconv/u16-conv-to-enc: New file.
80871         * lib/uniconv/u16-conv-to-enc.c: New file.
80872         * lib/uniconv/u-conv-to-enc.h: New file.
80873         * modules/uniconv/u16-conv-to-enc-tests: New file.
80874         * tests/uniconv/test-u16-conv-to-enc.c: New file.
80876         * modules/uniconv/u8-conv-to-enc: New file.
80877         * lib/uniconv/u8-conv-to-enc.c: New file.
80878         * modules/uniconv/u8-conv-to-enc-tests: New file.
80879         * tests/uniconv/test-u8-conv-to-enc.c: New file.
80881         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
80882         u32_conv_to_encoding): New declarations.
80884 2007-06-09  Bruno Haible  <bruno@clisp.org>
80886         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
80888 2007-06-09  Bruno Haible  <bruno@clisp.org>
80890         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
80891         * modules/malloca: Renamed from modules/allocsa, updated.
80892         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
80893         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
80894         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
80895         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
80896         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
80897         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
80898         * modules/xmalloca: Renamed from modules/xallocsa, updated.
80899         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
80900         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
80901         * modules/c-strcasestr (Depends-on): Update.
80902         * lib/c-strcasestr.c: Update.
80903         * modules/c-strstr (Depends-on): Update.
80904         * lib/c-strstr.c: Update.
80905         * modules/canonicalize-lgpl (Depends-on): Update.
80906         * lib/canonicalize-lgpl.c: Update.
80907         * modules/clean-temp (Depends-on): Update.
80908         * lib/clean-temp.c: Update.
80909         * modules/csharpcomp (Depends-on): Update.
80910         * lib/csharpcomp.c: Update.
80911         * modules/csharpexec (Depends-on): Update.
80912         * lib/csharpexec.c: Update.
80913         * modules/javacomp (Depends-on): Update.
80914         * lib/javacomp.c: Update.
80915         * modules/javaexec (Depends-on): Update.
80916         * lib/javaexec.c: Update.
80917         * modules/mbscasestr (Depends-on): Update.
80918         * lib/mbscasestr.c: Update.
80919         * modules/mbsstr (Depends-on): Update.
80920         * lib/mbsstr.c: Update.
80921         * modules/setenv (Depends-on): Update.
80922         * lib/setenv.c: Update.
80923         * modules/strcasestr (Depends-on): Update.
80924         * lib/strcasestr.c: Update.
80925         * modules/striconveha (Depends-on): Update.
80926         * lib/striconveha.c: Update.
80927         * modules/relocatable-prog-wrapper (Files): Update.
80928         * lib/relocwrapper.c: Update.
80929         * build-aux/install-reloc: Update.
80930         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
80932 2007-06-08  Bruno Haible  <bruno@clisp.org>
80934         Port to uClibc.
80935         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
80936         * lib/fpurge.c (fpurge): Likewise.
80937         * lib/freading.c (freading): Likewise.
80938         * lib/fseeko.c (rpl_fseeko): Likewise.
80939         * lib/fseterr.c (fseterr): Likewise.
80940         * lib/fwriting.c (fwriting): Likewise.
80941         * tests/test-fflush.c (main): Avoid a failure on uClibc.
80943 2007-06-08  Bruno Haible  <bruno@clisp.org>
80945         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
80946         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
80947         * modules/gettext (Files): Add m4/intlmacosx.m4.
80949 2007-06-07  Bruno Haible  <bruno@clisp.org>
80951         * modules/localename-tests: New file.
80952         * tests/test-localename.c: New file.
80954         New module 'localename'.
80955         * lib/localename.h: New file.
80956         * lib/localename.c: New file, from GNU gettext.
80957         * m4/localename.m4: New file.
80958         * modules/localename: New file.
80960 2007-06-07  Bruno Haible  <bruno@clisp.org>
80962         Work around the lack of <wchar.h> on some builds of uClibc.
80963         * doc/headers/wchar.texi: Update.
80964         * lib/wchar_.h: Include <wchar.h> only if it exists.
80965         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
80966         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
80967         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
80968         doesn't exist.
80969         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
80970         * modules/mbfile (Depends-on): Add wchar.
80971         * modules/mbiter (Depends-on): Likewise.
80972         * modules/mbuiter (Depends-on): Likewise.
80973         Reported by Simon Josefsson.
80975 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80977         Work around problem reported by Steven M. Schweda in
80978         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
80979         Tru64 5.1B with the Compaq compiler environment installed declares
80980         an 'isblank' function but does not define it in the C library.
80981         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
80982         * lib/regex_internal.h (isblank): Likewise.
80983         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
80984         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
80986 2007-06-05  Bruno Haible  <bruno@clisp.org>
80988         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
80989         ia64.
80990         * modules/printf-safe: New file.
80991         * modules/fprintf-posix (Depends-on): Add printf-safe.
80992         * modules/printf-posix (Depends-on): Likewise.
80993         * modules/snprintf-posix (Depends-on): Likewise.
80994         * modules/sprintf-posix (Depends-on): Likewise.
80995         * modules/vasnprintf-posix (Depends-on): Likewise.
80996         * modules/vasprintf-posix (Depends-on): Likewise.
80997         * modules/vfprintf-posix (Depends-on): Likewise.
80998         * modules/vprintf-posix (Depends-on): Likewise.
80999         * modules/vsnprintf-posix (Depends-on): Likewise.
81000         * modules/vsprintf-posix (Depends-on): Likewise.
81001         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
81002         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
81003         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
81004         "no" on i386, x86_64, ia64.
81005         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
81006         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
81007         on i386, x86_64, ia64.
81008         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
81009         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
81010         on i386, x86_64, ia64.
81011         * tests/test-vasnprintf-posix.c: Include float.h.
81012         (LDBL80_WORDS): New macro.
81013         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
81014         on i386, x86_64, ia64.
81015         * tests/test-vasprintf-posix.c: Include float.h.
81016         (LDBL80_WORDS): New macro.
81017         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
81018         on i386, x86_64, ia64.
81019         * tests/test-snprintf-posix.c: Include float.h.
81020         * tests/test-sprintf-posix.c: Likewise.
81021         * tests/test-vsnprintf-posix.c: Likewise.
81022         * tests/test-vsprintf-posix.c: Likewise.
81024 2007-06-05  Bruno Haible  <bruno@clisp.org>
81026         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
81027         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
81028         non-IEEE numbers on i386, x86_64, ia64.
81029         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
81030         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
81031         * tests/test-isnanl.h: Include float.h.
81032         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
81034 2007-06-05  Bruno Haible  <bruno@clisp.org>
81036         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
81037         also the %a / %A. Handle the %a / %A code before this extra handling.
81039 2007-06-05  Bruno Haible  <bruno@clisp.org>
81041         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
81042         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
81044 2007-06-05  Bruno Haible  <bruno@clisp.org>
81046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
81047         typo in variable name.
81049 2007-06-05  Eric Blake  <ebb9@byu.net>
81051         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
81052         Reported by Simon Josefsson.
81054 2007-06-04  Bruno Haible  <bruno@clisp.org>
81056         Avoid test failures on some PowerPC platforms.
81057         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
81058         Define differently for PowerPC.
81059         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
81060         Reported by Gary V. Vaughan <gary@gnu.org>.
81062 2007-06-02  Bruno Haible  <bruno@clisp.org>
81064         Fix test-stdint failure on FreeBSD/ia64.
81065         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
81066         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
81067         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
81068         * doc/headers/stdint.texi: Update.
81070 2007-06-01  Bruno Haible  <bruno@clisp.org>
81072         * tests/test-binary-io.c (main): Pass a third argument to open().
81073         Reported by Gary V. Vaughan <gary@gnu.org>.
81075 2007-06-01  Bruno Haible  <bruno@clisp.org>
81077         * doc/functions/frexpl.texi: Update for mingw.
81079 2007-06-01  Bruno Haible  <bruno@clisp.org>
81081         * tests/test-lseek.c (main): Disable test of errno for invalid third
81082         argument.
81083         * doc/functions/lseek.texi: Update.
81084         Reported by Gary V. Vaughan <gary@gnu.org>.
81086 2007-05-28  Bruno Haible  <bruno@clisp.org>
81088         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
81090 2007-05-31  Eric Blake  <ebb9@byu.net>
81092         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
81093         cross compiling.
81095 2007-05-30  Eric Blake  <ebb9@byu.net>
81096         and Bruno Haible  <bruno@clisp.org>
81098         Work around mingw test failures exposed by m4-1.4.9b.
81099         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
81100         * tests/test-unistd.c: Disable uid_t and git_t tests for the
81101         moment.
81103 2007-05-30  Bruno Haible  <bruno@clisp.org>
81105         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
81106         assuming that they are closed. Needed on HP-UX 11.
81108 2007-05-29  Bruno Haible  <bruno@clisp.org>
81110         Fix a problem with #include_next.
81111         * lib/dirent_.h: Split the double-inclusion guard.
81112         * lib/fcntl_.h: Likewise.
81113         * lib/float_.h: Likewise.
81114         * lib/iconv_.h: Likewise.
81115         * lib/inttypes_.h: Likewise.
81116         * lib/locale_.h: Likewise.
81117         * lib/math_.h: Likewise.
81118         * lib/netinet_in_.h: Likewise.
81119         * lib/search_.h: Likewise.
81120         * lib/signal_.h: Likewise.
81121         * lib/stdint_.h: Likewise.
81122         * lib/stdio_.h: Likewise.
81123         * lib/stdlib_.h: Likewise.
81124         * lib/string_.h: Likewise.
81125         * lib/sys_select_.h: Likewise.
81126         * lib/sys_socket_.h: Likewise.
81127         * lib/sys_stat_.h: Likewise.
81128         * lib/sys_time_.h: Likewise.
81129         * lib/sysexits_.h: Likewise.
81130         * lib/time_.h: Likewise.
81131         * lib/unistd_.h: Likewise.
81132         * lib/wchar_.h: Likewise.
81133         * lib/wctype_.h: Likewise.
81135 2007-05-29  Bruno Haible  <bruno@clisp.org>
81137         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
81138         for the moment.
81140 2007-05-29  Bruno Haible  <bruno@clisp.org>
81142         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
81143         invocation.
81144         Reported by Eric Blake.
81146 2007-05-29  Bruno Haible  <bruno@clisp.org>
81148         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
81149         compiling case.
81151 2007-05-29  Eric Blake  <ebb9@byu.net>
81152             Bruno Haible  <bruno@clisp.org>
81154         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
81155         cross compiles.
81157 2007-05-28  Eric Blake  <ebb9@byu.net>
81159         * modules/closein-tests (test_closein_LDADD): Support test on
81160         cygwin with libtool.
81162 2007-05-28  Bruno Haible  <bruno@clisp.org>
81164         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
81165         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
81166         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
81167         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
81168         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
81169         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
81170         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
81171         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
81172         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
81174 2007-05-28  Eric Blake  <ebb9@byu.net>
81176         Unconditionally include <config.h> in unit tests.
81177         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
81178         * tests/test-allocsa.c, tests/test-arcfour.c,
81179         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
81180         tests/test-array_list.c, tests/test-array_oset.c,
81181         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
81182         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
81183         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
81184         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
81185         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
81186         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
81187         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
81188         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
81189         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
81190         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
81191         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
81192         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
81193         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
81194         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
81195         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
81196         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
81197         test-md5.c, test-memmem.c, test-printf-posix.c,
81198         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
81199         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
81200         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
81201         test-strcasestr.c, test-striconv.c, test-striconveh.c,
81202         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
81203         test-vasnprintf-posix2.c, test-vasnprintf.c,
81204         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
81205         test-vfprintf-posix.c, test-vprintf-posix.c,
81206         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
81207         test-xvasprintf.c: Likewise.
81209 2007-05-28  Bruno Haible  <bruno@clisp.org>
81211         * gnulib-tool (func_import): Remember the --with-tests command-line
81212         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
81213         Reported by Eric Blake.
81215 2007-05-28  Bruno Haible  <bruno@clisp.org>
81217         * modules/ftell-tests: New file.
81218         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
81219         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
81221         * lib/ftell.c: New file.
81222         * modules/ftell: New file.
81223         * m4/ftell.m4: New file.
81224         * doc/functions/ftell.texi: Update.
81225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
81226         REPLACE_FTELL.
81227         * lib/stdio_.h (rpl_ftell): New declaration.
81228         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
81229         REPLACE_FTELL.
81231 2007-05-28  Eric Blake  <ebb9@byu.net>
81233         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
81235 2007-05-28  Bruno Haible  <bruno@clisp.org>
81237         * modules/fseek-tests: New file.
81238         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
81239         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
81241         * lib/fseek.c: New file.
81242         * modules/fseek: New file.
81243         * m4/fseek.m4: New file.
81244         * doc/functions/fseek.texi: Update.
81245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
81246         REPLACE_FSEEK.
81247         * lib/stdio_.h (rpl_fseek): New declaration.
81248         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
81249         REPLACE_FSEEK.
81251 2007-05-28  Bruno Haible  <bruno@clisp.org>
81253         * lib/stdio_.h (fflush): More comments.
81255 2007-05-28  Bruno Haible  <bruno@clisp.org>
81257         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
81258         runtime test.
81260 2007-05-28  Eric Blake  <ebb9@byu.net>
81262         Improve lseek module.
81263         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
81264         * lib/unistd_.h (lseek): Scale back link warning message.
81265         * tests/test-lseek.c: Beef up test.
81266         * tests/test-lseek.sh: Exercise more facets of lseek.
81267         Reported by Bruno Haible.
81269 2007-05-28  Bruno Haible  <bruno@clisp.org>
81271         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
81272         to define.
81274 2007-05-27  Bruno Haible  <bruno@clisp.org>
81276         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
81278 2007-05-27  Bruno Haible  <bruno@clisp.org>
81280         * modules/openmp: New file.
81281         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
81282         Noah Misch.
81284 2007-05-26  Bruno Haible  <bruno@clisp.org>
81286         * modules/chdir-long (Depends-on): Add fchdir.
81287         * modules/chdir-safer (Depends-on): Likewise.
81288         * modules/fts (Depends-on): Likewise.
81289         * modules/fts-lgpl (Depends-on): Likewise.
81290         * modules/openat (Depends-on): Likewise.
81291         * modules/savewd (Depends-on): Likewise.
81293 2007-05-24  Eric Blake  <ebb9@byu.net>
81295         Fix lseek on mingw.
81296         * modules/lseek: New module.
81297         * m4/lseek.m4: New file.
81298         * lib/lseek.c: New file.
81299         * modules/lseek-tests: New file.
81300         * tests/test-lseek.c: New file.
81301         * tests/test-lseek.sh: New file.
81302         * MODULES.html.sh: Document lseek module.
81303         * modules/fflush (Depends-on): Add lseek, fseeko.
81304         * modules/fseeko (Depends-on): Likewise.
81305         * modules/ftello (Depends-on): Likewise.
81306         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
81307         broken.
81308         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
81309         broken.
81310         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
81311         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
81312         * lib/ftello.c (rpl_ftello): Likewise.
81313         * tests/test-fseeko.c (main): Test this.
81314         * tests/test-fseeko.sh: Likewise.
81315         * tests/test-ftello.c (main): Likewise.
81316         * tests/test-ftello.sh: Likewise.
81317         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
81318         implies replacing fseek.
81319         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
81320         HAVE_FTELLO.
81321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
81322         * modules/unistd (Makefile.am): Likewise.
81323         * lib/unistd_.h (lseek): Declare a replacement.
81324         * doc/functions/lseek.texi (lseek): Document this fix.
81325         * doc/functions/fseek.texi (fseek): Likewise.
81326         * doc/functions/ftell.texi (ftell): Likewise.
81328 2007-05-24  Bruno Haible  <bruno@clisp.org>
81330         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
81331         in the printed representation of a NaN.
81332         * tests/test-vasprintf-posix.c (test_function): Likewise.
81333         * tests/test-snprintf-posix.h (test_function): Likewise.
81334         * tests/test-sprintf-posix.h (test_function): Likewise.
81335         Reported by Eric Blake.
81337 2007-05-23  Eric Blake  <ebb9@byu.net>
81339         Fix fseeko/ftello on cygwin 1.5.24.
81340         * doc/functions/fseeko.texi (fseeko): Document the fix.
81341         * doc/functions/ftello.texi (ftello): Document the fix.
81342         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
81343         * doc/functions/stdout.text (stdout): New file.
81344         * doc/functions/stderr.text (stderr): New file.
81345         * doc/gnulib.texi (Function Substitutes): Use new files.
81346         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
81347         prior to 1.7.0.
81348         * tests/test-ftello.c (main): Likewise for ftello.
81349         * tests/test-fseeko.sh: New file.
81350         * tests/test-ftello.sh: New file.
81351         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
81352         with seekable stdin.
81353         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
81354         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
81355         (gl_REPLACE_FSEEKO): New macro.
81356         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
81357         * modules/fseeko (Files): Distribute fseeko.c.
81358         * modules/ftello (Files): Distribute ftello.c.
81359         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
81360         mode.
81361         * lib/ftello.c (rpl_ftello): New file.
81362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
81363         fseeko, ftello.
81364         (gl_STDIN_LARGE_OFFSET): New macro.
81365         * modules/stdio (Makefile.am): Perform the replacement.
81366         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
81368 2007-05-23  Bruno Haible  <bruno@clisp.org>
81370         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
81371         GNULIB_POSIXCHECK is defined.
81373 2007-05-21  Bruno Haible  <bruno@clisp.org>
81375         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
81376         Check also the output for NaN arguments. When cross-compiling, guess
81377         no on IRIX.
81378         * lib/vasnprintf.c: Update comments.
81379         * tests/test-vasnprintf-posix.c (strisnan): New function.
81380         (test_function): Use it.
81381         * tests/test-vasprintf-posix.c (strisnan): New function.
81382         (test_function): Use it.
81383         * tests/test-snprintf-posix.h (strisnan): New function.
81384         (test_function): Use it.
81385         * tests/test-sprintf-posix.h (strisnan): New function.
81386         (test_function): Use it.
81387         Reported by Eric Blake.
81389 2007-05-20  Bruno Haible  <bruno@clisp.org>
81391         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
81392         numbers that fails on BeOS.
81393         * doc/functions/frexpl.texi: Update.
81395 2007-05-20  Jim Meyering  <jim@meyering.net>
81397         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
81398         forced upon us by glibc-2.6.
81400 2007-05-20  Bruno Haible  <bruno@clisp.org>
81402         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
81403         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
81404         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
81405         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
81406         NEED_PRINTF_INFINITE.
81407         (is_infinitel): New function.
81408         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
81409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
81410         gl_PREREQ_VASNPRINTF_INFINITE.
81411         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
81412         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81413         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
81414         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
81415         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
81416         gl_PREREQ_VASNPRINTF_INFINITE.
81417         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81418         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81419         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81420         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81421         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81422         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81423         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81424         * doc/functions/fprintf.texi: Update.
81425         * doc/functions/printf.texi: Update.
81426         * doc/functions/snprintf.texi: Update.
81427         * doc/functions/sprintf.texi: Update.
81428         * doc/functions/vfprintf.texi: Update.
81429         * doc/functions/vprintf.texi: Update.
81430         * doc/functions/vsnprintf.texi: Update.
81431         * doc/functions/vsprintf.texi: Update.
81433 2007-05-20  Bruno Haible  <bruno@clisp.org>
81435         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
81436         was not found in libc.
81437         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
81439 2007-05-20  Bruno Haible  <bruno@clisp.org>
81441         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
81442         printed as "-nan" instead of "nan".
81443         * tests/test-vasprintf-posix.c (test_function): Likewise.
81444         * tests/test-snprintf-posix.h (test_function): Likewise.
81445         * tests/test-sprintf-posix.h (test_function): Likewise.
81446         Needed for HP-UX 11.
81448 2007-05-20  Jim Meyering  <jim@meyering.net>
81450         Fix buggy test for the fchownat-deref bug.
81451         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
81452         symlink required for the run-test.  Without it, this test would
81453         always declare that fchownat doesn't work, and client code would
81454         unnecessarily use the replacement function with fixed libc.
81455         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
81456         Reported by Greg Schafer.
81458 2007-05-19  Bruno Haible  <bruno@clisp.org>
81460         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
81461         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
81462         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
81463         Needed for IRIX 6.5 and Solaris 2.5.1.
81465 2007-05-19  Bruno Haible  <bruno@clisp.org>
81467         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
81468         (test_function): Skip tests involving -0.0 on platforms where
81469         -0.0 = 0.0.
81470         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
81471         (test_function): Skip tests involving -0.0 on platforms where
81472         -0.0 = 0.0.
81473         * tests/test-snprintf-posix.h (have_minus_zero): New function.
81474         (test_function): Skip tests involving -0.0 on platforms where
81475         -0.0 = 0.0.
81476         * tests/test-sprintf-posix.h (have_minus_zero): New function.
81477         (test_function): Skip tests involving -0.0 on platforms where
81478         -0.0 = 0.0.
81479         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
81480         tests.
81481         * tests/test-printf-posix.h (test_function): Likewise.
81482         * tests/test-printf-posix.output: Remove all -0.0 related results.
81483         Needed for IRIX 6.5.
81485 2007-05-19  Bruno Haible  <bruno@clisp.org>
81487         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
81488         printed as "nan0x7fffffff" instead of "nan".
81489         * tests/test-vasprintf-posix.c (test_function): Likewise.
81490         * tests/test-snprintf-posix.h (test_function): Likewise.
81491         * tests/test-sprintf-posix.h (test_function): Likewise.
81492         * tests/test-fprintf-posix.h (NaN): Remove macro.
81493         (test_function): Remove all NaN related tests.
81494         * tests/test-printf-posix.h (NaN): Remove macro.
81495         (test_function): Remove all NaN related tests.
81496         * tests/test-printf-posix.output: Remove all NaN related results.
81497         Needed for IRIX 6.5.
81499 2007-05-19  Bruno Haible  <bruno@clisp.org>
81501         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
81502         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
81504 2007-05-19  Bruno Haible  <bruno@clisp.org>
81506         * lib/float_.h: New file.
81507         * m4/float_h.m4: New file.
81508         * modules/float: New file.
81509         * modules/isnanl (Dependencies): Add float.
81510         * modules/isnanl-nolibm (Dependencies): Likewise.
81511         * modules/mathl (Dependencies): Likewise.
81512         * modules/printf-frexpl (Dependencies): Likewise.
81513         * modules/signbit (Dependencies): Likewise.
81514         * modules/vasnprintf (Dependencies): Likewise.
81515         * doc/headers/float.texi: Update.
81517 2007-05-19  Jim Meyering  <jim@meyering.net>
81519         * lib/utimens.c (gl_futimens): Rename from futimens,
81520         now that glibc-2.6 declares futimens.
81521         * lib/utimens.h: Likewise.
81523 2007-05-19  Bruno Haible  <bruno@clisp.org>
81525         Avoid test failures on mingw.
81526         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
81527         * tests/test-printf-posix.sh: Likewise.
81528         * tests/test-vfprintf-posix.sh: Likewise.
81529         * tests/test-vprintf-posix.sh: Likewise.
81531 2007-05-19  Bruno Haible  <bruno@clisp.org>
81533         Fix *printf result for NaN, Inf, -0.0 on mingw.
81534         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
81535         * lib/vasnprintf.c: Include math.h and isnan.h.
81536         (is_infinite_or_zero): New function.
81537         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
81538         values in the %f, %F, %e, %E, %g, %G directives.
81539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
81540         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81541         gl_PRINTF_INFINITE and test its result. Invoke
81542         gl_PREREQ_VASNPRINTF_INFINITE.
81543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81544         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81547         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81550         * doc/functions/fprintf.texi: Update.
81551         * doc/functions/printf.texi: Update.
81552         * doc/functions/snprintf.texi: Update.
81553         * doc/functions/sprintf.texi: Update.
81554         * doc/functions/vfprintf.texi: Update.
81555         * doc/functions/vprintf.texi: Update.
81556         * doc/functions/vsnprintf.texi: Update.
81557         * doc/functions/vsprintf.texi: Update.
81559 2007-05-19  Bruno Haible  <bruno@clisp.org>
81561         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
81562         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
81563         Instead of multiplying with 10^k, set extra_zeroes to k.
81564         (scale10_round_long_double): Remove function.
81566 2007-05-18  Bruno Haible  <bruno@clisp.org>
81568         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
81569         introduced on 2007-05-06.
81571 2007-05-18  Bruno Haible  <bruno@clisp.org>
81573         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
81574         %g directives.
81575         * tests/test-vasprintf-posix.c (test_function): Likewise.
81576         * tests/test-snprintf-posix.h (test_function): Likewise.
81577         * tests/test-sprintf-posix.h (test_function): Likewise.
81579 2007-05-18  Bruno Haible  <bruno@clisp.org>
81581         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
81582         (strmatch): New function.
81583         (test_function): Test the %f directive on numbers of various exponents.
81584         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
81585         (strmatch): New function.
81586         (test_function): Test the %f directive on numbers of various exponents.
81587         * tests/test-snprintf-posix.h (strmatch): New function.
81588         (test_function): Test the %f directive on numbers of various exponents.
81589         * tests/test-sprintf-posix.h (strmatch): New function.
81590         (test_function): Test the %f directive on numbers of various exponents.
81591         * tests/test-snprintf-posix.c (SIZEOF): New macro.
81592         * tests/test-sprintf-posix.c (SIZEOF): New macro.
81593         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
81594         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
81596 2007-05-18  Bruno Haible  <bruno@clisp.org>
81598         Add support for 'long double' number output.
81599         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
81600         * lib/vasnprintf.c: Include math.h and float+.h.
81601         (mp_limb_t): New type.
81602         (GMP_LIMB_BITS): New macro.
81603         (mp_twolimb_t): New type.
81604         (GMP_TWOLIMB_BITS): New macro.
81605         (mpn_t): New type.
81606         (multiply, divide, convert_to_decimal, decode_long_double,
81607         scale10_round_long_double, scale10_round_decimal_long_double,
81608         floorlog10l): New functions.
81609         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
81610         for the %f, %F, %e, %E, %g, %G directives.
81611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
81612         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81613         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
81614         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
81615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81622         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
81623         * modules/snprintf-posix (Depends-on): Likewise.
81624         * modules/sprintf-posix (Depends-on): Likewise.
81625         * modules/vasnprintf-posix (Depends-on): Likewise.
81626         * modules/vasprintf-posix (Depends-on): Likewise.
81627         * modules/vfprintf-posix (Depends-on): Likewise.
81628         * modules/vsnprintf-posix (Depends-on): Likewise.
81629         * modules/vsprintf-posix (Depends-on): Likewise.
81630         * modules/vasnprintf (Files): Add lib/float+.h.
81631         * doc/functions/fprintf.texi: Update.
81632         * doc/functions/printf.texi: Update.
81633         * doc/functions/snprintf.texi: Update.
81634         * doc/functions/sprintf.texi: Update.
81635         * doc/functions/vfprintf.texi: Update.
81636         * doc/functions/vprintf.texi: Update.
81637         * doc/functions/vsnprintf.texi: Update.
81638         * doc/functions/vsprintf.texi: Update.
81640 2007-05-18  Bruno Haible  <bruno@clisp.org>
81642         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
81644 2007-05-18  Bruno Haible  <bruno@clisp.org>
81646         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
81647         for printing 64-bit integers. Needed for mingw.
81649 2007-05-18  Bruno Haible  <bruno@clisp.org>
81651         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
81652         gl_FUNC_FREXPL_WORKS.
81653         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
81655 2007-05-18  Bruno Haible  <bruno@clisp.org>
81657         * modules/frexpl-nolibm-tests: New file.
81659         * modules/frexpl-nolibm: New file.
81660         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
81662 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81664         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
81665         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
81666         GCC 4.2, which otherwise issues a lot of warnings.
81667         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
81668         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
81669         Likewise.
81670         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
81671         * modules/iconv_open (iconv.h): Likewise.
81672         * modules/locale (locale.h): Likewise.
81673         * modules/netinet_in (netinet/in.h): Likewise.
81674         * modules/sys_select (sys_select.h): Likewise.
81675         * modules/sys_socket (sys/socket.h): Likewise.
81676         * modules/sys_stat (sys/stat.h): Likewise.
81677         * modules/sysexits (sysexits.h): Likewise.
81678         * modules/unistd (unistd.h): Likewise.
81680 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81682         * modules/closein-tests (Makefile.am): Distribute
81683         `test-closein.sh'.
81685 2007-05-17  Bruno Haible  <bruno@clisp.org>
81687         * tests/test-printf-posix.output: Renamed from
81688         tests/test-fprintf-posix.out.
81689         * modules/fprintf-posix-tests: Update.
81690         * modules/printf-posix-tests: Update.
81691         * modules/vfprintf-posix-tests: Update.
81692         * modules/vprintf-posix-tests: Update.
81693         * tests/test-fprintf-posix.sh: Update.
81694         * tests/test-printf-posix.sh: Update.
81695         * tests/test-vfprintf-posix.sh: Update.
81696         * tests/test-vprintf-posix.sh: Update.
81697         Reported by Ralf Wildenhues.
81699 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81701         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
81702         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
81703         GCC 4.2, which otherwise issues a lot of warnings.
81704         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
81705         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
81706         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
81707         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
81708         it should no longer be needed.
81709         * lib/string_.h: Likewise.
81710         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
81711         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
81712         * modules/inttypes (inttypes.h): Likewise.
81713         * modules/math (math.h): Likewise.
81714         * modules/search (search.h): Likewise.
81715         * modules/signal (signal.h): Likewise.
81716         * modules/stdint (stdint.h): Likewise.
81717         * modules/stdio (stdio.h): Likewise.
81718         * modules/stdlib (stdlib.h): Likewise.
81719         * modules/string (string.h): Likewise.
81720         * modules/sys_time (sys/time.h): Likewise.
81721         * modules/time (time.h): Likewise.
81722         * modules/wchar (wchar.h): Likewise.
81723         * modules/wctype (wtype.h): Likewise.
81725 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
81727         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
81729 2007-05-13  Bruno Haible  <bruno@clisp.org>
81731         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
81732         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
81733         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
81734         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
81735         (gl_PREREQ_STRTOK_R): Don't require it here.
81737 2007-05-13  Bruno Haible  <bruno@clisp.org>
81739         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
81740         when used in C++ mode.
81742 2007-05-12  Bruno Haible  <bruno@clisp.org>
81744         * lib/linebuffer.h: Tweak doc.
81745         * lib/linebuffer.c: Likewise.
81747 2007-05-12  James Youngman  <jay@gnu.org>
81749         * lib/linebuffer.c (readlinebuffer_delim): New function,
81750         like readlinebuffer, but use a caller-specified delimiter.
81751         (readlinebuffer): Just call readlinebuffer_delim with '\n'
81752         as the delimiter.
81753         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
81755 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81757         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
81758         * modules/openat (Files): Remove openat-die.c.
81759         (Depends-on): Add openat-die.
81760         * modules/openat-die: New module.
81762 2007-05-06  Bruno Haible  <bruno@clisp.org>
81764         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
81765         Update with info about Cygwin.
81766         * doc/functions/fprintf.texi: Update.
81767         * doc/functions/printf.texi: Update.
81768         * doc/functions/snprintf.texi: Update.
81769         * doc/functions/sprintf.texi: Update.
81770         * doc/functions/vfprintf.texi: Update.
81771         * doc/functions/vprintf.texi: Update.
81772         * doc/functions/vsnprintf.texi: Update.
81773         * doc/functions/vsprintf.texi: Update.
81774         Reported by Eric Blake.
81776 2007-05-06  Bruno Haible  <bruno@clisp.org>
81778         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
81779         padding ourselves for the floating-point directives.
81780         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
81781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
81782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
81783         gl_PRINTF_FLAG_ZERO and test its result. Invoke
81784         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
81785         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81786         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
81787         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81789         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81790         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81791         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81792         * tests/test-snprintf-posix.h (test_function): Also check the width
81793         and some flags in the %f directive.
81794         * tests/test-sprintf-posix.h (test_function): Likewise.
81795         * tests/test-vasnprintf-posix.c (test_function): Likewise.
81796         * tests/test-vasprintf-posix.c (test_function): Likewise.
81797         * doc/functions/fprintf.texi: Update.
81798         * doc/functions/printf.texi: Update.
81799         * doc/functions/snprintf.texi: Update.
81800         * doc/functions/sprintf.texi: Update.
81801         * doc/functions/vfprintf.texi: Update.
81802         * doc/functions/vprintf.texi: Update.
81803         * doc/functions/vsnprintf.texi: Update.
81804         * doc/functions/vsprintf.texi: Update.
81806 2007-05-06  Bruno Haible  <bruno@clisp.org>
81808         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
81809         pass the ' flag character to sprintf or snprintf.
81810         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
81811         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
81812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
81813         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
81814         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
81815         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
81817         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81818         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81819         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81820         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81821         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81822         * tests/test-snprintf-posix.h (test_function): Also check the grouping
81823         flag.
81824         * tests/test-sprintf-posix.h (test_function): Likewise.
81825         * tests/test-vasnprintf-posix.c (test_function): Likewise.
81826         * tests/test-vasprintf-posix.c (test_function): Likewise.
81827         * doc/functions/fprintf.texi: Update.
81828         * doc/functions/printf.texi: Update.
81829         * doc/functions/snprintf.texi: Update.
81830         * doc/functions/sprintf.texi: Update.
81831         * doc/functions/vfprintf.texi: Update.
81832         * doc/functions/vprintf.texi: Update.
81833         * doc/functions/vsnprintf.texi: Update.
81834         * doc/functions/vsprintf.texi: Update.
81836 2007-05-01  Bruno Haible  <bruno@clisp.org>
81838         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
81840 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
81842         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
81843         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
81845 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81847         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
81848         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
81849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
81851 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
81853         * lib/argp-help.c (struct hol_entry): New member `ord'.
81854         (HOL_ENTRY_PTRCMP): Use ord for comparison
81855         (hol_sort): Initialize ord.
81857 2007-05-01  Bruno Haible  <bruno@clisp.org>
81859         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
81860         Reported by Eric Blake.
81861         * doc/gnulib.texi (Function Substitutes): Update.
81863 2007-05-01  Bruno Haible  <bruno@clisp.org>
81865         * doc/functions.texi: Remove file, now redundant through
81866         doc/functions/*.texi.
81868 2007-05-01  Bruno Haible  <bruno@clisp.org>
81870         * modules/argp (Depends-on): Add sleep.
81872 2007-05-01  Bruno Haible  <bruno@clisp.org>
81874         * modules/sleep-tests: New file.
81875         * tests/test-sleep.c: New file.
81877         * modules/sleep: New file.
81878         * lib/sleep.c: New file.
81879         * m4/sleep.m4: New file.
81880         * lib/unistd_.h (sleep): New declaration.
81881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
81882         HAVE_SLEEP.
81883         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
81884         * doc/functions/sleep.texi: Document the sleep module.
81886 2007-05-01  Bruno Haible  <bruno@clisp.org>
81888         * lib/sigprocmask.h: Remove file.
81889         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
81890         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
81891         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
81892         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
81893         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
81894         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
81895         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
81896         HAVE_SIGSET_T as a shell variable.
81897         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
81898         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
81899         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
81900         (Depends-on): Add signal. Remove verify.
81901         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
81902         (Include): Mention <signal.h> instead of sigprocmask.h.
81903         * NEWS: Mention the change.
81904         * lib/fatal-signal.c: Don't include sigprocmask.h.
81906 2007-05-01  Bruno Haible  <bruno@clisp.org>
81908         * modules/signal: New file.
81909         * lib/signal_.h: New file.
81910         * m4/signal_h.m4: New file.
81912 2007-05-01  Bruno Haible  <bruno@clisp.org>
81914         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
81915         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
81916         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
81917         HAVE_WCTYPE_CTMP_BUG into wctype.h.
81919 2007-05-01  Bruno Haible  <bruno@clisp.org>
81921         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
81922         configure time.
81923         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
81924         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
81925         * modules/sys_stat (Makefile.am): Substitute their values into
81926         sys/stat.h.
81928 2007-05-01  Bruno Haible  <bruno@clisp.org>
81930         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
81931         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
81932         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
81934 2007-05-01  Bruno Haible  <bruno@clisp.org>
81936         * doc/header/assert.texi: Undo last change: don't mention the gnulib
81937         'assert' module here.
81939 2007-05-01  Bruno Haible  <bruno@clisp.org>
81941         * doc/functions/*.texi: New files.
81942         * doc/functions/google-ranking.txt: New file.
81943         * doc/gnulib.texi (Function Substitutes): New chapter.
81944         (ctime, inet_ntoa): Remove sections.
81945         * doc/ctime.texi: Remove file.
81946         * doc/inet_ntoa.texi: Remove file.
81947         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
81948         dependencies.
81949         (%.info): New rule, specifying a --reference-limit.
81951 2007-05-01  Bruno Haible  <bruno@clisp.org>
81953         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
81955 2007-05-01  Bruno Haible  <bruno@clisp.org>
81957         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
81958         the portability of 'mkdir' to mingw systems.
81960 2007-05-01  Bruno Haible  <bruno@clisp.org>
81962         * doc/headers/google-ranking.txt: New file.
81964 2007-04-30  Eric Blake  <ebb9@byu.net>
81966         Prefer fseeko to fseek.
81967         * modules/getpass (Depends-on): Add fseeko.
81968         * lib/getpass.c (getpass): Use fseeko, not fseek.
81970 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
81972         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
81973         assumes the sorting is stable, while most qsort implementations
81974         are not.  Use argument addresses to ensure they never compare as
81975         equal.
81977         * tests/test-argp-2.sh (usage-indent test): Fix output
81978         (func_compare): Restore diff options
81979         * tests/test-argp.c: Restore #include "progname.h"
81981 2007-04-29  Bruno Haible  <bruno@clisp.org>
81983         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
81984         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
81985         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
81986         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81987         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
81988         (configure.ac): Define CHECK_SNPRINTF_POSIX.
81989         (TESTS, check_PROGRAMS): Add test-snprintf.
81990         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
81991         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
81992         (TESTS, check_PROGRAMS): Add test-vsnprintf.
81993         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
81994         assertions that fail on HP-UX, OSF/1, or IRIX.
81995         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
81997 2007-04-29  Bruno Haible  <bruno@clisp.org>
81999         * MODULES.html.sh (posix_functions): Remove 'contents'.
82001 2007-04-29  Karl Berry  <karl@gnu.org>
82003         * config/srclist.txt (gendocs_template_min): new entry.
82005 2007-04-29  Bruno Haible  <bruno@clisp.org>
82007         Work around fpurge bug on BSD systems.
82008         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
82009         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
82010         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
82011         fpurge to rpl_fpurge if the system already has this function.
82012         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
82013         the case where the system already has this function. Correct invariants
82014         on BSD systems.
82015         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
82016         BSD systems.
82018 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
82020         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
82021         proposed by Sven Verdoolaege.
82023         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
82024         options.
82025         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
82026         (usage and help tests): Update
82028 2007-04-29  Bruno Haible  <bruno@clisp.org>
82030         * tests/test-fflush.c (main): Use a file of size 17, not 10.
82031         Print more information in case of failure. Disable a test on BeOS.
82033 2007-04-29  Bruno Haible  <bruno@clisp.org>
82035         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
82036         This helps debugging on systems on which no gdb is available.
82038 2007-04-29  Bruno Haible  <bruno@clisp.org>
82040         * lib/freading.h: Improve comments.
82041         * lib/fwriting.h: Likewise.
82042         * tests/test-freading.c (main): Don't check freading immediately after
82043         repositioning. Needed for glibc.
82045 2007-04-29  Bruno Haible  <bruno@clisp.org>
82047         * lib/freading.c (freading): Trivial simplification.
82049 2007-04-28  Bruno Haible  <bruno@clisp.org>
82051         * tests/test-fwriting.c (main): Also test the interaction between
82052         fflush and fwriting.
82053         * modules/fwriting-tests (Depends-on): Add fflush.
82055         * tests/test-freading.c (main): Also test the interaction between
82056         fflush and freading.
82057         * modules/freading-tests (Depends-on): Add fflush.
82059 2007-04-28  Bruno Haible  <bruno@clisp.org>
82061         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
82062         fseeko and ftello.
82063         Suggested by Eric Blake.
82065 2007-04-28  Jim Meyering  <jim@meyering.net>
82067         Avoid false-negative in gl_STDINT_H's C99 conformance test.
82068         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
82069         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
82071 2007-04-27  Eric Blake  <ebb9@byu.net>
82073         * doc/headers/assert.texi (assert.h): Document assert module use.
82075 2007-04-27  Bruno Haible  <bruno@clisp.org>
82077         * doc/headers/*.texi: New files.
82078         * doc/gnulib.texi (Header File Substitutes): New chapter.
82079         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
82080         dependencies.
82081         (standards.info ,standards.html, standards.dvi): Update dependencies.
82082         (mostlyclean, clean): New targets.
82084 2007-04-27  Bruno Haible  <bruno@clisp.org>
82086         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
82087         * modules/sysexits (Files, Makefile.am): Update.
82089         * lib/sys_socket_.h: Renamed from lib/socket_.h.
82090         * modules/sys_socket (Files, Makefile.am): Update.
82092         * lib/sys_stat_.h: Renamed from lib/stat_.h.
82093         * modules/sys_stat (Files, Makefile.am): Update.
82095 2007-04-27  Eric Blake  <ebb9@byu.net>
82097         * lib/freading.h: Improve comments.
82098         * lib/fwriting.h: Likewise.
82099         * lib/fflush.c: Likewise.
82101         Fix closein for mingw.
82102         * modules/closein-tests: Add tests for closein.
82103         * tests/test-closein.c: New file.
82104         * tests/test-closein.sh: Likewise.
82105         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
82106         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
82108 2007-04-27  Bruno Haible  <bruno@clisp.org>
82110         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
82111         version is < 6.
82112         * lib/math_.h [__DECC]: Likewise.
82113         * lib/stdio_.h [__DECC]: Likewise.
82114         * lib/stdlib_.h [__DECC]: Likewise.
82115         * lib/string_.h [__DECC]: Likewise.
82116         * lib/time_.h [__DECC]: Likewise.
82117         * lib/wchar_.h [__DECC]: Likewise.
82118         * lib/wctype_.h [__DECC]: Likewise.
82120 2007-04-27  Bruno Haible  <bruno@clisp.org>
82122         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
82124 2007-04-27  Bruno Haible  <bruno@clisp.org>
82126         * lib/fflush.c: Add comments.
82127         * modules/fpurge-tests (Depends-on): Add fflush.
82128         * modules/freadable-tests (Depends-on): Likewise.
82129         * modules/fwritable-tests (Depends-on): Likewise.
82131 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
82133         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
82134         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
82135         Report by Bruno Haible <bruno@clisp.org>.
82137 2007-04-26  Eric Blake  <ebb9@byu.net>
82139         Fix fflush on mingw.
82140         * modules/fflush (Depends-on): Add freading.
82141         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
82142         but unread data.
82144 2007-04-26  Eric Blake  <ebb9@byu.net>
82145         and Bruno Haible  <bruno@clisp.org>
82147         Implement freading and fwriting.
82148         * lib/freading.c: New file.
82149         * lib/freading.h: Likewise.
82150         * m4/freading.m4: Likewise.
82151         * modules/freading: Likewise.
82152         * modules/freading-tests: Likewise.
82153         * tests/test-freading.c: Likewise.
82154         * lib/fwriting.c: New file.
82155         * lib/fwriting.h: Likewise.
82156         * m4/fwriting.m4: Likewise.
82157         * modules/fwriting: Likewise.
82158         * modules/fwriting-tests: Likewise.
82159         * tests/test-fwriting.c: Likewise.
82160         * MODULES.html.sh (File stream based Input/Output): Mention them.
82162 2007-04-26  Bruno Haible  <bruno@clisp.org>
82164         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
82165         'long' when we assume it.
82166         Suggested by Eric Blake.
82168 2007-04-26  Bruno Haible  <bruno@clisp.org>
82170         Ensure fseeko, ftello are declared on glibc systems.
82171         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
82172         * modules/fseeko (configure.ac-early): Likewise.
82173         * modules/ftello (configure.ac-early): Likewise.
82174         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
82175         AC_FUNC_FSEEKO for this.
82176         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
82177         (gl_CHECK_FSEEKO): Remove macro.
82179 2007-04-26  Bruno Haible  <bruno@clisp.org>
82181         * tests/test-fflush.c (main): Also check the ftell result after
82182         fflush and fseek/fseeko.
82183         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
82184         file descriptor position cache in the stream.
82185         * lib/fseeko.c (rpl_fseeko): Likewise.
82187 2007-04-26  Bruno Haible  <bruno@clisp.org>
82189         * modules/fflush-tests (Depends-on): Add fseeko.
82191 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
82192             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82194         * lib/argz_.h: ensure error_t definition is obtained in same
82195         mechanism system argz.h would have.
82196         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
82197         argz facilities are known bad.  Err on the side of caution if
82198         cross-compiling.
82200 2007-04-25  Eric Blake  <ebb9@byu.net>
82202         * lib/fpurge.c (includes): Use stdlib.h for free.
82203         * tests/test-fflush.c (main): Also test fflush-fseeko.
82205 2007-04-25  Bruno Haible  <bruno@clisp.org>
82207         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
82208         * lib/fseeko.c: New file.
82209         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
82210         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
82211         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
82212         gl_FUNC_FSEEKO.
82213         (gl_FUNC_FSEEKO): Invoke it.
82214         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
82215         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
82216         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
82218 2007-04-25  Bruno Haible  <bruno@clisp.org>
82220         * modules/fflush (Depends-on): Add ftello.
82222 2007-04-25  Bruno Haible  <bruno@clisp.org>
82224         * modules/ftello-tests: New file.
82225         * tests/test-ftello.c: New file.
82227         * modules/ftello: New file.
82228         * m4/ftello.m4: New file.
82229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
82230         HAVE_FTELLO.
82231         * lib/stdio_.h (ftello): New declaration.
82232         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
82233         HAVE_FTELLO.
82235 2007-04-25  Bruno Haible  <bruno@clisp.org>
82237         * modules/fseeko-tests: New file.
82238         * tests/test-fseeko.c: New file.
82240         * modules/fseeko: New file.
82241         * m4/fseeko.m4: New file.
82242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
82243         HAVE_FSEEKO.
82244         * lib/stdio_.h (fseeko): New declaration.
82245         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
82246         HAVE_FSEEKO.
82248 2007-04-25  Bruno Haible  <bruno@clisp.org>
82250         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
82252 2007-04-25  Bruno Haible  <bruno@clisp.org>
82254         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
82255         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
82256         * tests/test-unistd.c: Likewise.
82257         * tests/test-fcntl.c: Likewise.
82259 2007-04-23  Eric Blake  <ebb9@byu.net>
82261         * lib/fflush.c: Fix missing include.
82262         Reported by Bruno Haible.
82264 2007-04-23  Bruno Haible  <bruno@clisp.org>
82266         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
82267         Reported by Eric Blake.
82269 2007-04-23  Bruno Haible  <bruno@clisp.org>
82271         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
82273 2007-04-23  Bruno Haible  <bruno@clisp.org>
82275         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
82277 2007-04-23  Bruno Haible  <bruno@clisp.org>
82279         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
82280         Needed on HP-UX 11.
82282 2007-04-16  Eric Blake  <ebb9@byu.net>
82284         Make fflush rely on fpurge.
82285         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
82286         open coding all variants.
82287         * modules/fflush (Depends-on): Add fpurge and unistd.
82288         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
82289         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
82291         Fix --with-tests compilation on cygwin.
82292         * modules/argmatch-tests (Makefile.am): List gnulib library first
82293         in LDADD.
82294         * modules/argp-tests (Makefile.am): Likewise.
82295         * modules/array-list-tests (Makefile.am): Likewise.
82296         * modules/array-oset-tests (Makefile.am): Likewise.
82297         * modules/avltree-list-tests (Makefile.am): Likewise.
82298         * modules/avltree-oset-tests (Makefile.am): Likewise.
82299         * modules/avltreehash-list-tests (Makefile.am): Likewise.
82300         * modules/carray-list-tests (Makefile.am): Likewise.
82301         * modules/dirname-tests (Makefile.am): Likewise.
82302         * modules/frexp-tests (Makefile.am): Likewise.
82303         * modules/isnanl-tests (Makefile.am): Likewise.
82304         * modules/linked-list-tests (Makefile.am): Likewise.
82305         * modules/linkedhash-list-tests (Makefile.am): Likewise.
82306         * modules/lock-tests (Makefile.am): Likewise.
82307         * modules/rbtree-list-tests (Makefile.am): Likewise.
82308         * modules/rbtree-oset-tests (Makefile.am): Likewise.
82309         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
82310         * modules/tls-tests (Makefile.am): Likewise.
82311         * modules/tsearch-tests (Makefile.am): Likewise.
82312         * modules/xvasprintf-tests (Makefile.am): Likewise.
82314         Fix fpurge for cygwin.
82315         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
82316         value.
82317         * modules/fpurge-tests (Depends-on): Clean up trash.
82319 2007-04-16  Simon Josefsson  <simon@josefsson.org>
82321         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
82323         * m4/autobuild.m4: Re-indent.
82325 2007-04-13  Bruno Haible  <bruno@clisp.org>
82327         * modules/fpurge-tests: New file.
82328         * tests/test-fpurge.c: New file.
82330         * modules/fpurge: New file.
82331         * lib/fpurge.h: New file.
82332         * lib/fpurge.c: New file.
82333         * m4/fpurge.m4: New file.
82335 2007-04-13  Bruno Haible  <bruno@clisp.org>
82337         * modules/fbufmode-tests: New file.
82338         * tests/test-fbufmode.c: New file.
82340         * modules/fbufmode: New file.
82341         * lib/fbufmode.h: New file.
82342         * lib/fbufmode.c: New file.
82343         * m4/fbufmode.m4: New file.
82345 2007-04-13  Bruno Haible  <bruno@clisp.org>
82347         * modules/fwritable-tests: New file.
82348         * tests/test-fwritable.c: New file.
82350         * modules/fwritable: New file.
82351         * lib/fwritable.h: New file.
82352         * lib/fwritable.c: New file.
82353         * m4/fwritable.m4: New file.
82355 2007-04-13  Bruno Haible  <bruno@clisp.org>
82357         * modules/freadable-tests: New file.
82358         * tests/test-freadable.c: New file.
82360         * modules/freadable: New file.
82361         * lib/freadable.h: New file.
82362         * lib/freadable.c: New file.
82363         * m4/freadable.m4: New file.
82365 2007-04-13  Bruno Haible  <bruno@clisp.org>
82367         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
82368         MOSTLYCLEANFILES.
82370 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82372         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
82373         gzip bootstrap.conf to avoid dragging in i18n machinery.
82374         (gnulib_tool_option): Use it.
82376 2007-04-13  Bruno Haible  <bruno@clisp.org>
82378         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
82379         %F directives.
82380         * tests/test-vasprintf-posix.c (test_function): Likewise.
82381         * tests/test-snprintf-posix.h (test_function): Likewise.
82382         * tests/test-sprintf-posix.h (test_function): Likewise.
82383         * tests/test-fprintf-posix.h (test_function): Likewise.
82384         * tests/test-printf-posix.h (test_function): Likewise.
82385         * tests/test-fprintf-posix.out: Likewise.
82387 2007-04-13  Bruno Haible  <bruno@clisp.org>
82389         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
82390         * modules/tls-tests (configure.ac): Likewise.
82391         Reported by Arto C. Nirkko <anirkko@insel.ch>.
82393 2007-04-13  Bruno Haible  <bruno@clisp.org>
82395         * lib/tls.c (glthread_tls_get): Fix return type.
82396         Patch by Arto C. Nirkko <anirkko@insel.ch>.
82398 2007-04-12  Eric Blake  <ebb9@byu.net>
82400         * modules/gettime (Depends-on): Remove gettime.
82401         Reported by Dmitry V. Levin.
82403 2007-04-12  Bruno Haible  <bruno@clisp.org>
82405         * modules/fflush (Include): Mention <stdio.h>.
82406         * modules/strtoimax (Include): Mention <inttypes.h>.
82407         * modules/strtoumax (Include): Likewise.
82409 2007-04-12  Eric Blake  <ebb9@byu.net>
82411         * .cvsignore: New file.
82412         * .gitignore: Likewise.
82414 2007-04-12  Bruno Haible  <bruno@clisp.org>
82416         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
82417         not before, since $(LDADD) often contains libgnu.a.
82418         * modules/striconv-tests (test_striconv_LDADD): Likewise.
82419         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
82420         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
82421         Needed on Cygwin.
82423 2007-04-12  Eric Blake  <ebb9@byu.net>
82425         Work around glibc's failure to flush stdin on fclose.
82426         * lib/closein.c (close_stdin): Flush stdin before closing.
82428         Work around glibc's failure to reset seekable stdin on exit.
82429         * modules/closein: New module.
82430         * lib/closein.c: New file.
82431         * lib/closein.h: Likewise.
82432         * m4/closein.m4: Likewise.
82433         * MODULES.html.sh (File stream based Input/Output): Document it.
82435 2007-04-12  Simon Josefsson  <simon@josefsson.org>
82437         * gnulib-tool: Rename generated 'autobuild' script to
82438         'do-autobuild' in --create-megatestdir output.
82440         * doc/gnulib.texi (Build robot for gnulib): Fix.
82442 2007-04-12  Simon Josefsson  <simon@josefsson.org>
82444         * modules/sysexits (Depends-on): Add absolute-header.
82446 2007-04-12  Eric Blake  <ebb9@byu.net>
82448         No need to preserve errno on success.
82449         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
82450         Reported by Bruno Haible.
82452 2007-04-12  Simon Josefsson  <simon@josefsson.org>
82454         * MODULES.html.sh (Support for maintaining and releasing
82455         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
82457 2007-04-12  Simon Josefsson  <simon@josefsson.org>
82459         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
82461 2007-04-12  Simon Josefsson  <simon@josefsson.org>
82463         * modules/autobuild: New module.
82465         * m4/autobuild.m4: New file.
82467 2007-04-11  Bruno Haible  <bruno@clisp.org>
82469         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
82470         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
82471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
82472         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
82473         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82474         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82475         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82476         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
82477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82479         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
82480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
82483         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82484         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82485         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
82486         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82487         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82488         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
82489         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82490         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82491         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
82492         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82493         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
82495         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
82496         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
82497         Reported by Eric Blake.
82499 2007-04-11  Bruno Haible  <bruno@clisp.org>
82501         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
82503 2007-04-10  Bruno Haible  <bruno@clisp.org>
82505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
82506         for NaN and Infinity. Needed on FreeBSD 6.1.
82507         * tests/test-vasnprintf-posix.c (test_function): Undo last change
82508         regarding results for "%010a" of Infinity and NaN.
82509         * tests/test-vasprintf-posix.c (test_function): Likewise.
82510         * tests/test-snprintf-posix.h (test_function): Likewise.
82511         * tests/test-sprintf-posix.h (test_function): Likewise.
82512         * tests/test-fprintf-posix.h (test_function): Likewise.
82513         * tests/test-printf-posix.h (test_function): Likewise.
82514         * tests/test-fprintf-posix.out: Likewise.
82516 2007-04-10  Bruno Haible  <bruno@clisp.org>
82518         * modules/locale-tests: New file.
82519         * tests/test-locale.c: New file.
82521         * modules/locale: New file.
82522         * lib/locale_.h: New file.
82523         * m4/locale_h.m4: New file.
82525 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
82526             Bruno Haible  <bruno@clisp.org>
82528         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
82529         be determined, test for availability of the copysignf, copysign,
82530         copysignl functions.
82531         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
82532         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
82533         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
82535 2007-04-09  Eric Blake  <ebb9@byu.net>
82537         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
82538         * modules/stdio (Makefile.am): Support fflush.
82539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82540         * modules/fflush: New file.
82541         * lib/fflush.c: Likewise.
82542         * m4/fflush.m4: Likewise.
82543         * modules/fflush-tests: New test.
82544         * tests/test-fflush.c: Likewise.
82545         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
82547 2007-04-06  Bruno Haible  <bruno@clisp.org>
82549         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
82550         (VASNPRINTF): Use signbit for faster determination whether to print a
82551         minus sign.
82552         * modules/vasnprintf (Files): Remove lib/float+.h.
82553         * modules/fprintf-posix (Depends-on): Add signbit.
82554         * modules/snprintf-posix (Depends-on): Likewise.
82555         * modules/sprintf-posix (Depends-on): Likewise.
82556         * modules/vasnprintf-posix (Depends-on): Likewise.
82557         * modules/vasprintf-posix (Depends-on): Likewise.
82558         * modules/vfprintf-posix (Depends-on): Likewise.
82559         * modules/vsnprintf-posix (Depends-on): Likewise.
82560         * modules/vsprintf-posix (Depends-on): Likewise.
82562 2007-04-06  Bruno Haible  <bruno@clisp.org>
82564         * tests/test-frexp.c (main): Test also the sign bit of zero results.
82565         * tests/test-frexpl.c (main): Likewise.
82566         * tests/test-ldexpl.c (main): Likewise.
82567         * modules/frexp-tests (Depends-on): Add signbit.
82568         * modules/frexpl-tests (Depdends-on): Likewise.
82569         * modules/ldexpl-tests (Depdends-on): Likewise.
82571 2007-04-06  Bruno Haible  <bruno@clisp.org>
82573         * modules/signbit-tests: New file.
82574         * tests/test-signbit.c: New file.
82576         * modules/signbit: New file.
82577         * lib/signbitf.c: New file.
82578         * lib/signbitd.c: New file.
82579         * lib/signbitl.c: New file.
82580         * m4/signbit.m4: New file.
82581         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
82582         (signbit): New macro.
82583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
82584         REPLACE_SIGNBIT.
82585         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
82586         REPLACE_FREXPL into math.h.
82588 2007-04-06  Bruno Haible  <bruno@clisp.org>
82590         * modules/isnanf-nolibm-tests: New file.
82591         * tests/test-isnanf.c: New file.
82593         * modules/isnanf-nolibm: New file.
82594         * lib/isnanf.h: New file.
82595         * lib/isnanf.c: New file.
82596         * lib/isnan.c: Consider the USE_FLOAT macro.
82597         * m4/isnanf.m4: New file.
82599 2007-04-06  Bruno Haible  <bruno@clisp.org>
82601         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
82602         (Link): New section.
82604         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
82606 2007-04-06  Bruno Haible  <bruno@clisp.org>
82608         Assume the 'long double' type.
82609         * m4/longdouble.m4: Remove file.
82610         * config/srclist.txt: Don't mention longdouble.m4.
82611         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
82612         * lib/float+.h: Likewise.
82613         * lib/frexp.c: Likewise.
82614         * lib/printf-args.h: Likewise.
82615         * lib/printf-args.c: Likewise.
82616         * lib/printf-frexp.c: Likewise.
82617         * lib/printf-parse.c: Likewise.
82618         * lib/vasnprintf.c: Likewise.
82619         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
82620         * m4/intl.m4: Likewise.
82621         * m4/isnanl.m4: Likewise.
82622         * m4/printf.m4: Likewise.
82623         * m4/printf-frexpl.m4: Likewise.
82624         * m4/vasnprintf.m4: Likewise.
82625         * modules/allocsa (Files): Remove m4/longdouble.m4.
82626         * modules/gettext (Files): Likewise.
82627         * modules/relocatable-prog-wrapper (Files): Likewise.
82628         * modules/vasnprintf (Files): Likewise.
82629         * modules/isnanl (Files): Likewise.
82630         (Include): Simplify.
82631         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
82632         (Include): Simplify.
82633         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
82634         (Include): Simplify.
82635         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
82636         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82637         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
82638         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82639         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
82640         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82641         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
82642         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82643         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
82644         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82645         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
82646         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
82647         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
82648         * tests/test-isnanl.c: Likewise.
82649         * tests/test-snprintf-posix.h: Likewise.
82650         * tests/test-sprintf-posix.h: Likewise.
82651         * tests/test-vasnprintf-posix.c: Likewise.
82652         * tests/test-vasnprintf-posix2.c: Likewise.
82653         * tests/test-vasprintf-posix.c: Likewise.
82655 2007-04-06  Bruno Haible  <bruno@clisp.org>
82657         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
82658         * lib/math_.h [__DECC]: Include the overridden include file through
82659         #include_next, outside the double-inclusion guard.
82660         * lib/stdio_.h [__DECC]: Likewise.
82661         * lib/stdlib_.h [__DECC]: Likewise.
82662         * lib/string_.h [__DECC]: Likewise.
82663         * lib/time_.h [__DECC]: Likewise.
82664         * lib/wchar_.h [__DECC]: Likewise.
82665         * lib/wctype_.h [__DECC]: Likewise.
82666         * lib/inttypes_.h [__DECC]: Likewise.
82667         Reported by Albert Chin <china@thewrittenword.com> in
82668         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
82670 2007-04-04  Eric Blake  <ebb9@byu.net>
82672         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
82673         1.5.x.
82675 2007-04-04  Bruno Haible  <bruno@clisp.org>
82677         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
82678         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
82680 2007-04-04  Bruno Haible  <bruno@clisp.org>
82682         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
82683         results for "%010a" of Infinity and NaN.
82684         * tests/test-vasprintf-posix.c (test_function): Likewise.
82685         * tests/test-snprintf-posix.h (test_function): Likewise.
82686         * tests/test-sprintf-posix.h (test_function): Likewise.
82687         * tests/test-fprintf-posix.h (test_function): Remove these tests.
82688         * tests/test-printf-posix.h (test_function): Likewise.
82689         * tests/test-fprintf-posix.out: Update.
82690         Needed for FreeBSD 6.1.
82692 2007-04-04  Bruno Haible  <bruno@clisp.org>
82694         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
82695         directly used by the gnulib modules nor by gnulib-tool.
82697 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82699         * DEPENDENCIES: Give overall description of version dependency
82700         desirability.  Use more-typical names for apps.
82701         Add shell, coreutils, diffutils, grep, tar, gzip.
82703 2007-04-04  Simon Josefsson  <simon@josefsson.org>
82705         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
82707 2007-04-04  Karl Berry  <karl@gnu.org>
82709         * MODULES.html.sh (func_module): missing '.
82711 2007-04-03  Bruno Haible  <bruno@clisp.org>
82713         * modules/argmatch-tests (Makefile.am): New variable
82714         test_argmatch_LDADD.
82715         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
82716         * modules/array-list-tests (Makefile.am): New variable
82717         test_array_list_LDADD.
82718         * modules/array-oset-tests (Makefile.am): New variable
82719         test_array_oset_LDADD.
82720         * modules/avltree-list-tests (Makefile.am): New variable
82721         test_avltree_list_LDADD.
82722         * modules/avltree-oset-tests (Makefile.am): New variable
82723         test_avltree_oset_LDADD.
82724         * modules/avltreehash-list-tests (Makefile.am): New variable
82725         test_avltreehash_list_LDADD.
82726         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
82727         test_canonicalize_lgpl_LDADD.
82728         * modules/carray-list-tests (Makefile.am): New variable
82729         test_carray_list_LDADD.
82730         * modules/dirname-tests (Makefile.am): New variable
82731         test_dirname_LDADD.
82732         * modules/linked-list-tests (Makefile.am): New variable
82733         test_linked_list_LDADD.
82734         * modules/linkedhash-list-tests (Makefile.am): New variable
82735         test_linkedhash_list_LDADD.
82736         * modules/rbtree-list-tests (Makefile.am): New variable
82737         test_rbtree_list_LDADD.
82738         * modules/rbtree-oset-tests (Makefile.am): New variable
82739         test_rbtree_oset_LDADD.
82740         * modules/rbtreehash-list-tests (Makefile.am): New variable
82741         test_rbtreehash_list_LDADD.
82742         * modules/xvasprintf-tests (Makefile.am): New variable
82743         test_xvasprintf_LDADD.
82744         Reported by Eric Blake.
82746 2007-04-03  Eric Blake  <ebb9@byu.net>
82748         * DEPENDENCIES: Weaken m4 requirements.
82750 2007-04-03  Bruno Haible  <bruno@clisp.org>
82752         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
82753         * modules/isnanl-tests (configure.ac): Likewise.
82755 2007-04-03  Ben Pfaff  <blp@gnu.org>
82757         * modules/iconv_open: Add $(srcdir)/ to source directory
82758         references in Makefile fragments that call gperf, to fix VPATH
82759         builds.
82761 2007-04-03  Bruno Haible  <bruno@clisp.org>
82763         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
82764         * lib/ldexpl.c: Undo last change.
82766 2007-04-03  Bruno Haible  <bruno@clisp.org>
82768         * modules/printf-frexpl (Depends-on): Undo last change.
82769         (Files): Add m4/ldexpl.m4.
82771 2007-04-03  Bruno Haible  <bruno@clisp.org>
82773         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
82774         * modules/isnanl (Link): New section.
82776         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
82777         * modules/frexp (Link): New section.
82779         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
82780         * modules/frexpl (Link): New section.
82782         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
82783         * modules/ldexpl (Link): New section.
82785 2007-04-03  Bruno Haible  <bruno@clisp.org>
82787         * modules/TEMPLATE-EXTENDED: New file.
82788         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
82790 2007-04-03  Bruno Haible  <bruno@clisp.org>
82792         * DEPENDENCIES: New file.
82793         Suggested by Simon Josefsson.
82795 2007-04-03  Bruno Haible  <bruno@clisp.org>
82797         * doc/gnulib.texi: Escape @.
82799 2007-04-03  James Youngman  <jay@gnu.org>
82800         and Paul Eggert  <eggert@cs.ucla.edu>
82802         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
82803         birthtime on all systems that have birthtime, not just those which
82804         use st_birthtimensec rather than st_birthtim.  Putting zero in
82805         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
82806         that the birth time is not available for files on an NFS mount.
82808 2007-04-03  Simon Josefsson  <simon@josefsson.org>
82810         * modules/memxor: Move back from crypto/, suggested by Bruno.
82811         * modules/crypto/hmac-sha1: Fix memxor dependency.
82813         * modules/crypto/gc: Moved from ../.
82815 2007-04-02  Eric Blake  <ebb9@byu.net>
82817         * lib/ldexpl.c (includes): Avoid libm.
82819         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
82821 2007-04-02  Bruno Haible  <bruno@clisp.org>
82823         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
82824         on IRIX.
82826 2007-04-02  Bruno Haible  <bruno@clisp.org>
82828         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
82829         x86 or x86_64 platforms running MacOS X.
82830         Reported by Ryan Schmidt <@ryandesign.com>.
82832 2007-04-02  Bruno Haible  <bruno@clisp.org>
82834         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
82835         i386.
82837 2007-04-01  Simon Josefsson  <simon@josefsson.org>
82839         * modules/crypto/arcfour: Moved from ../.
82840         * modules/crypto/arcfour-tests: Moved from ../.
82841         * modules/crypto/arctwo: Moved from ../.
82842         * modules/crypto/arctwo-tests: Moved from ../.
82843         * modules/crypto/des: Moved from ../.
82844         * modules/crypto/des-tests: Moved from ../.
82845         * modules/crypto/gc-arcfour: Moved from ../.
82846         * modules/crypto/gc-arcfour-tests: Moved from ../.
82847         * modules/crypto/gc-arctwo: Moved from ../.
82848         * modules/crypto/gc-arctwo-tests: Moved from ../.
82849         * modules/crypto/gc-des: Moved from ../.
82850         * modules/crypto/gc-des-tests: Moved from ../.
82851         * modules/crypto/gc-hmac-md5: Moved from ../.
82852         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
82853         * modules/crypto/gc-hmac-sha1: Moved from ../.
82854         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
82855         * modules/crypto/gc-md2: Moved from ../.
82856         * modules/crypto/gc-md2-tests: Moved from ../.
82857         * modules/crypto/gc-md4: Moved from ../.
82858         * modules/crypto/gc-md4-tests: Moved from ../.
82859         * modules/crypto/gc-md5: Moved from ../.
82860         * modules/crypto/gc-md5-tests: Moved from ../.
82861         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
82862         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
82863         * modules/crypto/gc-random: Moved from ../.
82864         * modules/crypto/gc-rijndael: Moved from ../.
82865         * modules/crypto/gc-rijndael-tests: Moved from ../.
82866         * modules/crypto/gc-sha1: Moved from ../.
82867         * modules/crypto/gc-sha1-tests: Moved from ../.
82868         * modules/crypto/gc-tests: Moved from ../.
82869         * modules/crypto/hmac-md5: Moved from ../.
82870         * modules/crypto/hmac-md5-tests: Moved from ../.
82871         * modules/crypto/hmac-sha1: Moved from ../.
82872         * modules/crypto/hmac-sha1-tests: Moved from ../.
82873         * modules/crypto/md2: Moved from ../.
82874         * modules/crypto/md2-tests: Moved from ../.
82875         * modules/crypto/md4: Moved from ../.
82876         * modules/crypto/md4-tests: Moved from ../.
82877         * modules/crypto/md5: Moved from ../.
82878         * modules/crypto/md5-tests: Moved from ../.
82879         * modules/crypto/memxor: Moved from ../.
82880         * modules/crypto/rijndael: Moved from ../.
82881         * modules/crypto/rijndael-tests: Moved from ../.
82882         * modules/crypto/sha1: Moved from ../.
82884 2007-03-30  James Youngman  <jay@gnu.org>
82886         * tests/test-stat-time.c (prepare_test): use chmod() rather than
82887         rename() to change the ctime of a file (because ctime is unaffected
82888         by rename on jfs2 on AIX 5.1).
82889         (main): Start by doing cleanup, in case a previous run failed leaving
82890         test files behind.
82892 2007-03-31  Bruno Haible  <bruno@clisp.org>
82894         Support old proprietary implementations of iconv.
82895         * modules/iconv_open: New file.
82896         * lib/iconv_.h: New file.
82897         * m4/iconv_h.m4: New file.
82898         * lib/iconv_open.c: New file.
82899         * lib/iconv_open-aix.gperf: New file.
82900         * lib/iconv_open-hpux.gperf: New file.
82901         * lib/iconv_open-irix.gperf: New file.
82902         * lib/iconv_open-osf.gperf: New file.
82903         * m4/iconv_open.m4: New file.
82904         * modules/linebreak (Depends-on): Add iconv_open.
82905         * modules/striconv (Depends-on): Likewise.
82906         * modules/striconveh (Depends-on): Likewise.
82907         * modules/unicodeio (Depends-on): Likewise.
82908         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
82909         (iconv_t)(-1).
82910         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
82911         conversion if cd is (iconv_t)(-1).
82912         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
82913         is not possible.
82915 2007-03-31  Bruno Haible  <bruno@clisp.org>
82917         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
82918         work on Solaris either. Protect also second use of "autodetect_jp".
82920 2007-03-31  Bruno Haible  <bruno@clisp.org>
82922         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
82923         the function is not present.
82925 2007-03-31  Bruno Haible  <bruno@clisp.org>
82927         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
82928         the function is not present.
82930 2007-03-31  Bruno Haible  <bruno@clisp.org>
82932         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
82933         a bug in HP-UX iconv_open().
82935 2007-03-31  Bruno Haible  <bruno@clisp.org>
82937         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
82938         (Mathematics <math.h>): New section, add fpieee.
82939         (Input/output <stdio.h>): Add fseterr.
82940         (Mathematics <math.h>): New section, add printf-frexp.
82941         (Container data structures): Add sublist.
82942         (Core language properties): Add fpucw, inline.
82943         (Functions for greatest-width integer types <inttypes.h>): Add
82944         imaxabs, imaxdiv, inttypes.
82945         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
82946         isnanl-nolibm, ldexp.
82947         (Mathematics <math.h>): New section, add printf-frexpl.
82948         (Support for systems lacking POSIX:2001): Add fprintf-posix,
82949         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
82950         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
82951         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
82952         (Unicode string functions): Add unistr/u*-mbtoucr.
82953         (Java): Add javacomp-script, javaexec-script.
82954         (C#): Add csharpcomp-script, csharpexec-script.
82955         (Support for building libraries and executables): Add havelib,
82956         relocatable-*.
82957         (Support for maintaining and releasing projects): Renamed from
82958         'Support for maintaining and release projects'. Add announce-gen.
82960 2007-03-31  Bruno Haible  <bruno@clisp.org>
82962         * README: Talk primarily about git.
82963         (git and CVS): Renamed from CVS.
82964         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
82965         gnulib is available through git.
82966         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
82968 2007-03-30  Bruno Haible  <bruno@clisp.org>
82970         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
82971         * lib/poll_.h: Likewise.
82972         * lib/stat_.h: Likewise.
82973         * lib/sys_time_.h: Likewise.
82974         * lib/sysexit_.h: Likewise.
82975         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
82976         * lib/stdbool_.h: Likewise.
82977         * lib/byteswap_.h: Add double-inclusion guard.
82979 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
82981         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
82983 2007-03-30  Karl Berry  <karl@gnu.org>
82985         * config/srclist-update: double space after USA in the license
82986         substitution, since that's how it's usually (?) written.
82988 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
82990         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
82991         reported by Bruno Haible.
82993 2007-03-29  Bruno Haible  <bruno@clisp.org>
82995         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
82996         a bug in AIX iconv().
82998 2007-03-29  Bruno Haible  <bruno@clisp.org>
83000         * modules/ldexpl-tests: New file.
83001         * tests/test-ldexpl.c: New file.
83003 2007-03-29  Bruno Haible  <bruno@clisp.org>
83005         * lib/ldexpl.c: Include fpucw.h.
83006         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
83007         multiplication.
83008         * modules/ldexpl (Depends-on): Add fpucw.
83010 2007-03-29  Bruno Haible  <bruno@clisp.org>
83012         * modules/ldexpl: New file.
83013         * m4/ldexpl.m4: New file.
83014         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
83015         set.
83016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
83017         REPLACE_LDEXPL.
83018         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
83019         REPLACE_LDEXPL.
83020         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
83021         gl_FUNC_LDEXPL_WORKS.
83022         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
83023         * modules/mathl (Files): Remove lib/ldexpl.c.
83024         (Depends-on): Add ldexpl.
83026 2007-03-29  Bruno Haible  <bruno@clisp.org>
83028         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
83030 2007-03-29  Bruno Haible  <bruno@clisp.org>
83032         * tests/test-striconveh.c (main): Don't assume that a direct conversion
83033         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
83034         and possibly also HP-UX.
83035         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
83036         work on AIX, IRIX, HP-UX, OSF/1.
83037         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
83038         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
83039         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
83040         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
83041         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
83042         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
83044 2007-03-29  Bruno Haible  <bruno@clisp.org>
83046         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
83048 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
83050         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
83051         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
83053 2007-03-29  Eric Blake  <ebb9@byu.net>
83055         * lib/acl-internal.h: Remove redundant include.
83056         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
83057         Cygwin when a file is locked.
83059 2007-03-29  Bruno Haible  <bruno@clisp.org>
83061         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
83062         file.
83063         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
83065 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
83067         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
83068         try to remove a parent directory if the child couldn't be removed
83069         (except for the first rmdir, which could fail because the child
83070         doesn't exist).  Problem reported by Jeff Blaine in
83071         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
83073 2007-03-28  Bruno Haible  <bruno@clisp.org>
83075         * lib/striconveh.c (utf8conv_carefully): New function.
83076         (mem_cd_iconveh_internal): Invoke it.
83078 2007-03-28  Bruno Haible  <bruno@clisp.org>
83080         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
83081         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
83082         input.
83083         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
83084         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
83085         unistr/u8-uctomb.
83087 2007-03-28  Bruno Haible  <bruno@clisp.org>
83089         * modules/unistr/u8-mbtoucr: New file.
83090         * lib/unistr/u8-mbtoucr.c: New file.
83091         * modules/unistr/u16-mbtoucr: New file.
83092         * lib/unistr/u16-mbtoucr.c: New file.
83093         * modules/unistr/u16-mbtoucr: New file.
83094         * lib/unistr/u16-mbtoucr.c: New file.
83095         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
83097 2007-03-27  Simon Josefsson  <simon@josefsson.org>
83098             Bruno Haible  <bruno@clisp.org>
83100         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
83101         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
83102         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
83104         * m4/stdio_h.m4: Add stubs for vasprintf too.
83106         * modules/stdio: Support vasprintf in sed command.
83108         * modules/vasprintf: Depend on stdio for prototypes.  Remove
83109         vasprintf.h.  Add stdio module indicator.
83111         * lib/stdio_.h: Declare asprintf and vasprintf, based on
83112         vasprintf.h.
83114         * lib/vasprintf.h: File removed.
83116         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
83117         * lib/vasprintf.c: Ditto.
83118         * lib/xvasprintf.c: Ditto.
83119         * tests/test-vasprintf-posix.c: Ditto.
83120         * tests/test-vasprintf.c: Ditto.
83122 2007-03-27  Bruno Haible  <bruno@clisp.org>
83124         Make vasnprintf multithread-safe.
83125         * lib/vasnprintf.c (decimal_point_char): New function.
83126         (VASNPRINTF): Use it.
83127         Suggested by Simon Josefsson.
83129 2007-03-27  Eric Blake  <ebb9@byu.net>
83131         Support sub-second birthtime on cygwin.
83132         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
83133         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
83134         (get_stat_birthtime): Also work with st_birthtim.
83136 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
83138         * lib/stat-time.h (USE_BIRTHTIME): Remove.
83139         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
83140         (get_stat_birthtime_ns): Do not try to use "spare" fields.
83141         (get_stat_birthtime_ns): Simplify compile-time tests.
83142         (get_stat_birthtime): Change the API to look like
83143         get_stat_mtime etc., except return a negative tv_nsec on error.
83144         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
83145         Don't check for "spare" fields.
83146         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
83147         or for struct stat.st_birthtime, as these tests aren't used.
83148         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
83150 2007-03-27  Bruno Haible  <bruno@clisp.org>
83152         * lib/stat-time.h: Include <sys/stat.h>.
83154 2007-03-27  James Youngman  <jay@gnu.org>
83156         * lib/stat-time.h (get_stat_birthtime): New function for
83157           retrieving st_birthtime as provided by UFS2 (hence *BSD).
83158         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
83159           and its variants.
83160         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
83161         * modules/stat-time-test: New file.
83162         * tests/test-stat-time.c: New test, devised by Bruno Haible.
83164 2007-03-26  Bruno Haible  <bruno@clisp.org>
83166         Better support of signalling NaNs.
83167         * lib/atanl.c: Include isnanl.h.
83168         (atanl): Perform test for NaN at the beginning of the function and
83169         through a call to isnanl.
83170         * lib/cosl.c: Include isnanl.h.
83171         (cosl): Perform test for NaN at the beginning of the function and
83172         through a call to isnanl.
83173         * lib/ldexpl.c: Include isnanl.h.
83174         (ldexpl): Perform test for NaN through a call to isnanl.
83175         * lib/logl.c: Include isnanl.h.
83176         (logl): Perform test for NaN at the beginning of the function and
83177         through a call to isnanl.
83178         * lib/sinl.c: Include isnanl.h.
83179         (sinl): Perform test for NaN at the beginning of the function and
83180         through a call to isnanl.
83181         * lib/sqrtl.c: Include isnanl.h.
83182         (sqrtl): Perform test for NaN at the beginning of the function and
83183         through a call to isnanl.
83184         * lib/tanl.c: Include isnanl.h.
83185         (tanl): Perform test for NaN at the beginning of the function and
83186         through a call to isnanl.
83187         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
83188         * modules/mathl (Depends-on): Add isnanl.
83190 2007-03-26  Eric Blake  <ebb9@byu.net>
83192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
83193         regression in logic sense of previous patch.
83195 2007-03-26  Bruno Haible  <bruno@clisp.org>
83197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
83198         unportable shell command "if ! ...".
83199         Reported by Ralf Wildenhues.
83201 2007-03-25  Bruno Haible  <bruno@clisp.org>
83203         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
83204         <sysexits.h> file, and only add EX_CONFIG.
83205         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
83206         absolute file name and whether it is sufficient. Substitute also
83207         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
83208         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
83209         ABSOLUTE_SYSEXITS_H into sysexits.h.
83211 2007-03-25  Bruno Haible  <bruno@clisp.org>
83213         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
83214         hints is NULL.
83216 2007-03-25  Bruno Haible  <bruno@clisp.org>
83218         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
83219         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
83221 2007-03-25  Bruno Haible  <bruno@clisp.org>
83223         * lib/vasnprintf.c: Include langinfo.h.
83224         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
83225         multithread-safe.
83226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
83227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
83228         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83229         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83231         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83232         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
83234         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83235         Reported by Simon Josefsson.
83237 2007-03-25  Bruno Haible  <bruno@clisp.org>
83239         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
83240         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
83241         * modules/vasnprintf (Depends-on): Add stdint.
83243 2007-03-25  Bruno Haible  <bruno@clisp.org>
83245         * modules/fpieee: New file.
83246         * m4/fpieee.m4: New file.
83247         * modules/isnan-nolibm (Depends-on): Add fpieee.
83248         * modules/isnanl-nolibm (Depends-on): Add fpieee.
83249         * modules/isnanl (Depends-on): Add fpieee.
83251 2007-03-25  Bruno Haible  <bruno@clisp.org>
83253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
83255 2007-03-25  Bruno Haible  <bruno@clisp.org>
83257         Avoid test failures on IRIX 6.5.
83258         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
83259         (main): Use it.
83260         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
83261         macros.
83262         (main): Use them.
83264 2007-03-25  Bruno Haible  <bruno@clisp.org>
83266         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
83267         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
83268         exists but doesn't work.
83269         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
83270         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
83271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
83272         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
83273         math.h.
83275 2007-03-25  Bruno Haible  <bruno@clisp.org>
83277         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
83278         returns inf. Needed on IRIX 6.5.
83280 2007-03-25  Bruno Haible  <bruno@clisp.org>
83282         * tests/test-frexpl.c: Include isnanl-nolibm.h.
83283         (main): Use isnanl instead of x != x idiom.
83284         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
83286         * tests/test-frexp.c: Include isnan.h.
83287         (main): Use isnan instead of x != x idiom.
83288         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
83290 2007-03-25  Bruno Haible  <bruno@clisp.org>
83292         * tests/test-frexp.c (NaN): New function/macro.
83293         (main): Use it instead of 0.0 / 0.0.
83294         * tests/test-isnan.c (NaN): New function/macro.
83295         (main): Use it instead of 0.0 / 0.0.
83296         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
83297         (test_function): Use it instead of 0.0 / 0.0.
83298         * tests/test-vasprintf-posix.c (NaN): New function/macro.
83299         (test_function): Use it instead of 0.0 / 0.0.
83300         * tests/test-snprintf-posix.h (NaN): New function/macro.
83301         (test_function): Use it instead of 0.0 / 0.0.
83302         * tests/test-sprintf-posix.h (NaN): New function/macro.
83303         (test_function): Use it instead of 0.0 / 0.0.
83304         * tests/test-fprintf-posix.h (NaN): New function/macro.
83305         (test_function): Use it instead of 0.0 / 0.0.
83306         * tests/test-printf-posix.h (NaN): New function/macro.
83307         (test_function): Use it instead of 0.0 / 0.0.
83309         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
83311 2007-03-25  Bruno Haible  <bruno@clisp.org>
83313         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
83315 2007-03-25  Bruno Haible  <bruno@clisp.org>
83317         * lib/regexec.c (merge_state_with_log): Make static.
83319 2007-03-25  Bruno Haible  <bruno@clisp.org>
83321         * lib/trigl.c (kernel_rem_pio2): Make static.
83323 2007-03-25  Bruno Haible  <bruno@clisp.org>
83325         * lib/sincosl.c (sincosl_table): Make static.
83327 2007-03-25  Bruno Haible  <bruno@clisp.org>
83329         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
83330         if the compiler does not support C99.
83332 2007-03-25  Bruno Haible  <bruno@clisp.org>
83334         * modules/time (Makefile.am): Ensure all rule action lines start with a
83335         tab.
83337 2007-03-24  Bruno Haible  <bruno@clisp.org>
83339         * modules/tsearch-tests: New file.
83340         * tests/test-tsearch.sh: New file.
83341         * tests/test-tsearch.c: New file, mostly copied from glibc.
83343         * modules/search-tests: New file.
83344         * tests/test-search.c: New file.
83346         * modules/search: New file.
83347         * lib/search_.h: New file, incorporating lib/tsearch.h.
83348         * m4/search_h.m4: New file.
83349         * lib/tsearch.h: Remove file.
83350         * lib/tsearch.c: Include search.h instead of tsearch.h.
83351         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
83352         HAVE_TSEARCH.
83353         * modules/tsearch (Files): Remove lib/tsearch.h.
83354         (Depends-on): Add search.
83355         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
83356         (Include): Change tsearch.h into search.h.
83358 2007-03-24  Bruno Haible  <bruno@clisp.org>
83360         * modules/fpucw: New file.
83361         * lib/fpucw.h: New file.
83362         * lib/frexp.c: Include fpucw.h.
83363         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
83364         (FUNC): Use them.
83365         * lib/printf-frexp.c: Include fpucw.h.
83366         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
83367         (FUNC): Use them.
83368         * lib/vasnprintf.c: Include fpucw.h.
83369         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
83370         'long double' calculations.
83371         * tests/test-frexpl.c: Include fpucw.h.
83372         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
83373         * tests/test-printf-frexpl.c: Include fpucw.h.
83374         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
83375         * modules/frexpl (Depends-on): Add fpucw.
83376         * modules/printf-frexpl (Depends-on): Likewise.
83377         * modules/fprintf-posix (Depends-on): Likewise.
83378         * modules/snprintf-posix (Depends-on): Likewise.
83379         * modules/sprintf-posix (Depends-on): Likewise.
83380         * modules/vasnprintf-posix (Depends-on): Likewise.
83381         * modules/vasprintf-posix (Depends-on): Likewise.
83382         * modules/vfprintf-posix (Depends-on): Likewise.
83383         * modules/vsnprintf-posix (Depends-on): Likewise.
83384         * modules/vsprintf-posix (Depends-on): Likewise.
83385         * modules/frexpl-tests (Depends-on): Likewise.
83386         * modules/printf-frexpl-tests (Depends-on): Likewise.
83388 2007-03-24  Bruno Haible  <bruno@clisp.org>
83390         * lib/float+.h: New file.
83391         * lib/isnan.c: Include float+.h.
83392         (SIZE): New macro.
83393         (FUNC): Compare only SIZE bytes of the value.
83394         * lib/vasnprintf.c: Include float+.h.
83395         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
83396         SIZEOF_LDBL or SIZEOF_DBL bytes.
83397         * modules/isnan-nolibm (Files): Add lib/float+.h.
83398         * modules/isnanl-nolibm (Files): Add lib/float+.h.
83399         * modules/isnanl (Files): Add lib/float+.h.
83400         * modules/vasnprintf (Files): Add lib/float+.h.
83402 2007-03-24  Bruno Haible  <bruno@clisp.org>
83404         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
83405         include isnanl-nolibm.h.
83407 2007-03-24  Bruno Haible  <bruno@clisp.org>
83409         * tests/test-read-file.c (main): Don't produce spurious output for
83410         expected situations. Make the test fail if it encountered unexpected
83411         results.
83413 2007-03-24  Bruno Haible  <bruno@clisp.org>
83415         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
83416         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
83418 2007-03-24  Bruno Haible  <bruno@clisp.org>
83420         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
83422 2007-03-24  Bruno Haible  <bruno@clisp.org>
83424         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
83425         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
83427         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
83428         * modules/utf8-ucs4: Turn into a symbolic link to module
83429         unistr/u8-mbtouc.
83431         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
83432         utf8-ucs4-unsafe.
83433         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
83434         unistr/u8-mbtouc-unsafe.
83436         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
83437         * modules/utf16-ucs4: Turn into a symbolic link to module
83438         unistr/u16-mbtouc.
83440         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
83441         utf16-ucs4-unsafe.
83442         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
83443         unistr/u16-mbtouc-unsafe.
83445         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
83446         * modules/ucs4-utf8: Turn into a symbolic link to module
83447         unistr/u8-ubtomb.
83449         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
83450         * modules/ucs4-utf16: Turn into a symbolic link to module
83451         unistr/u16-ubtomb.
83453 2007-03-24  Bruno Haible  <bruno@clisp.org>
83455         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
83456         Enable the function only if HAVE_INLINE.
83457         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
83458         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
83459         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
83460         Enable the function only if HAVE_INLINE.
83461         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
83462         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
83463         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
83464         Enable the function only if HAVE_INLINE.
83465         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
83466         Enable the function only if HAVE_INLINE.
83467         * modules/utf8-ucs4: Update.
83468         * modules/utf8-ucs4-unsafe: Update.
83469         * modules/utf16-ucs4: Update.
83470         * modules/utf16-ucs4-unsafe: Update.
83471         * modules/ucs4-utf8: Update.
83472         * modules/ucs4-utf16: Update.
83474 2007-03-24  Bruno Haible  <bruno@clisp.org>
83476         * lib/utf8-ucs4.h: Remove file.
83477         * lib/utf8-ucs4-unsafe.h: Remove file.
83478         * lib/utf16-ucs4.h: Remove file.
83479         * lib/utf16-ucs4-unsafe.h: Remove file.
83480         * lib/ucs4-utf8.h: Remove file.
83481         * lib/ucs4-utf16.h: Remove file.
83482         * lib/unistr.h: Include their previous contents.
83483         * m4/utf-ucs4.m4: Remove file.
83484         * m4/ucs4-utf.m4: Remove file.
83485         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
83486         (Depends-on): Add unistr/base.
83487         (configure.ac): Remove gl_UTF_UCS4.
83488         (Makefile.am): Update.
83489         (Include): Change to unistr.h.
83490         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
83491         (Depends-on): Add unistr/base.
83492         (configure.ac): Remove gl_UTF_UCS4.
83493         (Makefile.am): Update.
83494         (Include): Change to unistr.h.
83495         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
83496         (Depends-on): Add unistr/base.
83497         (configure.ac): Remove gl_UTF_UCS4.
83498         (Makefile.am): Update.
83499         (Include): Change to unistr.h.
83500         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
83501         (Depends-on): Add unistr/base.
83502         (configure.ac): Remove gl_UTF_UCS4.
83503         (Makefile.am): Update.
83504         (Include): Change to unistr.h.
83505         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
83506         (Depends-on): Add unistr/base.
83507         (configure.ac): Remove gl_UCS4_UTF.
83508         (Makefile.am): Update.
83509         (Include): Change to unistr.h.
83510         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
83511         (Depends-on): Add unistr/base.
83512         (configure.ac): Remove gl_UCS4_UTF.
83513         (Makefile.am): Update.
83514         (Include): Change to unistr.h.
83515         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
83516         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
83517         utf8-ucs4-unsafe.h.
83518         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
83519         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
83520         utf16-ucs4-unsafe.h.
83521         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
83522         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
83523         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
83524         * lib/unistr/u8-strchr.c: Likewise.
83525         * lib/unistr/u8-strrchr.c: Likewise.
83526         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
83527         * lib/unistr/u16-strchr.c: Likewise.
83528         * lib/unistr/u16-strrchr.c: Likewise.
83529         * lib/striconveh.c: Update.
83530         * lib/linebreak.c: Update.
83532 2007-03-24  Bruno Haible  <bruno@clisp.org>
83534         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
83535         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
83537 2007-03-22  Bruno Haible  <bruno@clisp.org>
83539         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
83541 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83543         * MODULES.html.sh (File system functions): New module write-any-file.
83544         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
83545         * m4/write-any-file.m4: New files.
83547 2007-03-23  Eric Blake  <ebb9@byu.net>
83549         * gnulib-tool: Rearrange space-tab sequences, since some editors
83550         like to eat them.
83552 2007-03-23  Eric Blake  <ebb9@byu.net>
83554         * lib/version-etc.c (version_etc_va): Update license wording to
83555         be more concise.  Recommended by Richard Stallman.
83557 2007-03-22  Bruno Haible  <bruno@clisp.org>
83559         * lib/poll.c (MSG_PEEK): New fallback definition.
83561 2007-03-22  Bruno Haible  <bruno@clisp.org>
83563         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
83564         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
83565         (main): Update.
83566         Fixes a compilation error on BeOS.
83568 2007-03-22  Bruno Haible  <bruno@clisp.org>
83570         * modules/frexpl-tests: New file.
83571         * tests/test-frexpl.c: New file.
83573         * modules/frexpl: New file.
83574         * m4/frexpl.m4: New file.
83575         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
83576         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
83577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
83578         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
83579         (Depends-on): Add frexpl. Remove isnanl-nolibm.
83580         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
83582 2007-03-22  Bruno Haible  <bruno@clisp.org>
83584         * lib/frexpl.c: Share code with lib/frexp.c.
83585         * modules/mathl (Files): Add lib/frexp.c.
83586         (Depends-on): Add isnanl-nolibm.
83588 2007-03-22  Bruno Haible  <bruno@clisp.org>
83590         * modules/printf-frexp (Files): Add m4/frexp.m4.
83591         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
83592         only if the found frexp function actually works.
83594 2007-03-22  Bruno Haible  <bruno@clisp.org>
83596         * lib/frexp.c: Remove older implementation that uses divisions.
83598 2007-03-21  Bruno Haible  <bruno@clisp.org>
83600         * modules/frexp-tests: New file.
83601         * tests/test-frexp.c: New file.
83603         * modules/frexp: New file.
83604         * lib/frexp.c: New file.
83605         * m4/frexp.m4: New file.
83606         * lib/math_.h (frexp): New declaration.
83607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
83608         REPLACE_FREXP.
83609         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
83611 2007-03-21  Bruno Haible  <bruno@clisp.org>
83613         * modules/isnanl-tests: New file.
83614         * tests/test-isnanl.c: New file.
83616         * modules/isnanl: New file.
83617         * lib/isnanl.h: New file.
83618         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
83619         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
83620         gl_FUNC_ISNANL_WORKS.
83621         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
83622         New macros.
83624 2007-03-21  Bruno Haible  <bruno@clisp.org>
83626         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
83627         lib/isnanl.h.
83628         (Include): Update.
83629         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
83630         * lib/vasnprintf.c: Update.
83631         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
83632         tests/test-isnanl.h, remove tests/test-isnanl.c.
83633         (Makefile.am): Update.
83634         * tests/test-isnanl-nolibm.c: New file.
83635         * tests/test-isnanl.h: New file.
83636         * tests/test-isnanl.c: Remove file.
83638 2007-03-21  Jim Meyering  <jim@meyering.net>
83640         When trying to open ".", treat ESTALE like EACCES.
83641         * lib/savewd.c (savewd_save): Resort to forking not just upon
83642         failure with EACCES, but also when errno is ESTALE.
83644 2007-03-20  Bruno Haible  <bruno@clisp.org>
83646         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
83647         Needed on AIX 5.1. Reported by Matthew Woehlke.
83649 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
83651         Suggestions by Bruno Haible:
83652         * lib/acl-internal.h: Include "gettext.h" rather than rolling
83653         our own.
83654         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
83655         * modules/acl (Depends-on): Add gettext.
83657 2007-03-19  Bruno Haible  <bruno@clisp.org>
83659         * modules/iconvme: Remove file.
83660         * lib/iconvme.h: Remove file.
83661         * lib/iconvme.c: Remove file.
83662         * m4/iconvme.m4: Remove file.
83664 2007-03-19  Bruno Haible  <bruno@clisp.org>
83666         * doc/relocatable-maint.texi: Break long shell script line.
83667         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
83669 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
83671         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
83672         handle file_has_acl.
83673         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
83674         * lib/acl.c: Move header inclusions and related macro defns into
83675         lib/acl-internal.h.
83676         (S_ISLNK): Remove defn, since that's now done for us.
83677         (file_has_acl): Move to lib/file-has-acl.c.
83678         Call acl_trivial if available.  This is the crucial part of the fix.
83679         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
83680         shared within the library.  Rewrite a bit, partly to make it compatible
83681         with the GNU coding style.
83682         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
83683         Remove unnecessary double-quotes.
83684         Don't test for acl_to_text; the build will catch that.
83685         Replace acl_entries if it doesn't exist and it is needed.
83686         Check for -lsec and acl_trivial (as used on Solaris 10).
83687         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
83688         lib/file-has-acl.c.
83689         (Depends-on): Add sys_stat, for S_ISLNK.
83691 2007-03-19  Ben Pfaff  <blp@gnu.org>
83693         * doc/gnulib.texi: Fix typos.
83694         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
83696 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
83698         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
83699         If size is zero here, buf must be zero.
83701 2007-03-19  Simon Josefsson  <simon@josefsson.org>
83703         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
83704         <bruno@clisp.org>.
83706 2007-03-18  Bruno Haible  <bruno@clisp.org>
83708         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
83709         Suggested by Eric Blake.
83711 2007-03-18  Ben Pfaff  <blp@gnu.org>
83713         * doc/relocatable.texi: Recommend using as prefix a directory
83714         that does not exist and will never be created.  Based on
83715         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
83716         and others.
83718 2007-03-17  Bruno Haible  <bruno@clisp.org>
83720         * lib/fchownat.c: Include lchown.h.
83722 2007-03-17  Bruno Haible  <bruno@clisp.org>
83724         Fix endless loop when the given allocated size was > INT_MAX.
83725         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
83726         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
83727         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
83728         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
83729         * lib/sprintf.c (sprintf): Likewise.
83731 2007-03-17  Bruno Haible  <bruno@clisp.org>
83733         * tests/test-argp-2.sh (func_compare): Output a context diff.
83735 2007-03-17  Bruno Haible  <bruno@clisp.org>
83737         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
83738         locale's decimal-point character.
83740 2007-03-17  Bruno Haible  <bruno@clisp.org>
83742         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
83743         before comparing it. Needed because on some platforms (e.g. x86) a
83744         'long double' occupies less bytes than sizeof (long double).
83746 2007-03-17  Bruno Haible  <bruno@clisp.org>
83748         * tests/test-crc.c (main): Make printf statements 64-bit clean.
83749         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
83750         * tests/test-getaddrinfo.c (simple): Likewise.
83751         * tests/test-read-file.c (main): Likewise.
83753 2007-03-17  Bruno Haible  <bruno@clisp.org>
83755         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
83757 2007-03-17  Bruno Haible  <bruno@clisp.org>
83759         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
83760         unused variable.
83762 2007-03-17  Bruno Haible  <bruno@clisp.org>
83764         * tests/test-c-strcasecmp.c: Include c-strcase.h.
83765         * tests/test-c-strncasecmp.c: Likewise.
83767 2007-03-17  Bruno Haible  <bruno@clisp.org>
83769         * modules/stdlib (Depends-on): Add unistd.
83770         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
83771         Needed for MacOS X 10.3.
83773 2007-03-17  Bruno Haible  <bruno@clisp.org>
83775         * lib/unistr/u-strdup.h: Include <stdlib.h>.
83777 2007-03-17  Bruno Haible  <bruno@clisp.org>
83779         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
83781 2007-03-17  Bruno Haible  <bruno@clisp.org>
83783         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
83784         to reflect files copied from gnulib (with or without modifications).
83785         Suggested by Jim Meyering.
83787 2007-03-17  Eric Blake  <ebb9@byu.net>
83789         * NEWS: Document stdlib change from 2007-02-18.
83791 2007-03-17  Jim Meyering  <jim@meyering.net>
83793         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
83794         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
83795         someone uses a name containing shell meta-characters.
83796         Reported by Alfred M. Szmidt.
83798         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
83800 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
83802         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
83803         and copy gettext configuration files only if configure.ac contains
83804         a use of AM_GNU_GETTEXT_VERSION.
83806 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
83808         * build-aux/bootstrap (gnulib_name): New variable.
83809         (gnulib_tool_options): Use it.
83811 2007-03-13  Simon Josefsson  <simon@josefsson.org>
83813         * tests/test-des.c: Use new namespace.
83815 2007-03-15  Bruno Haible  <bruno@clisp.org>
83817         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
83818         Reported by James Youngman <jay@gnu.org>.
83820 2007-03-15  Bruno Haible  <bruno@clisp.org>
83822         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
83823         declared prototype. Needed with cc on OSF/1 5.1.
83825 2007-03-15  Bruno Haible  <bruno@clisp.org>
83827         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
83828         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
83829         (struct gl_list_implementation): Add dispose_fn argument to the
83830         'create_empty', 'create' methods.
83831         (struct gl_list_impl_base): Add field 'dispose_fn'.
83832         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
83833         argument.
83834         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
83835         dispose_fn argument.
83836         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
83837         dispose_fn on the dropped values.
83838         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
83839         dispose_fn argument.
83840         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
83841         dropped values.
83842         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
83843         (gl_tree_remove_node): Call dispose_fn on the dropped value.
83844         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
83845         (gl_tree_remove_node): Call dispose_fn on the dropped value.
83846         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
83847         argument.
83848         (gl_tree_list_free): Call dispose_fn on the dropped values.
83849         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
83850         the dropped values.
83851         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
83852         Add dispose_fn argument.
83853         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
83854         Call dispose_fn on the dropped values.
83855         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
83856         Add dispose_fn argument.
83857         (gl_sublist_create): Initialize the 'dispose_fn' field.
83858         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
83859         * tests/test-array_list.c (main): Update.
83860         * tests/test-carray_list.c (main): Update.
83861         * tests/test-avltree_list.c (main): Update.
83862         * tests/test-rbtree_list.c (main): Update.
83863         * tests/test-avltreehash_list.c (main): Update.
83864         * tests/test-rbtreehash_list.c (main): Update.
83865         * tests/test-linked_list.c (main): Update.
83866         * tests/test-linkedhash_list.c (main): Update.
83867         * tests/test-array_oset.c (main): Update.
83869 2007-03-15  Bruno Haible  <bruno@clisp.org>
83871         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
83872         (gl_oset_create_empty): Add dispose_fn argument.
83873         (struct gl_oset_implementation): Add dispose_fn argument to
83874         'create_empty' method.
83875         (struct gl_oset_impl_base): Add dispose_fn field.
83876         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
83877         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
83878         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
83879         values.
83880         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
83881         (gl_tree_oset_free): Call dispose_fn on the dropped values.
83882         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
83883         dropped value.
83884         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
83885         dropped value.
83886         * tests/test-array_oset.c (main): Update.
83887         * tests/test-avltree_oset.c (main): Update.
83888         * tests/test-rbtree_oset.c (main): Update.
83889         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
83891 2007-03-13  Bruno Haible  <bruno@clisp.org>
83893         * tests/test-stdbool.c (i): Update after last patch.
83895 2007-03-12  Bruno Haible  <bruno@clisp.org>
83897         * lib/quotearg.c: Include <wctype.h> early, before the definition of
83898         the iswprint macro. Needed on Solaris 2.5.1.
83900 2007-03-12  Bruno Haible  <bruno@clisp.org>
83902         * tests/test-printf-frexp.c (main): Declare x as volatile.
83904 2007-03-12  Simon Josefsson  <simon@josefsson.org>
83906         * doc/gnulib.texi (Build robot for gnulib): New section.
83908 2007-03-12  Jim Meyering  <jim@meyering.net>
83910         * build-aux/bootstrap: New file.
83911         * build-aux/bootstrap.conf: New file, from coreutils.
83913 2007-03-11  Bruno Haible  <bruno@clisp.org>
83915         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
83917 2007-03-12  Simon Josefsson  <simon@josefsson.org>
83919         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
83920         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
83921         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
83923 2007-03-11  Bruno Haible  <bruno@clisp.org>
83925         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
83926         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
83928 2007-03-11  Bruno Haible  <bruno@clisp.org>
83930         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
83931         formula. Needed for SunPRO C 5.0.
83933 2007-03-11  Bruno Haible  <bruno@clisp.org>
83935         * modules/long-options (Depends-on): Add getopt.
83937 2007-03-11  Bruno Haible  <bruno@clisp.org>
83939         * modules/modechange (Depends-on): Add stdbool.
83941 2007-03-11  Bruno Haible  <bruno@clisp.org>
83943         * modules/i-ring (Depends-on): Add stdbool.
83945 2007-03-11  Bruno Haible  <bruno@clisp.org>
83947         * modules/gc-des (Depends-on): Add stdbool.
83949 2007-03-11  Bruno Haible  <bruno@clisp.org>
83951         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
83953 2007-03-11  Bruno Haible  <bruno@clisp.org>
83955         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
83957 2007-03-11  Bruno Haible  <bruno@clisp.org>
83959         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
83961 2007-03-11  Bruno Haible  <bruno@clisp.org>
83963         * lib/vasnprintf.c (sprintf): Undefine.
83965 2007-03-11  Bruno Haible  <bruno@clisp.org>
83967         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
83968         initializers in SunPRO C and Compaq C compilers.
83970 2007-03-11  Bruno Haible  <bruno@clisp.org>
83972         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
83973         decrementing code ANSI C compliant.
83975 2007-03-11  Bruno Haible  <bruno@clisp.org>
83977         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
83978         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
83980 2007-03-11  Bruno Haible  <bruno@clisp.org>
83982         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
83983         <stdbool.h> substitute doesn't pass.
83985 2007-03-11  Bruno Haible  <bruno@clisp.org>
83987         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
83989 2007-03-11  Bruno Haible  <bruno@clisp.org>
83991         * gnulib-tool (func_create_megatestdir): Create also an autobuild
83992         script, for submission to autobuild.josefsson.org.
83994 2007-03-10  Bruno Haible  <bruno@clisp.org>
83996         * modules/canonicalize-lgpl-tests: New file.
83997         * tests/test-canonicalize-lgpl.sh: New file.
83998         * tests/test-canonicalize-lgpl.c: New file.
84000         * modules/c-strcase-tests: New file.
84001         * tests/test-c-strcase.sh: New file.
84002         * tests/test-c-strcasecmp.c: New file.
84003         * tests/test-c-strncasecmp.c: New file.
84005         * modules/atexit-tests: New file.
84006         * tests/test-atexit.sh: New file.
84007         * tests/test-atexit.c: New file.
84009 2007-03-10  Bruno Haible  <bruno@clisp.org>
84011         * tests/test-binary-io.sh: Use temporary filenames that are not so
84012         likely to clash with those of other tests (in a parallel make).
84013         * tests/test-binary-io.c: Likewise.
84015 2007-03-10  Bruno Haible  <bruno@clisp.org>
84017         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
84018         fallback; use #error instead.
84019         Suggested by Simon Josefsson.
84021 2007-03-10  Bruno Haible  <bruno@clisp.org>
84023         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
84024         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
84025         first and the last.
84027 2007-03-10  Bruno Haible  <bruno@clisp.org>
84029         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
84031 2007-03-10  Bruno Haible  <bruno@clisp.org>
84033         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
84034         "make distcheck".
84035         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
84036         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
84037         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
84039 2007-03-10  Bruno Haible  <bruno@clisp.org>
84041         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
84042         variable.
84043         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
84044         variable.
84046 2007-03-09  Eric Blake  <ebb9@byu.net>
84047         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
84049         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
84050         types are not being provided by gnulib.
84051         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
84052         types are supported.
84054 2007-03-10  Bruno Haible  <bruno@clisp.org>
84056         * lib/stdio_.h (__attribute__): New macro.
84057         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
84058         vsprintf): Specify __attribute__ __format__ for GCC.
84059         Suggested by Eric Blake.
84061 2007-03-09  Bruno Haible  <bruno@clisp.org>
84063         * modules/printf-posix-tests: New file.
84064         * tests/test-printf-posix.sh: New file.
84065         * tests/test-printf-posix.c: New file.
84067         * modules/printf-posix: New file.
84068         * lib/printf.c: New file.
84069         * m4/printf-posix-rpl.m4: New file.
84070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
84071         REPLACE_PRINTF.
84072         * lib/stdio_.h (printf): New declaration.
84073         (format, __format__, ____printf____, ____scanf____, ____strftime____,
84074         ____strfmon____): New macros.
84075         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
84076         REPLACE_PRINTF.
84078 2007-03-09  Bruno Haible  <bruno@clisp.org>
84080         * tests/test-vasnprintf-posix2.sh: New file.
84081         * tests/test-vasnprintf-posix2.c: New file.
84082         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
84083         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
84084         (Makefile.am): Activate test-vasnprintf-posix2.sh.
84086         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
84087         a locale dependent decimal point, rather than always '.'.
84089 2007-03-09  Eric Blake  <ebb9@byu.net>
84091         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
84092         spite of platforms like Tandem/NSK that define it to -1.
84094 2007-03-08  Bruno Haible  <bruno@clisp.org>
84096         * modules/vprintf-posix-tests: New file.
84097         * tests/test-vprintf-posix.sh: New file.
84098         * tests/test-vprintf-posix.c: New file.
84099         * tests/test-printf-posix.h: New file.
84101         * modules/vprintf-posix: New file.
84102         * lib/vprintf.c: New file.
84103         * m4/vprintf-posix.m4: New file.
84104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
84105         REPLACE_VPRINTF.
84106         * lib/stdio_.h (vprintf): New declaration.
84107         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
84108         REPLACE_VPRINTF.
84110 2007-03-08  Bruno Haible  <bruno@clisp.org>
84112         * modules/fprintf-posix-tests: New file.
84113         * tests/test-fprintf-posix.sh: New file.
84114         * tests/test-fprintf-posix.c: New file.
84116         * modules/fprintf-posix: New file.
84117         * lib/fprintf.c: New file.
84118         * m4/fprintf-posix.m4: New file.
84119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
84120         REPLACE_FPRINTF.
84121         * lib/stdio_.h (fprintf): New declaration.
84122         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
84123         REPLACE_FPRINTF.
84125 2007-03-08  Bruno Haible  <bruno@clisp.org>
84127         * modules/vfprintf-posix-tests: New file.
84128         * tests/test-vfprintf-posix.sh: New file.
84129         * tests/test-vfprintf-posix.c: New file.
84130         * tests/test-fprintf-posix.h: New file.
84131         * tests/test-fprintf-posix.out: New file.
84133         * modules/vfprintf-posix: New file.
84134         * lib/vfprintf.c: New file.
84135         * m4/vfprintf-posix.m4: New file.
84136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
84137         REPLACE_VFPRINTF.
84138         * lib/stdio_.h (vfprintf): New declaration.
84139         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
84140         REPLACE_VFPRINTF.
84142 2007-03-08  Bruno Haible  <bruno@clisp.org>
84144         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
84146 2007-03-08  Bruno Haible  <bruno@clisp.org>
84148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
84149         instead of 'expr' invocations.
84150         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84151         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84152         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84153         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84154         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84155         Suggested by Paul Eggert.
84157 2007-03-08  Bruno Haible  <bruno@clisp.org>
84159         * modules/fseterr-tests: New file.
84160         * tests/test-fseterr.c: New file.
84162         * modules/fseterr: New file.
84163         * lib/fseterr.h: New file.
84164         * lib/fseterr.c: New file.
84166 2007-03-08  Bruno Haible  <bruno@clisp.org>
84168         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
84169         * lib/getopt_.h: Likewise.
84170         * lib/mbswidth.h: Likewise.
84171         * lib/setenv.h: Likewise.
84172         * lib/vasnprintf.h: Likewise.
84173         * lib/vasprintf.h: Likewise.
84174         * lib/verror.h: Likewise.
84175         * lib/xsetenv.h: Likewise.
84176         * lib/xvasprintf.h: Likewise.
84178 2007-03-08  Jim Meyering  <jim@meyering.net>
84180         * users.txt: Add parted.
84182         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
84184 2007-03-07  Bruno Haible  <bruno@clisp.org>
84186         * m4/printf.m4: Make the shell script snippets copy&pastable.
84188 2007-03-02  Bruno Haible  <bruno@clisp.org>
84190         * lib/netinet_in_.h: New file.
84191         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
84192         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
84193         * modules/netinet_in (Files): Add lib/netinet_in_.h.
84194         (Depends-on): Add absolute-header.
84195         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
84196         into netinet/in.h.
84198 2007-03-03  Bruno Haible  <bruno@clisp.org>
84200         * lib/sys_select_.h: New file.
84201         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
84202         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
84203         * modules/sys_select (Files): Add lib/sys_select_.h.
84204         (Depends-on): Add absolute-header.
84205         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
84206         into sys/select.h.
84208 2007-03-02  Bruno Haible  <bruno@clisp.org>
84210         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
84211         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
84212         values.
84213         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
84214         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
84215         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
84216         * modules/sys_socket (Depends-on): Add absolute-header.
84217         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
84218         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
84219         (Include): Remove requirement of inclusion of <sys/types.h>.
84221 2007-03-02  Bruno Haible  <bruno@clisp.org>
84223         * lib/byteswap_.h (bswap_32): Fix formula.
84225 2007-03-06  Bruno Haible  <bruno@clisp.org>
84227         * modules/sprintf-posix-tests: New file.
84228         * tests/test-sprintf-posix.c: New file.
84230         * modules/sprintf-posix: New file.
84231         * lib/sprintf.c: New file.
84232         * m4/sprintf-posix.m4: New file.
84233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
84234         REPLACE_SPRINTF.
84235         * lib/stdio_.h (sprintf): New declaration.
84236         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
84237         REPLACE_SPRINTF.
84239 2007-03-06  Bruno Haible  <bruno@clisp.org>
84241         * modules/vsprintf-posix-tests: New file.
84242         * tests/test-vsprintf-posix.c: New file.
84243         * tests/test-sprintf-posix.h: New file.
84245         * modules/vsprintf-posix: New file.
84246         * lib/vsprintf.c: New file.
84247         * m4/vsprintf-posix.m4: New file.
84248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
84249         REPLACE_VSPRINTF.
84250         * lib/stdio_.h (vsprintf): New declaration.
84251         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
84252         REPLACE_VSPRINTF.
84254 2007-03-06  Bruno Haible  <bruno@clisp.org>
84256         * modules/vsnprintf (Depend-on): Remove minmax.
84258 2007-03-06  Bruno Haible  <bruno@clisp.org>
84260         * modules/snprintf-posix-tests: New file.
84261         * tests/test-snprintf-posix.c: New file.
84263         * modules/snprintf-posix: New file.
84264         * m4/snprintf-posix.m4: New file.
84265         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
84266         gl_FUNC_SNPRINTF.
84267         (gl_FUNC_SNPRINTF): Invoke it.
84268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
84269         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
84270         is set.
84271         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
84273 2007-03-06  Bruno Haible  <bruno@clisp.org>
84275         * modules/vsnprintf-posix-tests: New file.
84276         * tests/test-vsnprintf-posix.c: New file.
84277         * tests/test-snprintf-posix.h: New file.
84279         * modules/vsnprintf-posix: New file.
84280         * m4/vsnprintf-posix.m4: New file.
84281         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
84282         gl_FUNC_VSNPRINTF.
84283         (gl_FUNC_VSNPRINTF): Invoke it.
84284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
84285         * lib/stdio_.h (vsnprintf): Define as a replacement if
84286         REPLACE_VSNPRINTF is set.
84287         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
84289 2007-03-06  Bruno Haible  <bruno@clisp.org>
84291         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
84292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
84294 2007-03-06  Bruno Haible  <bruno@clisp.org>
84296         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
84297         (asinl): Declare also if HAVE_DECL_ASINL is set.
84298         (atanl): Declare also if HAVE_DECL_ATANL is set.
84299         (ceill): Declare also if HAVE_DECL_CEILL is set.
84300         (cosl): Declare also if HAVE_DECL_COSL is set.
84301         (expl): Declare also if HAVE_DECL_EXPL is set.
84302         (floorl): Declare also if HAVE_DECL_FLOORL is set.
84303         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
84304         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
84305         (logl): Declare also if HAVE_DECL_LOGL is set.
84306         (sinl): Declare also if HAVE_DECL_SINL is set.
84307         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
84308         (tanl): Declare also if HAVE_DECL_TANL is set.
84309         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
84310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
84311         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
84312         declaration of frexpl, ldexpl.
84313         * modules/printf-frexpl (Depends-on): Add math.
84314         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
84316 2007-03-05  Bruno Haible  <bruno@clisp.org>
84318         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
84319         frexpl and ldexpl are declared.
84320         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
84322 2007-03-05  Bruno Haible  <bruno@clisp.org>
84324         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
84325         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
84327 2007-03-05  Bruno Haible  <bruno@clisp.org>
84329         * lib/stdio_.h: Include <stddef.h>.
84331 2007-03-05  Bruno Haible  <bruno@clisp.org>
84333         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
84335 2007-03-05  Bruno Haible  <bruno@clisp.org>
84337         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
84338         NetBSD 4, from Ralf Wildenhues.
84340 2007-03-04  Bruno Haible  <bruno@clisp.org>
84342         * lib/vasprintf.h: Update #if logic for the case when the functions
84343         exist but are overridden.
84345 2007-03-04  Bruno Haible  <bruno@clisp.org>
84347         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
84348         implementations: glibc-2.4 and MacOS X 10.3.
84349         * tests/test-vasnprintf-posix.c (test_function): Test also the case
84350         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
84351         * tests/test-vasprintf-posix.c (test_function): Likewise.
84353 2007-03-04  Bruno Haible  <bruno@clisp.org>
84355         * modules/vasprintf-posix-tests: New file.
84356         * tests/test-vasprintf-posix.c: New file.
84358         * modules/vasprintf-posix: New file.
84359         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
84360         defined.
84361         * m4/vasprintf-posix.m4: New file.
84362         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
84363         gl_FUNC_VASPRINTF.
84364         (gl_FUNC_VASPRINTF): Invoke it.
84365         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
84366         here.
84367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
84369 2007-03-04  Bruno Haible  <bruno@clisp.org>
84371         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
84372         REPLACE_GETTIMEOFDAY.
84373         * modules/sys_time (Makefile.am): Likewise.
84374         * m4/sys_time_h.m4: Likewise.
84375         * m4/gettimeofday.m4: Likewise.
84377 2007-03-04  Bruno Haible  <bruno@clisp.org>
84379         * modules/vasnprintf-posix-tests: New file.
84380         * tests/test-vasnprintf-posix.c: New file.
84382         * modules/vasnprintf-posix: New file.
84383         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
84384         printf-frexpl.h.
84385         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
84386         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
84387         REPLACE_VASNPRINTF is defined.
84388         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
84389         gl_FUNC_VASNPRINTF.
84390         (gl_FUNC_VASNPRINTF): Invoke it.
84391         * m4/vasnprintf-posix.m4: New file.
84392         * m4/printf.m4: New file.
84394 2007-03-04  Bruno Haible  <bruno@clisp.org>
84396         Compile progreloc.c only if --enable-relocatable is specified.
84397         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
84398         if --enable-relocatable was specified.
84399         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
84400         lib_SOURCES.
84402 2007-03-04  Jim Meyering  <jim@meyering.net>
84404         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
84405         Use it consistently, rather than enumerating errno constants.
84407 2007-03-04  Bruno Haible  <bruno@clisp.org>
84409         * modules/xvasprintf-tests: New file.
84410         * tests/test-xvasprintf.c: New file.
84412         * modules/vasprintf-tests: New file.
84413         * tests/test-vasprintf.c: New file.
84415         * modules/vasnprintf-tests: New file.
84416         * tests/test-vasnprintf.c: New file.
84418         * modules/vsnprintf-tests: New file.
84419         * tests/test-vsnprintf.c: New file.
84421         * modules/snprintf-tests: New file.
84422         * tests/test-snprintf.c: New file.
84424 2007-03-04  Bruno Haible  <bruno@clisp.org>
84426         Compile relocatable.c only if --enable-relocatable is specified.
84427         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
84428         gl_RELOCATABLE_LIBRARY.
84429         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
84430         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
84431         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
84432         gl_RELOCATABLE_LIBRARY.
84433         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
84434         (Makefile.am): Remove lib_SOURCES.
84435         * modules/relocatable-lib-lgpl (configure.ac): Invoke
84436         gl_RELOCATABLE_LIBRARY.
84437         (Makefile.am): Remove lib_SOURCES.
84438         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
84439         always.
84440         * modules/relocatable-prog-wrapper (configure.ac): Invoke
84441         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
84443 2007-03-04  Bruno Haible  <bruno@clisp.org>
84445         * modules/argmatch-tests: New file.
84446         * tests/test-argmatch.c: New file.
84448         * tests/test-allocsa.c (main): Halve the number of loop runs.
84450         * modules/alloca-opt-tests: New file.
84451         * tests/test-alloca-opt.c: New file.
84453 2007-03-04  Jim Meyering  <jim@meyering.net>
84455         Work around difference between Linux ACLs and Solaris 10 ZFS.
84456         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
84457         for EINVAL.
84459 2007-03-03  Bruno Haible  <bruno@clisp.org>
84461         * modules/relocatable-prog (Depends-on): Add back progreloc's
84462         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
84464 2007-03-03  Bruno Haible  <bruno@clisp.org>
84466         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
84467         * modules/relocatable-lib: New file.
84469 2007-03-03  Bruno Haible  <bruno@clisp.org>
84471         * modules/relocatable-prog: Renamed from modules/relocatable.
84472         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
84474 2007-03-03  Bruno Haible  <bruno@clisp.org>
84476         * modules/relocatable-script (Files): Add doc/relocatable.texi,
84477         m4/relocatable-lib.m4.
84478         (Depends-on): Remove 'relocatable'.
84479         (configure.ac): Add gl_RELOCATABLE_NOP.
84481 2007-03-03  Bruno Haible  <bruno@clisp.org>
84483         * modules/relocatable-prog-wrapper: New file.
84484         * modules/relocatable (Depends-on): Add it. Remove all other
84485         dependencies except progname.
84486         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
84488         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
84489         (gl_FUNC_STRERROR): Nop.
84490         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
84492         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
84493         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
84495         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
84496         (gl_FUNC_READLINK): Update.
84498         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
84500 2007-03-03  Bruno Haible  <bruno@clisp.org>
84502         * lib/xreadlink.c: Include <unistd.h> unconditionally.
84503         * modules/xreadlink (Depends-on): Add unistd.
84504         * modules/xreadlink-with-size (Depends-on): Likewise.
84506 2007-03-03  Bruno Haible  <bruno@clisp.org>
84508         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
84509         extracted from gt_FUNC_SETENV.
84510         (gt_FUNC_SETENV): Remove macro.
84511         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
84512         remove gt_FUNC_SETENV.
84514 2007-03-03  Bruno Haible  <bruno@clisp.org>
84516         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
84517         ENABLE_RELOCATABLE here.
84518         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
84520 2007-03-03  Bruno Haible  <bruno@clisp.org>
84522         * modules/rbtreehash-list-tests (Depends-on): Add progname.
84523         * tests/test-rbtreehash_list.c: Include progname.h.
84524         (main): Call set_program_name.
84526         * modules/rbtree-oset-tests (Depends-on): Add progname.
84527         * tests/test-rbtree_oset.c: Include progname.h.
84528         (main): Call set_program_name.
84530         * modules/rbtree-list-tests (Depends-on): Add progname.
84531         * tests/test-rbtree_list.c: Include progname.h.
84532         (main): Call set_program_name.
84534         * modules/linked-list-tests (Depends-on): Add progname.
84535         * tests/test-linked_list.c: Include progname.h.
84536         (main): Call set_program_name.
84538 2007-03-03  Bruno Haible  <bruno@clisp.org>
84540         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
84541         All uses of __restrict changed to _Restrict_.
84542         * lib/glob_.h (__restrict): Remove macro.
84544 2007-03-02  Bruno Haible  <bruno@clisp.org>
84546         * modules/gettext (configure.ac): Require gettext infrastructure
84547         from version 0.16.1.
84549 2007-03-02  Bruno Haible  <bruno@clisp.org>
84551         * modules/linkedhash-list-tests (Depends-on): Add progname.
84552         * tests/test-linkedhash_list.c: Include progname.h.
84553         (main): Call set_program_name.
84555         * modules/carray-list-tests (Depends-on): Add progname.
84556         * tests/test-carray_list.c: Include progname.h.
84557         (main): Call set_program_name.
84559         * modules/avltreehash-list-tests (Depends-on): Add progname.
84560         * tests/test-avltreehash_list.c: Include progname.h.
84561         (main): Call set_program_name.
84563         * modules/avltree-oset-tests (Depends-on): Add progname.
84564         * tests/test-avltree_oset.c: Include progname.h.
84565         (main): Call set_program_name.
84567         * modules/avltree-list-tests (Depends-on): Add progname.
84568         * tests/test-avltree_list.c: Include progname.h.
84569         (main): Call set_program_name.
84571         * modules/array-oset-tests (Depends-on): Add progname.
84572         * tests/test-array_oset.c: Include progname.h.
84573         (main): Call set_program_name.
84575         * modules/array-list-tests (Depends-on): Add progname.
84576         * tests/test-array_list.c: Include progname.h.
84577         (main): Call set_program_name.
84579         * modules/argp-tests (Depends-on): Add progname.
84580         * tests/test-argp.c: Include argp.h first. Include progname.h.
84581         (main): Call set_program_name.
84583 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
84585         * doc/gnulib-tool.texi (Initial import): Reword description of
84586         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
84587         limited effect even if defined after the first system include.
84589 2007-03-01  Bruno Haible  <bruno@clisp.org>
84591         * build-aux/config.libpath: Update to libtool-1.5.22.
84592         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84594 2007-03-01  Bruno Haible  <bruno@clisp.org>
84596         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
84597         foo_CFLAGS.
84598         Reported by Ralf Wildenhues.
84600 2007-03-01  Bruno Haible  <bruno@clisp.org>
84602         * build-aux/install-reloc: Remove object files left over by some
84603         compilers.
84604         Reported by Ralf Wildenhues.
84606 2007-03-01  Bruno Haible  <bruno@clisp.org>
84608         * build-aux/install-reloc: Break long lines.
84610 2007-03-01  Bruno Haible  <bruno@clisp.org>
84612         * doc/relocatable.texi: Document that it may not work on OpenBSD.
84613         Reported by Ralf Wildenhues.
84615 2007-03-01  Bruno Haible  <bruno@clisp.org>
84617         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
84618         include ordering constraints.
84620 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84622         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
84623         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
84624         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
84625         as another example.
84626         * lib/time_.h: Fix misspelling.
84627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
84628         Require gl_HEADER_TIME_H_DEFAULTS.
84629         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
84630         * m4/time_r.m4 (gl_TIME_R): Likewise.
84631         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
84633 2007-03-01  Bruno Haible  <bruno@clisp.org>
84635         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
84636         * m4/utimens.m4 (gl_UTIMENS): Likewise.
84638 2007-03-01  Jim Meyering  <jim@meyering.net>
84640         * modules/xreadlink (Maintainer): Add my name.
84641         * modules/xreadlink-with-size (Depends-on): Alphabetize.
84643 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
84644             Bruno Haible  <bruno@clisp.org>
84646         * build-aux/install-reloc: Compile also c-ctype.c.
84647         * build-aux/relocatable.sh.in: New file.
84648         * doc/relocatable.texi: New file.
84649         * doc/relocatable-maint.texi: New file.
84650         * doc/gnulib.texi: Include relocatable-maint.texi.
84651         * lib/progreloc.c: Include unistd.h unconditionally.
84652         * lib/relocwrapper.c: Include unistd.h unconditionally.
84653         Include c-ctype.h.
84654         (add_dotbin): Use c_tolower.
84655         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
84656         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
84657         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
84658         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
84659         to m4/relocatable-lib.m4.
84660         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
84661         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
84662         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
84663         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
84664         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
84665         * modules/relocatable: New file.
84666         * modules/relocatable-lib: New file.
84667         * modules/relocatable-script: New file.
84669 2007-02-28  Bruno Haible  <bruno@clisp.org>
84671         Import --enable-relocatable infrastructure.
84672         * build-aux/config.libpath: New file, from GNU gettext.
84673         * build-aux/install-reloc: New file, from GNU gettext.
84674         * build-aux/reloc-ldflags: New file, from GNU gettext.
84675         * lib/relocatable.h: New file, from GNU gettext.
84676         * lib/relocatable.c: New file, from GNU gettext.
84677         * lib/relocwrapper.c: New file, from GNU gettext.
84678         * m4/relocatable.m4: New file, from GNU gettext.
84680 2007-02-28  Bruno Haible  <bruno@clisp.org>
84682         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
84684         * modules/xreadlink: New file, from GNU gettext with modifications.
84685         * lib/xreadlink.c: New file, from GNU gettext.
84686         * lib/xreadlink.h: Add comments.
84687         (xreadlink): New declaration.
84689         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
84690         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
84691         lib/xreadlink-with-size.c.
84692         (configure.ac): Remove gl_XREADLINK invocation.
84693         (Makefile.am): Augment lib_SOURCES.
84694         * m4/xreadlink.m4: Remove file.
84695         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
84696         (xreadlink_with_size): Renamed from xreadink.
84697         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
84698         * modules/canonicalize (Depends-on): Replace xreadlink with
84699         xreadlink-with-size.
84700         * lib/canonicalize.c (canonicalize_filename_mode): Update.
84702 2007-02-25  Jim Meyering  <jim@meyering.net>
84704         * build-aux/announce-gen: When complaining about excess arguments,
84705         list them.
84707 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84709         * README: Document signed integer overflow situation more
84710         accurately.
84712 2007-02-25  Bruno Haible  <bruno@clisp.org>
84714         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
84715         'a' or 'A' conversion.
84717 2007-02-25  Bruno Haible  <bruno@clisp.org>
84719         * modules/filename: Renamed from modules/pathname.
84720         (Files): Replace lib/pathname.h with lib/filename.h. Replace
84721         lib/concatpath.c with lib/concat-filename.c.
84722         (Makefile.am): Update.
84723         (Include): Replace pathname.h with filename.h.
84724         * lib/filename.h: Renamed from lib/pathname.h.
84725         (concatenated_filename): Renamed from concatenated_pathname.
84726         * lib/concat-filename.c: Renamed from lib/concatpath.c.
84727         (concatenated_filename): Renamed from concatenated_pathname.
84728         * lib/findprog.c: Include filename.h instead of pathname.h.
84729         (find_in_path): Update.
84730         * lib/javacomp.c: Include filename.h instead of pathname.h.
84731         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
84732         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
84733         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
84734         is_oldgcj_14_13_usable, is_javac_usable): Update.
84735         * lib/javaexec.c: Include filename.h instead of pathname.h.
84736         (execute_java_class): Update.
84737         * modules/findprog: Update.
84738         * modules/javacomp: Update.
84739         * modules/javaexec: Update.
84740         * MODULES.html.sh (File system functions): Add 'filename', remove
84741         'pathname'.
84743 2007-02-25  Bruno Haible  <bruno@clisp.org>
84745         * modules/printf-frexpl-tests: New file.
84746         * tests/test-printf-frexpl.c: New file.
84748         * modules/printf-frexpl: New file.
84749         * lib/printf-frexpl.h: New file.
84750         * lib/printf-frexpl.c: New file.
84751         * m4/printf-frexpl.m4: New file.
84753 2007-02-25  Bruno Haible  <bruno@clisp.org>
84755         * modules/printf-frexp-tests: New file.
84756         * tests/test-printf-frexp.c: New file.
84758         * modules/printf-frexp: New file.
84759         * lib/printf-frexp.h: New file.
84760         * lib/printf-frexp.c: New file.
84761         * m4/printf-frexp.m4: New file.
84763 2007-02-25  Bruno Haible  <bruno@clisp.org>
84765         Assume automake >= 1.10 for the tests.
84766         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
84767         * modules/arctwo-tests: Likewise.
84768         * modules/argp-tests: Likewise.
84769         * modules/avltree-list-tests: Likewise.
84770         * modules/avltree-oset-tests: Likewise.
84771         * modules/avltreehash-list-tests: Likewise.
84772         * modules/carray-list-tests: Likewise.
84773         * modules/crc-tests: Likewise.
84774         * modules/des-tests: Likewise.
84775         * modules/gc-arcfour-tests: Likewise.
84776         * modules/gc-arctwo-tests: Likewise.
84777         * modules/gc-des-tests: Likewise.
84778         * modules/gc-hmac-md5-tests: Likewise.
84779         * modules/gc-hmac-sha1-tests: Likewise.
84780         * modules/gc-md2-tests: Likewise.
84781         * modules/gc-md4-tests: Likewise.
84782         * modules/gc-md5-tests: Likewise.
84783         * modules/gc-pbkdf2-sha1-tests: Likewise.
84784         * modules/gc-rijndael-tests: Likewise.
84785         * modules/gc-sha1-tests: Likewise.
84786         * modules/gc-tests: Likewise.
84787         * modules/getaddrinfo-tests: Likewise.
84788         * modules/hmac-md5-tests: Likewise.
84789         * modules/hmac-sha1-tests: Likewise.
84790         * modules/linked-list-tests: Likewise.
84791         * modules/linkedhash-list-tests: Likewise.
84792         * modules/lock-tests: Likewise.
84793         * modules/md2-tests: Likewise.
84794         * modules/md4-tests: Likewise.
84795         * modules/md5-tests: Likewise.
84796         * modules/rbtree-list-tests: Likewise.
84797         * modules/rbtree-oset-tests: Likewise.
84798         * modules/rbtreehash-list-tests: Likewise.
84799         * modules/read-file-tests: Likewise.
84800         * modules/rijndael-tests: Likewise.
84801         * modules/stdint-tests: Likewise.
84802         * modules/tls-tests: Likewise.
84804 2007-02-24  Bruno Haible  <bruno@clisp.org>
84806         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
84807         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
84808         function; instead check whether isnan with a double argument links.
84809         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
84810         function; instead check whether isnan with a 'long double' argument
84811         links.
84812         Reported by Eric Blake <ebb9@byu.net>.
84814 2007-02-24  Bruno Haible  <bruno@clisp.org>
84816         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
84817         defined.
84818         * lib/isnanl.c: Remove all code. Just include isnan.c.
84819         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
84821 2007-02-25  Jim Meyering  <jim@meyering.net>
84823         Avoid conflicting types for 'unsetenv' on FreeBSD.
84824         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
84825         conflicting with FreeBSD's (5.0 and 6.1) function declaration
84826         in stdlib.h.
84828 2007-02-24  Bruno Haible  <bruno@clisp.org>
84830         * modules/isnanl-nolibm-tests: New file.
84831         * tests/test-isnanl.c: New file.
84833         * modules/isnanl-nolibm: New file.
84834         * lib/isnanl.h: New file.
84835         * lib/isnanl.c: New file.
84836         * m4/isnanl.m4: New file.
84838 2007-02-24  Bruno Haible  <bruno@clisp.org>
84840         * modules/isnan-nolibm-tests: New file.
84841         * tests/test-isnan.c: New file.
84843         * modules/isnan-nolibm: New file.
84844         * lib/isnan.h: New file.
84845         * lib/isnan.c: New file.
84846         * m4/isnan.m4: New file.
84848 2007-02-24  Bruno Haible  <bruno@clisp.org>
84850         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
84851         assume that an exponent fits in 20 bits.
84853 2007-02-24  Jim Meyering  <jim@meyering.net>
84855         * m4/regex.m4: Update the description of the configure-time option,
84856         --without-included-regex, to state accurately what the defaults are,
84857         and perhaps to give people an idea why using this option is risky.
84859 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
84861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
84862         loops on small arguments.  This attempts to avoid the problem
84863         Bruno Haible reported for AIX 4.3.2 in
84864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
84866 2007-02-23  Bruno Haible  <bruno@clisp.org>
84868         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
84869         Needed for help2man.
84871 2007-02-23  Karl Berry  <karl@gnu.org>
84873         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
84874         exists, foo.h should be cvs-ignored, not committed.
84876 2007-02-23  Eric Blake  <ebb9@byu.net>
84878         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
84879         * lib/stat-time.h (includes): Likewise.
84880         * lib/utimecmp.c (includes): Likewise.
84881         * lib/utimens.h (includes): Likewise.
84882         * lib/getdate.y (includes): Also include "timespec.h" for use
84883         internal to the module.
84884         * modules/utimens (Depends-on): Revert yesterday's patch.
84885         * modules/nanosleep (Depends-on): Add missing dependency.
84887 2007-02-22  Bruno Haible  <bruno@clisp.org>
84889         * lib/glob.c: Don't include getlogin_r.h.
84891 2007-02-22  Jim Meyering  <jim@meyering.net>
84893         * modules/utimens (Depends-on): Add timespec, required for
84894         utimens.h's inclusion of timespec.h.
84896 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
84898         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
84899         long unreadable paths in GNU/Linux.  Problem reported by Andreas
84900         Schwab in
84901         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
84902         I'll try to think of a better way to fix the Solaris problem.
84904         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
84905         like glibc; on Solaris 10, it fails with errno == EINVAL.
84906         POSIX says the behavior is unspecified if the first argument is NULL,
84907         so play it safe and never pass NULL to the system getcwd.
84909 2007-02-21  Jim Meyering  <jim@meyering.net>
84911         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
84912         of gettimeofday.  It would conflict with the one now always
84913         provided via sys_time_.h.  Reported by Matthew Woehlke, as
84914         an IRIX 6.5 build failure.
84916 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
84918         Minor fixups to port to Solaris 10 with Sun C 5.8.
84919         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
84920         * modules/getcwd (Depends-on): Add dirfd.
84921         * lib/putenv.c (putenv): #undef it.
84922         (rpl_putenv): New decl.
84923         (malloc, free): Include <stdlib.h> rather than prototyping separately.
84925 2007-02-20  Bruno Haible  <bruno@clisp.org>
84927         * modules/stdio-tests: New file.
84928         * tests/test-stdio.c: New file.
84930         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
84931         (Depends-on): Add stdio.
84932         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
84933         (Include): Use <stdio.h> instead of vsnprintf.h.
84934         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
84935         HAVE_DECL_VSNPRINTF.
84936         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
84938         * modules/snprintf (Files): Remove lib/snprintf.h.
84939         (Depends-on): Add stdio.
84940         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
84941         (Include): Use <stdio.h> instead of snprintf.h.
84942         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
84943         HAVE_DECL_SNPRINTF.
84944         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
84945         * lib/getaddrinfo.c: Likewise.
84947         * modules/stdio: New file.
84948         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
84949         * lib/snprintf.h: Remove file.
84950         * lib/vsnprintf.h: Remove file.
84951         * lib/.cppi-disable: Remove snprintf.h.
84952         * m4/stdio_h.m4: New file.
84953         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
84955 2007-02-20  Jim Meyering  <jim@meyering.net>
84957         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
84958         used by e.g., mingw.  From Bruno Haible.
84960 2007-02-19  Bruno Haible  <bruno@clisp.org>
84962         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
84963         warnings.
84964         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84966 2007-02-19  Bruno Haible  <bruno@clisp.org>
84968         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
84969         from mingw users.
84971 2007-02-19  Bruno Haible  <bruno@clisp.org>
84973         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
84974         warnings.
84975         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
84977 2007-02-19  Jim Meyering  <jim@meyering.net>
84979         Don't use FD after a successful "fdopendir (fd)".
84980         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
84981         Reset it by calling dirfd on the just-obtained DIR*.
84983         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
84984         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
84986 2007-02-18  Bruno Haible  <bruno@clisp.org>
84988         * lib/readlink.c: Include <unistd.h>.
84989         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
84990         HAVE_READLINK.
84991         * modules/readlink (Depends-on): Add unistd.
84992         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84993         (Include): Add <unistd.h>.
84995         * lib/getlogin_r.h: Remove file.
84996         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
84997         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
84998         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
84999         HAVE_DECL_GETLOGIN_R.
85000         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
85001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85002         (Include): Use <unistd.h> instead of getlogin_r.h.
85004         * lib/getcwd.h: Remove file.
85005         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
85006         * lib/xgetcwd.c: Likewise.
85007         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
85008         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
85009         * modules/getcwd (Files): Remove lib/getcwd.h.
85010         (Depends-on): Add unistd.
85011         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85012         (Include): Use <unistd.h> instad of getcwd.h.
85014         * lib/ftruncate.c: Include <unistd.h> first.
85015         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
85016         Set HAVE_FTRUNCATE.
85017         * modules/ftruncate (Depends-on): Add unistd.
85018         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85020         * lib/fchdir.c: Include <unistd.h> first.
85021         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
85022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
85023         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
85024         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85025         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
85027         * lib/dup2.c: Include <unistd.h> first.
85028         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
85029         HAVE_DUP2.
85030         * modules/dup2 (Depends-on): Add unistd.
85031         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85033         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
85034         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
85035         REPLACE_CHOWN. Don't define chown as a macro here.
85036         * modules/chown (Depends-on): Add unistd.
85037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85039         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
85040         Add definition for GL_LINK_WARNING.
85041         (chown, dup2): New declarations.
85042         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
85043         link warning.
85044         (ftruncate): New declaration.
85045         (getcwd): New declaration, taken from old getcwd.h.
85046         (getlogin_r): New declaration, taken from old getlogin_r.h.
85047         (readlink): New declaration.
85048         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
85049         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
85050         (gl_PREREQ_UNISTD): Remove macro.
85051         (gl_UNISTD_MODULE_INDICATOR): New macro.
85052         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
85053         many new variables. Don't set UNISTD_H.
85054         * modules/unistd (Description): Change.
85055         (Depends-on): Add link-warning.
85056         (configure.ac): Update.
85057         (Makefile.am): Create unistd.h always. Substitute many new variables
85058         into it.
85060 2007-02-18  Bruno Haible  <bruno@clisp.org>
85062         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
85063         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
85064         HAVE_GETSUBOPT.
85065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
85066         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
85067         * lib/getsubopt.h: Remove file.
85068         * modules/getsubopt (Files): Remove lib/getsubopt.h.
85069         (Depends-on): Add stdlib.
85070         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85071         (Includes): Use <stdlib.h> instead of getsubopt.h.
85072         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
85073         Set HAVE_GETSUBOPT.
85074         * lib/getsubopt.c: Don't include getsubopt.h.
85076 2007-02-18  Bruno Haible  <bruno@clisp.org>
85078         * modules/fchdir (Depends-on): Add dup2.
85080 2007-02-18  Bruno Haible  <bruno@clisp.org>
85082         * lib/stdlib_.h: Handle glibc's special invocation convention
85083         specially.
85085 2007-02-18  Bruno Haible  <bruno@clisp.org>
85087         * modules/stdlib-tests: New file.
85088         * tests/test-stdlib.c: New file.
85090         * modules/mkstemp (Files): Remove lib/mkstemp.h.
85091         (Depends-on): Add stdlib.
85092         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85093         (Includes): Use <stdlib.h> instead of mkstemp.h.
85094         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
85095         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
85096         * lib/mkstemp.c: Don't include mkstemp.h.
85097         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
85098         * lib/stdlib--.h: Don't include mkstemp.h.
85100         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
85101         (Depends-on): Add stdlib.
85102         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85103         (Includes): Use <stdlib.h> instead of mkdtemp.h.
85104         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
85105         HAVE_MKDTEMP.
85106         * lib/mkdtemp.c: Don't include mkdtemp.h.
85107         * lib/clean-temp.c: Don't include mkdtemp.h.
85109         * modules/exit (Files): Remove lib/exit.h.
85110         (Depends-on): Add stdlib.
85111         (Makefile.am): Remove lib_SOURCES.
85112         (Include): Use <stdlib.h> instead of exit.h.
85113         * lib/argmatch.c: Don't include exit.h.
85114         * lib/execute.c: Likewise.
85115         * lib/pagealign_alloc.c: Likewise.
85116         * lib/pipe.c: Likewise.
85117         * lib/wait-process.c: Likewise.
85118         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
85119         * lib/exitfail.c: Likewise.
85120         * lib/savewd.c: Likewise.
85121         * lib/xsetenv.c: Likewise.
85123         * modules/stdlib: New file.
85124         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
85125         and extra comments about mkstemp().
85126         * lib/exit.h: Remove file.
85127         * lib/mkdtemp.h: Remove file.
85128         * lib/mkstemp.h: Remove file.
85129         * m4/stdlib_h.m4: New file.
85130         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
85132 2007-02-18  Bruno Haible  <bruno@clisp.org>
85134         * modules/math-tests: New file.
85135         * tests/test-math.c: New file.
85137         * modules/math: New file.
85138         * modules/mathl (Files): Remove lib/mathl.h.
85139         (Depends-on): Add math.
85140         (Makefile.am): Don't mention mathl.h.
85141         (Include): Use <math.h> instead of mathl.h.
85142         * lib/math_.h: New file.
85143         * lib/mathl.h: Remove file.
85144         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
85145         mathl.h.
85146         * lib/asinl.c: Likewise.
85147         * lib/atanl.c: Likewise.
85148         * lib/ceill.c: Likewise.
85149         * lib/cosl.c: Likewise.
85150         * lib/expl.c: Likewise.
85151         * lib/floorl.c: Likewise.
85152         * lib/frexpl.c: Likewise.
85153         * lib/ldexpl.c: Likewise.
85154         * lib/logl.c: Likewise.
85155         * lib/sincosl.c: Likewise.
85156         * lib/sinl.c: Likewise.
85157         * lib/sqrtl.c: Likewise.
85158         * lib/tanl.c: Likewise.
85159         * lib/trigl.c: Likewise.
85160         * m4/math_h.m4: New file.
85161         * MODULES.html.sh (Mathematics): Add math.
85163 2007-02-17  Bruno Haible  <bruno@clisp.org>
85165         * modules/wctype-tests: New file.
85166         * tests/test-wctype.c: New file.
85168         * modules/wchar-tests: New file.
85169         * tests/test-wchar.c: New file.
85171         * modules/unistd-tests: New file.
85172         * tests/test-unistd.c: New file.
85174         * modules/time-tests: New file.
85175         * tests/test-time.c: New file.
85177         * modules/sysexits-tests: New file.
85178         * tests/test-sysexits.c: New file.
85180         * modules/sys_time-tests: New file.
85181         * tests/test-sys_time.c: New file.
85183         * modules/sys_stat-tests: New file.
85184         * tests/test-sys_stat.c: New file.
85186         * modules/sys_socket-tests: New file.
85187         * tests/test-sys_socket.c: New file.
85189         * modules/sys_select-tests: New file.
85190         * tests/test-sys_select.c: New file.
85192         * modules/string-tests: New file.
85193         * tests/test-string.c: New file.
85195         * modules/stdbool-tests: New file.
85196         * tests/test-stdbool.c: New file.
85198         * modules/netinet_in-tests: New file.
85199         * tests/test-netinet_in.c: New file.
85201         * modules/inttypes-tests: New file.
85202         * tests/test-inttypes.c: New file.
85204         * modules/fcntl-tests: New file.
85205         * tests/test-fcntl.c: New file.
85207         * modules/byteswap-tests: New file.
85208         * tests/test-byteswap.c: New file.
85210         * modules/arpa_inet-tests: New file.
85211         * tests/test-arpa_inet.c: New file.
85213 2007-02-17  Bruno Haible  <bruno@clisp.org>
85215         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
85216         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
85217         if the corresponding module is not enabled. Emit link warnings if
85218         the function is used nevertheless.
85219         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
85220         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
85221         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
85222         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
85223         * modules/inttypes (Depends-on): Add link-warning.
85224         (Makefile.am): Copy the contents of build-aux/link-warning.h into
85225         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
85226         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
85227         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
85228         * modules/imaxdiv (configure.ac): Likewise.
85229         * modules/strtoimax (configure.ac): Likewise.
85230         * modules/strtoumax (configure.ac): Likewise.
85232 2007-02-17  Bruno Haible  <bruno@clisp.org>
85234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
85235         gl_STRING_MODULE_INDICATOR_DEFAULTS.
85236         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
85237         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
85239 2007-02-17  Bruno Haible  <bruno@clisp.org>
85241         * modules/link-warning: New file.
85242         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
85243         * lib/string_.h (GL_LINK_WARNING): Remove definition.
85244         * modules/string (Depends-on): Add link-warning.
85245         (Makefile.am): Copy the contents of build-aux/link-warning.h into
85246         string.h.
85247         * MODULES.html.sh (Support for building libraries and executables): Add
85248         link-warning.
85250 2007-02-17  Bruno Haible  <bruno@clisp.org>
85252         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
85253         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
85254         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
85255         long lines.
85257 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
85258             Bruno Haible  <bruno@clisp.org>
85260         * modules/tmpfile: New file.
85261         * lib/tmpfile.c: New file.
85262         * m4/tmpfile.m4: New file.
85263         * MODULES.html.sh (func_all_modules): New section "Input/output".
85265 2007-02-15  Bruno Haible  <bruno@clisp.org>
85267         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
85268         (supports_delete_on_close): New function.
85269         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
85271 2007-02-14  Bruno Haible  <bruno@clisp.org>
85273         * modules/mbspcasecmp-tests: New file.
85274         * tests/test-mbspcasecmp.sh: New file.
85275         * tests/test-mbspcasecmp.c: New file.
85277         New module mbspcasecmp.
85278         * modules/mbspcasecmp: New file.
85279         * lib/mbspcasecmp.c: New file.
85280         * lib/string_.h (strncasecmp): Change warning message.
85281         (mbspcasecmp): New declaration.
85282         * m4/mbspcasecmp.m4: New file.
85283         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85284         GNULIB_MBSPCASECMP.
85285         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
85286         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
85288 2007-02-14  Bruno Haible  <bruno@clisp.org>
85290         * modules/mbsncasecmp-tests: New file.
85291         * tests/test-mbsncasecmp.sh: New file.
85292         * tests/test-mbsncasecmp.c: New file.
85294         New module mbsncasecmp.
85295         * modules/mbsncasecmp: New file.
85296         * lib/mbsncasecmp.c: New file.
85297         * lib/string_.h (mbsncasecmp): New declaration.
85298         * m4/mbsncasecmp.m4: New file.
85299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85300         GNULIB_MBSNCASECMP.
85301         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
85302         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
85304 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
85306         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
85307         Verify that it doesn't overlap with our flags.
85308         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
85309         do not have the desired effect in multibyte locales; instead, use
85310         mbscasecmp.
85311         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
85312         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
85313         we don't require GNU fnmatch ourselves (if our users require it, they
85314         should do so explicitly).
85316         Fix regex code so it doesn't rely on strcasecmp.
85317         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
85318         Otherwise, include gnulib's langinfo.h.
85319         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
85320         undesirable behavior in non-C locales.  Instead, rely on localecharset.
85321         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
85322         * modules/regex (FILES): Remove m4/codeset.m4.
85323         (Depends-on): Add localcharset.  Remove strcase.
85325 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85327         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
85328         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
85330 2007-02-13  Bruno Haible  <bruno@clisp.org>
85332         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
85333         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85335 2007-02-12  Bruno Haible  <bruno@clisp.org>
85337         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
85338         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
85339         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
85340         time warning rather than a link error.
85342 2007-02-12  Bruno Haible  <bruno@clisp.org>
85344         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
85345         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
85346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85348 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
85350         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
85351         args, not 2.
85353 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
85355         New module 'time', so that apps can include <time.h> as per
85356         POSIX and GNU instead of separate include files like time_r.h
85357         and timegm.h.  This implementation tries out a simpler approach
85358         for replacing decls in standard include files (as compared to
85359         the string module), somewhat as an experiment.
85361         * config/srclist.txt: Comment out mktime.c for now.
85362         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
85363         since it doesn't apply any more.  Use generic wording instead.
85364         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
85365         'time'.
85366         * lib/time_.h, m4/time_h.m4, modules/time: New files.
85367         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
85368         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
85369         Don't include <sys/types.h>; no longer needed since we assume C89.
85370         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
85371         * lib/strftime.c: Likewise.
85372         * lib/time_r.c: Likewise.
85373         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
85374         * lib/nanosleep.c: Include <time.h> first, to check interface.
85375         * lib/strptime.c: Likewise.
85376         * lib/time_r.c: Likewise.
85377         * lib/timegm.c: Likewise.
85378         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
85379         needed.
85380         * lib/timegm.c: Don't include timegm.h; no longer needed.
85381         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
85382         time.h now handles any problems in that area.
85383         (struct timespec, nanosleep): Remove; time.h now arranges for these.
85384         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
85385         that time.h defines struct timespec.
85386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
85387         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
85388         handles that.
85389         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
85390         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
85391         needed.  Set REPLACE_LOCALTIME.
85392         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
85393         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
85394         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
85395         nanosleep; time_h.m4 now does that.  Don't require
85396         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
85397         module handles this now.
85398         * modules/getdate (Depends-on): Remove timespec.  Add time.
85399         * modules/nanosleep (Depends-on): Likewise.
85400         * modules/stat-time (Depends-on): Likewise.
85401         * modules/nanosleep (Include): Include time.h, not timespec.h.
85402         * modules/strptime (Files): Remove lib/strptime.h.
85403         (Depends-on): Add extensions, time.
85404         (Include): Include time.h, not strptime.h.
85405         * modules/time_r (Files): Remove lib/time_r.h.
85406         (Depends-on): Add time.
85407         (Include): Include time.h, not time_r.h.
85408         * modules/timegm: Likewise.
85409         * modules/timespec (Description): Now does timespec-related decls
85410         of our own, instead of struct timespec itself.
85411         (Depends-on): Add time; remove extensions.
85412         (Maintainer): Add self.
85413         * modules/utimecmp (Depends-on): Add time; remove timespec.
85414         * modules/utimens (Depends-on): Likewise.
85415         * modules/xnanosleep (Depends-on): Likewise.
85417 2007-02-11  Bruno Haible  <bruno@clisp.org>
85419         * lib/c-strstr.c: Include allocsa.h.
85420         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
85421         * lib/c-strcasestr.c: Include allocsa.h.
85422         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
85423         * lib/strcasestr.c: Include allocsa.h.
85424         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
85425         * lib/mbsstr.c: Include allocsa.h.
85426         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
85427         allocsa/freesa instead of malloc/free.
85428         * lib/mbscasestr.c: Include allocsa.h.
85429         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
85430         allocsa/freesa instead of malloc/free.
85431         * modules/c-strstr (Depends-on): Add allocsa.
85432         * modules/c-strcasestr (Depends-on): Likewise.
85433         * modules/strcasestr (Depends-on): Likewise.
85434         * modules/mbsstr (Depends-on): Likewise.
85435         * modules/mbscasestr (Depends-on): Likewise.
85437 2007-02-11  Bruno Haible  <bruno@clisp.org>
85439         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
85441         * modules/mbsspn-tests: New file.
85442         * tests/test-mbsspn.sh: New file.
85443         * tests/test-mbsspn.c: New file.
85445 2007-02-11  Bruno Haible  <bruno@clisp.org>
85447         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
85449         * modules/mbspbrk-tests: New file.
85450         * tests/test-mbspbrk.sh: New file.
85451         * tests/test-mbspbrk.c: New file.
85453 2007-02-11  Bruno Haible  <bruno@clisp.org>
85455         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
85456         unneeded cast.
85458         * modules/mbscspn-tests: New file.
85459         * tests/test-mbscspn.sh: New file.
85460         * tests/test-mbscspn.c: New file.
85462 2007-02-11  Bruno Haible  <bruno@clisp.org>
85464         * modules/mbscasecmp-tests: New file.
85465         * tests/test-mbscasecmp.sh: New file.
85466         * tests/test-mbscasecmp.c: New file.
85468 2007-02-11  Bruno Haible  <bruno@clisp.org>
85470         Ensure O(n) worst-case complexity of mbscasestr.
85471         * lib/mbscasestr.c: Include stdbool.h.
85472         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
85473         functions.
85474         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
85475         the bookkeeping indicates that it's worth it.
85476         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
85478         * modules/mbscasestr-tests: New file.
85479         * tests/test-mbscasestr1.c: New file.
85480         * tests/test-mbscasestr2.sh: New file.
85481         * tests/test-mbscasestr2.c: New file.
85482         * tests/test-mbscasestr3.sh: New file.
85483         * tests/test-mbscasestr3.c: New file.
85484         * tests/test-mbscasestr4.sh: New file.
85485         * tests/test-mbscasestr4.c: New file.
85486         * m4/locale-tr.m4: New file.
85488 2007-02-11  Bruno Haible  <bruno@clisp.org>
85490         Ensure O(n) worst-case complexity of mbsstr.
85491         * lib/mbsstr.c: Include stdbool.h.
85492         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
85493         functions.
85494         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
85495         bookkeeping indicates that it's worth it.
85496         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
85498         * modules/mbsstr-tests: New file.
85499         * tests/test-mbsstr1.c: New file.
85500         * tests/test-mbsstr2.sh: New file.
85501         * tests/test-mbsstr2.c: New file.
85502         * tests/test-mbsstr3.sh: New file.
85503         * tests/test-mbsstr3.c: New file.
85504         * m4/locale-fr.m4: New file.
85506 2007-02-11  Bruno Haible  <bruno@clisp.org>
85508         * lib/mbsrchr.c (mbsrchr): Fix bug.
85510         * modules/mbsrchr-tests: New file.
85511         * tests/test-mbsrchr.sh: New file.
85512         * tests/test-mbsrchr.c: New file.
85514 2007-02-11  Bruno Haible  <bruno@clisp.org>
85516         * lib/mbschr.c (mbschr): Fix bug.
85518         * modules/mbschr-tests: New file.
85519         * tests/test-mbschr.sh: New file.
85520         * tests/test-mbschr.c: New file.
85521         * m4/locale-zh.m4: New file.
85523 2007-02-11  Bruno Haible  <bruno@clisp.org>
85525         Support for copying multibyte string iterators.
85526         * lib/mbiter.h: Include <string.h>.
85527         (mbiter_multi_copy): New function.
85528         (mbi_copy): New macro.
85529         * lib/mbuiter.h: Include <string.h>.
85530         (mbuiter_multi_copy): New function.
85531         (mbui_copy): New macro.
85533 2007-02-11  Bruno Haible  <bruno@clisp.org>
85535         New module mbslen.
85536         * modules/mbslen: New file.
85537         * lib/mbslen.c: New file.
85538         * lib/string_.h (mbslen): New declaration.
85539         * m4/mbslen.m4: New file.
85540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85541         GNULIB_MBSLEN.
85542         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
85543         * MODULES.html.sh (Internationalization functions): Add mbslen.
85545 2007-02-11  Bruno Haible  <bruno@clisp.org>
85547         Ensure O(n) worst-case complexity of strcasestr substitute.
85548         * lib/strcasestr.c: Include stdbool.h.
85549         (knuth_morris_pratt): New function.
85550         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
85551         bookkeeping indicates that it's worth it.
85552         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
85554         * modules/strcasestr-tests: New file.
85555         * tests/test-strcasestr.c: New file.
85557 2007-02-11  Bruno Haible  <bruno@clisp.org>
85559         Ensure O(n) worst-case complexity of c_strcasestr.
85560         * lib/c-strcasestr.c: Include stdbool.h, string.h.
85561         (knuth_morris_pratt): New function.
85562         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
85563         the bookkeeping indicates that it's worth it.
85564         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
85566         * modules/c-strcasestr-tests: New file.
85567         * tests/test-c-strcasestr.c: New file.
85569 2007-02-11  Bruno Haible  <bruno@clisp.org>
85571         Ensure O(n) worst-case complexity of c_strstr.
85572         * lib/c-strstr.c: Include stdbool.h, string.h.
85573         (knuth_morris_pratt): New function.
85574         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
85575         bookkeeping indicates that it's worth it.
85576         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
85578         * lib/c-strstr.c: Complete rewrite for maintainability.
85580         * modules/c-strstr-tests: New file.
85581         * tests/test-c-strstr.c: New file.
85583 2007-02-11  Bruno Haible  <bruno@clisp.org>
85585         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
85586         5.2.1 and earlier, whereby \055 was treated just like the range
85587         delimiter '-'.
85588         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
85590 2007-02-08  Bruno Haible  <bruno@clisp.org>
85592         * modules/regex (Depends-on): Add stdbool.
85593         Reported by Dalibor Topic <robilad@kaffe.org>.
85595 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
85597         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
85598         Prefer returning from main to exiting from it.
85599         Remove unnecessary parens after sizeof.
85601 2007-02-05  Bruno Haible  <bruno@clisp.org>
85603         New module mbssep.
85604         * modules/mbssep: New file.
85605         * lib/mbssep.c: New file.
85606         * lib/string_.h (strsep): Add a conditional link warning.
85607         (mbssep): New declaration.
85608         * m4/mbssep.m4: New file.
85609         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85610         GNULIB_MBSSEP.
85611         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
85612         * MODULES.html.sh (Internationalization functions): Add mbssep.
85614 2007-02-05  Bruno Haible  <bruno@clisp.org>
85616         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
85617         Optimize search in case of 1 delimiter.
85619 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
85621         * lib/acl.h: Include sys/types.h before sys/acl.h.
85623 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
85625         Merge upstream fix for glibc bugzilla #3957:
85627         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
85629         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
85630         bit for RE_HAT_LISTS_NOT_NEWLINE.
85631         (build_charclass_op): Remove bogus comment.
85633 2007-02-05  Simon Josefsson  <simon@josefsson.org>
85635         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
85637 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
85639         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
85640         * lib/memmem.c [!defined _LIBC]: Include config.h.
85642 2007-02-04  Bruno Haible  <bruno@clisp.org>
85644         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
85645         warning message.
85647 2007-02-04  Bruno Haible  <bruno@clisp.org>
85649         New module mbstok_r.
85650         * modules/mbstok_r: New file.
85651         * lib/mbstok_r.c: New file.
85652         * lib/string_.h (strtok_r): Change argument names to match the
85653         comments. Add a conditional link warning.
85654         (mbstok_r): New declaration.
85655         * m4/mbstok_r.m4: New file.
85656         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85657         GNULIB_MBSTOK_R.
85658         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
85659         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
85661 2007-02-04  Bruno Haible  <bruno@clisp.org>
85663         New module mbsspn.
85664         * modules/mbsspn: New file.
85665         * lib/mbsspn.c: New file.
85666         * lib/string_.h (strspn): Add a conditional link warning.
85667         (mbsspn): New declaration.
85668         * m4/mbsspn.m4: New file.
85669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85670         GNULIB_MBSSPN.
85671         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
85672         * MODULES.html.sh (Internationalization functions): Add mbsspn.
85674 2007-02-04  Bruno Haible  <bruno@clisp.org>
85676         New module mbspbrk.
85677         * modules/mbspbrk: New file.
85678         * lib/mbspbrk.c: New file.
85679         * lib/string_.h (strpbrk): Add a conditional link warning.
85680         (mbspbrk): New declaration.
85681         * m4/mbspbrk.m4: New file.
85682         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85683         GNULIB_MBSPBRK.
85684         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
85685         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
85687 2007-02-04  Bruno Haible  <bruno@clisp.org>
85689         New module mbscspn.
85690         * modules/mbscspn: New file.
85691         * lib/mbscspn.c: New file.
85692         * lib/string_.h (strcspn): Add a conditional link warning.
85693         (mbscspn): New declaration.
85694         * m4/mbscspn.m4: New file.
85695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85696         GNULIB_MBSCSPN.
85697         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
85698         * MODULES.html.sh (Internationalization functions): Add mbscspn.
85700 2007-02-04  Bruno Haible  <bruno@clisp.org>
85702         New module mbscasestr, reduced goal of strcasestr.
85703         * modules/mbscasestr: New file.
85704         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
85705         (mbscasestr): Renamed from strcasestr.
85706         * lib/strcasestr.c: Don't include mbuiter.h.
85707         (strcasestr): Remove support for multibyte locales.
85708         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
85709         Change the conditional link warning.
85710         (mbscasestr): New declaration.
85711         * m4/mbscasestr.m4: New file.
85712         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
85713         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
85714         REPLACE_STRCASESTR.
85715         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
85716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
85717         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
85718         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
85719         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
85720         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
85721         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
85722         (Depends-on): Remove mbuiter.
85723         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
85725 2007-02-04  Bruno Haible  <bruno@clisp.org>
85727         Simplify handling of strncasecmp.
85728         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
85729         the conditional link warning.
85730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
85731         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
85732         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
85733         * modules/strcase (configure.ac): Don't invoke
85734         gl_STRING_MODULE_INDICATOR.
85735         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
85737 2007-02-04  Bruno Haible  <bruno@clisp.org>
85739         New module mbscasecmp, reduced goal of strcasecmp.
85740         * modules/mbscasecmp: New file.
85741         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
85742         (mbscasecmp): Renamed from strcasecmp.
85743         * lib/strcasecmp.c: Don't include mbuiter.h.
85744         (strcasecmp): Remove support for multibyte locales.
85745         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
85746         Change the conditional link warning.
85747         (mbscasecmp): New declaration.
85748         * m4/mbscasecmp.m4: New file.
85749         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
85750         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
85751         REPLACE_STRCASECMP.
85752         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
85753         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85754         GNULIB_MBSCASECMP.
85755         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
85756         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
85757         * modules/strcase (Files): Remove m4/mbrtowc.m4.
85758         (Depends-on): Remove mbuiter.
85759         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
85761 2007-02-04  Bruno Haible  <bruno@clisp.org>
85763         New module mbsstr. Remove module strstr.
85764         * modules/mbsstr: New file.
85765         * modules/strstr: Remove file.
85766         * lib/mbsstr.c: Renamed from lib/strstr.c.
85767         (mbsstr): Renamed from strstr.
85768         * lib/string_.h (strstr): Remove declaration. Change the conditional
85769         link warning.
85770         (mbsstr): New declaration.
85771         * m4/mbsstr.m4: New file.
85772         * m4/strstr.m4: Remove file.
85773         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
85774         REPLACE_STRSTR.
85775         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
85776         Don't initialize GNULIB_STRSTR.
85777         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
85778         substitute GNULIB_STRSTR and REPLACE_STRSTR.
85779         * MODULES.html.sh (Internationalization functions): Add mbsstr.
85780         (Support for systems lacking ANSI C 89): Remove strstr.
85782 2007-02-04  Bruno Haible  <bruno@clisp.org>
85784         New module mbsrchr.
85785         * modules/mbsrchr: New file.
85786         * lib/mbsrchr.c: New file.
85787         * lib/string_.h (strrchr): Add a conditional link warning.
85788         (mbsrchr): New declaration.
85789         * m4/mbsrchr.m4: New file.
85790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85791         GNULIB_MBSRCHR.
85792         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
85793         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
85795 2007-02-04  Bruno Haible  <bruno@clisp.org>
85797         New module mbschr.
85798         * modules/mbschr: New file.
85799         * lib/mbschr.c: New file.
85800         * lib/string_.h (strchr): Add a conditional link warning.
85801         (mbschr): New declaration.
85802         * m4/mbschr.m4: New file.
85803         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
85804         GNULIB_MBSCHR.
85805         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
85806         * MODULES.html.sh (Internationalization functions): Add mbschr.
85808 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
85810         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
85812         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
85814 2007-02-04  Bruno Haible  <bruno@clisp.org>
85816         New module description section 'configure.ac-early'.
85817         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
85818         (func_get_autoconf_early_snippet): New function.
85819         (func_import, func_create_testdir): Use it. Remove special cases for
85820         modules 'extensions' and 'lock'.
85821         * modules/extensions (configure.ac-early): Require
85822         gl_USE_SYSTEM_EXTENSIONS.
85823         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
85825 2007-02-04  Bruno Haible  <bruno@clisp.org>
85827         Make use of gcj-4.3's -fsource and -ftarget option.
85828         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
85829         and if so try the options -fsource and -ftarget.
85830         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
85831         source_version, ftarget_option, target_version arguments.
85832         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
85833         (is_envjavac_oldgcj_14_14_usable): Renamed from
85834         is_envjavac_gcj_14_14_usable.
85835         (is_envjavac_oldgcj_14_13_usable): Renamed from
85836         is_envjavac_gcj_14_13_usable.
85837         (is_gcj_present): Update.
85838         (is_gcj_43, is_gcj43_usable): New functions.
85839         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
85840         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
85841         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
85842         try the options -fsource and -ftarget.
85844 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85846         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
85847         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
85848         larger value.
85850 2007-02-03  Jim Meyering  <jim@meyering.net>
85852         Give tools a better chance to allocate space for very large buffers.
85853         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
85855         Make pwd and readlink work also when run with an unreadable parent dir
85856         on systems with openat support.
85857         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
85858         provided getcwd function, even when we have openat support.
85859         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
85861 2007-02-02  Bruno Haible  <bruno@clisp.org>
85863         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
85864         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
85865         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
85866         portability problems if one of these functions is only used on specific
85867         platforms.
85868         Reported by Paul Eggert.
85870 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
85872         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
85873         is causing more trouble than it's curing.
85874         * lib/regex_internal.h (__mempcpy): Remove.
85875         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
85876         (and make the code a tad smaller to boot).
85877         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
85879 2007-02-02  Jim Meyering  <jim@meyering.net>
85881         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
85882         section, not in the Makefile.am: one.
85884 2007-02-02  Eric Blake  <ebb9@byu.net>
85886         * lib/strchrnul.c: Always include config.h first.
85888         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
85889         gnulib strstr is not necessary here.
85891 2007-02-02  Simon Josefsson  <simon@josefsson.org>
85893         * m4/socklen.m4: Fix typo.
85895 2007-02-02  Eric Blake  <ebb9@byu.net>
85897         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
85898         * modules/netinet_in (Makefile.am): Likewise.
85900 2007-02-01  Bruno Haible  <bruno@clisp.org>
85902         * lib/string_.h (GL_LINK_WARNING): New macro.
85903         (strcasecmp, strstr, strcasestr): If provided by the system,
85904         conditionally define as a macro that leads to a warning instead of to
85905         an error.
85906         (strncasecmp): Conditionally define as a macro that leads to a warning.
85908 2007-02-01  Karl Berry  <karl@gnu.org>
85910         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
85912 2007-02-01  Bruno Haible  <bruno@clisp.org>
85914         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
85915         renamings.
85917 2007-02-01  Eric Blake  <ebb9@byu.net>
85919         * modules/regex (Depends-on): Revert dependence on mempcpy.
85920         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
85921         module's definition of mempcpy.
85922         Reported by Paul Eggert.
85924 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85926         * lib/string_.h: If the gnulib module XYZ is not present, undefine
85927         the symbol XYZ before redefining it.  This fixes a problem with
85928         programs that don't use XYZ, when compiled on systems that define
85929         XYZ to something else.
85931 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
85933         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
85934         occurs when "mkdir -m foo" creates a setgid directory that is (1)
85935         writeable to group or other and (2) is intended to have a special
85936         mode bit that is set or cleared.  In such a case, the directory
85937         should be neither group- nor other-writeable until the special
85938         mode bits are right.
85940 2007-01-31  Eric Blake  <ebb9@byu.net>
85942         * modules/mountlist (Depends-on): Add strstr.
85944         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
85945         bug.
85946         * modules/string (Makefile.am): Remove redundant replacement.
85947         * modules/regex (Depends-on): Add mempcpy.
85949 2007-01-31  Bruno Haible  <bruno@clisp.org>
85951         New module description field 'Link'.
85952         * gnulib-tool (func_usage): Document --extract-link-directive.
85953         (sed_extract_prog): Recognize 'Link' directive.
85954         (func_get_link_directive): New function.
85955         (func_import): Show summary of link directives.
85956         Handle --extract-link-directive option.
85957         * modules/acl (Link): New section.
85958         * modules/clock-time (Link): New section.
85959         * modules/euidaccess (Link): New section.
85960         * modules/gettext (Link): New section.
85961         * modules/iconv (Link): New section.
85962         * modules/lock (Link): New section.
85963         * modules/nanosleep (Link): New section.
85964         * modules/readline (Link): New section.
85966 2007-01-27  Bruno Haible  <bruno@clisp.org>
85968         Enforce the use of gnulib modules for unportable <string.h> functions.
85969         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
85970         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
85971         (gl_HEADER_STRING_H_BODY): Require it.
85972         * lib/string_.h: If the gnulib module XYZ is not present, redefine
85973         the symbol XYZ to one that gives a link error.
85974         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
85975         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
85976         * modules/mempcpy (configure.ac): Likewise.
85977         * modules/memrchr (configure.ac): Likewise.
85978         * modules/stpcpy (configure.ac): Likewise.
85979         * modules/stpncpy (configure.ac): Likewise.
85980         * modules/strcase (configure.ac): Likewise.
85981         * modules/strcasestr (configure.ac): Likewise.
85982         * modules/strchrnul (configure.ac): Likewise.
85983         * modules/strdup (configure.ac): Likewise.
85984         * modules/strndup (configure.ac): Likewise.
85985         * modules/strnlen (configure.ac): Likewise.
85986         * modules/strpbrk (configure.ac): Likewise.
85987         * modules/strsep (configure.ac): Likewise.
85988         * modules/strstr (configure.ac): Likewise.
85989         * modules/strtok_r (configure.ac): Likewise.
85991 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
85993         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
85995 2007-01-30  Jim Meyering  <jim@meyering.net>
85997         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
85999 2007-01-29  Bruno Haible  <bruno@clisp.org>
86001         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
86002         * lib/execute.c: Likewise.
86003         * lib/pipe.c: Likewise.
86004         * lib/printf-args.h: Likewise.
86005         * lib/printf-args.c: Likewise.
86006         * lib/printf-parse.c: Likewise.
86007         * lib/vasnprintf.c: Likewise.
86009 2007-01-29  Eric Blake  <ebb9@byu.net>
86011         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
86012         declaration.
86014 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
86016         * lib/strptime.h (strptime): Use 'restrict' for args where
86017         POSIX requires this.
86018         * lib/strptime.c (strptime): Likewise.
86019         Change license notice from LGPL to GPL, since gnulib-tool will
86020         change this as needed.
86021         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
86022         defined.
86023         Include "strptime.h" first, to check interface.
86024         Do not #undef _LIBC and _NL_CURRENT.
86025         Do not include <stdlib.h>; no longer needed.
86026         Include "time_r.h" and declare ptime_locale_status
86027         only if _LIBC is not defined.
86028         (__P): Remove unused macro.
86029         (match_string): Bring back glibc version, but use it only if _LIBC
86030         is defined.
86031         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
86032         Remove unnecessary assertion and abort() call.
86033         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
86034         * m4/strptime.m4: Fix serial number comment.
86035         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
86036         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
86037         (Depends-on): Add time_r.
86039 2007-01-29  Bruno Haible  <bruno@clisp.org>
86041         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86042         strptime.
86043         * modules/strptime (Depends-on): Add stdbool.
86044         * lib/strptime.h: Include <time.h> always. Add comments.
86046 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86048         * modules/strptime: New file.
86049         * lib/strptime.h: New file.
86050         * lib/strptime.c: New file.
86051         * m4/strptime.m4: New file.
86053 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86055         * MODULES.html.sh: New module mpsort.
86056         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
86058         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
86059         a circularity problem with HP-UX ia64 reported by Bob Proulx in
86060         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
86061         All uses changed.
86062         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
86063         All uses changed.
86064         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
86065         to _Restrict_.
86066         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
86067         the parameter matches the prototype.
86069 2007-01-28  Jim Meyering  <jim@meyering.net>
86071         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
86072         sys/time.h here, reverting that part of the previous patch:
86073         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
86075 2007-01-28  Bruno Haible  <bruno@clisp.org>
86077         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
86078         value of $(SYS_TIME_H).
86079         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
86080         remove it conditionally, too. [added by Jim Meyering]
86081         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
86082         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
86083         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
86084         GETTIMEOFDAY_REPLACEMENT to 1.
86086 2007-01-28  Bruno Haible  <bruno@clisp.org>
86088         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
86089         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
86090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
86091         Set UNISTD_H instead of UNISTD_H2.
86092         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
86094 2007-01-28  Bruno Haible  <bruno@clisp.org>
86096         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
86097         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
86099 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86101         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
86102         (func_create_testdir): Ensure C locale for `grep' and `tr'
86103         character ranges.
86104         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
86105         ACLOCAL_AMFLAGS parsing state machine.
86107 2007-01-27  Bruno Haible  <bruno@clisp.org>
86109         * modules/unistr/base: Update.
86111 2007-01-27  Bruno Haible  <bruno@clisp.org>
86113         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
86114         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
86115         * modules/unistr/u32-mbtouc-unsafe: Renamed from
86116         modules/unistr/u32-mbtouc.
86117         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
86118         * lib/unistr.h: Update.
86119         * lib/linebreak.c: Update.
86120         * modules/unistr/u32-mbtouc: Renamed from
86121         modules/unistr/u32-mbtouc-safe.
86122         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
86123         * lib/unistr.h: Update.
86124         * lib/unistr/u32-to-u8.c: Update.
86125         * lib/unistr/u32-to-u16.c: Update.
86127 2007-01-27  Bruno Haible  <bruno@clisp.org>
86129         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
86130         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
86131         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
86132         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
86133         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
86134         * modules/unistr/u16-mbtouc-unsafe: Renamed from
86135         modules/unistr/u16-mbtouc.
86136         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
86137         * lib/unistr.h: Update.
86138         * lib/linebreak.c: Update.
86139         * modules/linebreak: Update.
86140         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
86141         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
86142         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
86143         * modules/unistr/u16-mbtouc: Renamed from
86144         modules/unistr/u16-mbtouc-safe.
86145         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
86146         * lib/unistr.h: Update.
86147         * lib/unistr/u16-to-u8.c: Update.
86148         * modules/unistr/u16-to-u8: Update.
86149         * lib/unistr/u16-to-u32.c: Update.
86150         * modules/unistr/u16-to-u32: Update.
86152 2007-01-27  Bruno Haible  <bruno@clisp.org>
86154         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
86155         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
86156         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
86157         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
86158         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
86159         * modules/unistr/u8-mbtouc-unsafe: Renamed from
86160         modules/unistr/u8-mbtouc.
86161         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
86162         * lib/unistr.h: Update.
86163         * lib/striconveh.c: Update.
86164         * modules/striconveh: Update.
86165         * lib/linebreak.c: Update.
86166         * modules/linebreak: Update.
86167         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
86168         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
86169         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
86170         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
86171         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
86172         * lib/unistr.h: Update.
86173         * lib/striconveh.c: Update.
86174         * modules/striconveh: Update.
86175         * lib/unistr/u8-to-u16.c: Update.
86176         * modules/unistr/u8-to-u16: Update.
86177         * lib/unistr/u8-to-u32.c: Update.
86178         * modules/unistr/u8-to-u32: Update.
86180 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86182         Sync from Libtool.
86183         * lib/argz.c: Do not include strings.h nor memory.h, include
86184         string.h unconditionally.  Patch by Simon Josefsson.
86186 2007-01-27  Bruno Haible  <bruno@clisp.org>
86188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
86189         from gl_HEADER_STRING_H_BODY.
86190         (gl_HEADER_STRING_H_BODY): Require it.
86191         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
86192         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
86193         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
86194         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
86195         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
86196         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
86197         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
86198         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
86199         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
86200         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
86201         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
86202         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
86203         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
86204         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
86205         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
86207 2007-01-27  Bruno Haible  <bruno@clisp.org>
86209         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
86210         check_PROGRAMS into noinst_PROGRAMS.
86211         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
86212         check_PROGRAMS in this case.
86213         (func_import): Set for_test to false.
86214         (func_create_testdir): Set for_test to true.
86216 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86217             Bruno Haible  <bruno@clisp.org>
86219         * modules/strcasestr (Files): Remove lib/strcasestr.h.
86220         (Depends-on): Add string.
86221         (Includes): Use <string.h> instead of strcasestr.h.
86222         * modules/string (Makefile.am): Also substitute the value of
86223         REPLACE_STRCASESTR.
86224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
86225         assume strcasestr is declared in <string.h> not <strings.h>. Also
86226         set REPLACE_STRCASESTR.
86227         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
86228         REPLACE_STRCASESTR.
86229         * lib/strcasestr.h: Remove file.
86230         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
86231         * lib/string_.h (strcasestr): New declaration.
86233 2007-01-27  Bruno Haible  <bruno@clisp.org>
86235         * lib/string_.h: Use 'extern'.
86237 2007-01-27  Jim Meyering  <jim@meyering.net>
86239         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
86240         of set-but-not-used local, "q".
86242         * lib/mempcpy.c: Include <config.h> before <string.h>.
86243         This fixes a compilation error on HP-UX, due to the system's
86244         "restrict"-using mempcpy prototype.
86246 2007-01-26  Bruno Haible  <bruno@clisp.org>
86248         Small optimization.
86249         * lib/javacomp.c: Include c-strstr.h.
86250          (is_envjavac_gcj): Use c_strstr instead of strstr.
86251         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
86253 2007-01-26  Bruno Haible  <bruno@clisp.org>
86255         * MODULES.html.sh (Unicode string functions): Add the new modules.
86257         * modules/uniconv/u32-strconv-to-locale: New file.
86258         * lib/uniconv/u32-strconv-to-locale.c: New file.
86260         * modules/uniconv/u16-strconv-to-locale: New file.
86261         * lib/uniconv/u16-strconv-to-locale.c: New file.
86263         * modules/uniconv/u8-strconv-to-locale: New file.
86264         * lib/uniconv/u8-strconv-to-locale.c: New file.
86266         * modules/uniconv/u32-strconv-from-locale: New file.
86267         * lib/uniconv/u32-strconv-from-locale.c: New file.
86269         * modules/uniconv/u16-strconv-from-locale: New file.
86270         * lib/uniconv/u16-strconv-from-locale.c: New file.
86272         * modules/uniconv/u8-strconv-from-locale: New file.
86273         * lib/uniconv/u8-strconv-from-locale.c: New file.
86275         * modules/uniconv/u32-strconv-to-enc: New file.
86276         * lib/uniconv/u32-strconv-to-enc.c: New file.
86277         * modules/uniconv/u32-strconv-to-enc-tests: New file.
86278         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
86280         * modules/uniconv/u16-strconv-to-enc: New file.
86281         * lib/uniconv/u16-strconv-to-enc.c: New file.
86282         * lib/uniconv/u-strconv-to-enc.h: New file.
86283         * modules/uniconv/u16-strconv-to-enc-tests: New file.
86284         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
86286         * modules/uniconv/u8-strconv-to-enc: New file.
86287         * lib/uniconv/u8-strconv-to-enc.c: New file.
86288         * modules/uniconv/u8-strconv-to-enc-tests: New file.
86289         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
86291         * modules/uniconv/u32-strconv-from-enc: New file.
86292         * lib/uniconv/u32-strconv-from-enc.c: New file.
86293         * modules/uniconv/u32-strconv-from-enc-tests: New file.
86294         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
86296         * modules/uniconv/u16-strconv-from-enc: New file.
86297         * lib/uniconv/u16-strconv-from-enc.c: New file.
86298         * modules/uniconv/u16-strconv-from-enc-tests: New file.
86299         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
86301         * modules/uniconv/u8-strconv-from-enc: New file.
86302         * lib/uniconv/u8-strconv-from-enc.c: New file.
86303         * lib/uniconv/u-strconv-from-enc.h: New file.
86304         * modules/uniconv/u8-strconv-from-enc-tests: New file.
86305         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
86307         * modules/uniconv/u32-conv-from-enc: New file.
86308         * lib/uniconv/u32-conv-from-enc.c: New file.
86309         * modules/uniconv/u32-conv-from-enc-tests: New file.
86310         * tests/uniconv/test-u32-conv-from-enc.c: New file.
86312         * modules/uniconv/u16-conv-from-enc: New file.
86313         * lib/uniconv/u16-conv-from-enc.c: New file.
86314         * lib/uniconv/u-conv-from-enc.h: New file.
86315         * modules/uniconv/u16-conv-from-enc-tests: New file.
86316         * tests/uniconv/test-u16-conv-from-enc.c: New file.
86318         * modules/uniconv/u8-conv-from-enc: New file.
86319         * lib/uniconv/u8-conv-from-enc.c: New file.
86320         * modules/uniconv/u8-conv-from-enc-tests: New file.
86321         * tests/uniconv/test-u8-conv-from-enc.c: New file.
86323         * modules/uniconv/base: New file.
86324         * lib/uniconv.h: New file.
86326 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
86328         * doc/gnulib-tool.texi (Initial import): Update to match current
86329         behavior with strdup module.
86330         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
86331         * lib/memmem.h: Remove; all uses removed.  This is now done
86332         by <string.h>.
86333         * lib/mempcpy.h: Likewise.
86334         * lib/memrchr.h: Likewise.
86335         * lib/stpcpy.h: Likewise.
86336         * lib/stpncpy.h: Likewise.
86337         * lib/strcase.h: Likewise.
86338         * lib/strchrnul.h: Likewise.
86339         * lib/strdup.h: Likewise.
86340         * lib/strndup.h: Likewise.
86341         * lib/strnlen.h: Likewise.
86342         * lib/strpbrk.h: Likewise.
86343         * lib/strsep.h: Likewise.
86344         * lib/strstr.h: Likewise.
86345         * lib/strtok_r.h: Likewise.
86346         * lib/string_.h: New file.
86347         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
86348         Rely on <string.h> instead.
86349         * lib/canon-host.c: Likewise.
86350         * lib/chdir-long.c: Likewise.
86351         * lib/concatpath.c: Likewise.
86352         * lib/exclude.c: Likewise.
86353         * lib/fchdir.c: Likewise.
86354         * lib/getaddrinfo.c: Likewise.
86355         * lib/getcwd.c: Likewise.
86356         * lib/getsubopt.c: Likewise.
86357         * lib/glob.c: Likewise.
86358         * lib/hard-locale.c: Likewise.
86359         * lib/iconvme.c: Likewise.
86360         * lib/javacomp.c: Likewise.
86361         * lib/mempcpy.c: Likewise.
86362         * lib/memrchr.c: Likewise.
86363         * lib/regex_internal.h: Likewise.
86364         * lib/stpncpy.c: Likewise.
86365         * lib/strcasecmp.c: Likewise.
86366         * lib/strchrnul.c: Likewise.
86367         * lib/strdup.c: Likewise.
86368         * lib/striconv.c: Likewise.
86369         * lib/striconveh.c: Likewise.
86370         * lib/striconveha.c: Likewise.
86371         * lib/strncasecmp.c: Likewise.
86372         * lib/strndup.c: Likewise.
86373         * lib/strnlen.c: Likewise.
86374         * lib/strsep.c: Likewise.
86375         * lib/strstr.c: Likewise.
86376         * lib/strtok_r.c: Likewise.
86377         * lib/userspec.c: Likewise.
86378         * lib/w32spawn.h: Likewise.
86379         * lib/xstrndup.c: Likewise.
86380         * lib/mountlist.c (strstr): Remove decl.
86381         * m4/string_h.m4: New file.
86382         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
86383         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
86384         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
86385         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
86386         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
86387         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
86388         Set REPLACE_STRCASECMP if necessary.
86389         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
86390         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
86391         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
86392         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
86393         HAVE_DECL_STRDUP if necessary.
86394         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
86395         since gl_FUNC_STRNDUP does that now.
86396         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
86397         Check for decl here...
86398         (gl_PREREQ_STRNLEN): ... not here.
86399         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
86400         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
86401         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
86402         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
86403         necessary.
86404         * modules/string: New file.
86405         * modules/memmem (Files): Remove special-purpose include file.
86406         (Depends-on): Add string.
86407         (Include): Include <string.h>, not the removed file.
86408         * modules/mempcpy: Likewise.
86409         * modules/memrchr: Likewise.
86410         * modules/stpcpy: Likewise.
86411         * modules/stpncpy: Likewise.
86412         * modules/strcase: Likewise.
86413         * modules/strchrnul: Likewise.
86414         * modules/strdup: Likewise.
86415         * modules/strndup: Likewise.
86416         * modules/strnlen: Likewise.
86417         * modules/strpbrk: Likewise.
86418         * modules/strsep: Likewise.
86419         * modules/strstr: Likewise.
86420         * modules/strtok_r: Likewise.
86421         * tests/test-dirname.c: Don't include "strdup.h", since
86422         <string.h> now suffices.
86423         * tests/test-memmem.c: Don't include "memmem.h", since
86424         <string.h> now suffices.
86426 2007-01-25  Bruno Haible  <bruno@clisp.org>
86428         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
86429         *resultp is 0.
86431         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
86432         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
86433         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
86434         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
86436         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
86437         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
86438         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
86439         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
86440         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
86441         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
86443 2007-01-24  Bruno Haible  <bruno@clisp.org>
86445         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
86446         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
86447         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
86448         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
86449         gl_FUNC_FTS_CORE.
86450         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
86451         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
86452         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86453         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
86454         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
86455         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
86456         gl_FUNC_FCHOWNAT.
86457         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
86458         gl_FUNC_STRFTIME.
86459         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
86460         Reported by Ralf Wildenhues.
86462 2007-01-24  Bruno Haible  <bruno@clisp.org>
86464         Drop AC_REQUIRE calls that are redundant with the module dependencies.
86465         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
86466         gl_GETADDRINFO.
86467         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
86468         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
86469         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
86471 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
86473         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
86474         Don't use 'exit'; just return from 'main'.
86475         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
86477         * lib/fnmatch_.h: Readjust white space and comments to match
86478         glibc, to avoid spurious diffs.
86480 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86482         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
86483         2004-12-01 change by Jakub Jelinek, since this code won't compile
86484         if !LIBC.  Problem reported by Bob Proulx.
86486 2007-01-23  Bruno Haible  <bruno@clisp.org>
86488         * lib/striconveh.c: Include c-strcaseeq.h.
86489         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
86490         * modules/striconveh (Depends-on): Add c-strcaseeq.
86492 2007-01-23  Bruno Haible  <bruno@clisp.org>
86494         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
86496         * modules/c-strcaseeq: New file.
86497         * lib/c-strcaseeq.h: New file.
86499         * modules/streq: New file.
86500         * lib/streq.h: New file.
86502 2007-01-23  Bruno Haible  <bruno@clisp.org>
86504         * modules/striconveha-tests: New file.
86505         * tests/test-striconveha.c: New file.
86507         * lib/striconveha.h: Include <stdbool.h>.
86508         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
86509         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
86510         (mem_iconveha_notranslit): Renamed from mem_iconveha.
86511         (mem_iconveha): New function.
86512         (str_iconveha_notranslit): Renamed from str_iconveha.
86513         (str_iconveha): New function.
86514         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
86515         c-strcase.
86517 2007-01-23  Bruno Haible  <bruno@clisp.org>
86519         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
86520         encodings without forgiving before trying any encoding with handler.
86521         (str_iconveha): Try all encodings without forgiving before trying any
86522         encoding with handler.
86524 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86526         Import the following changes from libc.
86528         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
86530         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
86532         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
86534         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
86535         normal_bracket label.
86537         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
86539         [BZ #361]
86540         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
86541         to normal_bracket after fetching the next character.
86543 2007-01-22  Bruno Haible  <bruno@clisp.org>
86545         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
86546         argument.
86547         * lib/striconveh.c (iconv_carefully_1): New function.
86548         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
86549         argument.
86550         (str_cd_iconveh): Update.
86551         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
86552         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
86553         * tests/test-striconveh.c (MAGIC): New macro.
86554         (new_offsets): New function.
86555         (main): Test call with and without offsets.
86557 2007-01-22  Bruno Haible  <bruno@clisp.org>
86559         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
86560         * modules/sys_select (Makefile.am): Likewise.
86561         * modules/sys_socket (Makefile.am): Likewise.
86562         * modules/sys_time (Makefile.am): Likewise.
86564 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
86566         * modules/gettimeofday (License): Change from GPL to LGPL, since
86567         gettimeofday is a library function.
86569 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86571         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
86573 2007-01-21  Bruno Haible  <bruno@clisp.org>
86575         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
86577 2007-01-21  Bruno Haible  <bruno@clisp.org>
86579         * modules/striconveha: New file.
86580         * lib/striconveha.h: New file.
86581         * lib/striconveha.c: New file.
86582         * MODULES.html.sh (Internationalization functions): Add striconveha.
86583         * lib/striconv.c (str_iconv): Optimize the case of an empty input
86584         string.
86585         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
86587 2007-01-21  Bruno Haible  <bruno@clisp.org>
86589         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
86590         * lib/striconveh.c (str_iconveh): Likewise.
86592 2007-01-21  Bruno Haible  <bruno@clisp.org>
86594         * lib/striconveh.h (mem_iconveh): New declaration.
86595         * lib/striconveh.c (mem_iconveh): New function.
86596         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
86598 2007-01-21  Bruno Haible  <bruno@clisp.org>
86600         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
86602         * lib/striconveh.h (mem_cd_iconveh): Change specification.
86603         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
86604         original result buffer.
86605         (str_cd_iconveh): Update.
86606         * tests/test-striconveh.c (main): Update.
86608         * lib/striconv.h (mem_cd_iconv): Change specification.
86609         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
86610         result buffer.
86611         (str_cd_iconv): Update.
86612         * tests/test-striconv.c (main): Update.
86614 2007-01-21  Bruno Haible  <bruno@clisp.org>
86616         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
86618 2007-01-20  Jim Meyering  <jim@meyering.net>
86620         * lib/userspec.c (parse_with_separator): If a user or group string
86621         starts with "+", skip the corresponding name-to-ID look-up, since
86622         such a look-up must fail: user and group names may not include "+".
86624 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86626         * lib/poll.c: Include sys/time.h and time.h unconditionally,
86627         since we now assume the sys_time module.
86628         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
86629         check for sys/time.h; no longer needed.
86630         * modules/poll (Depends-on): Depend on sys_time.
86632 2007-01-18  Bruno Haible  <bruno@clisp.org>
86634         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
86635         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
86637         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
86638         gettimeofday.
86640         * tests/test-gettimeofday.c: Include <time.h>.
86641         (dummy): Remove variable.
86643         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
86644         gl_HEADER_SYS_TIME_H.
86645         (gl_HEADER_SYS_TIME_H): New macro.
86647         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
86648         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86649         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
86650         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
86651         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86652         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
86653         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
86654         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86655         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
86656         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
86657         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86659         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
86660         last change; it caused a compilation error when cross-compiling to
86661         Cygwin.
86663 2007-01-18  Jim Meyering  <jim@meyering.net>
86665         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
86666         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
86667         than the race-prone "test -d sys || mkdir sys".
86668         (configure.ac): Use AC_PROG_MKDIR_P.
86669         * modules/sys_select: Likewise.
86670         * modules/sys_socket: Likewise.
86671         * modules/sys_time: Likewise.
86673 2007-01-18  Eric Blake  <ebb9@byu.net>
86675         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
86676         replace gettimeofday.
86677         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
86678         name, to avoid infinite recursion.
86680 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
86682         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
86683         module sys_time.
86684         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
86685         assume timespec.h defines struct timeval.
86686         * lib/settime.c: Likewise.
86687         * lib/utimens.c: Likewise.
86688         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
86689         since we now assume the gettimeofday module.
86690         * lib/tempname.c (__gen_tempname): Likewise.
86691         * lib/gettimeofday.h: Remove.
86692         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
86693         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
86694         Include <time.h>, for 'time()'.
86695         (localtime_buffer_addr): Also use this workaround if
86696         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
86697         to simplify the uses.  All uses changed.
86698         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
86699         that #undef is inside {}, and 'const' follows type name consistently.
86700         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
86701         (gettimeofday): Do not use the maximum possible value for
86702         tv->tv_usec, since that might break usages other than ls.c.
86703         Instead, we'll leave ls.c alone.  This undoes today's patch
86704         by Bruno.  Add a compile-time warning for 1s-clock resolution;
86705         we've never observed the problem but might as well keep the
86706         canary.
86707         * lib/nanosleep.c: Include timespec.h first, for interface check.
86708         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
86709         now assume the sys_time module.
86710         * lib/tempname.c: Likewise.
86711         * lib/timespec.h: Likewise.
86712         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
86713         needed.
86714         * lib/strftime.c: Likewise.
86715         * lib/timespec.h: Likewise.
86716         * lib/posixtm.c: Include posixtm.h first, for interface check.
86717         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
86718         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
86719         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
86720         * lib/sys_time_.h: New file.
86721         * lib/timespec.h (struct timespec): Use long int, not long.
86722         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
86723         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
86724         Remove obsolescent call to AC_HEADER_TIME.
86725         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
86726         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
86727         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
86728         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
86729         Likewise.
86730         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
86731         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
86732         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
86733         into the sys_time module.  Check for gettimeofday just once.
86734         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
86735         for gettimeofday signature to just check the signature.  Merely
86736         compile it, since linking doesn't test signature.  Improve test for
86737         whether gettimeofday.o is actually needed.
86738         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
86739         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
86740         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
86741         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86742         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
86743         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
86744         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
86745         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
86746         than worrying about sys/time.h.
86747         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
86748         Don't bother worrying about TIME_WITH_SYS_TIME.
86749         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
86750         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
86751         * m4/sys_time_h.m4: New file.
86752         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
86753         Don't include sys/time.h.  Return from main rather than exiting.
86754         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
86755         all uses changed.
86756         * modules/gethrxtime (Depends-on): Add sys_time.
86757         * modules/gettime (Depends-on): Likewise.
86758         * modules/gettimeofday (Depends-on): Likewise.
86759         * modules/nanosleep (Depends-on): Likewise.
86760         * modules/settime (Depends-on): Likewise.
86761         * modules/tempname (Depends-on): Likewise.
86762         * modules/utimens (Depends-on): Likewise.
86763         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
86764         (Include): Change back to <sys/time.h>.
86765         (Maintainer): Add self.
86766         * modules/sys_time: New file.
86767         * modules/tempname (Depends-on): Add gettimeofday.
86768         * tests/test-gettimeofday.c: Include <sys/time.h>
86769         rather than gettimeofday.h.
86771 2007-01-17  Bruno Haible  <bruno@clisp.org>
86773         * gnulib-tool (func_get_license): Revert last patch. Instead, let
86774         the license default to GPL.
86775         (func_create_testdir): Don't complain if a module is LGPL and its
86776         tests module depends on GPLed modules.
86778 2007-01-17  Bruno Haible  <bruno@clisp.org>
86780         * lib/gettimeofday.c (gettimeofday): Add code for the case
86781         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
86782         maximum possible value for tv->tv_usec, rather than the minimum one.
86784 2005-10-08  Martin Lambers  <marlam@marlam.de>
86785 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
86786 2007-01-16  Bruno Haible  <bruno@clisp.org>
86788         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
86789         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
86790         gl_FUNC_GETTIMEOFDAY.
86791         (Include): Add gettimeofday.h.
86792         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
86793         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
86794         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
86795         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
86796         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
86797         * lib/gettimeofday.h: New file.
86798         * lib/gettimeofday.c: Include <sys/timeb.h>.
86799         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
86800         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
86801         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
86802         fall back on time().
86804         * tests/test-gettimeofday.c: New file.
86805         * modules/gettimeofday-tests: New file.
86807 2007-01-16  Eric Blake  <ebb9@byu.net>
86809         * modules/fnmatch (Depends-on): Depend on wchar.
86810         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
86811         * m4/fnmatch.m4: Likewise.
86812         * modules/mbchar (Makefile.am): Assume <wchar.h>.
86813         * m4/mbchar.m4: Likewise.
86814         * modules/mbswidth (Depends-on): Depend on wchar.
86815         * lib/mbswidth.c: Assume <wchar.h>.
86816         * m4/mbswidth.m4: Likewise.
86817         * modules/quotearg (Depends-on): Depend on wchar.
86818         * lib/quotearg.c: Assume <wchar.h>.
86819         * m4/quotearg.m4: Likewise.
86820         * modules/regex (Depends-on): Depend on wchar.
86821         * lib/regex_internal.h: Assume <wchar.h>.
86822         * m4/regex.m4: Likewise.
86823         * modules/stdint (Depends-on): Depend on wchar.
86824         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
86825         * m4/stdint.m4: Likewise.
86826         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
86827         * modules/strftime (Depends-on): Depend on wchar.
86828         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
86829         * modules/strtol (Depends-on): Depend on wchar.
86830         * lib/strtol.c: Assume <wchar.h>.
86831         * modules/wcwidth (Depends-on): Depend on wchar.
86832         * lib/wcwidth.h: Assume <wchar.h>.
86833         * m4/wcwidth.m4: Likewise.
86835 2007-01-16  Bruno Haible  <bruno@clisp.org>
86837         * modules/csharpexec-script: New, created from...
86838         * modules/csharpexec: ... this.
86840 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
86842         * modules/javaexec-script: New, created from...
86843         * modules/javaexec: ... this.
86845 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86847         * modules/poll (Dependencies): Add sys_select.
86849 2007-01-15  Jim Meyering  <jim@meyering.net>
86851         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
86852         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
86853         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
86854         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
86856 2007-01-15  Bruno Haible  <bruno@clisp.org>
86858         * modules/striconveh: New file.
86859         * lib/striconveh.h: New file.
86860         * lib/striconveh.c: New file.
86861         * MODULES.html.sh (Internationalization functions): Add striconveh.
86863         * modules/striconveh-tests: New file.
86864         * tests/test-striconveh.c: New file.
86866 2007-01-15  Bruno Haible  <bruno@clisp.org>
86868         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
86869         not from GNU libiconv or GNU libc.
86871 2007-01-15  Bruno Haible  <bruno@clisp.org>
86873         * doc/gnulib-intro.texi (Copyright): Explain the different license
86874         terms for module descriptions, autoconf macros, tests, documentation.
86876 2007-01-14  Bruno Haible  <bruno@clisp.org>
86878         * modules/striconv-tests: New file.
86879         * tests/test-striconv.c: New file.
86881 2007-01-14  Bruno Haible  <bruno@clisp.org>
86883         * modules/iconv-tests: New file.
86884         * tests/test-iconv.c: New file.
86886 2007-01-14  Bruno Haible  <bruno@clisp.org>
86888         * gnulib-tool (func_get_license): For test modules, use the license of
86889         the main module.
86891 2007-01-14  Bruno Haible  <bruno@clisp.org>
86893         * modules/iconv (Include): Clarify that <iconv.h> can only be included
86894         if iconv is found to exist.
86896 2007-01-14  Bruno Haible  <bruno@clisp.org>
86898         * modules/c-ctype-tests: New file.
86899         * tests/test-c-ctype.c: New file.
86901 2007-01-14  Bruno Haible  <bruno@clisp.org>
86903         * modules/binary-io-tests: New file.
86904         * tests/test-binary-io.sh: New file.
86905         * tests/test-binary-io.c: New file.
86907 2007-01-14  Bruno Haible  <bruno@clisp.org>
86909         * modules/array-oset-tests: New file.
86910         * tests/test-array_oset.c: New file.
86912 2007-01-14  Bruno Haible  <bruno@clisp.org>
86914         * modules/array-list-tests: New file.
86915         * tests/test-array_list.c: New file.
86917 2007-01-14  Bruno Haible  <bruno@clisp.org>
86919         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
86920         and make.
86921         Reported by Simon Josefsson in
86922         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
86924 2007-01-14  Bruno Haible  <bruno@clisp.org>
86926         * modules/allocsa-tests: New file.
86927         * tests/test-allocsa.c: New file.
86929 2007-01-14  Bruno Haible  <bruno@clisp.org>
86931         * modules/fchdir (Depends-on): Add absolute-header.
86932         * modules/unistd (Depends-on): Likewise.
86934 2006-12-30  Bruno Haible  <bruno@clisp.org>
86936         * modules/fchdir: New file.
86937         * modules/unistd (Files): Add lib/unistd_.h.
86938         (Makefile.am): Generate unistd.h from unistd_.h.
86939         * lib/fchdir.c: New file.
86940         * lib/dirent_.h: New file.
86941         * lib/unistd_.h: New file.
86942         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
86943         * m4/fchdir.m4: New file.
86944         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
86945         (gl_HEADER_UNISTD): Invoke it.
86946         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
86947         function.
86948         * lib/backupfile.c (opendir, closedir): Undefine.
86949         * lib/chown.c (open, close): Undefine.
86950         * lib/clean-temp.c (open, close): Undefine.
86951         * lib/copy-file.c (open, close): Undefine.
86952         * lib/execute.c (open, close): Undefine.
86953         * lib/fsusage.c (open, close): Undefine.
86954         * lib/gc-gnulib.c (open, close): Undefine.
86955         * lib/getcwd.c (opendir, closedir): Undefine.
86956         * lib/glob.c (opendir, closedir): Undefine.
86957         * lib/javacomp.c (open, close): Undefine.
86958         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
86959         * lib/openat-proc.c (open, close): Undefine.
86960         * lib/pagealign_alloc.c (open, close): Undefine.
86961         * lib/pipe.c (open, close): Undefine.
86962         * lib/progreloc.c (open, close): Undefine.
86963         * lib/savedir.c (opendir, closedir): Undefine.
86964         * lib/utime.c (open, close): Undefine.
86965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
86967 2007-01-10  Bruno Haible  <bruno@clisp.org>
86969         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
86971 2007-01-12  Eric Blake  <ebb9@byu.net>
86973         Provide a robust <wchar.h>.  Further simplifications are now
86974         possible in other modules, but not included here.
86975         * modules/wchar: New module.
86976         * m4/wchar.m4: New file.
86977         * lib/wchar_.h: Likewise.
86978         * modules/mbchar (Depends-on): Depend on wchar, as the first use
86979         of the new module.
86980         * MODULES.html.sh (Extended multibyte and wide character utilities):
86981         New section.
86983 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
86985         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
86986         to a reasonable default for memory allocation.
86987         (xreadlink): Don't allocate a huge buffer, to work around a buggy
86988         file system that reports garbage st_size values for symlinks.
86989         Problem reported by Liyang Hu.
86991 2007-01-11  Simon Josefsson  <simon@josefsson.org>
86993         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
86994         Emacs .#* auto-save files).
86996 2007-01-11  Bruno Haible  <bruno@clisp.org>
86998         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
86999         directory.
87001 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
87003         Use @...@ consistently in lib/wctype_.h.
87004         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
87005         on it being set to 1 or 0.
87006         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
87007         go back to AC_SUBSTing it.
87008         * modules/wctype (Makefile.am): Undo previous change.
87010 2007-01-10  Eric Blake  <ebb9@byu.net>
87012         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
87013         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
87014         * modules/wctype (Makefile.am): Likewise.
87015         Reported by Chris McGuire.
87017 2007-01-10  Jim Meyering  <jim@meyering.net>
87019         fts.c: a small readability/maintainability improvement
87020         * lib/fts.c (fts_read): Make this code slightly more readable and
87021         maintainable by hoisting the "sp->fts_cur = p" assignments to
87022         immediately follow the statements that set P.  Derived from
87023         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
87025 2007-01-10  Eric Blake  <ebb9@byu.net>
87027         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
87028         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
87029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
87030         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
87031         Reported by Chris McGuire.
87033 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87035         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
87036         in sed script.
87038 2007-01-09  Bruno Haible  <bruno@clisp.org>
87040         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
87041         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
87042         variables.
87043         (func_module): Use them.
87045 2007-01-09  Bruno Haible  <bruno@clisp.org>
87047         * modules/unistr/base: New file.
87048         * lib/unistr.h: New file.
87050         * modules/unistr/u8-to-u16: New file.
87051         * lib/unistr/u8-to-u16.c: New file.
87053         * modules/unistr/u8-to-u32: New file.
87054         * lib/unistr/u8-to-u32.c: New file.
87056         * modules/unistr/u16-to-u8: New file.
87057         * lib/unistr/u16-to-u8.c: New file.
87059         * modules/unistr/u16-to-u32: New file.
87060         * lib/unistr/u16-to-u32.c: New file.
87062         * modules/unistr/u32-to-u8: New file.
87063         * lib/unistr/u32-to-u8.c: New file.
87065         * modules/unistr/u32-to-u16: New file.
87066         * lib/unistr/u32-to-u16.c: New file.
87068         * modules/unistr/u8-check: New file.
87069         * modules/unistr/u16-check: New file.
87070         * modules/unistr/u32-check: New file.
87071         * lib/unistr/u8-check.c: New file.
87072         * lib/unistr/u16-check.c: New file.
87073         * lib/unistr/u32-check.c: New file.
87075         * modules/unistr/u8-chr: New file.
87076         * modules/unistr/u16-chr: New file.
87077         * modules/unistr/u32-chr: New file.
87078         * lib/unistr/u8-chr.c: New file.
87079         * lib/unistr/u16-chr.c: New file.
87080         * lib/unistr/u32-chr.c: New file.
87082         * modules/unistr/u8-cmp: New file.
87083         * modules/unistr/u16-cmp: New file.
87084         * modules/unistr/u32-cmp: New file.
87085         * lib/unistr/u8-cmp.c: New file.
87086         * lib/unistr/u16-cmp.c: New file.
87087         * lib/unistr/u32-cmp.c: New file.
87089         * modules/unistr/u8-cpy: New file.
87090         * modules/unistr/u16-cpy: New file.
87091         * modules/unistr/u32-cpy: New file.
87092         * lib/unistr/u8-cpy.c: New file.
87093         * lib/unistr/u16-cpy.c: New file.
87094         * lib/unistr/u32-cpy.c: New file.
87095         * lib/unistr/u-cpy.h: New file.
87097         * modules/unistr/u8-cpy-alloc: New file.
87098         * modules/unistr/u16-cpy-alloc: New file.
87099         * modules/unistr/u32-cpy-alloc: New file.
87100         * lib/unistr/u8-cpy-alloc.c: New file.
87101         * lib/unistr/u16-cpy-alloc.c: New file.
87102         * lib/unistr/u32-cpy-alloc.c: New file.
87103         * lib/unistr/u-cpy-alloc.h: New file.
87105         * modules/unistr/u8-endswith: New file.
87106         * modules/unistr/u16-endswith: New file.
87107         * modules/unistr/u32-endswith: New file.
87108         * lib/unistr/u8-endswith.c: New file.
87109         * lib/unistr/u16-endswith.c: New file.
87110         * lib/unistr/u32-endswith.c: New file.
87111         * lib/unistr/u-endswith.h: New file.
87113         * modules/unistr/u8-mblen: New file.
87114         * modules/unistr/u16-mblen: New file.
87115         * modules/unistr/u32-mblen: New file.
87116         * lib/unistr/u8-mblen.c: New file.
87117         * lib/unistr/u16-mblen.c: New file.
87118         * lib/unistr/u32-mblen.c: New file.
87120         * modules/unistr/u8-mbtouc: New file.
87121         * modules/unistr/u16-mbtouc: New file.
87122         * modules/unistr/u32-mbtouc: New file.
87123         * lib/unistr/u8-mbtouc.c: New file.
87124         * lib/unistr/u16-mbtouc.c: New file.
87125         * lib/unistr/u32-mbtouc.c: New file.
87127         * modules/unistr/u8-mbtouc-safe: New file.
87128         * modules/unistr/u16-mbtouc-safe: New file.
87129         * modules/unistr/u32-mbtouc-safe: New file.
87130         * lib/unistr/u8-mbtouc-safe.c: New file.
87131         * lib/unistr/u16-mbtouc-safe.c: New file.
87132         * lib/unistr/u32-mbtouc-safe.c: New file.
87134         * modules/unistr/u8-move: New file.
87135         * modules/unistr/u16-move: New file.
87136         * modules/unistr/u32-move: New file.
87137         * lib/unistr/u8-move.c: New file.
87138         * lib/unistr/u16-move.c: New file.
87139         * lib/unistr/u32-move.c: New file.
87140         * lib/unistr/u-move.h: New file.
87142         * modules/unistr/u8-next: New file.
87143         * modules/unistr/u16-next: New file.
87144         * modules/unistr/u32-next: New file.
87145         * lib/unistr/u8-next.c: New file.
87146         * lib/unistr/u16-next.c: New file.
87147         * lib/unistr/u32-next.c: New file.
87149         * modules/unistr/u8-prev: New file.
87150         * modules/unistr/u16-prev: New file.
87151         * modules/unistr/u32-prev: New file.
87152         * lib/unistr/u8-prev.c: New file.
87153         * lib/unistr/u16-prev.c: New file.
87154         * lib/unistr/u32-prev.c: New file.
87156         * modules/unistr/u8-set: New file.
87157         * modules/unistr/u16-set: New file.
87158         * modules/unistr/u32-set: New file.
87159         * lib/unistr/u8-set.c: New file.
87160         * lib/unistr/u16-set.c: New file.
87161         * lib/unistr/u32-set.c: New file.
87162         * lib/unistr/u-set.h: New file.
87164         * modules/unistr/u8-startswith: New file.
87165         * modules/unistr/u16-startswith: New file.
87166         * modules/unistr/u32-startswith: New file.
87167         * lib/unistr/u8-startswith.c: New file.
87168         * lib/unistr/u16-startswith.c: New file.
87169         * lib/unistr/u32-startswith.c: New file.
87170         * lib/unistr/u-startswith.h: New file.
87172         * modules/unistr/u8-stpcpy: New file.
87173         * modules/unistr/u16-stpcpy: New file.
87174         * modules/unistr/u32-stpcpy: New file.
87175         * lib/unistr/u8-stpcpy.c: New file.
87176         * lib/unistr/u16-stpcpy.c: New file.
87177         * lib/unistr/u32-stpcpy.c: New file.
87178         * lib/unistr/u-stpcpy.h: New file.
87180         * modules/unistr/u8-stpncpy: New file.
87181         * modules/unistr/u16-stpncpy: New file.
87182         * modules/unistr/u32-stpncpy: New file.
87183         * lib/unistr/u8-stpncpy.c: New file.
87184         * lib/unistr/u16-stpncpy.c: New file.
87185         * lib/unistr/u32-stpncpy.c: New file.
87186         * lib/unistr/u-stpncpy.h: New file.
87188         * modules/unistr/u8-strcat: New file.
87189         * modules/unistr/u16-strcat: New file.
87190         * modules/unistr/u32-strcat: New file.
87191         * lib/unistr/u8-strcat.c: New file.
87192         * lib/unistr/u16-strcat.c: New file.
87193         * lib/unistr/u32-strcat.c: New file.
87194         * lib/unistr/u-strcat.h: New file.
87196         * modules/unistr/u8-strchr: New file.
87197         * modules/unistr/u16-strchr: New file.
87198         * modules/unistr/u32-strchr: New file.
87199         * lib/unistr/u8-strchr.c: New file.
87200         * lib/unistr/u16-strchr.c: New file.
87201         * lib/unistr/u32-strchr.c: New file.
87203         * modules/unistr/u8-strcmp: New file.
87204         * modules/unistr/u16-strcmp: New file.
87205         * modules/unistr/u32-strcmp: New file.
87206         * lib/unistr/u8-strcmp.c: New file.
87207         * lib/unistr/u16-strcmp.c: New file.
87208         * lib/unistr/u32-strcmp.c: New file.
87210         * modules/unistr/u8-strcpy: New file.
87211         * modules/unistr/u16-strcpy: New file.
87212         * modules/unistr/u32-strcpy: New file.
87213         * lib/unistr/u8-strcpy.c: New file.
87214         * lib/unistr/u16-strcpy.c: New file.
87215         * lib/unistr/u32-strcpy.c: New file.
87216         * lib/unistr/u-strcpy.h: New file.
87218         * modules/unistr/u8-strcspn: New file.
87219         * modules/unistr/u16-strcspn: New file.
87220         * modules/unistr/u32-strcspn: New file.
87221         * lib/unistr/u8-strcspn.c: New file.
87222         * lib/unistr/u16-strcspn.c: New file.
87223         * lib/unistr/u32-strcspn.c: New file.
87224         * lib/unistr/u-strcspn.h: New file.
87226         * modules/unistr/u8-strdup: New file.
87227         * modules/unistr/u16-strdup: New file.
87228         * modules/unistr/u32-strdup: New file.
87229         * lib/unistr/u8-strdup.c: New file.
87230         * lib/unistr/u16-strdup.c: New file.
87231         * lib/unistr/u32-strdup.c: New file.
87232         * lib/unistr/u-strdup.h: New file.
87234         * modules/unistr/u8-strlen: New file.
87235         * modules/unistr/u16-strlen: New file.
87236         * modules/unistr/u32-strlen: New file.
87237         * lib/unistr/u8-strlen.c: New file.
87238         * lib/unistr/u16-strlen.c: New file.
87239         * lib/unistr/u32-strlen.c: New file.
87240         * lib/unistr/u-strlen.h: New file.
87242         * modules/unistr/u8-strmblen: New file.
87243         * modules/unistr/u16-strmblen: New file.
87244         * modules/unistr/u32-strmblen: New file.
87245         * lib/unistr/u8-strmblen.c: New file.
87246         * lib/unistr/u16-strmblen.c: New file.
87247         * lib/unistr/u32-strmblen.c: New file.
87249         * modules/unistr/u8-strmbtouc: New file.
87250         * modules/unistr/u16-strmbtouc: New file.
87251         * modules/unistr/u32-strmbtouc: New file.
87252         * lib/unistr/u8-strmbtouc.c: New file.
87253         * lib/unistr/u16-strmbtouc.c: New file.
87254         * lib/unistr/u32-strmbtouc.c: New file.
87256         * modules/unistr/u8-strncat: New file.
87257         * modules/unistr/u16-strncat: New file.
87258         * modules/unistr/u32-strncat: New file.
87259         * lib/unistr/u8-strncat.c: New file.
87260         * lib/unistr/u16-strncat.c: New file.
87261         * lib/unistr/u32-strncat.c: New file.
87262         * lib/unistr/u-strncat.h: New file.
87264         * modules/unistr/u8-strncmp: New file.
87265         * modules/unistr/u16-strncmp: New file.
87266         * modules/unistr/u32-strncmp: New file.
87267         * lib/unistr/u8-strncmp.c: New file.
87268         * lib/unistr/u16-strncmp.c: New file.
87269         * lib/unistr/u32-strncmp.c: New file.
87271         * modules/unistr/u8-strncpy: New file.
87272         * modules/unistr/u16-strncpy: New file.
87273         * modules/unistr/u32-strncpy: New file.
87274         * lib/unistr/u8-strncpy.c: New file.
87275         * lib/unistr/u16-strncpy.c: New file.
87276         * lib/unistr/u32-strncpy.c: New file.
87277         * lib/unistr/u-strncpy.h: New file.
87279         * modules/unistr/u8-strnlen: New file.
87280         * modules/unistr/u16-strnlen: New file.
87281         * modules/unistr/u32-strnlen: New file.
87282         * lib/unistr/u8-strnlen.c: New file.
87283         * lib/unistr/u16-strnlen.c: New file.
87284         * lib/unistr/u32-strnlen.c: New file.
87285         * lib/unistr/u-strnlen.h: New file.
87287         * modules/unistr/u8-strpbrk: New file.
87288         * modules/unistr/u16-strpbrk: New file.
87289         * modules/unistr/u32-strpbrk: New file.
87290         * lib/unistr/u8-strpbrk.c: New file.
87291         * lib/unistr/u16-strpbrk.c: New file.
87292         * lib/unistr/u32-strpbrk.c: New file.
87293         * lib/unistr/u-strpbrk.h: New file.
87295         * modules/unistr/u8-strrchr: New file.
87296         * modules/unistr/u16-strrchr: New file.
87297         * modules/unistr/u32-strrchr: New file.
87298         * lib/unistr/u8-strrchr.c: New file.
87299         * lib/unistr/u16-strrchr.c: New file.
87300         * lib/unistr/u32-strrchr.c: New file.
87302         * modules/unistr/u8-strspn: New file.
87303         * modules/unistr/u16-strspn: New file.
87304         * modules/unistr/u32-strspn: New file.
87305         * lib/unistr/u8-strspn.c: New file.
87306         * lib/unistr/u16-strspn.c: New file.
87307         * lib/unistr/u32-strspn.c: New file.
87308         * lib/unistr/u-strspn.h: New file.
87310         * modules/unistr/u8-strstr: New file.
87311         * modules/unistr/u16-strstr: New file.
87312         * modules/unistr/u32-strstr: New file.
87313         * lib/unistr/u8-strstr.c: New file.
87314         * lib/unistr/u16-strstr.c: New file.
87315         * lib/unistr/u32-strstr.c: New file.
87316         * lib/unistr/u-strstr.h: New file.
87318         * modules/unistr/u8-strtok: New file.
87319         * modules/unistr/u16-strtok: New file.
87320         * modules/unistr/u32-strtok: New file.
87321         * lib/unistr/u8-strtok.c: New file.
87322         * lib/unistr/u16-strtok.c: New file.
87323         * lib/unistr/u32-strtok.c: New file.
87324         * lib/unistr/u-strtok.h: New file.
87326         * modules/unistr/u8-uctomb: New file.
87327         * modules/unistr/u16-uctomb: New file.
87328         * modules/unistr/u32-uctomb: New file.
87329         * lib/unistr/u8-uctomb.c: New file.
87330         * lib/unistr/u16-uctomb.c: New file.
87331         * lib/unistr/u32-uctomb.c: New file.
87333         * MODULES.html.sh (Unicode string functions): Add the new modules.
87335 2007-01-08  Bruno Haible  <bruno@clisp.org>
87337         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
87338         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
87339         subdirectories.
87341 2007-01-08  Karl Berry  <karl@gnu.org>
87343         * doc/error.texi: mention that main() fns must set program_name
87344         when progname is used.
87346 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
87348         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
87349         WCTYPE_H is empty, for the benefit of builds from non-distclean
87350         directories.  Problem reported by Eric Blake in
87351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
87353 2007-01-08  Bruno Haible  <bruno@clisp.org>
87355         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
87356         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
87357         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
87358         PROVIDE_CANONICALIZE_FILENAME_MODE.
87359         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
87361 2007-01-08  Bruno Haible  <bruno@clisp.org>
87363         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
87364         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
87365         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
87366         * lib/fts.c: Likewise.
87367         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
87369 2006-12-25  Bruno Haible  <bruno@clisp.org>
87371         * modules/utf8-ucs4-safe: New file.
87372         * lib/utf8-ucs4-safe.h: New file.
87373         * lib/unistr/utf8-ucs4-safe.c: New file.
87375         * modules/utf16-ucs4-safe: New file.
87376         * lib/utf16-ucs4-safe.h: New file.
87377         * lib/unistr/utf16-ucs4-safe.c: New file.
87379         * MODULES.html.sh (Unicode string functions): Add the new modules.
87381 2007-01-08  Bruno Haible  <bruno@clisp.org>
87383         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
87384         (Depends-on): Add unitypes.
87385         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
87386         (u8_mbtouc_aux): Move out to separate file.
87387         (u8_mbtouc): Use ucs4_t, uint8_t types.
87388         * lib/unistr/utf8-ucs4.c: New file.
87390         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
87391         (Depends-on): Add unitypes.
87392         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
87393         (u16_mbtouc_aux): Move out to separate file.
87394         (u16_mbtouc): Use ucs4_t, uint16_t types.
87395         * lib/unistr/utf16-ucs4.c: New file.
87397         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
87398         (Depends-on): Add unitypes.
87399         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
87400         (u8_uctomb_aux): Move out to separate file.
87401         (u8_uctomb): Use ucs4_t, uint8_t types.
87402         * lib/unistr/ucs4-utf8.c: New file.
87404         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
87405         (Depends-on): Add unitypes.
87406         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
87407         (u16_uctomb_aux): Move out to separate file.
87408         (u16_uctomb): Use ucs4_t, uint16_t types.
87409         * lib/unistr/ucs4-utf16.c: New file.
87411 2006-12-25  Bruno Haible  <bruno@clisp.org>
87413         * modules/unitypes: New file.
87414         * lib/unitypes.h: New file.
87415         * MODULES.html.sh (func_all_modules): New section "Unicode string
87416         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
87417         this section. Add unitypes.
87419 2007-01-08  Bruno Haible  <bruno@clisp.org>
87421         Avoid variable names that conflict with those from libtool.
87422         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
87423         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
87424         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
87425         library_names_spec to acl_library_names_spec, hardcode_* to
87426         acl_hardcode_*.
87427         Reported by Ralf Wildenhues.
87429 2007-01-08  Bruno Haible  <bruno@clisp.org>
87431         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
87432         definition.
87433         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
87434         definition.
87435         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
87436         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
87437         definition.
87438         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
87439         definition.
87440         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
87441         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
87442         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
87443         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
87444         definition.
87445         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
87446         definition.
87447         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
87448         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
87449         GC_USE_<algorithm>.
87450         * lib/gc-libgcrypt.c: Likewise.
87451         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
87452         * modules/gc-arctwo (configure.ac): Likewise.
87453         * modules/gc-des (configure.ac): Likewise.
87454         * modules/gc-hmac-md5 (configure.ac): Likewise.
87455         * modules/gc-hmac-sha1 (configure.ac): Likewise.
87456         * modules/gc-md2 (configure.ac): Likewise.
87457         * modules/gc-md4 (configure.ac): Likewise.
87458         * modules/gc-md5 (configure.ac): Likewise.
87459         * modules/gc-random (configure.ac): Likewise.
87460         * modules/gc-rijndael (configure.ac): Likewise.
87461         * modules/gc-sha1 (configure.ac): Likewise.
87463 2007-01-08  Bruno Haible  <bruno@clisp.org>
87465         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
87466         macro definition.
87467         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
87468         definition.
87469         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
87470         definition.
87471         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
87472         * modules/fcntl-safer (configure.ac): Likewise.
87473         * modules/fopen-safer (configure.ac): Likewise.
87474         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
87475         GNULIB_FWRITEERROR macro definition.
87477 2007-01-08  Bruno Haible  <bruno@clisp.org>
87479         * m4/gnulib-common.m4: New file.
87480         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
87481         (func_get_filelist): Add m4/gnulib-common.m4.
87483 2007-01-08  Bruno Haible  <bruno@clisp.org>
87485         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
87486         command.
87488 2007-01-08  Jim Meyering  <jim@meyering.net>
87490         Use a more robust test for a "can't happen" condition.
87491         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
87492         narrowed the st_size value.  Presuming the "can't happen" condition
87493         is true, that narrowing could conceivably convert an invalid st_size
87494         value into a valid one.  Instead, use a change based on Matthew
87495         Woehlke's original patch.
87497         Slight readability improvement: use an assert-like macro
87498         in place of literal "abort ()" uses.
87499         * lib/fts.c (fts_assert): Define.
87500         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
87501         Use this macro instead of a bare 'abort'.
87503 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
87505         Don't worry about using IRIX 5.3's wctype.h broken definitions;
87506         simply work around them.
87507         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
87508         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
87509         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
87510         declaring.
87511         Don't bother to define as macros, since the standard doesn't require it.
87512         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
87513         longer worry about IRIX 5.3.
87514         (HAVE_WCTYPE_CTMP_BUG): Remove.
87516 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87518         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
87519         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
87520         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87521         Problems reported by Georg Schwarz for IRIX 5.3.
87523         * gnulib-tool (autoconf_minversion): Take the maximum version number
87524         found, not the minimum.  Problem reported by James Youngman.
87526 2007-01-03  Karl Berry  <karl@gnu.org>
87528         * doc/error.texi: new file, explaining interaction with progname.
87529         * doc/gnulib.texi: include it.  Update copyright.
87531 2007-01-03  Simon Josefsson  <simon@josefsson.org>
87533         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
87534         AC_CANONICAL_HOST, to improve autobuild outputs.
87536 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
87537             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
87539         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
87540         sockets, server sockets, and other file descriptors.  Count errors
87541         to compute the return value.  Reorder the code a bit to be easier
87542         to follow.  Don't set event bits that were not requested (except
87543         POLLERR and POLLHUP).
87545 2007-01-01  Bruno Haible  <bruno@clisp.org>
87547         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
87549 2007-01-03  Jim Meyering  <jim@meyering.net>
87551         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
87553 2007-01-02  Bruno Haible  <bruno@clisp.org>
87555         * modules/settime (Include): Require timespec.h.
87556         * modules/nanosleep (Include): Likewise.
87558 2007-01-01  Bruno Haible  <bruno@clisp.org>
87560         * gnulib-tool (func_emit_copyright_notice): Bump year.
87561         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
87563 2007-01-01  Bruno Haible  <bruno@clisp.org>
87565         Improve support for OpenBSD.
87566         * build-aux/config.rpath (libname_spec): Export.
87567         (library_names_spec): New variable. Export.
87568         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
87569         library_names_spec from the config.rpath output. Locate shared library
87570         through the name pattern in library_names_spec.
87572 2007-01-01  Eric Blake  <ebb9@byu.net>
87574         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
87576 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
87578         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
87579         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
87580         assume the C locale, and avoid an "eval" that could cause trouble.
87581         Problem with SORT reported by Bob Proulx.
87583         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
87584         Define.  Trivial patch from Henning Nielsen Lund, originally
87585         sent to bug-grep@gnu.org today.
87587 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
87589         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
87590         struct stat.  Problem reported by Henning Nielsen Lund.
87591         * lib/acl.c: Include acl.h first, to check interface.  Don't
87592         bother to include sys/types.h and sys/stat.h again.
87594 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87596         Import the following change from libc; problem reported by
87597         Sven Verdoolaege.
87599         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
87601         [BZ #1373]
87602         * lib/argp.h: Remove __NTH for __argp_usage inline function.
87604 2006-12-28  Jim Meyering  <jim@meyering.net>
87606         * build-aux/announce-gen: Do not assume that the package
87607         builds any of tar.gz, tar.bz2, and .xdelta files.
87608         Suggestion from Simon Josefsson.
87610 2006-12-28  Simon Josefsson  <simon@josefsson.org>
87612         * modules/announce-gen: New file.
87614 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
87616         * lib/mbchar.h: Just include <wctype.h>; the wctype module
87617         handles its gotchas now.
87618         * lib/mbswidth.c: Likewise.
87619         * lib/wcwidth.h: Likewise.
87620         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
87621         and iswcntrl; the wctype module does this stuff now.
87622         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
87624         * modules/mbchar (Depends-on): Add wctype.
87625         * modules/mbswidth (Depends-on): Likewise.
87626         * modules/wcwidth (Depends-on): Likewise.
87628 2006-12-27  Eric Blake  <ebb9@byu.net>
87630         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
87631         module uses more than what <wctype.h> is required to provide.
87633 2006-12-26  Eric Blake  <ebb9@byu.net>
87635         * gnulib-tool (sed_extract_prog): Avoid space-tab.
87637 2006-12-26  Eric Blake  <ebb9@byu.net>
87639         * modules/absolute-header: New module.
87640         * modules/fcntl (Depends-on): Depend on it.
87641         * modules/inttypes (Depends-on): Likewise.
87642         * modules/stdint (Depends-on): Likewise.
87643         * modules/sys_stat (Depends-on): Likewise.
87644         * modules/wctype (Depends-on): Likewise.
87645         * MODULES.html.sh (Support for building libraries and
87646         executables): Document it.
87648 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
87650         * gnulib-tool (SED): Remove, undoing previous change.
87651         The problem was that it broke coreutils on Solaris, because
87652         "sed --posix" leaked into a makefile.
87653         (sed): New alias, if 'alias' and GNU sed.
87655 2006-12-24  Jim Meyering  <jim@meyering.net>
87657         Work around an fchownat bug in glibc-2.4:
87658         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
87659         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
87660         in spite of the -P option.
87661         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
87662         New macros.
87663         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
87664         * modules/openat (Files): Add lib/fchownat.c.
87665         * lib/openat.c (fchownat): Don't define here.  Move to...
87666         * lib/fchownat.c: ...this new file.
87668 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87670         Fix bug reported by Bruno Haible in
87671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
87672         where quotearg.c didn't compile on Mac OS X 10.2 because it
87673         lacks <wchar.h> and wint_t.
87674         * lib/wctype_.h (__wctype_wint_t): New type.
87675         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
87676         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
87677         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
87678         Arg is now of type __wctype_wint_t, not wint_t.
87679         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
87680         substitute HAVE_WINT_T.
87681         * modules/wctype (Files): Add m4/wint_t.m4.
87682         (wctype.h): Substitute HAVE_WINT_T.
87684 2006-12-23  Bruno Haible  <bruno@clisp.org>
87686         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
87688 2006-12-23  Bruno Haible  <bruno@clisp.org>
87690         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
87691         S_ISLNK.
87692         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
87693         mingw.
87695 2006-12-22  Bruno Haible  <bruno@clisp.org>
87697         * lib/copy-file.c: Include acl.h.
87698         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
87699         Close the file descriptors only after being done with copy_acl.
87700         * modules/copy-file (Depends-on): Add acl.
87702 2006-12-22  Bruno Haible  <bruno@clisp.org>
87704         * gnulib-tool (SED): New variable.
87705         Use $SED instead of sed everywhere.
87707 2006-12-22  Bruno Haible  <bruno@clisp.org>
87709         * modules/no-c++: New file.
87710         * m4/no-c++.m4: New file.
87711         * MODULES.html.sh (Support for building libraries and executables):
87712         Add no-c++.
87714 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
87716         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
87717         Include <limits.h>, and use its INT_MAX to rewrite the
87718         j loop so that it does not overflow 'int'.  Problem reported by
87719         Ralf Wildenhues in
87720         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
87721         Play it safe by shifting left by 1 rather than multiplying by 2,
87722         as GCC is less likely to optimize this away when the value
87723         is signed (when it assumes overflow leads to undefined behavior).
87724         Also, don't assume time_t uses two's complement.
87726 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
87728         * MODULES.html.sh: New module wctype.
87729         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
87730         * lib/fnmatch.c: Don't bother to include <wchar.h> before
87731         <wctype.h>, since the new wctype module should fix this.
87732         * lib/quotearg.c: Include <wctype.h> unconditionally, since
87733         the wctype module should arrange for it.
87734         * lib/regex_internal.h: Likewise.
87735         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
87736         since the wctype module should handle this now.
87737         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
87738         * modules/fnmatch (Depends-on): Add wctype.
87739         * modules/quotearg (Depends-on): Likewise.
87740         * modules/regex (Depends-on): Likewise.
87742 2006-12-19  Bruno Haible  <bruno@clisp.org>
87744         * lib/strdup.h [C++]: Wrap definitions in extern "C".
87745         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
87747 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87749         * modules/savewd (Depends-on): Fix dependency on fcntl.
87751 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
87753         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
87754         conforms to C99, rather than relying on the user's environment
87755         setting of STDINT_H.
87757 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
87758         and Eric Blake  <ebb9@byu.net>
87760         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
87761         This is more consistent with the other defines here.
87762         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
87763         Port to z/OS.  Problem reported by Paul Gilmartin.
87764         Change local vars to use gl_ prefix rather than ac_.
87765         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
87766         with other defines.
87767         * modules/double-slash-root: New module.
87768         * modules/dirname (Files): Remove m4/double-slash-root.m4.
87769         (Depends-on): Add double-slash-root.
87770         * MODULES.html.sh (File system functions): Mention new module.
87772 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
87774         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
87775         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
87776         This is for the benefit of gzip, which doesn't do i18n.
87778 2006-12-12  Jim Meyering  <jim@meyering.net>
87780         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
87781         Reported by Andreas Schwab <schwab@suse.de>.
87783 2006-12-12  Bruno Haible  <bruno@clisp.org>
87785         Merge these changes.
87786         2006-09-05  Bruno Haible  <bruno@clisp.org>
87787         * lib/iconvme.c (iconv_string): No need to save and restore errno when
87788         iconv_alloc succeeded.
87789         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
87790         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
87791         test for " && dest " at the end - dest is always != NULL there. Call
87792         iconv with 4xNULL arguments initially, to reset the state. Call iconv
87793         with 2xNULL arguments, also to flush the state storage. Handle the
87794         IRIX iconv behaviour. Realloc the final result, to throw away unused
87795         memory.
87797 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
87799         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
87800         and fchmodat unconditionally, since glibc 2.4 has them.
87801         Problem reported by Arkadiusz Miskiewicz.
87803 2006-12-10  Bruno Haible  <bruno@clisp.org>
87805         * gnulib-tool (func_import): Show the include files only for those
87806         modules that are copied and specified.
87807         Reported by Karl Berry.
87809 2006-12-08  Jim Meyering  <jim@meyering.net>
87811         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
87812         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
87814         * build-aux/announce-gen: Add two new options, both optional:
87815         --bootstrap-tools=TOOL_LIST
87816               a comma-separated list of tools, e.g.,
87817               autoconf,automake,bison,gnulib
87818         --gnulib-snapshot-date=DATE
87819               if gnulib is in the bootstrap tool list,
87820               then report this as the snapshot date.
87821               If not specified, use the current date/time.
87822               If you specify a date here, be sure it's UTC.
87824 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87826         * tests/test-argp-2.sh: Fix test to match actual output.
87827         (func_compare): Fix sed script to be portable.
87829 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
87831         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
87832         workaround for this case.  It is not autoconfigured now; offhand
87833         it's hard to see how to autoconfigure it.
87835 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
87837         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
87838         a directory that is about to be chowned.  Such a directory's
87839         initial file permissions should permit the owner only and this
87840         should not be changed until after the chown, since the group and
87841         other bits would be incorrect if they granted permission before
87842         the chown.
87844         Fix porting problem for iswctype reported by Georg Schwarz in:
87845         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
87846         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
87847         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
87848         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
87849         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
87851 2006-12-03  Jim Meyering  <jim@meyering.net>
87853         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
87854         p->fts_statp may not yet be defined.
87855         (fts_read): Instead, set it in the caller, once p->fts_statp is
87856         sure to be defined, and corresponds to a top-level directory.
87857         This bug made du -x fail.  Here's the coreutils test case:
87858         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
87859         Reported by Mike Frysinger.
87861 2006-12-01  Jim Meyering  <jim@meyering.net>
87863         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
87864         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
87865         Reported by Simon Josefsson.
87867 2006-11-30  Jim Meyering  <jim@meyering.net>
87869         * m4/warning.m4: Use the all-permissive copyright notice
87870         recommended by RMS (rather than LGPL).
87871         * m4/vararrays.m4: Likewise.
87872         * m4/flexmember.m4: Likewise.
87874 2006-11-29  Bruno Haible  <bruno@clisp.org>
87876         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
87877         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
87878         using +=.
87879         Reported by Simon Josefsson <simon@josefsson.org>.
87881 2006-11-28  James Youngman  <jay@gnu.org>
87883         * README: Advise users that they might find the bug-gnulib@gnu.org
87884         and autotools-announce@gnu.org mailing lists useful.
87886 2006-11-28  Bruno Haible  <bruno@clisp.org>
87888         * m4/ptrdiff_max.m4: Remove file.
87890 2006-11-21  Bruno Haible  <bruno@clisp.org>
87892         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
87893         _AC_COMPUTE_INT.
87894         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
87895         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
87896         _AC_COMPUTE_INT.
87897         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
87898         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
87899         _AC_COMPUTE_INT.
87900         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
87902 2006-11-28  Jim Meyering  <jim@meyering.net>
87904         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
87905         warning from "gcc -Wshadow" about shadowing the builtin.
87907 2006-11-27  Bruno Haible  <bruno@clisp.org>
87909         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
87910         _AC_COMPUTE_INT.
87911         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
87913 2006-11-27  Bruno Haible  <bruno@clisp.org>
87914             Paul Eggert  <eggert@cs.ucla.edu>
87916         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
87918 2006-11-26  Bruno Haible  <bruno@clisp.org>
87920         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
87921         noinst_LTLIBRARIES.
87923 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87924             Bruno Haible  <bruno@clisp.org>
87926         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
87927         if compiling with "gcc -ansi".
87929 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87931         Fix some incompatibilities with gcc -ansi -pedantic.
87932         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
87933         if compiling pedantically with GCC, unless it's C99 or later.
87934         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
87935         it mishandles gcc -ansi -pedantic as well.
87936         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
87937         if gcc -pedantic.
87938         * lib/regexec.c (check_node_accept_bytes): Don't use auto
87939         initializers for struct if -pedantic, unless it's C99 or later.
87941 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
87943         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
87944         Don't close an fd more than once. Identical atimes indicate
87945         success, not failure.
87947 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
87949         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
87951 2006-11-23  Jim Meyering  <jim@meyering.net>
87953         * build-aux/announce-gen: New file.  From coreutils.
87955 2006-11-22  Jim Meyering  <jim@meyering.net>
87957         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
87958         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
87959         (fts_read): Use a temporary to narrow the overused st_size member
87960         before using it in a switch statement.  Reported by Matthew Woehlke.
87962         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
87963         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
87965 2006-11-20  Bruno Haible  <bruno@clisp.org>
87967         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
87968         changequote instead of pairs of brackets.
87969         Reported by Andreas Schwab <schwab@suse.de>.
87971 2006-11-21  Jim Meyering  <jim@meyering.net>
87973         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
87974         so as to remain compatible with older compilers.
87975         Patch from Michael Deutschmann.
87977 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87979         * MODULES.html.sh (File system functions): Add openat.
87981         * lib/openat.h (rpl_fstatat): New macro, if
87982         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
87983         (fstatat): Define to rpl_fstatat under the same conditions,
87984         unless COMPILING_FSTATAT.
87985         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
87986         seems to have the bug.
87987         * lib/fstatat.c: New file.
87988         * modules/openat (Files): Add it.
87990 2006-11-20  Bruno Haible  <bruno@clisp.org>
87992         * Makefile: New file.
87994 2006-11-20  Jim Meyering  <jim@meyering.net>
87996         The beginnings of syntax-related checks for gnulib.
87997         * lib/Makefile: New file.
87998         * lib/t-idcache: New script.  Ensure that the two halves of
87999         idcache.c stay in sync.
88001         * lib/idcache.c: Adjust comments in user- and group- portions to
88002         be more accurate, and to be consistent with one another.
88004 2006-11-20  Jim Meyering  <jim@meyering.net>
88006         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
88007         continue using the flexible array member (thus, this module performs
88008         half as many malloc calls), with the addition that...
88009         (getgroup, getuser): Consistently record a non-match via an empty
88010         "name" string, and map an empty string match to a NULL return value.
88011         * modules/idcache (Depends-on): Re-add flexmember.
88013         * lib/idcache.c (getuser): Remove all uses of the register keyword.
88014         (getuidbyname, getgroup, getgidbyname): Likewise.
88016         Use cleaner syntax: NULL rather than 0.
88017         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
88019 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88021         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
88022         It mishandled the case where the group was missing.
88023         Problem reported by Greg Schafer.
88024         * modules/idcache: Likewise.
88026 2006-11-18  Jim Meyering  <jim@meyering.net>
88028         * check-module (%exempt_header): Add exception for some
88029         conditionally-included headers.
88031         * modules/i-ring (Depends-on): Add verify.
88032         (License): Change to LGPL.
88034 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88036         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
88037         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
88038         and inttostr.h.  Use snprintf rather than uinttostr, so that
88039         LGPLed code doesn't depend on GPLed.
88041 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88043         * modules/inline (License): Change from GPL to LGPL.
88045 2006-11-17  Jim Meyering  <jim@meyering.net>
88047         * modules/d-type (License): Switch to LGPL.
88049 2006-11-15  Bruno Haible  <bruno@clisp.org>
88051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
88053 2006-11-15  Eric Blake  <ebb9@byu.net>
88055         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
88056         the module dependency.
88058 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88059             Bruno Haible  <bruno@clisp.org>
88061         * gnulib-tool (func_create_testdir): Add license consistency check.
88063 2006-11-15  Eric Blake  <ebb9@byu.net>
88065         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
88066         random "(cached)" in configure output.
88068 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88070         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
88071         test for conforming inttypes.h is both announced and cached.
88073         * MODULES.html.sh (seen_modules, seen_files): New variables.
88074         (func_module): Rewrite to use a few less gnulib-tool and sed
88075         invocations.  Avoid a couple of quadratic algorithms for ...
88076         (missed_modules, missed_files): ... these, with ...
88077         (func_append, func_tmpdir): ... these new functions, from
88078         gnulib-tool.  Analogously, install traps for cleanup.
88080         * tests/test-gc.c (main): Remove unused variables.
88081         * tests/test-read-file.c: Include stdlib.h, for 'free'.
88083 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
88085         * modules/inttostr (License): Change to LGPL.
88087 2006-11-14  Eric Blake  <ebb9@byu.net>
88089         * modules/tempname (License): Change to LGPL.
88091 2006-11-14  Eric Blake  <ebb9@byu.net>
88093         * doc/functions.texi (Function Portability): *printf functions on
88094         Cygwin now understand all POSIX size specifiers.
88096 2006-11-14  Bruno Haible  <bruno@clisp.org>
88098         * modules/c-ctype (License): Change to LGPL.
88100 2006-11-12  Bruno Haible  <bruno@clisp.org>
88102         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
88103         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
88104         for GNOME libraries, for which the include files are installed in
88105         subdirectories of $prefix/include.
88107 2006-11-12  Bruno Haible  <bruno@clisp.org>
88109         * m4/lib-link.m4: Require at least autoconf-2.54.
88110         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
88111         name to underscores for the --with option.
88113 2006-11-13  Bruno Haible  <bruno@clisp.org>
88115         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
88116         the tests directory.
88117         Reported by Ralf Wildenhues.
88119 2006-11-13  Bruno Haible  <bruno@clisp.org>
88121         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
88122         (func_emit_initmacro_end): Undo the override here.
88123         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
88124         Works around the famous automake error in coreutils.
88126 2006-11-13  Eric Blake  <ebb9@byu.net>
88128         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
88129         element, not its node.
88131 2006-11-12  Bruno Haible  <bruno@clisp.org>
88133         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
88134         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
88136 2006-11-12  Bruno Haible  <bruno@clisp.org>
88138         * gnulib-tool: New option --local-symlink.
88139         (func_usage): Document it.
88140         (lsymbolic): New variable.
88141         (func_import, func_create_testdir): If --symlink was not specified,
88142         test whether --local-symlink was specified and the file comes from
88143         the local_gnulib_dir.
88145 2006-11-12  Bruno Haible  <bruno@clisp.org>
88147         * gnulib-tool (func_ln): New function.
88148         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
88150 2006-11-12  Bruno Haible  <bruno@clisp.org>
88152         Finish support for source files in subdirectories.
88153         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
88154         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
88155         AUTOMAKE_OPTIONS.
88156         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
88158 2006-11-12  Bruno Haible  <bruno@clisp.org>
88160         * gnulib-tool (func_get_automake_snippet): Synthesize also an
88161         EXTRA_lib_SOURCES augmentation.
88162         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
88164 2006-11-12  Jim Meyering  <jim@meyering.net>
88166         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
88167         file descriptors.  This also averts a failure on systems with
88168         native openat support when a traversed directory lacks "x" access.
88169         * lib/fts_.h: Include "i-ring.h"
88170         (struct FTS) [fts_fd_ring]: New member.
88171         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
88172         (FCHDIR): Add parentheses.
88173         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
88174         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
88175         When descending, rather than simply closing the previous
88176         fts_cwd_fd value, push that file descriptor onto the ring.
88177         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
88178         (fts_open): Initialize the new fd_ring member.
88179         (fts_close): Clear the ring.
88180         (fts_safe_changedir): When possible, use our new fd_ring to skip
88181         the diropen and fstat and dev/ino comparison that would normally
88182         accompany a virtual `chdir ("..")'.
88184         * modules/fts (Depends-on): Add i-ring.
88185         * modules/i-ring: New module.
88186         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
88187         * m4/i-ring.m4: New file.
88189 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88191         * gnulib-tool (func_create_testdir): Fix replacement of
88192         `build-aux' in configure.ac.  Run autotools in gltests
88193         subdirectory.
88194         (func_create_testdir, func_create_megatestdir, test): There is
88195         no need for '--force' in most autotool invocations in a new
88196         tree.  Actually fail the whole test if any of the tools, or the
88197         configure or make stages fail.
88199         Sync from Automake.
88200         * build-aux/gnupload: Revert last change.  Add pointer to upload
88201         instructions of the GNU Maintenance Instructions.
88202         Suggestion by Karl Berry.
88204 2006-11-10  Jim Meyering  <jim@meyering.net>
88206         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
88208 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88210         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
88211         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
88212         (bind_textdomain_codeset) [! ENABLE_NLS]:
88213         Evaluate all the arguments.  That way, callers get compatible behavior
88214         if the arguments have side effects.  Also, it avoids some GCC
88215         diagnostics in some cases; Joel E. Denny reported problems when Bison
88216         was configured with --enable-gcc-warnigs.
88218 2006-11-10  Jim Meyering  <jim@meyering.net>
88220         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
88221         relevant options in CFLAGS (like -O, -fno-inline) are taken into
88222         account.
88224 2006-11-10  Jim Meyering  <jim@meyering.net>
88226         * modules/inline: New file/module.
88227         * modules/xalloc (Files): Remove m4/inline.m4.
88228         (Depends-on): Add inline, instead.
88229         * modules/oset: Likewise.
88230         * modules/list: Likewise.
88232 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88234         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
88235         Problem reported by Matthew Woehlke.
88237 2006-11-09  Bruno Haible  <bruno@clisp.org>
88239         * lib/tempname.c (gen_tempname): Remove variant that invokes
88240         __gen_tempname.
88241         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
88242         __gen_tempname.
88244 2006-11-08  Bruno Haible  <bruno@clisp.org>
88246         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
88247         to 'yes' instead of 'cross-compiling'.
88249 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
88251         * lib/quotearg.h (quotearg_free): New decl.
88252         * lib/quotearg.c (quotearg_free): New function.
88253         (slot0, nslots, slotvec0, slotvec):
88254         Now file-scope so that quotearg_free can get at them.
88256 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88258         Sync from Automake.
88259         * build-aux/gnupload: Add missing 'gnu' to example URL.
88260         Report by Karl Berry.
88262 2006-11-08  Bruno Haible  <bruno@clisp.org>
88264         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
88265         Suggested by Paul Eggert.
88267 2006-11-08  Jim Meyering  <jim@meyering.net>
88269         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
88270         It's already included if !_LIBC.
88271         (fts_safe_changedir): Add a comment.
88273 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
88275         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
88276         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
88277         Matthew Woehlke.
88279         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
88280         definitions up, to avoid colliding with change below.
88281         (static_inline) [HAVE_INLINE]: New macro.
88282         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
88283         Provide extern decls when !HAVE_INLINE.  Do not define unless
88284         static_inline is defined, either by us or by xmalloc.c.  Use
88285         static_inline rather than static inline.
88286         (XCALLOC): Optimize sizeof(T) = 1 case.
88287         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
88289 2006-11-07  Bruno Haible  <bruno@clisp.org>
88291         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
88292         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
88293         AC_C_INLINE.
88294         * modules/xalloc (Files): Add m4/inline.m4.
88296 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88298         * README: Fix typo.
88299         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
88300         (Miscellanous Notes): ...from this.
88302 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
88304         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
88305         Mention that offsetof should be used instead of sizeof.
88306         From Bruno Haible.
88308 2006-11-07  Bruno Haible  <bruno@clisp.org>
88310         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
88312 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
88314         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
88315         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
88316         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
88317         (gl_tree_add_before, gl_tree_add_after):
88318         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
88319         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
88320         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
88321         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
88322         (gl_linked_add_after, gl_linked_add_at): Likewise.
88323         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
88324         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
88325         (gl_tree_add_before, gl_tree_add_after): Likewise.
88326         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
88327         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
88328         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
88330 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88332         * lib/gl_oset.h: Use C comment style, not C++ comment style.
88334 2006-11-06  Bruno Haible  <bruno@clisp.org>
88336         * m4/inline.m4: New file.
88337         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
88338         * modules/list (Files): Add m4/inline.m4.
88339         * modules/oset (Files): Likewise.
88341 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
88343         * lib/idcache.c: Include <stddef.h>, for offsetof.
88344         (struct userid.name): Change from char * to a flexible array member.
88345         All uses changed.
88346         * modules/idcache (Depends-on): Add flexmember.
88348         * MODULES.html.sh (Core language properties): New module flexmember.
88349         * modules/flexmember, m4/flexmember.m4: New files.
88351         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
88352         inline functions that are identical with the old xnmalloc_inline,
88353         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
88354         that we can avoid some unnecessary integer multiplications and
88355         divisions in the common case where the element size is known at
88356         compile time.
88357         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
88358         needed.
88359         (xnboundedmalloc): Remove.
88360         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
88361         arguments, for consistency with rest of this header.
88362         (xcharalloc): Rewrite using XNMALLOC.
88363         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
88364         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
88365         versions have been moved to lib/xalloc.h and renamed to be the
88366         non-*_inline versions.
88367         (xmalloc, xrealloc): Implement without reference to the xnmalloc
88368         and xnrealloc functions, since those functions are now inline and
88369         now call us.
88370         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
88371         renaming described above.
88372         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
88373         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
88374         captures the dependency in AC_C_INLINE.
88376         New module canonicalize-lgpl, proposed by Charles Wilson in
88377         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
88378         with a few small changes afterwards.
88379         * MODULES.html.sh (File system functions): New module
88380         canonicalize-lgpl.
88381         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
88382         and canonicalize_file_name.
88383         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
88384         * modules/canonicalize-lgpl: New files.
88386 2006-11-05  Bruno Haible  <bruno@clisp.org>
88388         * gnulib-tool (func_import, func_create_testdir): Create directories
88389         also for files in subdirectories of lib/.
88391 2006-11-05  Bruno Haible  <bruno@clisp.org>
88393         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
88394         ANSI C compliant.
88396 2006-11-03  Bruno Haible  <bruno@clisp.org>
88398         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
88399         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
88400         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
88401         (xnboundedmalloc): New inline function.
88402         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
88403         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
88404         xmalloc.
88405         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
88406         xmalloc.
88407         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
88408         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
88409         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
88410         xmalloc.
88411         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
88412         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
88413         xmalloc.
88414         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
88415         gl_tree_add_after): Use XMALLOC instead of xmalloc.
88416         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
88417         xmalloc.
88418         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
88419         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
88420         gl_tree_add_after): Use XMALLOC instead of xmalloc.
88421         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
88422         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
88423         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
88424         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
88426 2006-11-03  Bruno Haible  <bruno@clisp.org>
88428         * lib/c-ctype.h [C++]: Define functions without name mangling.
88429         * lib/fwriteerror.h [C++]: Likewise.
88430         * lib/gcd.h [C++]: Likewise.
88431         * lib/linebreak.h [C++]: Likewise.
88433 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88435         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
88436         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
88437         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
88438         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
88439         Check for functions and headers just once.
88440         Check for declaration of canonicalize_file_name.
88441         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
88443 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
88445         * gnulib-tool (func_import): Fix typo in actioncmd.
88447 2006-11-02  Bruno Haible  <bruno@clisp.org>
88449         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
88450         newline sequence in the Makefile.am snippet as a space, like "make"
88451         does.
88452         Reported by Roger Persson <perrog@gmail.com>.
88454 2006-11-01  Bruno Haible  <bruno@clisp.org>
88456         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
88457         already declared in <string.h>.
88458         * lib/strcase.h (strncasecmp): Don't declare it if yes.
88460 2006-11-01  Bruno Haible  <bruno@clisp.org>
88462         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
88463         * lib/strcase.h: Include <string.h>.
88464         (strcasecmp): Define to rpl_strcasecmp here.
88466 2006-11-01  Bruno Haible  <bruno@clisp.org>
88468         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
88470 2006-11-01  Eric Blake  <ebb9@byu.net>
88472         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
88474         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
88476 2006-10-29  Bruno Haible  <bruno@clisp.org>
88478         Make it compile in C++ mode.
88479         * lib/full-write.c (full_rw): Add a cast.
88481 2006-11-01  Bruno Haible  <bruno@clisp.org>
88483         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
88484         be POSIX compliant.
88485         Reported by Roger Persson <perrog@gmail.com>.
88487 2006-11-01  Eric Blake  <ebb9@byu.net>
88489         * lib/getopt_.h: Fix comments.
88491 2006-10-31  Eric Blake  <ebb9@byu.net>
88493         * modules/tmpdir (Depends-on): Add sys_stat.
88494         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
88495         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
88496         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
88497         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
88498         tempname.
88500 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
88502         Avoid some C++ diagnostics reported by Bruno Haible.
88503         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
88504         xmalloc.
88505         (quotearg_alloc): Use xcharalloc rather than xmalloc.
88506         (struct slotvec): Move to top level.
88507         (quotearg_n_options): Rewrite to avoid xmalloc.
88508         * lib/xalloc.h (xcharalloc): New function.
88509         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
88510         [defined __cplusplus]: Add function template that provides result
88511         type propagation.  This part of the change is from Bruno Haible.
88513 2006-10-29  Bruno Haible  <bruno@clisp.org>
88515         Make it compile in C++ mode.
88516         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
88517         * lib/strnlen1.c (strnlen1): Cast memchr result.
88518         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
88519         * lib/clean-temp.c (string_equals, string_hash): Add casts.
88520         (create_temp_dir): Rename local variable 'template'.
88521         (compile_csharp_using_sscli): Add cast.
88522         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
88523         * lib/findprog.c (find_in_path): Likewise.
88524         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
88525         * lib/wait-process.c (register_slave_subprocess): Likewise.
88527 2006-10-22  Bruno Haible  <bruno@clisp.org>
88529         * modules/tsearch: New file.
88530         * lib/tsearch.h: New file.
88531         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
88532         * m4/tsearch.m4: New file.
88533         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
88535 2006-10-29  Eric Blake  <ebb9@byu.net>
88537         * lib/arcfour.c: Assume config.h.
88538         * lib/arctwo.c: Likewise.
88539         * lib/base64.c: Likewise.
88540         * lib/check-version.c: Likewise.
88541         * lib/crc.c: Likewise.
88542         * lib/des.c: Likewise.
88543         * lib/gc-gnulib.c: Likewise.
88544         * lib/gc-libgcrypt.c: Likewise.
88545         * lib/gc-pbkdf2-sha1.c: Likewise.
88546         * lib/getaddrinfo.c: Likewise.
88547         * lib/getdelim.c: Likewise.
88548         * lib/getline.c: Likewise.
88549         * lib/hmac-md5.c: Likewise.
88550         * lib/hmac-sha1.c: Likewise.
88551         * lib/iconvme.c: Likewise.
88552         * lib/md2.c: Likewise.
88553         * lib/md4.c: Likewise.
88554         * lib/memxor.c: Likewise.
88555         * lib/read-file.c: Likewise.
88556         * lib/readline.c: Likewise.
88557         * lib/rijndael-alg-fst.c: Likewise.
88558         * lib/rijndael-api-fst.c: Likewise.
88559         * lib/xgetdomainname.c: Likewise.
88561 2006-10-28  Eric Blake  <ebb9@byu.net>
88563         * lib/xstrndup.c: Assume config.h.
88565 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
88567         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
88568         stat-macros.h is now for our own macros, whereas stat_h is for
88569         macros in the <sys/stat.h> name space.
88570         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
88571         (STAT_MACROS_H): Remove.
88572         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
88573         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
88574         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
88575         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
88576         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
88577         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
88578         Move these macros to ...
88579         * lib/stat_.h: here.  Don't include stat-macros.h.
88580         * lib/canonicalize.c: Don't include stat-macros.h.
88581         * lib/chown.c: Likewise.
88582         * lib/euidaccess.c: Likewise.
88583         * lib/file-type.c: Likewise.
88584         * lib/filemode.c: Likewise.
88585         * lib/glob.c: Likewise.
88586         * lib/isapipe.c: Likewise.
88587         * lib/lchown.c: Likewise.
88588         * lib/lstat.c: Likewise.
88589         * lib/mkdir-p.c: Likewise.
88590         * lib/rmdir.c: Likewise.
88591         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
88592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
88593         unless mkdir isn't declared, to speed up 'configure'.
88594         Always create sys/stat.h, since it's unlikely any real sys/stat.h
88595         would define all the S_* symbols.
88596         * modules/canonicalize (Depends-on):
88597         Depend on sys_stat, not stat-macros.
88598         * modules/chown: Likewise.
88599         * modules/euidaccess: Likewise.
88600         * modules/filemode: Likewise.
88601         * modules/file-type: Likewise.
88602         * modules/glob: Likewise.
88603         * modules/isapipe: Likewise.
88604         * modules/lchown: Likewise.
88605         * modules/lstat: Likewise.
88606         * modules/mkancesdirs: Likewise.
88607         * modules/rmdir: Likewise.
88608         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
88609         * modules/modechange: Likewise.
88610         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
88611         (configure.ac): Remove gl_STAT_MACROS.
88612         * modules/sys_stat (Depends-on): Remove stat-macros.
88614 2006-10-27  Bruno Haible  <bruno@clisp.org>
88616         * m4/signed.m4: Remove file.
88617         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
88618         invocation.
88619         * modules/vasnprintf (Files): Remove m4/signed.m4.
88621 2006-10-27  Bruno Haible  <bruno@clisp.org>
88623         Update to GNU gettext 0.16.
88624         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
88625         m4/inttypes-h.m4, m4/signed.m4.
88626         * m4/gettext.m4: Update to GNU gettext 0.16.
88627         * m4/intl.m4: New file, from GNU gettext.
88628         * m4/intldir.m4: New file, from GNU gettext.
88629         * config/srclist.txt: Update
88631 2006-10-27  Eric Blake  <ebb9@byu.net>
88633         * MODULES.html.sh: Document tempname.
88634         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
88635         dependencies.
88636         (Files): Move lib/tempname.c...
88637         * modules/tempname: ...to this new module.
88638         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
88639         (gl_PREREQ_TEMPNAME): Move...
88640         * m4/tempname.m4: ...to this new file.
88641         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
88642         * modules/sys_stat (Depends-on): Add stat-macros.
88643         * lib/stat_.h (includes): Pick up stat macros.
88644         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
88645         if stat macros are broken.
88646         * lib/tempname.c (includes): No need to include "stat-macros.h".
88647         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
88648         (direxists, __path_search) [!_LIBC]: Don't compile these in
88649         gnulib; the tmpdir module covers that.
88650         * lib/tempname.h: New file.
88652 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
88654         * COPYING: Explain how gnulib-tool converts licence headers.
88655         Almost all wording by Eric Blake.
88657 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
88659         * lib/mbchar.h (is_basic_table): Make read-only.
88660         * lib/mbchar.c (is_basic_table): Likewise.
88661         Reported by John Darrington.
88663 2006-10-25  Bruno Haible  <bruno@clisp.org>
88665         * lib/progname.h (set_program_name): Undefine before defining.
88667 2006-10-25  Bruno Haible  <bruno@clisp.org>
88669         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
88670         false for non-gcc C++ compilers.
88671         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
88673 2006-10-24  Bruno Haible  <bruno@clisp.org>
88675         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
88676         iconv implementations like Irix iconv.
88678 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88680         * modules/vararrays: New file.
88681         * m4/vararrays.m4: New file, taken from diffutils.
88682         * MODULES.html.sh: New module vararrays.
88684 2006-10-24  Karl Berry  <karl@gnu.org>
88686         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
88687         Don't call GNU Unix.
88689 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88691         * users.txt: Add Libtool.
88693         Sync from Libtool:
88695         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88697         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
88698         to gnulib's policy of including config.h unconditionally.
88700 2006-10-24  Bruno Haible  <bruno@clisp.org>
88702         * modules/wcwidth (Files): Add m4/wint_t.m4.
88703         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
88704         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
88706 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88708         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
88709         to pacify GCC with some -W flags enabled.  Problem reported by
88710         Bruno Haible.
88712 2006-10-24  Jim Meyering  <jim@meyering.net>
88714         * MODULES.html.sh: Remove uinttostr.  It's not a module.
88715         Reported by Karl Berry.
88717 2006-10-23  Bruno Haible  <bruno@clisp.org>
88719         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
88721 2006-10-24  Bruno Haible  <bruno@clisp.org>
88723         * lib/gl_list.h: Use C comment style, not C++ comment style.
88725 2006-10-23  Eric Blake  <ebb9@byu.net>
88727         * lib/getaddrinfo.c (includes): Add missing include.
88729 2006-10-23  Bruno Haible  <bruno@clisp.org>
88730             Paul Eggert  <eggert@cs.ucla.edu>
88732         Ability to rename obstack_free.
88733         * lib/obstack.h (__obstack_free): New macro. Declare instead of
88734         obstack_free.
88735         (obstack_free): Invoke the __obstack_free macro.
88736         * lib/obstack.c (obstack_free): Use __obstack_free macro.
88738 2006-10-23  Bruno Haible  <bruno@clisp.org>
88739             Paul Eggert  <eggert@cs.ucla.edu>
88741         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
88742         __argc, __argv from the declaration. (They are defined as macros on
88743         mingw.)
88745 2006-10-22  Bruno Haible  <bruno@clisp.org>
88747         * doc/gnulib-intro.texi: New file.
88748         * doc/gnulib.texi: Include it.
88750 2006-10-21  Bruno Haible  <bruno@clisp.org>
88752         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
88753         "Introduction", "Miscellanous Notes", "Particular Modules".
88755 2006-10-21  Bruno Haible  <bruno@clisp.org>
88757         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
88758         Change mostlyclean-local rule to avoid sh syntax error from bash
88759         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
88761 2006-10-23  Jim Meyering  <jim@meyering.net>
88763         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
88764         in place of snprintf.
88766         * modules/inttostr (Files): Add lib/uinttostr.c.
88767         * lib/uinttostr.c (inttostr): New file/function.
88768         * lib/inttostr.h (uinttostr): Declare.
88769         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
88770         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
88771         Add uinttostr.
88772         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
88774 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
88776         * lib/canonicalize.c (ELOOP): Define if not already defined.
88777         Problem reported by Bruno Haible in
88778         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
88780 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
88782         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
88783         Problem reported by Perry Smith and Ville Laurikari.
88785         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
88786         uses.
88788 2006-10-19  Bruno Haible  <bruno@clisp.org>
88790         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
88791         for mingw.
88793 2006-10-19  Bruno Haible  <bruno@clisp.org>
88795         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
88796         Needed for mingw.
88798 2006-10-19  Bruno Haible  <bruno@clisp.org>
88800         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
88802 2006-10-19  Bruno Haible  <bruno@clisp.org>
88804         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
88805         it.
88807 2006-10-19  Bruno Haible  <bruno@clisp.org>
88809         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
88810         invocation.
88812 2006-10-19  Bruno Haible  <bruno@clisp.org>
88814         * gnulib-tool (func_create_testdir): Don't include ftruncate and
88815         mountlist by default.
88817 2006-10-16  Bruno Haible  <bruno@clisp.org>
88819         * lib/c-strstr.c: Include c-strstr.h.
88821 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
88823         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
88824         in a slash.
88826 2006-10-18  Bruno Haible  <bruno@clisp.org>
88828         * lib/lock.h [C++]: Wrap definitions in extern "C".
88830 2006-10-18  Bruno Haible  <bruno@clisp.org>
88832         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
88833         gl_LIBOBJS list.
88835 2006-10-18  Bruno Haible  <bruno@clisp.org>
88837         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
88839 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
88841         * lib/xstrtol.h: Include gettext.h.
88842         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
88843         Problem reported by Eric Blake.
88844         * modules/xstrtol (Depends-on): Add gettext-h.
88846 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
88848         * lib/strftime.c (advance): New macro.
88849         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
88850         incomplete type, so you can't add 0 to it.  Problem and patch
88851         reported by Eelco Dolstra for dietlibc.
88853 2006-10-18  Jim Meyering  <jim@meyering.net>
88855         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
88856         type for a local, and rename it: s/up/user_proc/.
88858 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
88860         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
88861         READ_UTMP_USER_PROCESS.
88862         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
88864 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88866         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
88867         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
88869 2006-10-17  Eric Blake  <ebb9@byu.net>
88871         * lib/sigprocmask.c (sigprocmask): Fix typo.
88873         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
88875         * modules/clean-temp (Makefile.am): Don't add to make output...
88876         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
88877         config.h.
88879 2006-10-17  Bruno Haible  <bruno@clisp.org>
88881         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
88882         differently if DEFAULT_TEXT_DOMAIN is set.
88884 2006-10-16  Bruno Haible  <bruno@clisp.org>
88886         * lib/clean-temp.c: Include fwriteerror.h.
88888 2006-10-16  Bruno Haible  <bruno@clisp.org>
88890         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
88892 2006-10-16  Bruno Haible  <bruno@clisp.org>
88894         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
88895         * lib/sigprocmask.h: Include <sys/types.h>.
88896         (sigset_t): Use the system's definition if present.
88898 2006-10-17  Eric Blake  <ebb9@byu.net>
88900         * lib/xvasprintf.c (includes): Assume config.h.
88901         * lib/xasprintf.c (includes): Likewise.
88903 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
88905         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
88906         at least as wide as intmax_t.
88908 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
88910         (Imported from Automake.)
88911         * build-aux/gnupload: Update to version 1.1 of directive file.
88913 2006-10-16  Eric Blake  <ebb9@byu.net>
88915         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
88916         match Automake 1.10a.
88918 2006-10-14  Bruno Haible  <bruno@clisp.org>
88920         * modules/sigprocmask: New file.
88921         * lib/sigprocmask.h: New file.
88922         * lib/sigprocmask.c: New file.
88923         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
88924         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
88925         request sigprocmask.o.
88926         (gl_PREREQ_SIGPROCMASK): New macro.
88927         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
88928         (Depends-on): Add sigprocmask.
88929         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
88930         gt_SIGNALBLOCKING. Test for 'raise' only once.
88931         * lib/fatal-signal.c: Include sigprocmask.h.
88932         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
88933         unblock_fatal_signals): Define always.
88934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88935         sigprocmask.
88937 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
88939         Sync from Automake.
88940         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
88941         which incorrectly sets the mode of an existing destination
88942         directory.  In some cases the unpatched install-sh could do the
88943         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
88944         system.  We hope this is rare in practice, but it's clearly worth
88945         fixing.  Problem reported by Alex Unleashed in
88946         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
88947         Also, don't bother to check for -m bugs unless we're using -m;
88948         suggested by Stepan Kasal.
88950 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88952         Sync from Automake.
88953         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
88954         `-c' flag, so they appear at the same position as in %FASTDEP%
88955         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
88956         which ignores unknown options only after the first non-option.
88957         Bug report against M4 by Nelson H. F. Beebe.
88959 2006-10-13  Jim Meyering  <jim@meyering.net>
88961         Fix a bug in yesterday's change.
88962         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
88963         p->fts_statp->st_dev would be used uninitialized.
88964         Ensures that we always call fts_stat on the very first entry.
88965         Miklos Szeredi reported that find -xdev stopped working.
88967 2006-10-12  Bruno Haible  <bruno@clisp.org>
88969         * gnulib-tool (func_get_automake_snippet): Append an automatically
88970         computed EXTRA_DIST augmentation.
88971         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
88972         * modules/alloca-opt (Makefile.am): Likewise.
88973         * modules/allocsa (Makefile.am): Likewise.
88974         * modules/arcfour (Makefile.am): Likewise.
88975         * modules/arctwo (Makefile.am): Likewise.
88976         * modules/argmatch (Makefile.am): Likewise.
88977         * modules/argz (Makefile.am): Likewise.
88978         * modules/atexit (Makefile.am): Likewise.
88979         * modules/backupfile (Makefile.am): Likewise.
88980         * modules/byteswap (Makefile.am): Likewise.
88981         * modules/c-strtod (Makefile.am): Likewise.
88982         * modules/c-strtold (Makefile.am): Likewise.
88983         * modules/calloc (Makefile.am): Likewise.
88984         * modules/canon-host (Makefile.am): Likewise.
88985         * modules/canonicalize (Makefile.am): Likewise.
88986         * modules/chdir-long (Makefile.am): Likewise.
88987         * modules/chdir-safer (Makefile.am): Likewise.
88988         * modules/check-version (Makefile.am): Likewise.
88989         * modules/chown (Makefile.am): Likewise.
88990         * modules/cloexec (Makefile.am): Likewise.
88991         * modules/close-stream (Makefile.am): Likewise.
88992         * modules/closeout (Makefile.am): Likewise.
88993         * modules/crc (Makefile.am): Likewise.
88994         * modules/csharpexec (Makefile.am): Likewise.
88995         * modules/cycle-check (Makefile.am): Likewise.
88996         * modules/des (Makefile.am): Likewise.
88997         * modules/dev-ino (Makefile.am): Likewise.
88998         * modules/dirfd (Makefile.am): Likewise.
88999         * modules/dirname (Makefile.am): Likewise.
89000         * modules/dup2 (Makefile.am): Likewise.
89001         * modules/eealloc (Makefile.am): Likewise.
89002         * modules/error (Makefile.am): Likewise.
89003         * modules/euidaccess (Makefile.am): Likewise.
89004         * modules/exclude (Makefile.am): Likewise.
89005         * modules/exitfail (Makefile.am): Likewise.
89006         * modules/fcntl-safer (Makefile.am): Likewise.
89007         * modules/fcntl (Makefile.am): Likewise.
89008         * modules/file-type (Makefile.am): Likewise.
89009         * modules/fileblocks (Makefile.am): Likewise.
89010         * modules/filemode (Makefile.am): Likewise.
89011         * modules/filenamecat (Makefile.am): Likewise.
89012         * modules/fnmatch (Makefile.am): Likewise.
89013         * modules/fopen-safer (Makefile.am): Likewise.
89014         * modules/fpending (Makefile.am): Likewise.
89015         * modules/fprintftime (Makefile.am): Likewise.
89016         * modules/free (Makefile.am): Likewise.
89017         * modules/fsusage (Makefile.am): Likewise.
89018         * modules/ftruncate (Makefile.am): Likewise.
89019         * modules/fts (Makefile.am): Likewise.
89020         * modules/gc-arcfour (Makefile.am): Likewise.
89021         * modules/gc-des (Makefile.am): Likewise.
89022         * modules/gc-hmac-md5 (Makefile.am): Likewise.
89023         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
89024         * modules/gc-md4 (Makefile.am): Likewise.
89025         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
89026         * modules/gc-sha1 (Makefile.am): Likewise.
89027         * modules/gc (Makefile.am): Likewise.
89028         * modules/getaddrinfo (Makefile.am): Likewise.
89029         * modules/getcwd (Makefile.am): Likewise.
89030         * modules/getdelim (Makefile.am): Likewise.
89031         * modules/getdomainname (Makefile.am): Likewise.
89032         * modules/getgroups (Makefile.am): Likewise.
89033         * modules/gethostname (Makefile.am): Likewise.
89034         * modules/gethrxtime (Makefile.am): Likewise.
89035         * modules/getline (Makefile.am): Likewise.
89036         * modules/getloadavg (Makefile.am): Likewise.
89037         * modules/getlogin_r (Makefile.am): Likewise.
89038         * modules/getndelim2 (Makefile.am): Likewise.
89039         * modules/getopt (Makefile.am): Likewise.
89040         * modules/getpagesize (Makefile.am): Likewise.
89041         * modules/getpass-gnu (Makefile.am): Likewise.
89042         * modules/getpass (Makefile.am): Likewise.
89043         * modules/getsubopt (Makefile.am): Likewise.
89044         * modules/gettime (Makefile.am): Likewise.
89045         * modules/gettimeofday (Makefile.am): Likewise.
89046         * modules/getugroups (Makefile.am): Likewise.
89047         * modules/getusershell (Makefile.am): Likewise.
89048         * modules/glob (Makefile.am): Likewise.
89049         * modules/group-member (Makefile.am): Likewise.
89050         * modules/hard-locale (Makefile.am): Likewise.
89051         * modules/hash (Makefile.am): Likewise.
89052         * modules/hmac-md5 (Makefile.am): Likewise.
89053         * modules/hmac-sha1 (Makefile.am): Likewise.
89054         * modules/human (Makefile.am): Likewise.
89055         * modules/idcache (Makefile.am): Likewise.
89056         * modules/imaxabs (Makefile.am): Likewise.
89057         * modules/imaxdiv (Makefile.am): Likewise.
89058         * modules/inet_ntop (Makefile.am): Likewise.
89059         * modules/inet_pton (Makefile.am): Likewise.
89060         * modules/intprops (Makefile.am): Likewise.
89061         * modules/inttostr (Makefile.am): Likewise.
89062         * modules/inttypes (Makefile.am): Likewise.
89063         * modules/isapipe (Makefile.am): Likewise.
89064         * modules/javaversion (Makefile.am): Likewise.
89065         * modules/lchmod (Makefile.am): Likewise.
89066         * modules/lchown (Makefile.am): Likewise.
89067         * modules/localcharset (Makefile.am): Likewise.
89068         * modules/long-options (Makefile.am): Likewise.
89069         * modules/lstat (Makefile.am): Likewise.
89070         * modules/malloc (Makefile.am): Likewise.
89071         * modules/mathl (Makefile.am): Likewise.
89072         * modules/mbchar (Makefile.am): Likewise.
89073         * modules/md2 (Makefile.am): Likewise.
89074         * modules/md4 (Makefile.am): Likewise.
89075         * modules/md5 (Makefile.am): Likewise.
89076         * modules/memcasecmp (Makefile.am): Likewise.
89077         * modules/memchr (Makefile.am): Likewise.
89078         * modules/memcmp (Makefile.am): Likewise.
89079         * modules/memcoll (Makefile.am): Likewise.
89080         * modules/memcpy (Makefile.am): Likewise.
89081         * modules/memmem (Makefile.am): Likewise.
89082         * modules/memmove (Makefile.am): Likewise.
89083         * modules/mempcpy (Makefile.am): Likewise.
89084         * modules/memrchr (Makefile.am): Likewise.
89085         * modules/memset (Makefile.am): Likewise.
89086         * modules/memxor (Makefile.am): Likewise.
89087         * modules/mkancesdirs (Makefile.am): Likewise.
89088         * modules/mkdir-p (Makefile.am): Likewise.
89089         * modules/mkdir (Makefile.am): Likewise.
89090         * modules/mkdtemp (Makefile.am): Likewise.
89091         * modules/mkstemp (Makefile.am): Likewise.
89092         * modules/mktime (Makefile.am): Likewise.
89093         * modules/modechange (Makefile.am): Likewise.
89094         * modules/mountlist (Makefile.am): Likewise.
89095         * modules/nanosleep (Makefile.am): Likewise.
89096         * modules/obstack (Makefile.am): Likewise.
89097         * modules/openat (Makefile.am): Likewise.
89098         * modules/pagealign_alloc (Makefile.am): Likewise.
89099         * modules/pathmax (Makefile.am): Likewise.
89100         * modules/physmem (Makefile.am): Likewise.
89101         * modules/poll (Makefile.am): Likewise.
89102         * modules/posixtm (Makefile.am): Likewise.
89103         * modules/posixver (Makefile.am): Likewise.
89104         * modules/putenv (Makefile.am): Likewise.
89105         * modules/quote (Makefile.am): Likewise.
89106         * modules/quotearg (Makefile.am): Likewise.
89107         * modules/raise (Makefile.am): Likewise.
89108         * modules/read-file (Makefile.am): Likewise.
89109         * modules/readline (Makefile.am): Likewise.
89110         * modules/readlink (Makefile.am): Likewise.
89111         * modules/readtokens (Makefile.am): Likewise.
89112         * modules/readutmp (Makefile.am): Likewise.
89113         * modules/realloc (Makefile.am): Likewise.
89114         * modules/regex (Makefile.am): Likewise.
89115         * modules/rename-dest-slash (Makefile.am): Likewise.
89116         * modules/rename (Makefile.am): Likewise.
89117         * modules/rijndael (Makefile.am): Likewise.
89118         * modules/rmdir (Makefile.am): Likewise.
89119         * modules/rpmatch (Makefile.am): Likewise.
89120         * modules/safe-read (Makefile.am): Likewise.
89121         * modules/safe-write (Makefile.am): Likewise.
89122         * modules/same-inode (Makefile.am): Likewise.
89123         * modules/same (Makefile.am): Likewise.
89124         * modules/save-cwd (Makefile.am): Likewise.
89125         * modules/savedir (Makefile.am): Likewise.
89126         * modules/setenv (Makefile.am): Likewise.
89127         * modules/settime (Makefile.am): Likewise.
89128         * modules/sha1 (Makefile.am): Likewise.
89129         * modules/sig2str (Makefile.am): Likewise.
89130         * modules/snprintf (Makefile.am): Likewise.
89131         * modules/stat-macros (Makefile.am): Likewise.
89132         * modules/stat-time (Makefile.am): Likewise.
89133         * modules/stdbool (Makefile.am): Likewise.
89134         * modules/stdint (Makefile.am): Likewise.
89135         * modules/stdlib-safer (Makefile.am): Likewise.
89136         * modules/stpcpy (Makefile.am): Likewise.
89137         * modules/stpncpy (Makefile.am): Likewise.
89138         * modules/strcase (Makefile.am): Likewise.
89139         * modules/strcasestr (Makefile.am): Likewise.
89140         * modules/strchrnul (Makefile.am): Likewise.
89141         * modules/strcspn (Makefile.am): Likewise.
89142         * modules/strdup (Makefile.am): Likewise.
89143         * modules/strerror (Makefile.am): Likewise.
89144         * modules/strftime (Makefile.am): Likewise.
89145         * modules/strndup (Makefile.am): Likewise.
89146         * modules/strnlen (Makefile.am): Likewise.
89147         * modules/strpbrk (Makefile.am): Likewise.
89148         * modules/strsep (Makefile.am): Likewise.
89149         * modules/strstr (Makefile.am): Likewise.
89150         * modules/strtod (Makefile.am): Likewise.
89151         * modules/strtoimax (Makefile.am): Likewise.
89152         * modules/strtok_r (Makefile.am): Likewise.
89153         * modules/strtol (Makefile.am): Likewise.
89154         * modules/strtoll (Makefile.am): Likewise.
89155         * modules/strtoul (Makefile.am): Likewise.
89156         * modules/strtoull (Makefile.am): Likewise.
89157         * modules/strtoumax (Makefile.am): Likewise.
89158         * modules/strverscmp (Makefile.am): Likewise.
89159         * modules/sys_socket (Makefile.am): Likewise.
89160         * modules/sys_stat (Makefile.am): Likewise.
89161         * modules/sysexits (Makefile.am): Likewise.
89162         * modules/time_r (Makefile.am): Likewise.
89163         * modules/timegm (Makefile.am): Likewise.
89164         * modules/timespec (Makefile.am): Likewise.
89165         * modules/tmpfile-safer (Makefile.am): Likewise.
89166         * modules/trim (Makefile.am): Likewise.
89167         * modules/unistd-safer (Makefile.am): Likewise.
89168         * modules/unlinkdir (Makefile.am): Likewise.
89169         * modules/unlocked-io (Makefile.am): Likewise.
89170         * modules/userspec (Makefile.am): Likewise.
89171         * modules/utime (Makefile.am): Likewise.
89172         * modules/utimecmp (Makefile.am): Likewise.
89173         * modules/utimens (Makefile.am): Likewise.
89174         * modules/vasnprintf (Makefile.am): Likewise.
89175         * modules/vasprintf (Makefile.am): Likewise.
89176         * modules/vsnprintf (Makefile.am): Likewise.
89177         * modules/xalloc (Makefile.am): Likewise.
89178         * modules/xgetcwd (Makefile.am): Likewise.
89179         * modules/xnanosleep (Makefile.am): Likewise.
89180         * modules/xreadlink (Makefile.am): Likewise.
89181         * modules/xstrtod (Makefile.am): Likewise.
89182         * modules/xstrtol (Makefile.am): Likewise.
89183         * modules/xstrtold (Makefile.am): Likewise.
89184         * modules/yesno (Makefile.am): Likewise.
89185         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
89187 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
89189         * modules/error (Makefile.am): Distribute files through
89190         EXTRA_DIST, not lib_SOURCES.
89192 2006-10-12  Eric Blake  <ebb9@byu.net>
89194         * modules/error (Makefile.am): Distribute files in /lib.
89195         * modules/obstack (Makefile.am): Likewise.
89197 2006-10-12  Bruno Haible  <bruno@clisp.org>
89199         * modules/acl (Makefile.am): Distribute all files in lib/ through
89200         EXTRA_DIST.
89201         * modules/arcfour (Makefile.am): Likewise.
89202         * modules/arctwo (Makefile.am): Likewise.
89203         * modules/argmatch (Makefile.am): Likewise.
89204         * modules/argz (Makefile.am): Likewise.
89205         * modules/atexit (Makefile.am): Likewise.
89206         * modules/backupfile (Makefile.am): Likewise.
89207         * modules/c-strtod (Makefile.am): Likewise.
89208         * modules/c-strtold (Makefile.am): Likewise.
89209         * modules/calloc (Makefile.am): Likewise.
89210         * modules/canon-host (Makefile.am): Likewise.
89211         * modules/canonicalize (Makefile.am): Likewise.
89212         * modules/chdir-long (Makefile.am): Likewise.
89213         * modules/chdir-safer (Makefile.am): Likewise.
89214         * modules/check-version (Makefile.am): Likewise.
89215         * modules/chown (Makefile.am): Likewise.
89216         * modules/cloexec (Makefile.am): Likewise.
89217         * modules/close-stream (Makefile.am): Likewise.
89218         * modules/closeout (Makefile.am): Likewise.
89219         * modules/crc (Makefile.am): Likewise.
89220         * modules/cycle-check (Makefile.am): Likewise.
89221         * modules/des (Makefile.am): Likewise.
89222         * modules/dirfd (Makefile.am): Likewise.
89223         * modules/dirname (Makefile.am): Likewise.
89224         * modules/dup2 (Makefile.am): Likewise.
89225         * modules/euidaccess (Makefile.am): Likewise.
89226         * modules/exclude (Makefile.am): Likewise.
89227         * modules/exitfail (Makefile.am): Likewise.
89228         * modules/fcntl-safer (Makefile.am): Likewise.
89229         * modules/file-type (Makefile.am): Likewise.
89230         * modules/fileblocks (Makefile.am): Likewise.
89231         * modules/filemode (Makefile.am): Likewise.
89232         * modules/filenamecat (Makefile.am): Likewise.
89233         * modules/fnmatch (Makefile.am): Likewise.
89234         * modules/fopen-safer (Makefile.am): Likewise.
89235         * modules/fpending (Makefile.am): Likewise.
89236         * modules/fprintftime (Makefile.am): Likewise.
89237         * modules/free (Makefile.am): Likewise.
89238         * modules/fsusage (Makefile.am): Likewise.
89239         * modules/ftruncate (Makefile.am): Likewise.
89240         * modules/fts (Makefile.am): Likewise.
89241         * modules/gc (Makefile.am): Likewise.
89242         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
89243         * modules/getaddrinfo (Makefile.am): Likewise.
89244         * modules/getcwd (Makefile.am): Likewise.
89245         * modules/getdelim (Makefile.am): Likewise.
89246         * modules/getdomainname (Makefile.am): Likewise.
89247         * modules/getgroups (Makefile.am): Likewise.
89248         * modules/gethostname (Makefile.am): Likewise.
89249         * modules/gethrxtime (Makefile.am): Likewise.
89250         * modules/getline (Makefile.am): Likewise.
89251         * modules/getloadavg (Makefile.am): Likewise.
89252         * modules/getlogin_r (Makefile.am): Likewise.
89253         * modules/getopt (Makefile.am): Likewise.
89254         * modules/getpass (Makefile.am): Likewise.
89255         * modules/getpass-gnu (Makefile.am): Likewise.
89256         * modules/getsubopt (Makefile.am): Likewise.
89257         * modules/gettime (Makefile.am): Likewise.
89258         * modules/gettimeofday (Makefile.am): Likewise.
89259         * modules/getugroups (Makefile.am): Likewise.
89260         * modules/getusershell (Makefile.am): Likewise.
89261         * modules/glob (Makefile.am): Likewise.
89262         * modules/group-member (Makefile.am): Likewise.
89263         * modules/hard-locale (Makefile.am): Likewise.
89264         * modules/hash (Makefile.am): Likewise.
89265         * modules/hmac-md5 (Makefile.am): Likewise.
89266         * modules/hmac-sha1 (Makefile.am): Likewise.
89267         * modules/human (Makefile.am): Likewise.
89268         * modules/idcache (Makefile.am): Likewise.
89269         * modules/imaxabs (Makefile.am): Likewise.
89270         * modules/imaxdiv (Makefile.am): Likewise.
89271         * modules/inet_ntop (Makefile.am): Likewise.
89272         * modules/inet_pton (Makefile.am): Likewise.
89273         * modules/inttostr (Makefile.am): Likewise.
89274         * modules/isapipe (Makefile.am): Likewise.
89275         * modules/lchown (Makefile.am): Likewise.
89276         * modules/long-options (Makefile.am): Likewise.
89277         * modules/lstat (Makefile.am): Likewise.
89278         * modules/malloc (Makefile.am): Likewise.
89279         * modules/mathl (Makefile.am): Likewise.
89280         * modules/mbchar (Makefile.am): Likewise.
89281         * modules/md2 (Makefile.am): Likewise.
89282         * modules/md4 (Makefile.am): Likewise.
89283         * modules/md5 (Makefile.am): Likewise.
89284         * modules/memcasecmp (Makefile.am): Likewise.
89285         * modules/memchr (Makefile.am): Likewise.
89286         * modules/memcmp (Makefile.am): Likewise.
89287         * modules/memcoll (Makefile.am): Likewise.
89288         * modules/memcpy (Makefile.am): Likewise.
89289         * modules/memmem (Makefile.am): Likewise.
89290         * modules/memmove (Makefile.am): Likewise.
89291         * modules/mempcpy (Makefile.am): Likewise.
89292         * modules/memrchr (Makefile.am): Likewise.
89293         * modules/memset (Makefile.am): Likewise.
89294         * modules/memxor (Makefile.am): Likewise.
89295         * modules/mkancesdirs (Makefile.am): Likewise.
89296         * modules/mkdir (Makefile.am): Likewise.
89297         * modules/mkdir-p (Makefile.am): Likewise.
89298         * modules/mkdtemp (Makefile.am): Likewise.
89299         * modules/mkstemp (Makefile.am): Likewise.
89300         * modules/mktime (Makefile.am): Likewise.
89301         * modules/modechange (Makefile.am): Likewise.
89302         * modules/mountlist (Makefile.am): Likewise.
89303         * modules/nanosleep (Makefile.am): Likewise.
89304         * modules/openat (Makefile.am): Likewise.
89305         * modules/pagealign_alloc (Makefile.am): Likewise.
89306         * modules/physmem (Makefile.am): Likewise.
89307         * modules/poll (Makefile.am): Likewise.
89308         * modules/posixtm (Makefile.am): Likewise.
89309         * modules/posixver (Makefile.am): Likewise.
89310         * modules/putenv (Makefile.am): Likewise.
89311         * modules/quote (Makefile.am): Likewise.
89312         * modules/quotearg (Makefile.am): Likewise.
89313         * modules/raise (Makefile.am): Likewise.
89314         * modules/read-file (Makefile.am): Likewise.
89315         * modules/readline (Makefile.am): Likewise.
89316         * modules/readlink (Makefile.am): Likewise.
89317         * modules/readtokens (Makefile.am): Likewise.
89318         * modules/readutmp (Makefile.am): Likewise.
89319         * modules/realloc (Makefile.am): Likewise.
89320         * modules/regex (Makefile.am): Likewise.
89321         * modules/rename (Makefile.am): Likewise.
89322         * modules/rename-dest-slash (Makefile.am): Likewise.
89323         * modules/rijndael (Makefile.am): Likewise.
89324         * modules/rmdir (Makefile.am): Likewise.
89325         * modules/rpmatch (Makefile.am): Likewise.
89326         * modules/safe-read (Makefile.am): Likewise.
89327         * modules/safe-write (Makefile.am): Likewise.
89328         * modules/same (Makefile.am): Likewise.
89329         * modules/save-cwd (Makefile.am): Likewise.
89330         * modules/savedir (Makefile.am): Likewise.
89331         * modules/setenv (Makefile.am): Likewise.
89332         * modules/settime (Makefile.am): Likewise.
89333         * modules/sha1 (Makefile.am): Likewise.
89334         * modules/sig2str (Makefile.am): Likewise.
89335         * modules/snprintf (Makefile.am): Likewise.
89336         * modules/stdlib-safer (Makefile.am): Likewise.
89337         * modules/stpcpy (Makefile.am): Likewise.
89338         * modules/stpncpy (Makefile.am): Likewise.
89339         * modules/strcase (Makefile.am): Likewise.
89340         * modules/strcasestr (Makefile.am): Likewise.
89341         * modules/strchrnul (Makefile.am): Likewise.
89342         * modules/strcspn (Makefile.am): Likewise.
89343         * modules/strdup (Makefile.am): Likewise.
89344         * modules/strerror (Makefile.am): Likewise.
89345         * modules/strftime (Makefile.am): Likewise.
89346         * modules/strndup (Makefile.am): Likewise.
89347         * modules/strnlen (Makefile.am): Likewise.
89348         * modules/strpbrk (Makefile.am): Likewise.
89349         * modules/strsep (Makefile.am): Likewise.
89350         * modules/strstr (Makefile.am): Likewise.
89351         * modules/strtod (Makefile.am): Likewise.
89352         * modules/strtoimax (Makefile.am): Likewise.
89353         * modules/strtok_r (Makefile.am): Likewise.
89354         * modules/strtol (Makefile.am): Likewise.
89355         * modules/strtoll (Makefile.am): Likewise.
89356         * modules/strtoul (Makefile.am): Likewise.
89357         * modules/strtoull (Makefile.am): Likewise.
89358         * modules/strtoumax (Makefile.am): Likewise.
89359         * modules/strverscmp (Makefile.am): Likewise.
89360         * modules/time_r (Makefile.am): Likewise.
89361         * modules/timegm (Makefile.am): Likewise.
89362         * modules/tmpfile-safer (Makefile.am): Likewise.
89363         * modules/unistd-safer (Makefile.am): Likewise.
89364         * modules/unlinkdir (Makefile.am): Likewise.
89365         * modules/userspec (Makefile.am): Likewise.
89366         * modules/utime (Makefile.am): Likewise.
89367         * modules/utimecmp (Makefile.am): Likewise.
89368         * modules/utimens (Makefile.am): Likewise.
89369         * modules/vasnprintf (Makefile.am): Likewise.
89370         * modules/vasprintf (Makefile.am): Likewise.
89371         * modules/vsnprintf (Makefile.am): Likewise.
89372         * modules/xalloc (Makefile.am): Likewise.
89373         * modules/xgetcwd (Makefile.am): Likewise.
89374         * modules/xnanosleep (Makefile.am): Likewise.
89375         * modules/xreadlink (Makefile.am): Likewise.
89376         * modules/xstrtod (Makefile.am): Likewise.
89377         * modules/xstrtol (Makefile.am): Likewise.
89378         * modules/xstrtold (Makefile.am): Likewise.
89379         * modules/yesno (Makefile.am): Likewise.
89381 2006-10-12  Jim Meyering  <jim@meyering.net>
89383         * m4/getloadavg.m4: Revert the change below.
89385         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
89386         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
89387         fail with a symlink, which is what coreutils' ./bootstrap now
89388         creates by default.
89390 2006-10-12  Bruno Haible  <bruno@clisp.org>
89392         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
89393         mingw.
89394         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
89395         MSVC and mingw explicitly.
89397 2006-10-11  Simon Josefsson  <jas@extundo.com>
89398             Bruno Haible  <bruno@clisp.org>
89400         Add support for multiple gnulib-tool invocations in the scope of a
89401         single configure.ac file.
89402         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
89403         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
89404         with the same contents as the _LIBADD variable.
89405         (func_emit_initmacro_start, func_emit_initmacro_end,
89406         func_emit_initmacro_done): New functions.
89407         (func_import, func_create_testdir): Invoke them. Allow the identifiers
89408         gl_LIBOBJS and gl_LTLIBOBJS.
89410 2006-10-11  Bruno Haible  <bruno@clisp.org>
89412         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
89413         (func_create_testdir): Don't create po/Makefile.am, don't invoke
89414         autoreconf. Instead, invoke autopoint explicitly but move back the
89415         *.m4 files from gnulib.
89417 2006-10-11  Bruno Haible  <bruno@clisp.org>
89419         * gnulib-tool (func_usage): Make module names after --create-testdir
89420         optional.
89421         (func_create_testdir): If no module was specified, use nearly all
89422         modules.
89424 2006-10-12  Jim Meyering  <jim@meyering.net>
89426         Big performance improvement for fts-based tools that use FTS_NOSTAT.
89427         Avoid spurious inode-mismatch problems on non-POSIX file systems.
89428         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
89429         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
89430         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
89431         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
89432         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
89433         (fts_set_stat_required): New function.
89434         (fts_open): Defer the calls to fts_stat, if possible or requested.
89435         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
89436         into fts_stat itself.
89437         (fts_read): Perform any required (deferred) fts_stat call.
89438         (fts_build): Likewise, for the directory we're about to open and read.
89439         In the readdir loop, carefully decide whether each entry will require
89440         an eventual call to fts_stat, using dirent.d_type info if available.
89441         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
89442         a command line argument into this function.  Update all callers.
89443         Map a return value of FTS_DOT to FTS_D for a command line argument.
89444         * modules/fts (Depends-on): Add d-type.  Alphabetize.
89445         Thanks to Miklos Szeredi for his tenacity and for the initial
89446         bug report about "find" failing on a FUSE-based file system.
89448         * lib/fts.c (fts_open): Use consistent indentation.
89450 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
89452         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
89453         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
89454         reported by Jim Meyering.  All uses of cache variables renamed
89455         to match Autoconf's.
89456         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
89457         the other one.
89459         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
89460         Fix misspelling in diagnostic.
89462 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
89464         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
89465         defined.  Problem reported by Matthew Woehlke.
89467         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
89468         Add support for Tandem NonStop R series.
89469         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
89470         Use new macro.
89472         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
89473         (has_trailing_slash): Omit size arg; all callers changed.
89474         Omit 'inline', since it doesn't help performance and we'd
89475         need to configure it.
89476         Don't count //, ///, etc. as having a trailing slash.
89477         As a side effect, this removes a C99ism reported by Matthew Woehlke.
89478         (rpl_rename_dest_slash): On failure, use rename's errno rather
89479         than (in some cases) an incorrect or junk errno.
89480         Simplify code by removing need to compute length; this does
89481         cause it to make two passes instead of one over the file name,
89482         but it's worth it.
89484         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
89485         change, since Autoconf's version may no longer be appropriate now
89486         that we are using CVS Autoconf's version.  Add support for Tandem.
89488 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
89489             Bruno Haible  <bruno@clisp.org>
89491         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
89492         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
89493         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
89494         gl_AC_TYPE_LONG_LONG.
89496         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
89497         instead of HAVE_LONG_LONG.
89498         * lib/printf-args.c (printf_fetchargs): Likewise.
89499         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
89500         * lib/vasnprintf.c (VASNPRINTF): Likewise.
89501         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
89502         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
89503         gl_AC_TYPE_LONG_LONG.
89505 2006-10-11  Bruno Haible  <bruno@clisp.org>
89507         * m4/longlong.m4: Add comments.
89508         * m4/ulonglong.m4: Likewise.
89510 2006-10-10  Bruno Haible  <bruno@clisp.org>
89512         Make it possible to #define stpcpy, strdup to aliases.
89513         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
89514         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
89516 2006-10-10  Bruno Haible  <bruno@clisp.org>
89518         Make it possible to #define gcd to an alias.
89519         * lib/gcd.c: Include config.h.
89521 2006-10-10  Bruno Haible  <bruno@clisp.org>
89523         Make it possible to #define c_isascii to an alias.
89524         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
89525         defined. Undefine the macros before defining them, to avoid gcc
89526         warnings.
89527         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
89528         define NO_C_CTYPE_MACROS early.
89530 2006-10-10  Bruno Haible  <bruno@clisp.org>
89532         Make it possible to #define set_program_name to an alias.
89533         * lib/progname.c: Don't undefine set_program_name; instead, undefine
89534         ENABLE_RELOCATABLE early.
89536 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89538         Port to Tandem NSK OSS, which has 64-bit signed int but at most
89539         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
89540         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
89541         More generally, don't assume that 64-bit signed int is available
89542         if unsigned int is, and vice versa.
89543         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
89544         unsigned symbols, not on their signed counterparts.
89545         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
89546         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
89547         (UINT64_C, UINTMAX_C):
89548         Likewise.
89549         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
89550         unsigned counterparts.
89551         (Have_long_long, Unsigned): New macros.
89552         (Int): Renamed from INT.
89553         (strtoimax): Use the new macros.
89554         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
89555         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
89556         * modules/inttypes (inttypes.h): Substitute
89557         HAVE_UNSIGNED_LONG_LONG_INT.
89558         * modules/stdint (stdint.h): Likewise.
89559         (Files): Add m4/ulonglong.m4.
89561 2006-10-10  Bruno Haible  <bruno@clisp.org>
89563         Fix a gcc -Wshadow warning.
89564         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
89565         to 'bucket'.
89566         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
89567         gl_linked_indexof_from_to): Likewise.
89568         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
89569         Likewise.
89570         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
89571         Likewise.
89572         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
89573         Reported by Eric Blake.
89575 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
89577         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
89578         for NetBSD.  Problem reported by Bruno Haible.
89580 2006-10-09  Jim Meyering  <jim@meyering.net>
89582         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
89583         Patch from Bruno Haible.
89585 2006-10-09  Jim Meyering  <jim@meyering.net>
89587         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
89588         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
89589         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
89591 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
89593         Don't include <config.h> twice; this doesn't work in some cases,
89594         e.g., when config.h has "#define intmax_t long long int" and
89595         we include <config.h>, <inttypes.h>, <config.h> in that order.
89596         Problem reported by Matthew Woehlke in:
89597         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
89598         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
89599         * lib/fts-cycle.c: Don't include config.h.
89600         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
89601         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
89602         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
89603         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
89604         inttypes.h.
89605         * lib/xstrtoumax.c: Likewise.
89606         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
89607         __strtol and the like, so that this module is more like its siblings.
89608         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
89609         Remove; no longer needed now that we assume gnulib inttypes.h.
89611 2006-10-08  Bruno Haible  <bruno@clisp.org>
89613         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
89614         option.
89616 2006-10-07  Jim Meyering  <jim@meyering.net>
89618         * modules/inttypes (inttypes.h): Revert what seems to have been
89619         an inadvertent part of today's change: use "|", not "/" in the
89620         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
89622 2006-10-07  Bruno Haible  <bruno@clisp.org>
89624         * modules/sublist: New file.
89626 2006-10-07  Bruno Haible  <bruno@clisp.org>
89628         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
89629         * modules/argz (argz.h): Likewise.
89630         * modules/arpa_inet (arpa/inet.h): Likewise.
89631         * modules/byteswap (byteswap.h): Likewise.
89632         * modules/configmake (configmake.h): Likewise.
89633         * modules/fcntl (fcntl.h): Likewise.
89634         * modules/fnmatch (fnmatch.h): Likewise.
89635         * modules/getopt (getopt.h): Likewise.
89636         * modules/glob (glob.h): Likewise.
89637         * modules/inttypes (inttypes.h): Likewise.
89638         * modules/netinet_in (netinet/in.h): Likewise.
89639         * modules/poll (poll.h): Likewise.
89640         * modules/stdbool (stdbool.h): Likewise.
89641         * modules/stdint (stdint.h): Likewise.
89642         * modules/sys_select (sys/select.h): Likewise.
89643         * modules/sys_socket (sys/socket.h): Likewise.
89644         * modules/sys_stat (sys/stat.h): Likewise.
89645         * modules/sysexits (sysexits.h): Likewise.
89646         * modules/unistd (unistd.h): Likewise.
89647         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89648         Add a "DO NOT EDIT" comment to the generated file.
89649         (func_import): Likewise for gnulib-comp.m4.
89651 2006-10-07  Bruno Haible  <bruno@clisp.org>
89653         * lib/gl_sublist.h: New file.
89654         * lib/gl_sublist.c: New file.
89656 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89658         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
89659         name (relative to the original working directory) and the file
89660         name component (relative to the temporary working directory).  All
89661         callers changed.
89662         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
89663         * lib/mkdir-p.c (make_dir_parents): Likewise.
89664         * lib/mkdir-p.h (make_dir_parents): Likewise.
89666 2006-10-06  Eric Blake  <ebb9@byu.net>
89668         Define several macros for use by the clean-temp module.
89669         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
89670         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
89671         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
89673         * lib/clean-temp.h (close_stream_temp): New declaration.
89674         * lib/clean-temp.c (includes): Pull in headers according to what
89675         other modules are in use.
89676         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
89678 2006-10-06  Bruno Haible  <bruno@clisp.org>
89680         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
89681         instead of fopen, fwriteerror.
89683 2006-10-06  Bruno Haible  <bruno@clisp.org>
89685         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
89686         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
89687         int.
89688         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
89689         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
89690         Return an error indicator.
89691         Suggested by Eric Blake.
89693 2006-10-06  Bruno Haible  <bruno@clisp.org>
89695         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
89696         Reported by Eric Blake.
89698 2006-10-06  Bruno Haible  <bruno@clisp.org>
89700         * modules/closeout (Description): Mention stderr too.
89702 2006-10-06  Bruno Haible  <bruno@clisp.org>
89703         and Paul Eggert  <eggert@cs.ucla.edu>
89705         * lib/closeout.c (close_stdout): Also close stderr.
89706         * lib/closeout.h: Update comment.
89708 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
89710         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
89711         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
89712         * lib/dirchownmod.c: Include lchown.h.
89713         * lib/lchown.c: Don't include files that lchown.h now includes.
89714         Don't declare chown, since lchown.h now does that.
89715         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
89716         (lchown): Define to rpl_chown if lchown is declared but
89717         does not exist.  Declare using a prototype if lchown is not
89718         declared.  Add a copyright notice.
89719         * lib/mkstemp.h: Include <unistd.h>.
89720         * lib/openat.c: Include lchown.h.
89722         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
89723         we now test for that separately.
89724         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
89725         rather than O_NOFOLLOW, when testing whether it's possible to
89726         avoid a race condition reliably.
89727         * lib/savewd.c (savewd_chdir): Likewise.
89729         Remove macros that are no longer needed now that stdint.h is
89730         reliable.
89731         * lib/fsusage.c (UINTMAX_MAX): Remove.
89732         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
89733         * lib/utimecmp.c (SIZE_MAX): Remove.
89735         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
89737         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
89738         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
89739         O_NOATIME works.
89741 2006-10-05  Bruno Haible  <bruno@clisp.org>
89743         * lib/gl_list.h (gl_sortedlist_search_from_to,
89744         gl_sortedlist_indexof_from_to): New declarations.
89745         (gl_list_implementation): New fields sortedlist_search_from_to,
89746         sortedlist_indexof_from_to.
89747         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
89748         inline functions.
89749         * lib/gl_list.c (gl_sortedlist_search_from_to,
89750         gl_sortedlist_indexof_from_to): New functions.
89751         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
89752         function.
89753         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
89754         (gl_array_sortedlist_search_from_to): New function.
89755         (gl_array_list_implementation): Update.
89756         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
89757         function.
89758         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
89759         (gl_carray_sortedlist_search_from_to): New function.
89760         (gl_carray_list_implementation): Update.
89761         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
89762         gl_linked_sortedlist_indexof_from_to): New functions.
89763         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
89764         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
89765         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
89766         gl_tree_sortedlist_indexof_from_to): New functions.
89767         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
89768         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
89769         Update.
89770         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
89771         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
89772         Update.
89774 2006-10-05  Bruno Haible  <bruno@clisp.org>
89776         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
89777         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
89778         (struct gl_list_implementation): Add fields search_from_to,
89779         indexof_from_to. Remove fields search, indexof.
89780         (gl_list_search): Use the search_from_to method.
89781         (gl_list_search_from, gl_list_search_from_to): New functions.
89782         (gl_list_indexof): Use the indexof_from_to method.
89783         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
89784         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
89785         (gl_list_search_from, gl_list_search_from_to): New functions.
89786         (gl_list_indexof): Use the indexof_from_to method.
89787         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
89788         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
89789         gl_array_indexof. Add start_index, end_index arguments.
89790         (gl_array_search_from_to): Renamed from gl_array_search. Add
89791         start_index, end_index arguments.
89792         (gl_array_remove, gl_array_list_implementation): Update.
89793         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
89794         gl_carray_indexof. Add start_index, end_index arguments.
89795         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
89796         start_index, end_index arguments.
89797         (gl_carray_remove, gl_carray_list_implementation): Update.
89798         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
89799         gl_linked_search. Add start_index, end_index arguments.
89800         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
89801         start_index, end_index arguments.
89802         (gl_linked_remove): Update.
89803         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
89804         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
89805         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
89806         field to 'size_t'.
89807         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
89808         gl_tree_search. Add start_index, end_index arguments.
89809         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
89810         start_index, end_index arguments.
89811         (gl_tree_remove): Update.
89812         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
89813         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
89814         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
89815         function.
89816         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
89817         gl_tree_search. Add start_index, end_index arguments.
89818         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
89819         start_index, end_index arguments.
89820         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
89821         Update.
89822         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
89824 2006-10-05  Bruno Haible  <bruno@clisp.org>
89826         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
89828         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
89829         fwriteerror_temp): New declarations.
89830         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
89831         (descriptors): New variable.
89832         (cleanup): First, close the descriptors.
89833         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
89834         fclose_temp, fwriteerror_temp): New functions.
89836 2006-10-04  Jim Meyering  <jim@meyering.net>
89838         * lib/fts.c (fts_open): Tiny comment change.
89840 2006-10-04  Bruno Haible  <bruno@clisp.org>
89842         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
89843         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
89844         gl_LOCK_BODY.
89845         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
89846         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
89847         gl_LOCK_EARLY_BODY.
89848         (gl_LOCK): Require gl_LOCK_BODY.
89850 2006-10-04  Bruno Haible  <bruno@clisp.org>
89852         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
89853         (gl_oset_search_atleast): New declaration.
89854         (struct gl_oset_implementation): Add field 'search_atleast'.
89855         (gl_oset_search_atleast): New inline function.
89856         * lib/gl_oset.c (gl_oset_search_atleast): New function.
89857         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
89858         (gl_array_oset_implementation): Update.
89859         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
89860         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
89861         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
89863 2006-10-04  Bruno Haible  <bruno@clisp.org>
89865         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
89867 2006-10-03  Bruno Haible  <bruno@clisp.org>
89869         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
89870         from gl_avltreehash_list_implementation.
89872 2006-10-03  Bruno Haible  <bruno@clisp.org>
89874         * lib/gl_oset.c (gl_oset_add): Fix return type.
89876 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
89878         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
89880 2006-10-02  Eric Blake  <ebb9@byu.net>
89882         * modules/strnlen (Depends-on): Add extensions.
89884 2006-10-02  Eric Blake  <ebb9@byu.net>
89886         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
89887         definition in 2.60+.
89889 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
89891         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
89892         checks.
89894 2006-10-02  Bruno Haible  <bruno@clisp.org>
89896         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
89897         to the AUTOMAKE_OPTIONS.
89898         Reported by Jim Meyering.
89900 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
89902         Work around bug in Solaris 10 /proc file system:
89903         /proc/self/fd/NNN/.. isn't the parent directory of
89904         the directory whose file descriptor is NNN.  This needs to
89905         be worked around at run time, not compile time, since a
89906         program might be built on Solaris 8, where things work, and
89907         run on Solaris 10.
89908         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
89909         to use the following interface instead:
89910         (OPENAT_BUFFER_SIZE): New macro.
89911         (openat_proc_name): New function.
89912         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
89913         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
89914         Likewise.
89915         * lib/openat-proc.c: New file.
89916         * modules/openat (Files): Add lib/openat-proc.c.
89917         (Depends-on): Add same-inode, stdbool.
89918         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
89920 2006-09-29  Bruno Haible  <bruno@clisp.org>
89922         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
89923         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
89924         argument. Set stdout_closed before testing for ferror, not after.
89925         (fwriteerror, fwriteerror_no_ebadf): New functions.
89927 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89929         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
89931 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
89933         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
89934         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
89936 2006-09-28  Jim Meyering  <jim@meyering.net>
89938         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
89939         Include <unistd.h>.
89941 2006-09-28  Bruno Haible  <bruno@clisp.org>
89943         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
89944         * modules/linkedhash-list (Depends-on): Likewise.
89945         * modules/rbtreehash-list (Depends-on): Likewise.
89947 2006-09-28  Bruno Haible  <bruno@clisp.org>
89949         * lib/strndup.h: Simplify the redefinition of strndup.
89950         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
89951         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
89953 2006-09-28  Bruno Haible  <bruno@clisp.org>
89955         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
89956         * lib/gl_linkedhash_list.c: Likewise.
89957         * lib/gl_rbtreehash_list.c: Likewise.
89959 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
89961         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
89962         getaddrinfo.
89964         * lib/__fpending.h: Don't include <stdio_ext.h> unless
89965         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
89966         it causes <stdio_ext.h> to cause a compile-time error.
89967         Problem reported by Nelson H. F. Beebe.
89968         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
89969         of HAVE_DECL___PENDING.
89971         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
89972         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
89973         declaration.
89975 2006-09-27  Jim Meyering  <jim@meyering.net>
89977         This file could end up with a definition for a function
89978         named __strndup, rather than rpl_strndup on a system with
89979         incomplete weak_alias support.
89980         * lib/strndup.c (strndup): Rename from __strndup.
89981         Remove #defines that used to map __strndup to strndup.
89982         Don't use K&R prototypes.
89983         Remove LIBC-related code, since this file is not sync'd with glibc.
89984         * lib/strndup.h: Revamp, accordingly.
89985         * m4/strndup.m4: Modernize.
89987 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
89989         * modules/savewd (Depends-on): Add 'raise'.
89990         * lib/savewd.c: Include <signal.h>, for 'raise'.
89992 2006-09-26  Jim Meyering  <jim@meyering.net>
89994         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
89995         when we detect Darwin 8.7.0's acl_get_file bug.
89996         Rearrange to perform the new (below) run-test while $LIBS
89997         contains any acl-related library.  Set USE_ACL at the end.
89998         (gl_ACL_GET_FILE): New function.
90000 2006-09-26  Eric Blake  <ebb9@byu.net>
90002         * lib/verror.c: Include <config.h> unconditionally.
90004 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
90006         * modules/clock-time (Maintainer): Add self.
90007         * modules/getlogin_r (Depends-on): Add extensions.
90009 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90011         * modules/clock-time: New module.
90012         * modules/nanosleep (Depends-on): Add clock-time.
90013         * modules/gethrxtime (Depends-on): Likewise.
90014         * modules/gettime (Depends-on): Likewise.
90015         * modules/settime (Depends-on): Likewise.
90017         * modules/fts-lgpl: Depend on openat.
90018         * modules/mkancesdirs: Depend on savewd.
90019         * modules/mkdir-p: Likewise.
90021 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90023         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
90025         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
90026         `gl_have_arbitrary_file_name_length_limit' to
90027         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
90028         actually works between configure runs.
90030 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90031             Bruno Haible  <bruno@clisp.org>
90033         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
90035 2006-09-25  Jim Meyering  <jim@meyering.net>
90037         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
90038         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
90040 2006-09-25  Eric Blake  <ebb9@byu.net>
90042         * gnulib-tool (func_import, func_create_testdir): Fix typos in
90043         exec's in 2006-09-18 patch when shuffling fds.
90045 2006-09-25  Bruno Haible  <bruno@clisp.org>
90047         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
90048         Reported by Jim Meyering.
90050 2006-09-24  Jim Meyering  <jim@meyering.net>
90052         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
90053         compare a pointer against a literal "0".  That caused failures with
90054         at least HP-UX's hpcc.
90056 2006-09-22  Simon Josefsson  <jas@extundo.com>
90058         * modules/gc-sha1:
90059         * modules/gc-md4:
90060         * modules/gc-hmac-sha1:
90061         * modules/gc-hmac-md5:
90062         * modules/gc-des:
90063         * modules/gc-arcfour: Distribute more files.
90065 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90067         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
90068         (gl_linked_iterator_from_to): Initialize struct completely.
90069         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
90070         (gl_tree_iterator_from_to): Likewise
90071         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
90072         * lib/gl_array_list.c [lint] (gl_array_iterator)
90073         (gl_array_iterator_from_to): Likewise.
90074         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
90075         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
90076         (gl_carray_iterator_from_to): Likewise.
90078         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
90079         * lib/md4.c (md4_process_block): Remove unused variable.
90080         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
90081         parentheses for clarity.
90083 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90085         * modules/bison-i18n (Depends-on): Add gettext.
90087 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90089         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
90090         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
90091         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
90092         also add missing comma that caused broken test.
90093         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
90094         stdlib.h, for `abort'.
90095         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
90096         variables.
90097         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
90098         include unistd.h if present, for `rmdir'.
90099         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
90100         variables.
90101         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
90102         in the process include standard headers for prototypes.
90103         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
90104         gets declared on GNU/Linux.
90105         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
90106         unistd.h, for `rmdir'.
90107         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
90109         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
90110         always true.
90111         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
90113         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
90115 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90117         * gnulib-tool (func_version): Create output all at once.  This
90118         may help avoid triggering unnecessary SIGPIPEs, and at any
90119         rate it doesn't hurt.
90121 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90122             Bruno Haible  <bruno@clisp.org>
90124         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
90125         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
90126         * m4/signed.m4 (bh_C_SIGNED): Likewise.
90128         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
90129         (gl_FUNC_VASPRINTF): Invoke it.
90131 2006-09-22  Bruno Haible  <bruno@clisp.org>
90133         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
90134         getloadavg.c as first argument.
90136 2006-09-22  Bruno Haible  <bruno@clisp.org>
90138         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
90139         at the beginning of the gl_INIT macro.
90140         * modules/getloadavg (configure.ac): Pass $gl_source_base to
90141         gl_GETLOADAVG.
90143 2006-09-22  Bruno Haible  <bruno@clisp.org>
90145         * gnulib-tool (func_create_megatestdir): Don't include the config-h
90146         module.
90147         Suggested by Ralf Wildenhues.
90149 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90151         Import this patch from libc:
90153         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
90155         * lib/regex_internal.c (re_string_reconstruct): Handle
90156         offset < pstr->valid_raw_len && pstr->offsets_needed case.
90157         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
90158         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
90159         re_string_context_at.
90161         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
90162         now requires it.
90163         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
90164         gl_REGEX now does it for us.
90165         (gl_REGEX): Add test taken from
90166         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
90168         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
90169         Check that large offsets work.  Modernize Autoconf usages.
90170         Prefer "yes" to mean a good thing rather than a bad.
90171         Don't put "#define mkstemp" in config.h, as this might interfere
90172         with standard system headers that "#define mkstemp mkstemp64".
90174         * modules/mkstemp (Depends-on): Add extensions, so that
90175         mkstemp is visible on some platforms.
90176         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
90177         (Include): Change to "mkstemp.h" from <stdlib.h>.
90178         (Files): Add mkstemp.h.
90180         * lib/mkstemp.h: New file, since some standard headers
90181         #define mkstemp.
90182         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
90183         Include "mkstemp.h".
90184         Make the _LIBC code resemble glibc original more,
90185         e.g., use K&R style.
90186         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
90187         (mkstemp): Remove, since mkstemp.h does this for us.
90188         * lib/stdlib--.h: Include mkstemp.h.
90190         Import this patch from libc:
90192         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
90194         * lib/tempname.c (__gen_tempname): Change attempts_min
90195         into a macro.  Use preprocessor to decide how to initialize
90196         attempts [Coverity CID 67].
90198 2006-09-20  Bruno Haible  <bruno@clisp.org>
90200         * lib/mkdtemp.c: Import from libc.
90201         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
90202                 * sysdeps/posix/tempname.c (__gen_tempname): Change
90203                 attempts_min into a macro.  Use preprocessor to decide how to
90204                 initialize attempts [Coverity CID 67].
90205         2001-11-27  Paul Eggert  <eggert@twinsun.com>
90206                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
90207                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
90209 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90211         * gnulib-tool (func_exit): New function, to allow to pass the
90212         exit status portably through the trap.  Use everywhere.
90213         (--help, --version): Signal a write error.
90214         (trap): catch SIGPIPE, for write errors.
90215         Exit at the end of the trap, with the correct exit status.
90217 2006-09-19  Karl Berry  <karl@gnu.org>
90219         * doc/gnulib.texi: note about the license texinfo files.
90221 2006-09-19  Eric Blake  <ebb9@byu.net>
90223         * gnulib-tool: Avoid space-tab.
90225 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
90227         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
90228         that prevented coreutils 6.1 from building.  Problem reported
90229         by Petter Reinholdtsen.
90231 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
90233         * gnulib-tool (avoidlist): Fix typo that broke options like
90234         --avoid=lock that are used by coreutils bootstrap.
90236 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
90238         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
90239         more systematically.
90241 2006-09-18  Jim Meyering  <jim@meyering.net>
90243         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
90245 2006-09-18  Bruno Haible  <bruno@clisp.org>
90247         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
90249 2006-09-18  Bruno Haible  <bruno@clisp.org>
90251         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
90252         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
90253         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
90254         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
90255         * m4/gettext.m4: Require autoconf >= 2.52.
90256         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
90257         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
90258         of gl_cv_header_inttypes_h.
90260 2006-09-18  Bruno Haible  <bruno@clisp.org>
90262         * lib/javaversion.c: Include configmake.h.
90264 2006-09-18  Bruno Haible  <bruno@clisp.org>
90266         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
90267         avoid that the while loops be executed in a subshell.
90269 2006-09-18  Bruno Haible  <bruno@clisp.org>
90271         * MODULES.html.sh (func_module): Break long lines.
90272         Suggested by Bruce Korb <bkorb@gnu.org>.
90274 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90276         Speed up by a factor of 1.12.
90277         * gnulib-tool (nl): New variable.
90278         (func_import): Rewrite include directive extraction to only read each
90279         directive once.
90281 2006-09-17  Bruno Haible  <bruno@clisp.org>
90283         * modules/javaversion (Makefile.am): Remove DEFS setting.
90284         (Depends-on): Add configmake, for PKGDATADIR definition.
90286 2006-09-17  Bruno Haible  <bruno@clisp.org>
90288         * gnulib-tool (func_create_testdir): Rewrite all files at once.
90290 2006-09-17  Bruno Haible  <bruno@clisp.org>
90292         * gnulib-tool (func_append): New function, stolen from libtool.m4.
90293         (func_modules_transitive_closure, func_modules_add_dummy,
90294         func_modules_to_filelist, func_import, func_create_testdir,
90295         func_create_megatestdir, ...): Use it wherever possible.
90296         Suggested by Ralf Wildenhues.
90298 2006-09-16  Karl Berry  <karl@gnu.org>
90300         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
90301         to avoid sectioning errors.
90302         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
90303         [ifinfo]: blank line after @center-ed titles.
90304         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
90305         Spell FSF address consistently with others.
90306         (These changes approved by rms.)
90308 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90310         Speed up by a factor of 1.61.
90311         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
90312         already checked module names again.
90314 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90316         Speed up by a factor of 1.13.
90317         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
90318         for new_files, and the input to func_add_or_update.
90320 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90322         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
90323         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
90325 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
90327         * modules/mkancesdirs (Depends-on): Add fcntl.
90328         * modules/savewd: New file.
90329         * MODULES.html.sh (File system functions): Add savewd.
90331         * modules/configmake (Makefile.am): Add support for the
90332         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
90334 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
90336         * m4/savewd.m4: New file.
90338 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
90340         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
90341         (dirchownmod): New arg FD.  All callers changed.
90342         Use FD rather than opening the directory ourself, as opening is
90343         now the caller's responsibility.
90344         * lib/dirchownmod.h: Likewise.
90345         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
90346         hosts that require <sys/types.h> before <sys/stat.h>.  Include
90347         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
90348         (test_dir): Remove.
90349         (mkancesdirs): Return length of prefix of FILE that has already
90350         been made, or -2 if there is a child doing the work.  Redo
90351         algorithm so that it is O(N) rather than O(N**2).  Optimize away
90352         ".", and treat ".." specially since it might stray back into
90353         already-created areas.  Use a subprocess if necessary.  New arg
90354         WD; all users changed.  MAKE_DIR function should now return 1
90355         if it creates a directory that is not readable.  Return -2 if
90356         a child process is spun off.
90357         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
90358         Adjust signature to match code.
90359         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
90360         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
90361         all users changed.
90362         * lib/savewd.c, lib/savewd.h: New files.
90364 2006-09-15  Jim Meyering  <jim@meyering.net>
90366         * modules/rename-dest-slash: New module.
90367         * MODULES.html.sh (posix_compat): Add it here.
90369         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
90371 2006-09-15  Jim Meyering  <jim@meyering.net>
90373         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
90374         file.
90376         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
90378 2006-09-15  Jim Meyering  <jim@meyering.net>
90380         * lib/rename-dest-slash.c (has_trailing_slash): Use
90381         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
90382         (rpl_rename_dest_slash): Perform the cheaper trailing slash
90383         test before testing whether SRC is a directory.
90384         Suggestions from Bruno Haible.
90386         Avoid a warning about an unused variable.
90387         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
90388         into the #ifdef block where it's used.
90390         * lib/rename-dest-slash.c: New file.
90392 2006-09-14  Bruno Haible  <bruno@clisp.org>
90394         * lib/allocsa.c: Include <config.h> unconditionally.
90395         * lib/asnprintf.c: Likewise.
90396         * lib/asprintf.c: Likewise.
90397         * lib/c-strcasecmp.c: Likewise.
90398         * lib/c-strcasestr.c: Likewise.
90399         * lib/c-strncasecmp.c: Likewise.
90400         * lib/c-strstr.c: Likewise.
90401         * lib/classpath.c: Likewise.
90402         * lib/clean-temp.c: Likewise.
90403         * lib/concatpath.c: Likewise.
90404         * lib/copy-file.c: Likewise.
90405         * lib/csharpcomp.c: Likewise.
90406         * lib/csharpexec.c: Likewise.
90407         * lib/execute.c: Likewise.
90408         * lib/fatal-signal.c: Likewise.
90409         * lib/findprog.c: Likewise.
90410         * lib/fwriteerror.c: Likewise.
90411         * lib/gl_array_list.c: Likewise.
90412         * lib/gl_array_oset.c: Likewise.
90413         * lib/gl_avltree_list.c: Likewise.
90414         * lib/gl_avltree_oset.c: Likewise.
90415         * lib/gl_avltreehash_list.c: Likewise.
90416         * lib/gl_carray_list.c: Likewise.
90417         * lib/gl_linked_list.c: Likewise.
90418         * lib/gl_linkedhash_list.c: Likewise.
90419         * lib/gl_list.c: Likewise.
90420         * lib/gl_oset.c: Likewise.
90421         * lib/gl_rbtree_list.c: Likewise.
90422         * lib/gl_rbtree_oset.c: Likewise.
90423         * lib/gl_rbtreehash_list.c: Likewise.
90424         * lib/imaxabs.c: Likewise.
90425         * lib/imaxdiv.c: Likewise.
90426         * lib/javacomp.c: Likewise.
90427         * lib/javaexec.c: Likewise.
90428         * lib/javaversion.c: Likewise.
90429         * lib/linebreak.c: Likewise.
90430         * lib/localcharset.c: Likewise.
90431         * lib/lock.c: Likewise.
90432         * lib/mbchar.c: Likewise.
90433         * lib/mbswidth.c: Likewise.
90434         * lib/mkdtemp.c: Likewise.
90435         * lib/pipe.c: Likewise.
90436         * lib/printf-args.c: Likewise.
90437         * lib/printf-parse.c: Likewise.
90438         * lib/progname.c: Likewise.
90439         * lib/progreloc.c: Likewise.
90440         * lib/readlink.c: Likewise.
90441         * lib/sh-quote.c: Likewise.
90442         * lib/stpcpy.c: Likewise.
90443         * lib/stpncpy.c: Likewise.
90444         * lib/strcasecmp.c: Likewise.
90445         * lib/strcasestr.c: Likewise.
90446         * lib/strcspn.c: Likewise.
90447         * lib/striconv.c: Likewise.
90448         * lib/strncasecmp.c: Likewise.
90449         * lib/strnlen1.c: Likewise.
90450         * lib/strstr.c: Likewise.
90451         * lib/strtok_r.c: Likewise.
90452         * lib/tls.c: Likewise.
90453         * lib/tmpdir.c: Likewise.
90454         * lib/unicodeio.c: Likewise.
90455         * lib/unsetenv.c: Likewise.
90456         * lib/vasnprintf.c: Likewise.
90457         * lib/vasprintf.c: Likewise.
90458         * lib/wait-process.c: Likewise.
90459         * lib/xallocsa.c: Likewise.
90460         * lib/xsetenv.c: Likewise.
90461         * lib/xstriconv.c: Likewise.
90463 2006-09-13  Simon Josefsson  <jas@extundo.com>
90465         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
90466         that internally, suggested by Ralf Wildenhues
90467         <Ralf.Wildenhues@gmx.de>.
90469 2006-09-13  Simon Josefsson  <jas@extundo.com>
90471         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
90472         @LIBOBJS@.
90473         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90475 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90477         * lib/_fpending.c: Include <config.h> unconditionally, since we no
90478         longer worry about uses that don't define HAVE_CONFIG_H.
90479         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
90480         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
90481         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
90482         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
90483         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
90484         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
90485         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
90486         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
90487         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
90488         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
90489         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
90490         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
90491         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
90492         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
90493         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
90494         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
90495         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
90496         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
90497         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
90498         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
90499         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
90500         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
90501         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
90502         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
90503         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
90504         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
90505         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
90506         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
90507         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
90508         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
90509         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
90510         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
90511         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
90512         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
90513         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
90514         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
90515         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
90516         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
90517         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
90518         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
90519         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
90520         Likewise.
90522 2006-09-13  Eric Blake  <ebb9@byu.net>
90524         * lib/getopt.c: Fix typo in last commit.
90526 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
90528         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
90529         dgettext.
90531 2006-09-12  Jim Meyering  <jim@meyering.net>
90533         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
90534         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
90535         Reported by Nelson H. F. Beebe.
90537 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
90539         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
90540         program_invocation_name and program_invocation_short_name are
90541         initialized.
90542         * lib/argp-namefrob.h: Move declarations of program_invocation_name
90543         and program_invocation_short_name to argp.h, so they are visible
90544         to user programs.
90545         * lib/argp.h: Likewise
90547 2006-09-10  Bruno Haible  <bruno@clisp.org>
90549         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
90550         m4/inttypes_h.m4, m4/uintmax_t.m4.
90552 2006-09-10  Bruno Haible  <bruno@clisp.org>
90554         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
90555         gl_AC_TYPE_UINTMAX_T.
90557 2006-09-10  Bruno Haible  <bruno@clisp.org>
90559         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
90561 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
90563         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
90564         convention.  Text proposed by Bruno Haible.
90565         (struct argp_option): Document the use of N_() wrappers.
90567         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
90568         '\v', and translate the two parts separately, instead of feeding
90569         the whole string to gettext.  This allows to exclude
90570         '\v' from the strings visible to the translator by writing doc
90571         strings as N_("..") "\v" N_("..").
90573 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
90575         * config/srclist.txt: Undo latest change; the bug was fixed.
90577 2006-09-09  Bruno Haible  <bruno@clisp.org>
90579         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
90580         assignments if building a library without libtool.
90581         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
90582         in func_emit_lib_Makefile_am.
90583         (func_import): When building a static library libfoo.a, arrange to
90584         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
90585         (func_create_testdir): Likewise.
90586         * modules/gc (configure.ac, Makefile.am): If building statically,
90587         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
90588         * modules/iconvme (configure.ac, Makefile.am): Likewise.
90589         * modules/striconv (configure.ac, Makefile.am): Likewise.
90590         Based on a suggestion by Ralf Wildenhues.
90592 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90594         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
90595         Check for unistd.h too, since Autoconf doesn't assume POSIX.
90596         Also:
90598         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90599         Add year_2050_test to catch glibc bug 2821
90600         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
90602         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
90603         Prefer #ifdef to #if.
90605         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
90606         Return from 'main' instead of calling 'exit'.
90608 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90610         * lib/mktime.c (guess_time_tm): Fix bug where mktime
90611         returned the maximum time_t value rather than (time_t) -1.
90612         Problem originally reported by William Bardwell
90613         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
90615         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
90616         Moved to here ...
90617         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
90618         ... from here.
90620 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
90622         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
90623         2821 is fixed.
90625 2006-09-08  Jim Meyering  <jim@meyering.net>
90627         Don't make generated files read-only.  That would bother too many
90628         people.  However, do retain the ability to work when targets are
90629         read-only: remove the destination and temporary files before writing
90630         them (when generated via sed or echo), or by using the -f option for
90631         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
90632         * modules/alloca-opt, modules/argz, modules/arpa_inet:
90633         * modules/byteswap, modules/configmake, modules/fcntl:
90634         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
90635         * modules/localcharset, modules/netinet_in, modules/poll:
90636         * modules/stdbool, modules/stdint, modules/sys_select:
90637         * modules/sys_socket, modules/sys_stat, modules/sysexits:
90639 2006-09-08  Jim Meyering  <jim@meyering.net>
90641         Avoid new build failure on FreeBSD 6.0.
90642         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
90643         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
90644         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
90646 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90648         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
90650 2006-09-07  Jim Meyering  <jim@meyering.net>
90652         Fix global typo in last change: use chmod u-w, not chmod u-x.
90653         Spotted by Paul Eggert and Bruce Korb.
90654         * modules/alloca-opt, modules/argz, modules/arpa_inet:
90655         * modules/byteswap, modules/configmake, modules/fcntl:
90656         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
90657         * modules/localcharset, modules/netinet_in, modules/poll:
90658         * modules/stdbool, modules/stdint, modules/sys_select:
90659         * modules/sys_socket, modules/sys_stat, modules/sysexits:
90661 2006-09-06  Jim Meyering  <jim@meyering.net>
90663         Make generated files be read-only.
90664         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
90665         Ensure that each generated file is now read-only.
90666         * modules/argz: Likewise.
90667         * modules/arpa_inet: Likewise.
90668         * modules/byteswap: Likewise.
90669         * modules/configmake: Likewise.
90670         * modules/fcntl: Likewise.
90671         * modules/fnmatch: Likewise.
90672         * modules/getopt: Likewise.
90673         * modules/glob: Likewise.
90674         * modules/inttypes: Likewise.
90675         * modules/netinet_in: Likewise.
90676         * modules/poll: Likewise.
90677         * modules/stdbool: Likewise.
90678         * modules/stdint: Likewise.
90679         * modules/sys_select: Likewise.
90680         * modules/sys_socket: Likewise.
90681         * modules/sys_stat: Likewise.
90682         * modules/sysexits: Likewise.
90683         * modules/localcharset: Same as above, but continue using temporary
90684         file named "t-$@" (why different?) rather than the "$@-t" used
90685         everywhere else.
90687         * modules/sysexits (Makefile.am): Replace literal occurrences
90688         of "sysexit.h" more readable, and more consistent, "$@".
90690 2006-09-06  Bruno Haible  <bruno@clisp.org>
90692         * modules/striconv: New file.
90693         * modules/xstriconv: New file.
90694         * MODULES.html.sh (Internationalization functions): Add striconv,
90695         xstriconv.
90697 2006-09-06  Bruno Haible  <bruno@clisp.org>
90699         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
90700         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
90701         not using libtool correctly.
90703 2006-09-06  Bruno Haible  <bruno@clisp.org>
90705         * lib/striconv.h: New file.
90706         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
90707         iconvstring.c.
90708         * lib/xstriconv.h: New file.
90709         * lib/xstriconv.c: New file.
90711 2006-09-06  Bruno Haible  <bruno@clisp.org>
90713         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
90714         lib_..._LDFLAGS.
90716 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90718         * lib/argz_.h: Sync from Libtool.
90720         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
90721                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
90723         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
90725 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
90727         * modules/trim: New file.
90729 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
90731         * lib/trim.h: New file.
90732         * lib/trim.c: New file.
90734 2006-09-05  Bruno Haible  <bruno@clisp.org>
90736         * MODULES.html.sh (String handling): Add trim.
90738 2006-09-04  Karl Berry  <karl@gnu.org>
90740         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
90741         until next release.
90743 2006-09-03  Bruno Haible  <bruno@clisp.org>
90745         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
90746         correctly.
90748 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
90750         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
90751         not gl_GETLOADAVG.  Omit unneeded semicolons.
90752         Problems reported by Ralf Wildenhues in
90753         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
90754         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
90755         at the end, which is the usual gnulib style.
90757         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
90758         of doing all the work ourselves.
90759         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
90760         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
90762 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
90764         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
90765         Problem reported by Ralf Wildenhues in
90766         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
90768         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
90769         HAVE_STRUCT_STATFS_F_FSTYPENAME.
90771 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
90773         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
90774         yesterday's patch by changing test -n to test -z.
90776 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
90778         * modules/getloadavg (Files): Add m4/getloadavg.m4.
90779         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
90780         the former is now obsolescent.
90782         * modules/chdir-long (Depends-on): Add fcntl.
90784 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
90786         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
90787         obsolescent, and programs should use gnulib instead.
90788         * m4/getloadavg.m4: New file, with contents taken from Autoconf
90789         but with prefixes changed.
90791 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
90793         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
90794         or stdbool.h, because they might not exist while configuring.
90796         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
90797         Don't include unistd.h or limits.h; not needed, since chdir-long.h
90798         does that for us.
90799         (O_DIRECTORY): Remove.
90801 2006-08-31  Eric Blake  <ebb9@byu.net>
90803         * gnulib-tool: Don't let emacs change spaces to TAB.
90805 2006-08-31  Bruno Haible  <bruno@clisp.org>
90807         * gnulib-tool: When calling func_import more than once, do it in a
90808         subshell.
90809         Reported by Eric Blake <ebb9@byu.net>.
90811 2006-08-31  Bruno Haible  <bruno@clisp.org>
90813         * gnulib-tool (nl): Remove variable.
90814         (sed_transform_lib_file): Use more robust test for config-h module.
90815         (func_import): Fix typo in 2006-08-25 patch.
90817 2006-08-31  Bruno Haible  <bruno@clisp.org>
90819         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
90820         specified, augment Makefile.am variables instead of assigning them.
90822 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
90824         Work around a bug in both the Linux and SunOS 64-bit kernels:
90825         nanosleep mishandles sleeps for longer than 2**31 seconds.
90826         Problem reported by Frank v Waveren in
90827         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
90828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
90829         Check for nanosleep bug.
90830         (LIB_NANOSLEEP): Append clock_gettime library if needed.
90832 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
90834         Work around a bug in both the Linux and SunOS 64-bit kernels:
90835         nanosleep mishandles sleeps for longer than 2**31 seconds.
90836         Problem reported by Frank v Waveren in
90837         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
90838         * lib/nanosleep.c (BILLION): New constant.
90839         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
90840         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
90841         implementation.
90843 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
90845         * modules/nanosleep (Depends-on): Add gettime.
90847 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
90848         and Simon Josefsson  <jas@extundo.com>
90849         and Oskar Liljeblad  <oskar@osk.mine.nu>
90851         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
90852         * gnulib-tool (func_import): New license type 'unmodifiable license
90853         text'.
90854         * modules/fdl: Use it.  Longer description.
90855         * module/gpl, module/lgpl: New files.
90857 2006-08-30  Jim Meyering  <jim@meyering.net>
90859         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
90860         shadowing the parameter.
90862 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90864         Sync from Libtool:
90866         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90868         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
90869         sharing with gnulib.  Report by Eric Blake.
90871 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
90873         * modules/isapipe: New file.
90874         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
90876 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
90878         * modules/configmake (Makefile.am): Add a comment, and omit
90879         the CONFIGMAKE_ prefix from generated macro names.  Suggested
90880         by Bruno Haible.
90882 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
90884         * m4/isapipe.m4: New file.
90886 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
90888         * lib/isapipe.c, lib/isapipe.h: New files.
90890 2006-08-29  Jim Meyering  <jim@meyering.net>
90892         * modules/configmake (Makefile.am): Make configmake.h depend on
90893         Makefile.  Otherwise, a stale configmake.h could hang around.
90895 2006-08-29  Eric Blake  <ebb9@byu.net>
90897         * lib/error.c (error_at_line, print_errno_message): Match libc, after
90898         resolution of upstream bug 3044.
90900 2006-08-29  Bruno Haible  <bruno@clisp.org>
90902         * modules/localcharset (Depends-on): Add configmake.
90903         (Makefile.am): Remove setting of LIBDIR through DEFS.
90905 2006-08-29  Bruno Haible  <bruno@clisp.org>
90907         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
90908         defined.
90910 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
90912         * modules/fcntl: New file.
90913         * modules/chdir-safer (Depends-on): Add fcntl.
90914         * modules/fts: Likewise.
90915         * modules/mkdir-p: Likewise.
90917         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
90918         This undoes the most recent change, since we're now addressing the
90919         problem in a different way.
90921         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
90922         into output, since the output might be called Makefile.am even
90923         if $makefile_name is something different.
90924         (func_import): Use $makefile_am rather than
90925         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
90926         empty.
90928         * modules/inttypes (Files): Add m4/inttypes-h.m4.
90930 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
90932         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
90933         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
90934         recent change to stdint.m4, since we're now addressing the problem in a
90935         different way.
90937 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
90939         * m4/fcntl_h.m4: New file.
90941 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
90943         * lib/fcntl_.h: New file.
90944         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
90945         the fcntl module.
90946         * lib/dirchownmod.c: Likewise.
90947         * lib/fts.c: Likewise.
90949         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
90950         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
90951         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
90952         just before including <inttypes.h>, to avoid circular inclusion.
90954 2006-08-28  Jim Meyering  <jim@meyering.net>
90956         * doc/visibility.texi: Actually read and correct the grammar of the
90957         sentence affected by yesterday's change.
90959 2006-08-28  Eric Blake  <ebb9@byu.net>
90961         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
90962         needs wrapper.
90964 2006-08-28  Eric Blake  <ebb9@byu.net>
90966         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
90968 2006-08-28  Eric Blake  <ebb9@byu.net>
90970         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
90972 2006-08-28  Bruno Haible  <bruno@clisp.org>
90974         * modules/c-strstr: New file, from GNU gettext.
90975         * MODULES.html.sh (String handling): Add c-strstr.
90977 2006-08-28  Bruno Haible  <bruno@clisp.org>
90979         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
90980         macros.
90981         Reported by Eric Blake.
90983 2006-08-28  Bruno Haible  <bruno@clisp.org>
90985         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
90986         (VASNPRINTF): Return a string of length > INT_MAX without failing.
90987         * lib/vasprintf.c: Include errno.h, limits.h.
90988         (EOVERFLOW): New fallback definition.
90989         (vasprintf): Test here whether the string length is > INT_MAX.
90990         * lib/vsnprintf.c: Include errno.h, limits.h.
90991         (EOVERFLOW): New fallback definition.
90992         (vsnprintf): Fix bug when generated string was too long for the buffer.
90993         Test here whether the string length is > INT_MAX.
90995 2006-08-28  Bruno Haible  <bruno@clisp.org>
90997         * lib/inttypes_.h (SCNX*): Remove definitions.
90998         Reported by Eric Blake.
91000 2006-08-28  Bruno Haible  <bruno@clisp.org>
91002         * lib/c-strstr.h: New file, from GNU gettext.
91003         * lib/c-strstr.c: New file, from GNU gettext.
91005 2006-08-28  Bruno Haible  <bruno@clisp.org>
91007         * gnulib-tool: Reorder some statements.
91009 2006-08-28  Bruno Haible  <bruno@clisp.org>
91011         * gnulib-tool: New option --makefile-name.
91012         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
91013         $makefile_name.
91014         (func_import): Write $makefile_name to the cache file, and read it from
91015         there unless explicitly specified. Use $makefile_name as file name
91016         instead of Makefile.am. Adjust the recommendations accordingly.
91018 2006-08-28  Bruno Haible  <bruno@clisp.org>
91020         * gnulib-tool (func_verify_module): Check against misapplying patch.
91022 2006-08-28  Bruno Haible  <bruno@clisp.org>
91024         * gnulib-tool (func_relativize, func_relconcat): New functions.
91025         Give an error if --local-dir is given with --update.
91026         Remove trailing slashes from $local_gnulib_dir.
91027         (func_import): Store the relativized $local_gnulib_dir in
91028         gnulib-cache.m4, and read it from there if not specified explicitly.
91030 2006-08-28  Bruno Haible  <bruno@clisp.org>
91032         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
91033         is the current directory. Respect also $local_gnulib_dir.
91035 2006-08-28  Bruno Haible  <bruno@clisp.org>
91036             Simon Josefsson  <jas@extundo.com>
91038         BeOS portability.
91039         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
91041 2006-08-27  Jim Meyering  <jim@meyering.net>
91043         * doc/visibility.texi: Remove duplicate word: "pointer".
91045 2006-08-26  Bruno Haible  <bruno@clisp.org>
91047         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
91048         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
91049         (Makefile.am): Create inttypes.h from inttypes_.h.
91050         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
91052         * modules/imaxabs: New file.
91054         * modules/imaxdiv: New file.
91056 2006-08-26  Bruno Haible  <bruno@clisp.org>
91058         * m4/inttypes.m4: New file.
91059         * m4/_inttypes_h.m4: Remove file.
91060         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
91061         PRI_MACROS_BROKEN.
91062         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
91064         * m4/imaxabs.m4: New file.
91066         * m4/imaxdiv.m4: New file.
91068 2006-08-26  Bruno Haible  <bruno@clisp.org>
91070         * lib/inttypes_.h: New file.
91071         * lib/inttypes.h: Remove file.
91072         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
91074         * lib/imaxabs.c: New file.
91076         * lib/imaxdiv.c: New file.
91078 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
91080         New config-h module, so that "make" output needn't be cluttered
91081         by -DHAVE_CONFIG_H.
91082         * MODULES.html.sh (Support for building libraries and executables):
91083         Add config-h.
91084         * modules/config-h: New file.
91085         * gnulib-tool (nl, sed_transform_lib_file): New vars.
91086         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
91087         the config-h module is used.
91089         New configmake module, so that "make" output needn't be cluttered
91090         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
91091         * MODULES.html.sh (Support for building libraries and executables):
91092         Add configmake.
91093         * modules/configmake: New file.
91095 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
91097         * m4/config-h.m4: New file.
91099 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
91101         * config/srclist.txt: Add elisp-comp.
91103 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
91105         * MODULES.html.sh (Support for building libraries and executables):
91106         Add elisp-comp.
91107         * build-aux/elisp-comp: New file.
91108         * modules/elisp-comp: New file.
91110 2006-08-24  Bruno Haible  <bruno@clisp.org>
91112         * gnulib-tool (func_create_testdir): Use non-default values of
91113         sourcebase and m4base.
91115 2006-08-24  Bruno Haible  <bruno@clisp.org>
91117         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
91118         HTML structure.
91120 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
91122         * modules/openat (Depends-on): Add lchown.
91124 2006-08-23  Bruno Haible  <bruno@clisp.org>
91126         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
91127         of gl_LOCK_EARLY instead of gl_LOCK.
91129 2006-08-23  Bruno Haible  <bruno@clisp.org>
91131         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
91132         on OSF/1 to no.
91133         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
91135 2006-08-23  Bruno Haible  <bruno@clisp.org>
91137         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
91138         as unusable.
91140         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
91141         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
91142         (gl_LOCK): New macro.
91144 2006-08-22  Simon Josefsson  <jas@extundo.com>
91146         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
91147         to md5 module.
91149 2006-08-22  Simon Josefsson  <jas@extundo.com>
91151         * MODULES.html.sh: Add "Support for maintaining and release
91152         projects".
91154         * build-aux/gnupload: New file, from coreutils.
91156 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
91158         Avoid the need for AC_LIBSOURCES in m4 macros.
91159         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
91160         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
91161         * modules/check-version (EXTRA_DIST): Add check-version.h.
91162         * modules/crc (EXTRA_DIST): Add crc.h.
91163         * modules/des (EXTRA_DIST): Add des.h.
91164         * modules/gc (EXTRA_DIST): Add gc.h.
91165         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
91166         * modules/getline (EXTRA_DIST): Add getline.h.
91167         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
91168         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
91169         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
91170         * modules/md2 (EXTRA_DIST): Add md2.h.
91171         * modules/md4 (EXTRA_DIST): Add md4.h.
91172         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
91173         * modules/read-file (EXTRA_DIST): Add read-file.h.
91174         * modules/readline (EXTRA_DIST): Add readline.h.
91175         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
91176         rijndael-api-fst.h.
91178 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
91180         * m4/rijndael.m4 (gl_ARCFOUR):
91181         * m4/arctwo.m4 (gl_ARCTWO):
91182         * m4/check-version.m4 (gl_CHECK_VERSION):
91183         * m4/crc.m4 (gl_CRC):
91184         * m4/des.m4 (gl_DES):
91185         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
91186         * m4/gc.m4 (gl_GC):
91187         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
91188         * m4/getline.m4 (gl_FUNC_GETLINE):
91189         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
91190         * m4/hmac-md5.m4 (gl_HMAC_MD5):
91191         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
91192         * m4/md2.m4 (gl_MD2):
91193         * m4/md4.m4 (gl_MD4):
91194         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
91195         * m4/read-file.m4 (gl_FUNC_READ_FILE):
91196         * m4/readline.m4 (gl_FUNC_READLINE):
91197         * m4/rijndael.m4 (gl_RIJNDAEL):
91198         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
91199         to get the necessary .h files and whatnot.
91201 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
91203         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
91204         gnulib rather than the other way around.
91205         * config/srclistvars.sh (COREUTILS): Remove.
91207 2006-08-22  Jim Meyering  <jim@meyering.net>
91209         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
91211         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
91213 2006-08-22  Eric Blake  <ebb9@byu.net>
91215         * modules/regexprops-generic: New file.
91216         * MODULES.html.sh (Support for building documentation): List it.
91218 2006-08-22  Eric Blake  <ebb9@byu.net>
91220         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
91221         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
91222         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
91223         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
91225 2006-08-22  Bruno Haible  <bruno@clisp.org>
91227         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
91228         and lib_LTLIBRARIES like the other lib_* variables.
91230 2006-08-22  Bruno Haible  <bruno@clisp.org>
91232         * build-aux/x-to-1.in: New file, from GNU gettext.
91234 2006-08-22  Bruno Haible  <bruno@clisp.org>
91236         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
91237         <utmpx.h> exists.
91239 2006-08-22  Bruno Haible  <bruno@clisp.org>
91241         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
91242         <utmpx.h> exists.
91244 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
91246         BeOS portability.
91247         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
91248         exist.
91249         Problem reported by Bruno Haible.
91251 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
91253         Avoid the need for AC_LIBSOURCES in m4 macros.
91254         * modules/acl (EXTRA_DIST): Add acl.h.
91255         * modules/argmatch (Files): Add m4/argmatch.m4.
91256         (configure.ac): Add gl_ARGMATCH.
91257         (EXTRA_DIST): Renamed from lib_SOURCES, for
91258         consistency with the other modules.  Remove argmatch.c.
91259         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
91260         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
91261         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
91262         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
91263         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
91264         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
91265         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
91266         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
91267         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
91268         * modules/closeout (EXTRA_DIST): Add closeout.h.
91269         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
91270         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
91271         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
91272         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
91273         dirname.h; remove basename.c and stripslash.c.
91274         * modules/exclude (EXTRA_DIST): Add exclude.h.
91275         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
91276         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
91277         * modules/file-type (EXTRA_DIST): Add file-type.h.
91278         * modules/filemode (EXTRA_DIST): Add filemode.h.
91279         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
91280         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
91281         * modules/fpending (EXTRA_DIST): Add __fpending.h.
91282         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
91283         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
91284         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
91285         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
91286         * modules/getdate (EXTRA_DIST): Add getdate.c.
91287         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
91288         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
91289         * modules/getpass (EXTRA_DIST): Add getpass.h.
91290         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
91291         * modules/group-member (EXTRA_DIST): Add group-member.h.
91292         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
91293         * modules/hash (EXTRA_DIST): Add hash.h.
91294         * modules/human (EXTRA_DIST): Add human.h.
91295         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
91296         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
91297         * modules/lchown (EXTRA_DIST): Add lchown.h.
91298         * modules/long-options (EXTRA_DIST): Add long-options.h.
91299         * modules/lstat (EXTRA_DIST): Add lstat.h.
91300         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
91301         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
91302         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
91303         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
91304         * modules/memxor (EXTRA_DIST): Add memxor.h.
91305         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
91306         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
91307         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
91308         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
91309         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
91310         * modules/physmem (EXTRA_DIST): Add physmem.h.
91311         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
91312         * modules/posixver (EXTRA_DIST): Add posixver.h.
91313         * modules/quote (EXTRA_DIST): Add quote.h.
91314         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
91315         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
91316         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
91317         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
91318         regex_internal.h regexec.c.
91319         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
91320         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
91321         * modules/same (EXTRA_DIST): Add same.h.
91322         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
91323         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
91324         * modules/savedir (EXTRA_DIST): Add savedir.h.
91325         * modules/sha1 (EXTRA_DIST): Add sha1.h.
91326         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
91327         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
91328         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
91329         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
91330         * modules/strdup (EXTRA_DIST): Add strdup.h.
91331         * modules/strftime (EXTRA_DIST): Add strftime.h.
91332         * modules/strndup (EXTRA_DIST): Add strndup.h.
91333         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
91334         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
91335         * modules/time_r (EXTRA_DIST): Add time_r.h.
91336         * modules/timespec (EXTRA_DIST): Add timespec.h.
91337         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
91338         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
91339         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
91340         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
91341         * modules/userspec (EXTRA_DIST): Add userspec.h.
91342         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
91343         * modules/utimens (EXTRA_DIST): Add utimens.h.
91344         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
91345         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
91346         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
91347         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
91348         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
91349         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
91350         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
91351         * modules/yesno (EXTRA_DIST): Add yesno.h.
91353 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
91355         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
91357         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
91358         * m4/dev-ino.m4, same-inode.m4: Remove.
91360         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
91361         * m4/acl.m4 (AC_FUNC_ACL):
91362         * m4/backupfile.m4 (gl_BACKUPFILE):
91363         * m4/c-strtod.m4 (gl_C99_STRTOLD):
91364         * m4/canon-host.m4 (gl_CANON_HOST):
91365         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
91366         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
91367         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
91368         * m4/cloexec.m4 (gl_CLOEXEC):
91369         * m4/close-stream.m4 (gl_CLOSE_STREAM):
91370         * m4/closeout.m4 (gl_CLOSEOUT):
91371         * m4/dirfd.m4 (gl_FUNC_DIRFD):
91372         * m4/dirname.m4 (gl_DIRNAME):
91373         * m4/exclude.m4 (gl_EXCLUDE):
91374         * m4/exitfail.m4 (gl_EXITFAIL):
91375         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
91376         * m4/file-type.m4 (gl_FILE_TYPE):
91377         * m4/filemode.m4 (gl_FILEMODE):
91378         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
91379         * m4/fpending.m4 (gl_FUNC_FPENDING):
91380         * m4/fprintftime.m4 (gl_FPRINTFTIME):
91381         * m4/fts.m4 (gl_FUNC_FTS):
91382         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
91383         * m4/getdate.m4 (gl_GETDATE):
91384         * m4/gethrxtime.m4 (gl_GETHRXTIME):
91385         * m4/getpagesize.m4 (gl_GETPAGESIZE):
91386         * m4/getpass.m4 (gl_FUNC_GETPASS):
91387         * m4/gettime.m4 (gl_GETTIME):
91388         * m4/getugroups.m4 (gl_GETUGROUPS):
91389         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
91390         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
91391         * m4/hard-locale.m4 (gl_HARD_LOCALE):
91392         * m4/hash.m4 (gl_HASH):
91393         * m4/idcache.m4 (gl_IDCACHE):
91394         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
91395         * m4/lchown.m4 (gl_FUNC_LCHOWN):
91396         * m4/long-options.m4 (gl_LONG_OPTIONS):
91397         * m4/lstat.m4 (gl_FUNC_LSTAT):
91398         * m4/md5.m4 (gl_MD5):
91399         * m4/memcasecmp.m4 (gl_MEMCASECMP):
91400         * m4/memcoll.m4 (gl_MEMCOLL):
91401         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
91402         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
91403         * m4/memxor.m4 (gl_MEMXOR):
91404         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
91405         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
91406         * m4/modechange.m4 (gl_MODECHANGE):
91407         * m4/mountlist.m4 (gl_MOUNTLIST):
91408         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91409         * m4/openat.m4 (gl_FUNC_OPENAT):
91410         * m4/pathmax.m4 (gl_PATHMAX):
91411         * m4/physmem.m4 (gl_PHYSMEM):
91412         * m4/posixtm.m4 (gl_POSIXTM):
91413         * m4/posixver.m4 (gl_POSIXVER):
91414         * m4/quote.m4 (gl_QUOTE):
91415         * m4/quotearg.m4 (gl_QUOTEARG):
91416         * m4/readtokens.m4 (gl_READTOKENS):
91417         * m4/readutmp.m4 (gl_READUTMP):
91418         * m4/regex.m4 (gl_REGEX):
91419         * m4/safe-read.m4 (gl_SAFE_READ):
91420         * m4/safe-write.m4 (gl_SAFE_WRITE):
91421         * m4/same.m4 (gl_SAME):
91422         * m4/save-cwd.m4 (gl_SAVE_CWD):
91423         * m4/savedir.m4 (gl_SAVEDIR):
91424         * m4/settime.m4 (gl_SETTIME):
91425         * m4/sha1.m4 (gl_SHA1):
91426         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
91427         * m4/stat-macros.m4 (gl_STAT_MACROS):
91428         * m4/stat-time.m4 (gl_STAT_TIME):
91429         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
91430         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
91431         * m4/strdup.m4 (gl_FUNC_STRDUP):
91432         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
91433         * m4/strndup.m4 (gl_FUNC_STRNDUP):
91434         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
91435         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
91436         * m4/time_r.m4 (gl_TIME_R):
91437         * m4/timespec.m4 (gl_TIMESPEC):
91438         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
91439         * m4/unlinkdir.m4 (gl_UNLINKDIR):
91440         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
91441         * m4/userspec.m4 (gl_USERSPEC):
91442         * m4/utimecmp.m4 (gl_UTIMECMP):
91443         * m4/utimens.m4 (gl_UTIMENS):
91444         * m4/xalloc.m4 (gl_XALLOC):
91445         * m4/xgetcwd.m4 (gl_XGETCWD):
91446         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
91447         * m4/xreadlink.m4 (gl_XREADLINK):
91448         * m4/xstrtod.m4 (gl_XSTRTOD):
91449         * m4/yesno.m4 (gl_YESNO):
91450         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
91451         to get the necessary .h files and whatnot.
91453 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
91454             Bruno Haible  <bruno@clisp.org>
91456         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
91457         /bin/sh understanding of '!' conditional negation.
91459 2006-08-21  Jim Meyering  <jim@meyering.net>
91461         * modules/openat (Depends-on): Really alphabetize.
91463         * modules/acl (Depends-on): Add error and quote.
91465         * check-module (find_included_lib_files): Add at-func.c to the
91466         ok-to-include-more-than-once white list.
91468         * modules/openat (Depends-on): Add lstat.  Alphabetize.
91470 2006-08-21  Bruno Haible  <bruno@clisp.org>
91472         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
91473         Emit a pkgdata_DATA variable only if some snippets add contents to it.
91474         Reported by Martin Lambers <marlam@marlam.de>.
91476 2006-08-21  Bruno Haible  <bruno@clisp.org>
91478         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
91479         specify an installation location, don't emit a noinst_LIBRARIES or
91480         noinst_LTLIBRARIES assignment.
91482 2006-08-21  Bruno Haible  <bruno@clisp.org>
91484         BeOS portability.
91485         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
91486         BeOS has mbrtowc() but no <wctype.h>.
91488 2006-08-21  Bruno Haible  <bruno@clisp.org>
91490         BeOS portability.
91491         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
91492         exist.
91494 2006-08-21  Bruno Haible  <bruno@clisp.org>
91496         BeOS portability.
91497         * lib/mbchar.h: Include <wctype.h> only if it exists.
91499 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
91501         Remove files that are no longer needed by their respective modules.
91502         * m4/obstack.m4: Remove.
91503         * m4/strerror_r.m4: Remove.
91504         * m4/uint32_t.m4: Remove.
91505         * m4/uintptr_t.m4: Remove.
91506         * m4/ullong_max.m4: Remove.
91507         * m4/xstrtoimax.m4: Remove.
91508         * m4/xstrtoumax.m4: Remove.
91510         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
91511         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
91512         dependencies now capture this.
91514         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
91515         Do not use AC_LIBSOURCES, since gnulib modules now do this.
91516         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
91517         * m4/human.m4 (gl_HUMAN): Likewise.
91518         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
91519         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
91521         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
91523         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
91524         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
91525         stdint.
91526         * m4/human.m4 (gl_HUMAN): Likewise.
91527         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
91528         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
91529         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
91530         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
91531         * m4/xstrtol (gl_XSTRTOL): Likewise.
91533         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
91534         AC_TYPE_LONG_LONG_INT.
91535         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
91536         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
91537         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
91538         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
91540         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
91541         on stdbool.
91543         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
91544         (gl_PREREQ_XSTRTOUL): Remove.
91546         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
91548         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
91549         mode.
91551 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
91553         Add and change modules to make it easier for coreutils to use
91554         gnulib-tool.
91555         * modules/backupfile (Files): Remove m4/d-ino.m4.
91556         (Depends-on): Add d-ino.
91557         * modules/cycle-check (Depends-on): Add stdint.
91558         (lib_SOURCES): Add cycle-check.h.
91559         * modules/d-ino: New module.
91560         * modules/d-type: New module.
91561         * modules/error (Files): Remove m4/strerror_r.m4.
91562         * modules/filemode (Files): Add m4/st_dm_mode.m4.
91563         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
91564         m4/inttypes_h.m4, m4/uintmax_t.m4.
91565         (Depends-on): Add stdint.
91566         (lib_SOURCES): Add fsusage.h.
91567         * modules/getcwd (Files): Remove d-ino.m4.
91568         (Depends-on): Add d-ino.
91569         * modules/getndelim2 (Depends-on): Add stdint.
91570         * modules/glob (Files): Remove m4/d-type.m4.
91571         (Depends-on): Add d-type.
91572         * modules/host-os: New module.
91573         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
91574         m4/inttypes_h.m4, m4/uintmax_t.m4.
91575         * Depends-on: Add stdint.
91576         (lib_SOURCES): Add human.h.
91577         * modules/inttostr (Files): Remove m4/intmax_t.m4,
91578         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
91579         m4/uintmax_t.m4, m4/ulonglong.m4.
91580         (Depends-on): Add stdint.
91581         (EXTRA_DIST): Add inttostr.h.
91582         * modules/lchmod: New module.
91583         * modules/link-follow: New module.
91584         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
91585         (Depends-on): Add lchmod.
91586         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
91587         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
91588         (Depends-on): Add stdint.
91589         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
91590         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
91591         (Depends-on): Add stdint.
91592         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
91593         * modules/perl: New module.
91594         * modules/regex (Depends-on): Add stdint.
91595         * modules/rmdir-errno: New module.
91596         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
91597         m4/intmax_t.m4.
91598         (Depends-on): Add stdint.
91599         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
91600         m4/uintmax_t.m4.
91601         (Depends-on): Add stdint.
91602         * modules/unlink-busy: New module.
91603         * modules/utimecmp (Depends-on): Add stdint.
91604         * modules/uptime: New module.
91605         * modules/winsz-ioctl: New module.
91606         * modules/winsz-termios: New module.
91607         * modules/xnanosleep (Depends-on): Add nanosleep.
91608         * modules/ullong_max: Remove.
91609         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
91610         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
91611         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
91612         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
91613         (Depends-on): Add inttypes.
91614         (lib_SOURCES): Add xstrtol.h.
91615         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
91616         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
91617         * MODULES.html.sh: Move 'assert' into the assert section.
91618         Move 'dummy' into the linking section.
91619         Remove ullong_max.
91620         Add section for compatibility checks for POSIX:2001 functions,
91621         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
91622         winsz-ioctl, and winsz-termios into it.
91623         Add lchmod.
91624         Add top-level Misc section and put host-os, perl, and uptime
91625         into it.
91627 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
91629         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
91630         now assume the stdint module.  Do not include inttypes.h.
91631         * lib/fsusage.h: Likewise.
91632         * lib/getndelim2.c: Likewise.
91633         * lib/human.h: Likewise.
91634         * lib/inttostr.h: Likewise.
91635         * lib/obstack.c: Likewise.
91636         * lib/regex_internal.h: Likewise.
91637         * lib/tempname.c: Likewise.
91638         * lib/utimecmp.c: Likewise.
91639         * lib/xstrtol.h: Likewise.
91641         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
91643         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
91644         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
91645         * lib/xtime.h: Likewise.
91647 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
91649         * modules/openat (Files): Add lib/fchmodat.c.
91650         Fixes problem reported by Jay Youngman.
91652 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
91654         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
91655         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
91657 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
91658             Bruno Haible  <bruno@clisp.org>
91660         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
91661         and is a script that invokes bison. Tighten the code. Add comments.
91663 2006-08-18  Jim Meyering  <jim@meyering.net>
91665         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
91666         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
91667         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
91668         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
91670 2006-08-18  Bruno Haible  <bruno@clisp.org>
91672         * modules/bison-i18n: New file.
91673         * MODULES.html.sh (Internationalization functions): Add it.
91675 2006-08-18  Bruno Haible  <bruno@clisp.org>
91677         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
91678         sys/statvfs.h. When getmntinfo was found, check its declaration and
91679         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
91681 2006-08-18  Bruno Haible  <bruno@clisp.org>
91683         * m4/bison-i18n.m4: New file, from bison.
91685 2006-08-18  Bruno Haible  <bruno@clisp.org>
91687         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
91688         (ME_DUMMY): Treat "kernfs" as a dummy.
91689         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
91691 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
91693         Update from coreutils.
91695         2006-08-15  Jim Meyering  <jim@meyering.net>
91697         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
91699         2006-01-17  Jim Meyering  <jim@meyering.net>
91701         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
91703         2006-01-11  Jim Meyering  <jim@meyering.net>
91705         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
91706         Check for the lchmod function.
91708 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
91710         Update from coreutils.
91712         * lib/__fpending.h: Add copyright notice.
91713         * lib/fprintftime.h: Likewise.
91714         * lib/savedir.c: Use (C) in copyright notice.
91715         * lib/savedir.h: Likewise.
91717         2006-08-15  Jim Meyering  <jim@meyering.net>
91719         * lib/at-func.c: New file, with the logic of all emulated at-functions.
91720         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
91721         in support of the EXPECTED_ERRNO macro.
91722         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
91723         definitions.  Instead, define the appropriate symbols and include
91724         "at-func.c".
91725         * lib/mkdirat.c (mkdirat): Likewise.
91726         * lib/fchmodat.c (fchmodat): Likewise.
91727         (ENOSYS): Remove definition.
91728         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
91729         it.  Don't include "unistd--.h" -- it wasn't ever used.
91731         2006-01-17  Jim Meyering  <jim@meyering.net>
91733         Rewrite fts.c not to change the current working directory,
91734         by using openat, fstatat, fdopendir, etc..
91736         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
91737         (HAVE_OPENAT_SUPPORT): Define.
91738         [_LIBC] (fchdir): Don't undef or define; no longer used.
91739         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
91740         Now, this `function' always succeeds, and consumes its file descriptor
91741         parameter -- so callers must not close such FDs.  Update callers.
91742         (diropen_fd, opendirat, cwd_advance_fd): New functions.
91743         (diropen): Add parameter, SP.  Adjust all callers.
91744         Implement using diropen_fd, rather than open.
91745         (fts_open): Initialize new member, fts_cwd_fd.
91746         Remove fts_rft-setting code.
91747         (fts_close): Close fts_cwd_fd, if necessary.
91748         (__opendir2): Define in terms of opendir or opendirat,
91749         depending on whether the FST_NOCHDIR flag is set.
91750         (fts_build): Since fts_safe_changedir consumes its FD, and since
91751         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
91752         and close the dup'd file descriptor upon failure.
91753         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
91754         (fts_safe_changedir): Tweak semantics to reflect that this function
91755         now calls cwd_advance_fd and hence consumes its FD argument.
91756         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
91757         [struct FTS] (fts_rft): Remove now-unused member.
91758         [struct FTS] (fts_cycle.state): Improve comment.
91760         * lib/openat.c (openat_needs_fchdir): New function.
91761         * lib/openat.h (openat_needs_fchdir): Declare it.
91763 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
91765         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
91766         Problem and fix reported by Pádraig Brady in
91767         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
91769 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91771         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
91773 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91775         * lib/memcoll.c (memcoll): Optimize for the common case where the
91776         arguments are bytewise equal.
91778 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91780         * doc/regexprops-generic.texi: Add a copyright notice.
91782 2006-08-15  Bruno Haible  <bruno@clisp.org>
91784         * modules/tmpdir (License): Change to LGPL.
91786 2006-08-15  Bruno Haible  <bruno@clisp.org>
91788         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
91789         module.
91791 2006-08-14  Simon Josefsson  <jas@extundo.com>
91793         * config/srclist.txt: Add gnupload.
91795 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
91797         Change copyright notice from LGPL 2 to GPL 2, since that's the
91798         standard form used in the gnulib repository.
91799         * tests/test-lock.c: Likewise.
91800         * tests/test-stdint.c: Likewise.
91801         * tests/test-tls.c: Likewise.
91803         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
91804         prelude-manager.  User shorter URLs for GNU projects, without '?'.
91805         Add copyright notice.
91807         * check-module: Add copyright notice.  Output a copyright
91808         notice if "--version" is specified.
91809         * modules/COPYING: New file.
91810         * tests/test-getaddrinfo.c: Add copyright notice.
91811         * tests/test-verify.c: Likewise.
91813 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
91815         Change copyright notice from LGPL 2 to GPL 2, since that's the
91816         standard form used in the gnulib repository.
91817         * lib/lock.c: LGPL -> GPL.
91818         * lib/lock.h: Likewise.
91819         * lib/strnlen1.c: Likewise.
91820         * lib/strnlen1.h: Likewise.
91821         * lib/tls.c: Likewise.
91822         * lib/tls.h: Likewise.
91823         * lib/tmpdir.c: Likewise.
91825         * lib/TODO: Remove; this belongs only in coreutils.
91827 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
91829         Add copyright notices to long-enough files that lack them, since
91830         otherwise the files aren't clearly free.  Use the same notice that
91831         getdate.texi already uses.
91832         * doc/alloca-opt.texi: Add copyright notice.
91833         * doc/alloca.texi: Likewise.
91834         * doc/ctime.texi: Likewise.
91835         * doc/functions.texi: Likewise.
91836         * doc/gcd.texi: Likewise.
91837         * doc/gnulib-tool.texi: Likewise.
91838         * doc/inet_ntoa.texi: Likewise.
91839         * doc/visibility.texi: Likewise.
91841         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
91842         * doc/quote.texi: Add copyright notice.
91844         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
91845         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
91846         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
91847         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
91848         is now obsolete, and give a pointer to the Sun list.
91849         Add copyright notice.
91851 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
91853         * config/srclistvars.sh: Add copyright notice.
91855 2006-08-14  Eric Blake  <ebb9@byu.net>
91857         Import the following change from libc:
91859         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
91861         Upstream bug 2997.
91862         * lib/misc/error.c: Add space between program name and message if file
91863         name is missing.
91865 2006-08-12  Karl Berry  <karl@gnu.org>
91867         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
91868         remove, these originate in gnulib now.
91870 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91872         * doc/Makefile (standards.info standards.html standards.dvi):
91873         Also depend on make-stds.texi.
91875 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
91877         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
91878         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
91880         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
91881         in wchar_t.  Problem reported by Eric Blake.
91883         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
91884         LEN is smaller than SIZE.  Suggested by Bruno Haible.
91885         Also, help the compiler to keep LEN in a register.
91887 2006-08-11  Eric Blake  <ebb9@byu.net>
91889         * users.txt: Sort.  Add tar.
91891 2006-08-11  Bruno Haible  <bruno@clisp.org>
91893         * users.txt: New file.
91895 2006-08-11  Bruno Haible  <bruno@clisp.org>
91897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
91898         before <wchar.h>. Needed for OSF/1 and BSD/OS.
91900 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
91902         * modules/snprintf (Depends-on): Remove minmax.
91903         (Maintainer): Add self and Bruno.
91905 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
91907         * lib/.cppi-disable: Add snprintf.h, socket_.h.
91908         * lib/snprintf.c: Include <errno.h> and <limits.h>.
91909         (EOVERFLOW): Define if the system does not.
91910         Do not include "minmax.h"; it wasn't used.
91911         (snprintf): Don't assume size_t promotes to an unsigned type.
91912         Fix bug when generated string was too long for the buffer: the
91913         buffer's contents are supposed to be the initial prefix of the
91914         output.  Don't assume vasnprintf returns EOVERFLOW if the size
91915         exceeds INT_MAX; do the check ourselves.
91917         Import the following changes from libc:
91919         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
91921         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
91922         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
91923         set wc to the byte which couldn't be converted.
91924         (re_string_reconstruct): Don't clear valid_raw_len before calling
91925         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
91926         tip_context using re_string_context_at.
91928         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
91930         * lib/posix/regex.h: g++ still cannot handled [restrict].
91932         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
91934         * lib/posix/regex.h: Remove special handling for VMS.
91936 2006-08-10  Jim Meyering  <jim@meyering.net>
91938         * modules/same-inode: New module.
91939         * modules/dev-ino: New module.
91940         * modules/cycle-check: Depend on these modules, rather than simply
91941         including their .h files.
91942         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
91943         required via m4/cycle-check.m4.
91944         * modules/same: Depend on new same-inode module, rather than
91945         including same-inode.h.
91946         * modules/chdir-safer: New file.
91948         * modules/chown (Depends-on): Add stat-macros.
91950 2006-08-10  Jim Meyering  <jim@meyering.net>
91952         * m4/cycle-check.m4: New file.
91953         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
91954         * m4/dev-ino.m4, m4/same-inode.m4: New files.
91956 2006-08-10  Eric Blake  <ebb9@byu.net>
91958         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
91959         in from original proposal.
91961 2006-08-10  Eric Blake  <ebb9@byu.net>
91962         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
91964         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
91965         namespace.
91967 2006-08-10  Bruno Haible  <bruno@clisp.org>
91969         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
91970         as well.
91972 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
91974         Sync from coreutils.
91976         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
91978         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
91979         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
91981 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
91983         * modules/restrict: Remove; no longer needed now that we assume
91984         Autoconf 2.59 or later.
91985         * MODULES.html.sh: Remove 'restrict'.
91986         * modules/argp (Depends-on): Remove 'restrict'.
91987         * modules/base64 (Depends-on): Likewise.
91988         * modules/gc (Depends-on): Likewise.
91989         * modules/getaddrinfo (Depends-on): Likewise.
91990         * modules/glob (Depends-on): Likewise.
91991         * modules/inet_ntop (Depends-on): Likewise.
91992         * modules/inet_pton (Depends-on): Likewise.
91993         * modules/memxor (Depends-on): Likewise.
91994         * modules/regex (Depends-on): Likewise.
91995         * modules/strtok_r (Depends-on): Likewise.
91996         * modules/time_r (Depends-on): Likewise.
91998 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
92000         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
92001         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
92002         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
92003         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
92004         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
92005         * m4/memxor.m4 (gl_MEMXOR): Likewise.
92006         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
92007         gl_C_RESTRICT replaced by AC_C_RESTRICT.
92009         Merge from coreutils.
92010         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
92011         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
92012         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
92013         * m4/time_r.m4 (gl_TIME_R): Likewise.
92015 2006-08-09  Karl Berry  <karl@gnu.org>
92017         * config/srclist.txt: no more gettext-tools, per Bruno.
92019 2006-08-08  Eric Blake  <ebb9@byu.net>
92021         * modules/verror: New module.
92022         * MODULES.html.sh: Document it.
92024 2006-08-08  Eric Blake  <ebb9@byu.net>
92026         * lib/verror.h, lib/verror.c: New files.
92028 2006-08-08  Eric Blake  <ebb9@byu.net>
92030         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
92031         verror_at_line output complies with GNU Coding Standards even when
92032         file is NULL.
92034 2006-08-07  Bruno Haible  <bruno@clisp.org>
92036         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
92037         versions of AIX.
92038         Reported by Ralf Wildenhues.
92040 2006-08-07  Bruno Haible  <bruno@clisp.org>
92042         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
92043         in an AC_DEFUN. Needed so that the autoconf snippets can use
92044         AC_REQUIRE.
92046 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92048         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92049         Initialize pkgdata_DATA.
92050         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
92051         overriding it.
92053 2006-08-06  Eric Blake  <ebb9@byu.net>
92055         * lib/error.h: Fold in some upstream changes from glibc.
92056         * lib/error.c: Likewise.
92058 2006-08-04  Bruno Haible  <bruno@clisp.org>
92060         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92061         Make the mostlyclean-local rule depend on mostlyclean-generic.
92062         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
92064 2006-07-31  Bruno Haible  <bruno@clisp.org>
92066         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
92067         <stdlib.h>, <string.h>.
92069 2006-07-30  Bruno Haible  <bruno@clisp.org>
92071         * modules/readlink (License): Change to LGPL.
92073 2006-07-30  Bruno Haible  <bruno@clisp.org>
92075         * modules/javaversion (Makefile.am): Distribute javaversion.java and
92076         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
92077         set PKGDATADIR to point to it.
92079 2006-07-30  Bruno Haible  <bruno@clisp.org>
92081         * modules/csharpexec (configure.ac): Comment out macro invocation.
92082         * modules/javaexec (configure.ac): Likewise.
92083         * modules/javacomp-script (configure.ac): Likewise.
92085         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
92087 2006-07-30  Bruno Haible  <bruno@clisp.org>
92089         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
92090         linked-list.
92092 2006-07-30  Bruno Haible  <bruno@clisp.org>
92094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
92096 2006-07-30  Bruno Haible  <bruno@clisp.org>
92098         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92099         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
92100         get removed.
92102 2006-07-29  Bruno Haible  <bruno@clisp.org>
92104         Make it possible for gnulib-tool to work with locally modified or
92105         augmented gnulib repositories.
92106         * gnulib-tool (func_usage): Document --local-dir option.
92107         (local_gnulib_dir): New variable.
92108         Handle --local-dir option.
92109         (func_lookup_file): New function.
92110         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
92111         (func_get_description, func_get_filelist, func_get_description,
92112         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
92113         func_get_automake_snippet, func_get_include_directive,
92114         func_get_license, func_get_maintainer): Use func_lookup_file.
92115         (func_import, func_create_testdir): Use func_lookup_file.
92117 2006-07-29  Bruno Haible  <bruno@clisp.org>
92119         * modules/setenv (Depends-on): Add unistd.
92121 2006-07-29  Bruno Haible  <bruno@clisp.org>
92123         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
92125 2006-07-29  Bruno Haible  <bruno@clisp.org>
92127         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
92129 2006-07-29  Bruno Haible  <bruno@clisp.org>
92131         * gnulib-tool (import, update): If there is no Makefile.am, look at
92132         aclocal.m4, instead of bailing out.
92134 2006-07-29  Bruno Haible  <bruno@clisp.org>
92136         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
92137         Categorize the options by when they are useful.
92139 2006-07-29  Bruno Haible  <bruno@clisp.org>
92141         * gnulib-tool (func_usage): Document option --no-libtool.
92142         Handle option --no-libtool.
92143         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
92144         for changed semantics of $libtool variable.
92145         (func_import): Likewise. If libtool is not used, show this through
92146         an option --no-libtool.
92147         (func_create_testdir): Update.
92149 2006-07-29  Bruno Haible  <bruno@clisp.org>
92151         * gnulib-tool (func_import): Extend error message about missing
92152         --doc-base.
92154 2006-07-29  Bruno Haible  <bruno@clisp.org>
92156         * gnulib-tool (func_import): Don't create the $docbase directory if
92157         there is no file to store there.
92159 2006-07-29  Bruno Haible  <bruno@clisp.org>
92161         * gnulib-tool (autoconf_minversion): If a --dir option is given and
92162         relevant, look for configure.ac there, not in the current directory.
92163         Also use a simple search for AC_PREREQ, not "autoconf --trace".
92165 2006-07-29  Bruno Haible  <bruno@clisp.org>
92167         * gnulib-tool (SORT): New variable.
92168         (func_usage): Undocument --assume-autoconf option.
92169         Remove --assume-autoconf option handling.
92170         (autoconf_minversion): Determine from the contents of configure.ac.
92171         (func_import): Remove autoconf_minversion handling.
92172         Suggested by Eric Blake.
92174 2006-07-29  Bruno Haible  <bruno@clisp.org>
92176         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
92178 2006-07-29  Bruno Haible  <bruno@clisp.org>
92180         * config/srclist.txt (*setenv.[ch]): Remove rules.
92182 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92184         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
92186 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92188         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
92189         arpa/inet.h.
92191 2006-07-28  Simon Josefsson  <jas@extundo.com>
92193         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
92194         * modules/inet_pton (Depends-on): Likewise.
92196 2006-07-28  Simon Josefsson  <jas@extundo.com>
92198         * m4/netinet_in_h.m4: New file.
92200 2006-07-28  Simon Josefsson  <jas@extundo.com>
92202         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
92203         #include's.
92205 2006-07-28  Simon Josefsson  <jas@extundo.com>
92207         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
92208         #include's.
92210 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
92212         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
92213         setgid on directories only if they set these bits.
92214         * lib/modechange.h: Remove obsolete comment about masks.
92216 2006-07-28  Eric Blake  <ebb9@byu.net>
92218         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
92219         macro expansion.
92221 2006-07-28  Bruno Haible  <bruno@clisp.org>
92223         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
92225 2006-07-28  Bruno Haible  <bruno@clisp.org>
92227         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
92229 2006-07-28  Bruno Haible  <bruno@clisp.org>
92231         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
92232         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
92233         Define fallbacks.
92234         Avoids link error on FreeBSD 4.x.
92235         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92237         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
92238         encoding.
92239         * lib/mbswidth.c (iswcntrl): Likewise.
92241 2006-07-27  Bruno Haible  <bruno@clisp.org>
92243         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
92244         test.
92246 2006-07-27  Bruno Haible  <bruno@clisp.org>
92248         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
92249         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
92250         defined.
92252 2006-07-26  Eric Blake  <ebb9@byu.net>
92254         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
92256 2006-07-26  Eric Blake  <ebb9@byu.net>
92258         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
92259         like mingw that lack mkstemp.
92260         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
92261         avoid compilation warning on mingw.
92263 2006-07-26  Bruno Haible  <bruno@clisp.org>
92265         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
92266         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
92267         INT_FAST*_MIN, INTPTR_MIN.
92269 2006-07-25  Bruno Haible  <bruno@clisp.org>
92271         * modules/version-etc (Depends-on): Add stdarg.
92273 2006-07-25  Bruno Haible  <bruno@clisp.org>
92275         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
92276         complex commands.
92278 2006-07-25  Bruno Haible  <bruno@clisp.org>
92280         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
92281         defined in <stdarg.h> or config.h.
92283 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
92285         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
92286         (gl_STDIO_SAFER): Remove.
92288 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
92290         * MODULES.html.sh (File stream based Input/Output):
92291         Add fopen-safer, tmpfile-safer; remove stdio-safer.
92292         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
92293         * modules/fopen-safer, modules/tmpfile-safer: New files.
92294         * modules/stdio-safer: Remove.
92296 2006-07-24  Bruno Haible  <bruno@clisp.org>
92298         * modules/tmpdir: New file.
92299         * MODULES.html.sh (File system functions): Add it.
92301 2006-07-24  Bruno Haible  <bruno@clisp.org>
92303         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
92304         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
92306 2006-07-24  Bruno Haible  <bruno@clisp.org>
92308         * modules/clean-temp: New file.
92310 2006-07-24  Bruno Haible  <bruno@clisp.org>
92312         * m4/tmpdir.m4: New file, from GNU gettext.
92314 2006-07-24  Bruno Haible  <bruno@clisp.org>
92316         * lib/tmpdir.h: New file, from GNU gettext.
92317         * lib/tmpdir.c: New file, from GNU gettext.
92319 2006-07-24  Bruno Haible  <bruno@clisp.org>
92321         * lib/clean-temp.h: New file, from GNU gettext.
92322         * lib/clean-temp.c: New file, from GNU gettext.
92324 2006-07-23  Eric Blake  <ebb9@byu.net>
92326         * modules/stdio-safer (Files): Add tmpfile-safer.c.
92327         (Depends-on): Add binary-io.
92329 2006-07-23  Eric Blake  <ebb9@byu.net>
92331         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
92333 2006-07-23  Eric Blake  <ebb9@byu.net>
92335         * lib/tmpfile-safer.c: New file.
92336         * lib/stdio-safer.h (fopen_safer): Add prototype.
92337         * lib/stdio--.h (tmpfile): Make safer.
92339 2006-07-23  Bruno Haible  <bruno@clisp.org>
92341         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
92342         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
92343         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
92344         gl_linked_remove_at): Use it.
92346 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92347         and Simon Josefsson <jas@extundo.com>
92349         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
92351         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
92353 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
92355         * modules/close-stream: New file.
92356         * modules/closeout (Description): Make it clear that it exits
92357         with a diagnostic on error.
92358         (Depends-on): Add close-stream.  Remove fpending, stdbool.
92359         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
92361 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
92363         * m4/close-stream.m4: New file.
92365 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
92367         * lib/close-stream.c, lib/close-stream.h: New files.
92369 2006-07-22  Bruno Haible  <bruno@clisp.org>
92371         Merge from GNU gettext 0.15.
92373         2006-05-01  Bruno Haible  <bruno@clisp.org>
92375                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
92377         2006-07-22  Bruno Haible  <bruno@clisp.org>
92379                 * modules/javaversion: New file.
92380                 * MODULES.html.sh (Java): Add javaversion.
92382         2006-03-12  Bruno Haible  <bruno@clisp.org>
92384                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
92386         2005-12-04  Bruno Haible  <bruno@clisp.org>
92388                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
92389                 (untested).
92391         2006-06-21  Bruno Haible  <bruno@clisp.org>
92393                 Avoid warnings from recent versions of mcs.
92394                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
92395                 -o, -L, -r any more. Use options documented since mcs-1.0
92396                 instead. Similarly for -g.
92398         2005-12-04  Bruno Haible  <bruno@clisp.org>
92400                 * build-aux/csharpcomp.sh.in: Suffix for resources is
92401                 .resources, not .resource.
92403         2005-07-09  Bruno Haible  <bruno@clisp.org>
92405                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
92406                 add a .dll suffix.
92407                 Reported by Mark Junker <mjscod@gmx.de>.
92409         2006-07-22  Bruno Haible  <bruno@clisp.org>
92411                 * modules/gettext: Upgrade to gettext-0.15.
92412                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
92413                 m4/visibility.m4.
92414                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
92416 2006-07-22  Bruno Haible  <bruno@clisp.org>
92418         Merge from GNU gettext 0.15.
92420         2006-03-25  Bruno Haible  <bruno@clisp.org>
92422                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
92424         2006-07-21  Bruno Haible  <bruno@clisp.org>
92426                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
92427                 "1.1".
92429         2006-05-09  Bruno Haible  <bruno@clisp.org>
92431                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
92432                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
92433                 for the conftestver execution.
92435         2006-05-01  Bruno Haible  <bruno@clisp.org>
92437                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
92438                 optional target-version argument. Verify that the compiler
92439                 groks source of the specified source-version, or add -source
92440                 option as necessary. Verify that the compiler produces
92441                 bytecode in the specified target-version, or add -target and
92442                 -source options as necessary. Make the result of the test
92443                 available as variable CONF_JAVAC. Also log error output in
92444                 config.log.
92446         2006-03-11  Bruno Haible  <bruno@clisp.org>
92448                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
92450         2006-05-09  Bruno Haible  <bruno@clisp.org>
92452                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
92453                 CLASSPATH_SEPARATOR to a semicolon.
92455         2006-03-12  Bruno Haible  <bruno@clisp.org>
92457                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
92458                 available as variable CONF_JAVA, for subsequent autoconf
92459                 tests. Also log error output in config.log.
92461         2006-07-19  Bruno Haible  <bruno@clisp.org>
92463                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
92464                 that getline works on glibc2 systems. Needed to avoid trouble
92465                 in relocatable.c.
92466                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
92468         2005-12-04  Bruno Haible  <bruno@clisp.org>
92470                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
92471                 launcher (untested).
92473         2005-12-04  Bruno Haible  <bruno@clisp.org>
92475                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
92477         2006-07-22  Bruno Haible  <bruno@clisp.org>
92479                 * gettext.m4: Update from GNU gettext-0.15.
92480                 * nls.m4: Likewise.
92481                 * po.m4: Likewise.
92482                 * inttypes-pri.m4: Likewise.
92483                 * inttypes-h.m4: Renamed from inttypes.m4.
92484                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
92486 2006-07-22  Bruno Haible  <bruno@clisp.org>
92488         Merge from GNU gettext 0.15.
92490         2005-07-05  Bruno Haible  <bruno@clisp.org>
92492                 * printf-args.c (printf_fetchargs): Work around broken
92493                 definition of wint_t on mingw.
92495         2005-02-12  Bruno Haible  <bruno@clisp.org>
92497                 * xallocsa.h: Add extern "C" for C++.
92499         2006-05-17  Bruno Haible  <bruno@clisp.org>
92501                 Cygwin portability.
92502                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
92504         2006-04-30  Bruno Haible  <bruno@clisp.org>
92506                 * progreloc.c: Include <mach-o/dyld.h> if available.
92507                 (find_executable): Use _NSGetExecutablePath when possible.
92509         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92511                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
92512                 function.
92514         2005-12-29  Bruno Haible  <bruno@clisp.org>
92516                 * progreloc.c (set_program_name_and_installdir): Fix
92517                 compilation error.
92519         2005-12-04  Bruno Haible  <bruno@clisp.org>
92521                 Cygwin portability.
92522                 * progreloc.c: Include <windows.h> also on Cygwin.
92523                 (find_executable): Add support for Cygwin.
92524                 (set_program_name_and_installdir): Handle also platforms with
92525                 nonempty EXEEXT.
92527         2006-07-11  Bruno Haible  <bruno@clisp.org>
92529                 * javacomp.c: Fix a comment.
92530                 Reported by Jim Meyering.
92532         2006-04-30  Bruno Haible  <bruno@clisp.org>
92534                 * javacomp.h (compile_java_class): Add source_version,
92535                 target_version arguments.
92536                 * javacomp.c: Rewritten to choose only a compiler that
92537                 respects the specified source_version and target_version.
92539         2006-06-27  Bruno Haible  <bruno@clisp.org>
92541                 Assume correct S_ISDIR macro.
92542                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
92544         2006-07-22  Bruno Haible  <bruno@clisp.org>
92546                 * javaversion.h: New file, from GNU gettext.
92547                 * javaversion.c: New file, from GNU gettext.
92548                 * javaversion.java: New file, from GNU gettext.
92549                 * javaversion.class: New file, from GNU gettext.
92551         2006-05-17  Bruno Haible  <bruno@clisp.org>
92553                 Cygwin portability.
92554                 * javaexec.c (execute_java_class): Test for jview program
92555                 also on Cygwin.
92557         2006-04-09  Bruno Haible  <bruno@clisp.org>
92559                 * fatal-signal.c: Don't include string.h.
92560                 (at_fatal_signal): Use a copying loop instead of memcpy.
92562         2005-12-04  Bruno Haible  <bruno@clisp.org>
92564                 * csharpexec.c: Add support for 'clix' launcher (untested).
92565                 (execute_csharp_using_sscli): New function.
92566                 (execute_csharp_program): Call it.
92568         2006-06-21  Bruno Haible  <bruno@clisp.org>
92570                 Avoid warnings from recent versions of mcs.
92571                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
92572                 -o, -L, -r any more. Use options documented since mcs-1.0
92573                 instead. Similarly for -g.
92575         2005-07-09  Bruno Haible  <bruno@clisp.org>
92577                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
92578                 add a .dll suffix.
92579                 Reported by Mark Junker <mjscod@gmx.de>.
92581         2006-06-17  Bruno Haible  <bruno@clisp.org>
92583                 * config.charset: Update for NetBSD 3.0.
92585         2006-05-17  Bruno Haible  <bruno@clisp.org>
92587                 Cygwin portability.
92588                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
92590         2006-05-16  Bruno Haible  <bruno@clisp.org>
92592                 * localcharset.c [CYGWIN]: Include <windows.h>.
92593                 (get_charset_aliases): For Cygwin, return the same CPxxx
92594                 aliases list as under WIN32.
92595                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
92596                 the environment variables. Fall back to GetACP().
92598         2006-04-05  Bruno Haible  <bruno@clisp.org>
92600                 * config.charset: Update Juan Manuel Guerrero's address.
92602         2005-02-12  Bruno Haible  <bruno@clisp.org>
92604                 * allocsa.h: Add extern "C" for C++.
92606         2005-02-10  Bruno Haible  <bruno@clisp.org>
92608                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
92609                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
92611         2006-07-22  Bruno Haible  <bruno@clisp.org>
92613                 * gettext.h: Update to GNU gettext-0.15.
92615 2006-07-22  Bruno Haible  <bruno@clisp.org>
92617         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
92618         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
92619         lib-prefix.m4, longdouble.m4, ssize_t.m4.
92621 2006-07-21  Eric Blake  <ebb9@byu.net>
92623         * modules/stdlib-safer: New file.
92624         * MODULES.html.sh (File stream based Input/Output): Add
92625         stdlib-safer.
92627 2006-07-21  Eric Blake  <ebb9@byu.net>
92629         * lib/stdlib-safer.h: New file from coreutils, required by
92630         stdlib--.h.
92632 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
92634         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
92636 2006-07-20  Bruno Haible  <bruno@clisp.org>
92638         * gnulib-tool: Recognize new option --assume-autoconf.
92639         (autoconf_minversion): New variable.
92640         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
92642 2006-07-20  Bruno Haible  <bruno@clisp.org>
92644         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
92646 2006-07-19  Derek R. Price  <derek@ximbiot.com>
92648         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
92649         Reindent and repaginate.
92651 2006-07-19  Derek Price  <derek@ximbiot.com>
92653         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
92654         Correct grammar.
92656 2006-07-17  Bruno Haible  <bruno@clisp.org>
92658         * modules/list: New file.
92659         * modules/array-list: New file.
92660         * modules/carray-list, modules/carray-list-tests: New files.
92661         * modules/linked-list, modules/linked-list-tests: New files.
92662         * modules/avltree-list, modules/avltree-list-tests: New files.
92663         * modules/rbtree-list, modules/rbtree-list-tests: New files.
92664         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
92665         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
92666         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
92667         * modules/oset: New file.
92668         * modules/array-oset: New file.
92669         * modules/avltree-oset, modules/avltree-oset-tests: New files.
92670         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
92671         * tests/test-carray_list.c: New file.
92672         * tests/test-linked_list.c: New file.
92673         * tests/test-avltree_list.c: New file.
92674         * tests/test-rbtree_list.c: New file.
92675         * tests/test-linkedhash_list.c: New file.
92676         * tests/test-avltreehash_list.c: New file.
92677         * tests/test-rbtreehash_list.c: New file.
92678         * tests/test-avltree_oset.c: New file.
92679         * tests/test-rbtree_oset.c: New file.
92680         * MODULES.html.sh (Container data structures): New section.
92682 2006-07-17  Bruno Haible  <bruno@clisp.org>
92684         * m4/gl_list.m4: New file.
92686 2006-07-17  Bruno Haible  <bruno@clisp.org>
92688         * lib/gl_list.h: New file.
92689         * lib/gl_list.c: New file.
92690         * lib/gl_array_list.h: New file.
92691         * lib/gl_array_list.c: New file.
92692         * lib/gl_carray_list.h: New file.
92693         * lib/gl_carray_list.c: New file.
92694         * lib/gl_linked_list.h: New file.
92695         * lib/gl_linked_list.c: New file.
92696         * lib/gl_anylinked_list1.h: New file.
92697         * lib/gl_anylinked_list2.h: New file.
92698         * lib/gl_avltree_list.h: New file.
92699         * lib/gl_avltree_list.c: New file.
92700         * lib/gl_anyavltree_list1.h: New file.
92701         * lib/gl_anyavltree_list2.h: New file.
92702         * lib/gl_rbtree_list.h: New file.
92703         * lib/gl_rbtree_list.c: New file.
92704         * lib/gl_anyrbtree_list1.h: New file.
92705         * lib/gl_anyrbtree_list2.h: New file.
92706         * lib/gl_anytree_list1.h: New file.
92707         * lib/gl_anytree_list2.h: New file.
92708         * lib/gl_linkedhash_list.h: New file.
92709         * lib/gl_linkedhash_list.c: New file.
92710         * lib/gl_anyhash_list1.h: New file.
92711         * lib/gl_anyhash_list2.h: New file.
92712         * lib/gl_avltreehash_list.h: New file.
92713         * lib/gl_avltreehash_list.c: New file.
92714         * lib/gl_rbtreehash_list.h: New file.
92715         * lib/gl_rbtreehash_list.c: New file.
92716         * lib/gl_anytreehash_list1.h: New file.
92717         * lib/gl_anytreehash_list2.h: New file.
92719         * lib/gl_oset.h: New file.
92720         * lib/gl_oset.c: New file.
92721         * lib/gl_array_oset.h: New file.
92722         * lib/gl_array_oset.c: New file.
92723         * lib/gl_avltree_oset.h: New file.
92724         * lib/gl_avltree_oset.c: New file.
92725         * lib/gl_rbtree_oset.h: New file.
92726         * lib/gl_rbtree_oset.c: New file.
92727         * lib/gl_anytree_oset.h: New file.
92729 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
92731         * m4/mkancesdirs.m4: New file.
92732         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
92733         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
92734         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
92735         it.
92737 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
92739         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
92740         * lib/mkancesdirs.h: New files.
92741         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
92742         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
92743         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
92744         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
92745         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
92746         callers changed.  Revamp internals significantly, by not
92747         attempting to create directories that are temporarily more
92748         permissive than the final results.  Do not attempt to use
92749         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
92750         This removes some race conditions, fixes some bugs, and simplifies
92751         things.  Use new dirchownmod function to do owner and mode changes.
92752         * lib/mkdir-p.h: Likewise.
92753         * lib/modechange.c (octal_to_mode): New function.
92754         (struct mode_change): New member mentioned.
92755         (make_node_op_equals): New arg mentioned.  All callers changed.
92756         (mode_compile): Keep track of which mode bits the user has explicitly
92757         mentioned.
92758         (mode_adjust): New arg DIR, so that we implement the X op correctly.
92759         New arg PMODE_BITS, to keep track of which mode bits the user
92760         mentioned; it treats S_ISUID and S_ISGID speciall.
92761         All callers changed.
92762         * lib/modechange.h: Likewise.
92764 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
92766         * MODULES.html.sh: Add mkancestors.
92767         * modules/mkancesdirs: New module.
92768         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
92769         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
92770         The chdir-safer and afs files are now orphans; I'll remove them
92771         unless someone speaks up.
92772         Add lib/dirchownmod.c, lib/dirchownmod.h.
92773         (Depends-on): Remove alloca, chown, save-cwd, dirname.
92774         Add lchown, mkancesdirs.
92775         (Maintainer): Add self.
92777 2006-07-15  Karl Berry  <karl@gnu.org>
92779         * gnulib-tool: help message wording/arrangement.
92781 2006-07-14  Simon Josefsson  <jas@extundo.com>
92783         * doc/gnulib.texi (Libtool and Windows): New section.
92785 2006-07-12  Simon Josefsson  <jas@extundo.com>
92787         * modules/gendocs (License): Fix license, approved by Karl.
92789 2006-07-12  Eric Blake  <ebb9@byu.net>
92791         * MODULES.html.sh: Add gendocs.
92793 2006-07-11  Eric Blake  <ebb9@byu.net>
92795         * modules/fdl: New module, to install doc/fdl.texi.
92796         * MODULES.html.sh: Add new section for documentation modules.
92797         * gnulib-tool: Avoid space-tab.
92798         (--doc-base): New option, to manage files from doc.
92800 2006-07-11  Eric Blake  <ebb9@byu.net>
92802         * m4/absolute-header.m4: Fix comments to match recent change.
92804 2006-07-11  Eric Blake  <ebb9@byu.net>
92806         * gnulib-tool: List --doc-base before --tests-base.
92808 2006-07-11  Derek R. Price  <derek@ximbiot.com>
92810         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
92812 2006-07-11  Bruno Haible  <bruno@clisp.org>
92814         * README: Mention where to put documentation.
92816 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92818         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
92820 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
92822         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
92823         to stdint.m4.
92825 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
92827         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
92828         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
92829         "no/such/file/stdint.h" when there is no such file, so that
92830         the resulting C code can be parsed by dodgy compilers.
92831         Problems reported by Bob Proulx.
92833 2006-07-10  Derek R. Price  <derek@ximbiot.com>
92835         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
92836         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
92837         macros into the GNU _D_EXACT_NAMLEN.
92838         * lib/savedir.c:  Likewise.
92839         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
92841 2006-07-10  Derek R. Price  <derek@ximbiot.com>
92842         and Paul Eggert  <eggert@cs.ucla.edu>
92844         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
92845         * m4/savedir.m4:
92846         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
92847         macros into the GNU _D_EXACT_NAMLEN.
92849 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
92851         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
92852         around the absolute name, to work around a problem with the HP-UX
92853         11.23 native C compiler, reported by Bob Proulx.
92855 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
92857         * doc/maintain.texi, make-stds.texi: Sync from
92858         <http://savannah.gnu.org/projects/gnustandards>.
92860 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
92862         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
92864 2006-07-09  Jim Meyering  <jim@meyering.net>
92866         * m4/glob.m4: Remove a doubled word in a comment.
92868 2006-07-09  Jim Meyering  <jim@meyering.net>
92870         * lib/argp-pv.c: Remove a doubled word in a comment.
92871         * lib/check-version.c (check_version): Likewise.
92872         * lib/javacomp.c (compile_java_class): Likewise.
92874 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
92876         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
92877         for the benefit of people using Autoconf 2.60.  If you want to
92878         support older Autoconf versions you can copy m4/onceonly_2_57.m4
92879         (or m4/onceonly.m4, if pre-2.57) manually.
92881 2006-07-08  Jim Meyering  <jim@meyering.net>
92883         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
92884         comment.
92885         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
92886         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
92887         comment.
92889 2006-07-08  Jim Meyering  <jim@meyering.net>
92891         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
92893 2006-07-07  Simon Josefsson  <jas@extundo.com>
92895         * tests/test-crc.c: Change expected crc value, the test vector
92896         were probably computed using the old broken crc.c?
92898 2006-07-06  Simon Josefsson  <jas@extundo.com>
92900         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
92901         now the canonical place for the M4 file).
92903         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
92904         from the sys_socket dependency now.
92906         * modules/inet_pton (Files): Ditto.
92908         * modules/inet_ntop (Files): Ditto.
92910 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
92912         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
92913         not gl_PREREQ_GETUSERSHELL.
92915 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92917         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
92918         with only one argument, for Autoconf 2.60.
92919         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
92920         expand to nothing, so add a shell command to avoid syntax error.
92921         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
92923 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92925         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
92927 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
92929         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
92930         no longer needed.  Check for isblank decl.
92931         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
92932         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
92933         of existence.
92935 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
92937         * lib/getloadavg.c: Use __VMS, not VMS.
92938         * lib/getopt.c: Likewise.
92939         * lib/getpagesize.h: Likewise.
92940         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
92941         and probably does not work.
92943 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
92945         * lib/.cppi-disable: Add wcwidth.
92946         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
92947         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
92948         (ISGRAPH): Remove.  All uses changed to isgraph.
92949         (FOLD) [!defined _LIBC]: Remove special case.
92950         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
92951         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
92952         HAVE_ISBLANK.
92953         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
92954         case.
92956 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
92958         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
92959         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
92960         brackets.  Other minor changes to suppress some compiler
92961         warnings.
92963 2006-07-06  Derek R. Price  <derek@ximbiot.com>
92964         and Paul Eggert  <eggert@cs.ucla.edu>
92966         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
92967         of invoking obsolescent AC_HEADER_DIRENT macro.
92968         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
92969         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
92970         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
92971         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
92972         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
92973         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
92974         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
92975         * m4/readdir.m4: Remove; no longer needed.
92977 2006-07-06  Derek R. Price  <derek@ximbiot.com>
92978         and Paul Eggert  <eggert@cs.ucla.edu>
92980         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
92981         Don't worry about this obsolete case any more.
92982         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
92983         directories.
92984         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
92985         worry about this obsolete case any more.
92986         * lib/fts.c: Likewise.
92987         * lib/getcwd.c: Likewise.
92988         * lib/glob.h: Likewise.
92989         * lib/savedir.c: Likewise.
92991 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
92993         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
92994         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
92995         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
92996         needed.
92997         All uses removed.
92998         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
92999         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
93000         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
93001         needed.
93002         * m4/getdate.m4 (gl_GETDATE): Likewise.
93003         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
93004         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
93005         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
93006         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
93007         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
93008         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93009         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
93010         needed.
93012 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
93014         * lib/memcasecmp.c: Include <limits.h>.
93015         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
93016         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
93017         Don't assume isdigit succeeds only on '0' through '9'.
93019 2006-07-05  Eric Blake  <ebb9@byu.net>
93021         * modules/getaddrinfo (Depends-on): Add snprintf.
93023 2006-07-05  Eric Blake  <ebb9@byu.net>
93025         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
93026         to avoid 'header present but could not be compiled' on cygwin.
93028 2006-07-05  Eric Blake  <ebb9@byu.net>
93030         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
93031         missing from netdb.h.
93032         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
93034 2006-07-05  Derek R. Price  <derek@ximbiot.com>
93036         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
93037         no longer needed.
93038         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
93039         * m4/getdate.m4 (gl_GETDATE): Likewise.
93040         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
93041         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
93042         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
93043         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
93044         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93046 2006-07-05  Derek R. Price  <derek@ximbiot.com>
93048         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
93049         All uses of is_space replaced by isspace.
93050         * lib/exit.h: Don't talk about STDC_HEADERS.
93051         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
93052         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
93053         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
93054         replaced by isprint etc.
93055         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
93056         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
93057         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
93058         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
93059         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
93060         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
93062 2006-07-05  Bruno Haible  <bruno@clisp.org>
93064         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
93065         the function exists, before testing against AIX.
93066         Reported by Martin Lambers <marlam@marlam.de>.
93068 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
93070         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
93071         From Mark D. Baushke.
93073 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
93075         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
93076         to the absolute name, not just one, to bypass Sun C 5.8's
93077         "warning: #include of /usr/include/... may be non-portable".
93079 2006-07-04  Eric Blake  <ebb9@byu.net>
93081         * modules/dirname-tests: New test module.
93082         * tests/test-dirname.c: New file, replacing dirname.c
93083         TEST_DIRNAME section that was recently deleted.
93085 2006-07-04  Bruno Haible  <bruno@clisp.org>
93087         Assume ANSI C header files and <ctype.h> functions.
93088         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
93089         (mbsnwidth): Use isprint, iscntrl instead.
93091 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
93093         Merge from coreutils.
93094         * MODULES.html.sh: Add xstrtold.
93095         * modules/xstrtold: New file.
93096         * modules/cycle-check (Files): Add lib/same-inode.h.
93097         * modules/dirname (Files): Add m4/double-slash-root.m4.
93098         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
93099         * modules/mkdir-p (Files): Add lib/same-inode.h.
93100         * modules/same (Files): Add lib/same-inode.h.
93102 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
93104         * m4/absolute-header.m4: Renamed from full-header-path.m4.
93105         This is to keep the terminology clean; POSIX talks about
93106         "absolute pathnames", not "full pathnames", but the GNU
93107         Coding Standards say to use "path" for something else;
93108         so use "absolute" to keep both sides happy.
93109         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
93110         Set gl_absolute_header, not gl_full_header_path.
93111         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
93112         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
93113         All uses changed.
93115         Merge from coreutils.
93117         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
93119         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
93120         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
93121         want to require the building of c-strtod.o.
93122         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
93123         needs -lm directly.
93124         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
93126         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
93128         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
93129         --as-needed option if available.  Problem reported by Albert Chin in
93130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
93131         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
93132         cc merely issues a bunch of annoying warnings for --as-needed
93133         (this problem was reported by Bob Proulx).  Also, try linking with
93134         -lm to detect a bug in binutils 2.16 (this problem was reported
93135         by Ralf Wildenhues).
93137         2006-06-18  Jim Meyering  <jim@meyering.net>
93139         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
93140         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
93141         macro.
93142         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
93143         also check for glibc-2.4's abort-inducing bug.
93145         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
93146         Low-probability clean-up should be to use rmdir to get rid of
93147         the just-created directory, not unlink.
93149         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
93150         configure fail, and request a bug report to inform us about it.
93151         Add a comment that, barring reports to the contrary, in 2007 we'll
93152         assume ftruncate is universally available.
93154         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
93156         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
93158         2006-03-12  Jim Meyering  <jim@meyering.net>
93160         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
93161         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
93162         * m4/same.m4 (gl_SAME): Likewise.
93163         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
93165         2006-03-11  Eric Blake  <ebb9@byu.net>
93167         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
93168         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
93169         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
93170         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
93172 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
93174         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
93175         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
93176         reported by Mark D. Baushke, one in
93177         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
93179         Merge from coreutils.
93181         * lib/.cppi-disable: Add stdint_.h.
93182         * lib/.cvsignore: Add stdint.h.
93184         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
93186         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
93187         both double and long double versions.
93188         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
93189         * lib/xstrtold.c: New file.
93190         * lib/xstrtod.h (xstrtold): New decl.
93192         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
93194         * lib/filemode.c (setst): Remove.
93195         (strmode): Rewrite to avoid setst.  This makes the code shorter,
93196         (arguably) clearer, and the generated code is a bit smaller on my
93197         Debian GNU/Linux stable x86 host.
93199         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
93201         * lib/filemode.c: Include "filemode.h" first, to test the interface.
93202         Assume that filemode.h includes sys/types.h and sys/stat.h.
93203         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
93204         (ftypelet): Reorder to put common cases first, for efficiency.
93205         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
93206         to do 'M'.
93207         (strmode): Renamed from mode_string, and now stores 12 bytes instead
93208         of 10, for compatibility with FreeBSD.  All callers changed.
93209         (filemodestring): Now stores 12 bytes instead of 10, and sets file
93210         types that can't be deduced solely from st_mode.  First arg is now a
93211         const pointer.
93212         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
93213         (strmode): Renamed from mode_string.
93214         (filemodestring): New decl.
93215         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
93216         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
93217         needed.
93218         (S_ISPORT, S_ISWHT): New macros, if not already defined.
93220         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
93222         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
93223         fsusage.h now does that.  Include fsusage.h first, to test interface.
93224         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
93225         at most one method (the old code could have generated decls that
93226         didn't conform to C89, not that this was ever exercised).
93227         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
93229         2006-03-19  Jim Meyering  <jim@meyering.net>
93231         Work even in a chroot where d_ino values for entries in "/"
93232         don't match the stat.st_ino values for the same names.
93233         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
93234         number, iterate through all entries again, using lstat instead.
93235         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
93236         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
93238         * lib/getcwd.c (__getcwd): Clarify a comment.
93239         Use memcpy in place of a call to strcpy.
93241         2006-03-12  Jim Meyering  <jim@meyering.net>
93243         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
93244         matches that of the current directory (which we're about to chdir ".."
93245         out of), then save the dev-ino of the parent, instead.
93247         * lib/same-inode.h (SAME_INODE): New file/macro.
93248         * lib/chdir-safer.c (SAME_INODE): Remove definition.
93249         Include "same-inode.h", instead.
93250         * lib/same.c: Likewise.
93251         * lib/cycle-check.h: Include "same-inode.h".
93252         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
93253         * lib/cycle-check.c (SAME_INODE): Remove definition.
93254         * lib/root-dev-ino.h: Include "same-inode.h".
93256         2006-03-11  Eric Blake  <ebb9@byu.net>
93258         * lib/same.c (same_name): s/base_name/last_component/
93259         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
93260         * lib/filenamecat.c (file_name_concat): Likewise.
93262         2006-03-11  Eric Blake  <ebb9@byu.net>,
93263                     Paul Eggert  <eggert@cs.ucla.edu>
93265         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
93266         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
93267         drive prefix.
93268         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
93269         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
93270         (last_component): New method.
93271         * lib/dirname.c (dir_len): Determine when drive letters need a
93272         subsequent slash.  Preserve // when it is special.
93273         (dir_name): Don't append dot when drive letter is absolute.
93274         [TEST_DIRNAME]: Move into a full-blown gnulib test.
93275         * lib/basename.c (base_name): New semantics - malloc the result.
93276         Preserve // when it is special.  Preserve relative files that look
93277         like drive letters.
93278         (base_len): Preserve // when it is special.
93279         (last_component): New method, similar to old base_name semantics.
93280         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
93281         base_name.  Strip redundant slashes from ///.
93283 2006-07-03  Jim Meyering  <jim@meyering.net>
93285         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
93286         macro is used before the first cycle_check call.
93288 2006-07-03  Eric Blake  <ebb9@byu.net>
93290         * modules/dirname (Depends-on): Add xstrndup.
93292 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
93294         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
93295         test cases, so that config.log is a bit easier to follow.
93297 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
93299         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
93300         both are 64 bits, since this seems to be the tradition, and this
93301         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
93302         we ever run into a host that prefers long long to long in this
93303         case, we'll need another configure-time test.  Problem reported by
93304         Jim Meyering.
93306 2006-07-02  Eric Blake  <ebb9@byu.net>
93308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
93310 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
93312         * modules/inttypes (Depends-on): No longer depends on stdint.
93313         * modules/stdint (Description): Say more about assumptions.
93314         Say that the fast types might differ.  Say macros are used.
93315         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
93316         (Makefile.am): Revise list of substituted symbols to match
93317         new stdint.m4.
93318         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
93319         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
93320         * tests/test-stdint.c (verify_same_types)
93321         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
93322         the code conforms to C99/C89.
93323         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
93324         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
93326 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
93328         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
93329         but fix a bug, by requiring at least 64 bits.
93330         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
93331         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
93332         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
93333         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93335         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
93336         changes.  Make 2.59 a prerequisite.  Check and substitute for
93337         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
93338         inttypes.h.  Do not use special include files; just use the
93339         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
93340         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
93341         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
93342         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
93343         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
93344         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
93345         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
93346         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
93347         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
93348         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
93349         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
93350         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
93351         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
93352         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
93353         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
93354         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
93355         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
93356         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
93357         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
93358         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
93359         WINT_MAX.  Check for C99 conformance more strictly, by detecting
93360         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
93361         not check for things that C99 does not require, e.g., int8_t.  If
93362         a test isn't needed unless <stdint.h> isn't working, and is
93363         unlikely to be needed for any other reason, then don't do it
93364         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
93365         size_t, since we assume C89 freestanding at least.  Do not check
93366         for sig_atomic_t, wchar_t, or wint_t, since the code now does
93367         the right thing even if the types are not defined.  Instead use:
93368         (gl_STDINT_TYPE_PROPERTIES): New macro.
93369         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
93370         testing whether <sys/types.h> clashes, as Autoconf does this for
93371         us now.  All uses removed.
93372         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
93373         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
93374         (gl_CHECK_TYPE_SAME):
93375         Remove; no longer needed.
93376         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
93377         exists, since we'll return 0 anyway in that case.
93378         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
93380 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
93382         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
93383         possible collision with system files.
93384         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
93385         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
93386         WCHAR_MIN and WCHAR_MAX in this case.
93387         (<stddef.h>): Do not include; no longer needed.
93388         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
93389         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
93390         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
93391         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
93392         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
93393         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
93394         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
93395         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
93396         !defined(__c99))]: Include in this case too, since it's harmless
93397         now.
93398         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
93399         dangerous to do so.
93400         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
93401         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
93402         (_STDINT_MIN, _STDINT_MAX): New macros.
93403         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
93404         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
93405         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
93406         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
93407         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
93408         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
93409         macros, not typedefs; this simplifies things quite a bit.
93410         Use long int for all types narrower than int64_t.
93411         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
93412         Define in terms of long long int or int64_t or long int,
93413         not int64_t or int32_t.  This saves some compile-time testing.
93414         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
93415         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
93416         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
93417         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
93418         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
93419         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
93420         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
93421         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
93422         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
93423         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
93424         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
93425         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
93426         undef any previous version and define our own version, for
93427         simplicity and consistency with the new macros for types.
93428         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
93429         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
93430         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
93431         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
93432         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
93433         @WINT_T_SUFFIX@ to keep things simple here.
93434         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
93435         Simplify by assuming typical 8/16/32/64 host, since we're
93436         already doing that elsewhere anyway.
93437         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
93438         and assume long long int is 64 bits if available.  This
93439         speeds up 'configure'.
93441 2006-07-01  Eric Blake  <ebb9@byu.net>
93443         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
93444         Reported by Andreas Buening.
93446 2006-07-01  Eric Blake  <ebb9@byu.net>
93448         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
93450 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
93452         * lib/getaddrinfo.c: fixed typo
93454 2006-06-29  Jim Meyering  <jim@meyering.net>
93456         * modules/strftime (Maintainer): Add my name, since with the
93457         FPRINTFTIME changes strftime.c has forked from glibc.
93459 2006-06-29  Eric Blake  <ebb9@byu.net>
93461         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
93463 2006-06-29  Eric Blake  <ebb9@byu.net>
93465         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
93467 2006-06-29  Eric Blake  <ebb9@byu.net>
93469         * lib/stat_.h: New file.
93471 2006-06-29  Eric Blake  <ebb9@byu.net>
93473         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
93474         unused static function.
93476 2006-06-29  Eric Blake  <ebb9@byu.net>
93478         * doc/functions.texi (Function Portability): Document missing lstat
93479         on mingw.
93481 2006-06-29  Eric Blake  <ebb9@byu.net>
93483         * MODULES.html.sh: Add sys_stat.
93484         * modules/sys_stat: New module.
93485         * modules/mkstemp (Depends-on): Add sys_stat.
93487 2006-06-29  Derek R. Price  <derek@ximbiot.com>
93489         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
93491 2006-06-29  Derek R. Price  <derek@ximbiot.com>
93493         * m4/c-bs-a.m4: Removed.
93495 2006-06-29  Derek R. Price  <derek@ximbiot.com>
93497         * lib/strftime.c: Assume strftime() exists.
93499 2006-06-29  Derek Price  <derek@ximbiot.com>
93501         * modules/c-bs-a: Removed - \a is C89.
93502         * MODULES.html.sh: Remove c-bs-a.
93504 2006-06-29  Bruno Haible  <bruno@clisp.org>
93506         * modules/wcwidth (License): Change to LGPL.
93508 2006-06-28  Simon Josefsson  <jas@extundo.com>
93510         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
93511         on _WIN32.
93513         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
93514         getnameinfo.
93516 2006-06-28  Simon Josefsson  <jas@extundo.com>
93518         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
93520 2006-06-28  Simon Josefsson  <jas@extundo.com>
93522         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
93523         functions there.  It will succeed on Windows XP, but on Windows
93524         2000 and (presumably) earlier, it will fail, and use the internal
93525         re-implementation.
93526         (use_win32_p): New function.
93527         (getaddrinfo): Use strtoul on servname, to support numeric ports.
93528         Support AI_NUMERICSERV to disable getservbyname.
93529         (getnameinfo): New function, only supports
93530         NI_NUMERICHOST|NI_NUMERICSERV for now.
93532         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
93533         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
93534         getnameinfo.
93536 2006-06-28  Eric Blake  <ebb9@byu.net>
93538         * modules/wcwidth: New file.
93539         * modules/mbchar (Depends-on): Add wcwidth.
93540         * modules/mbswidth (Depends-on): Add wcwidth.
93541         * MODULES.html.sh: Add wcwidth.
93543 2006-06-28  Eric Blake  <ebb9@byu.net>
93545         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
93546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
93548 2006-06-28  Eric Blake  <ebb9@byu.net>
93550         * lib/xvasprintf.h: Fix comments.
93552 2006-06-28  Eric Blake  <ebb9@byu.net>
93554         * lib/mbchar.h (wcwidth): Include wcwidth.h.
93555         * lib/mbswidth.c (wcwidth): Move from here...
93556         * lib/wcwidth.h: ...to this new file.
93558 2006-06-28  Derek R. Price  <derek@ximbiot.com>
93560         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
93562         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
93563         it's obsolete.
93564         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
93566 2006-06-28  Derek R. Price  <derek@ximbiot.com>
93568         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
93569         Autoconf 2.60 says this stuff was obsolete.
93571 2006-06-28  Bruno Haible  <bruno@clisp.org>
93573         * modules/wcwidth (Files): Add m4/wchar_t.m4.
93575 2006-06-28  Bruno Haible  <bruno@clisp.org>
93577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
93578         gt_TYPE_WCHAR_T.
93580 2006-06-28  Bruno Haible  <bruno@clisp.org>
93582         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
93583         declaration for wcwidth.
93584         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
93586 2006-06-28  Bruno Haible  <bruno@clisp.org>
93588         * lib/mkdtemp.c [MINGW]: Include <io.h>.
93589         (mkdir): Define using _mkdir.
93591 2006-06-28  Bruno Haible  <bruno@clisp.org>
93593         * lib/getaddrinfo.h: Fix POSIX URL.
93594         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
93595         _WIN32.
93596         (use_win32_p): Make static.
93597         (getaddrinfo): Reject service name if it is empty or does not consist
93598         solely of decimal digits, or if its value is > 65535.
93599         (getnameinfo): Remove useless casts.
93601 2006-06-27  Simon Josefsson  <jas@extundo.com>
93603         * modules/sys_select: New file, suggested by Bruno Haible, Paul
93604         Eggert and Martin Lambers.
93606 2006-06-27  Simon Josefsson  <jas@extundo.com>
93608         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
93609         Eggert and Martin Lambers.
93611 2006-06-27  Bruno Haible  <bruno@clisp.org>
93613         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
93614         result to 0, not to empty.
93615         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
93617 2006-06-27  Bruno Haible  <bruno@clisp.org>
93619         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
93621 2006-06-26  Simon Josefsson  <jas@extundo.com>
93623         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
93624         present.
93626 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
93628         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
93629         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
93630         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
93632 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
93634         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
93636 2006-06-26  Bruno Haible  <bruno@clisp.org>
93638         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
93640 2006-06-26  Bruno Haible  <bruno@clisp.org>
93642         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
93644 2006-06-26  Bruno Haible  <bruno@clisp.org>
93646         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
93647         SGI C compiler in pre-C99 mode.
93648         Suggested by Mark D. Baushke and Larry Jones.
93650 2006-06-26  Bruno Haible  <bruno@clisp.org>
93652         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
93653         WCHAR_MAX.
93654         Reported by Mark D. Baushke and Larry Jones.
93656 2006-06-26  Bruno Haible  <bruno@clisp.org>
93658         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
93659         in pre-C99 mode.
93660         Suggested by Mark D. Baushke and Larry Jones.
93662 2006-06-23  Simon Josefsson  <jas@extundo.com>
93663             Bruno Haible  <bruno@clisp.org>
93665         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
93666         Emit mostlyclean-local rule.
93667         (func_emit_tests_Makefile_am): Likewise.
93668         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
93670 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
93672         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
93674 2006-06-23  Bruno Haible  <bruno@clisp.org>
93676         * tests/test-stdint.c: Update to match ISO C 99 Technical
93677         Corrigendum 1.
93679 2006-06-23  Bruno Haible  <bruno@clisp.org>
93681         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
93683 2006-06-23  Bruno Haible  <bruno@clisp.org>
93685         * lib/stdint_.h: Treat IRIX like OpenBSD.
93687 2006-06-23  Bruno Haible  <bruno@clisp.org>
93689         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
93690         ISO C 99 Technical Corrigendum 1.
93692 2006-06-22  Simon Josefsson  <jas@extundo.com>
93694         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
93695         MinGW.
93697 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
93699         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
93700         needed.  Some compiler complained about some of them.  Problem reported
93701         by Larry Jones in
93702         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
93704 2006-06-21  Simon Josefsson  <jas@extundo.com>
93706         * tests/test-getaddrinfo.c: New file.
93708         * modules/getaddrinfo-tests: New file.
93710         * MODULES.html.sh: Add inet_pton.
93712         * modules/inet_pton: New file.
93714 2006-06-21  Simon Josefsson  <jas@extundo.com>
93716         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
93717         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
93718         of using the (limited) gnulib implementation on Windows XP.
93720         * m4/inet_pton.m4: New file.
93722 2006-06-21  Simon Josefsson  <jas@extundo.com>
93724         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
93725         variable.
93727         * lib/socket_.h: Don't define WINVER.
93729         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
93730         slightly modified to work in gnulib.
93732 2006-06-21  Simon Josefsson  <jas@extundo.com>
93734         * doc/gnulib.texi (Windows sockets): Add.
93736 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
93738         * lib/read-file.c (fread_file): Start with buffer allocation of
93739         0 bytes rather than 1 byte; this simplifies the code.
93740         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
93741         code to free buffer and save/restore errno.
93742         (internal_read_file): Remove unused local.
93744 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
93746         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
93747         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
93748         Problem reported by Denis Excoffier in
93749         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
93751 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93753         * modules/sys_socket, modules/socklen: Include sys/types since
93754         FreeBSD 4.x's sys/socket.h needs it.
93756 2006-06-19  Simon Josefsson  <jas@extundo.com>
93758         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
93760 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
93762         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
93764 2006-06-19  Bruno Haible  <bruno@clisp.org>
93766         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
93767         and FULL_PATH_INTTYPES_H in angle brackets.
93768         Reported by Mark D. Baushke <mdb@gnu.org>.
93770 2006-06-17  Eric Blake  <ebb9@byu.net>
93772         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
93773         errno.
93775 2006-06-17  Bruno Haible  <bruno@clisp.org>
93777         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
93778         <sys/inttypes.h>.
93780 2006-06-17  Bruno Haible  <bruno@clisp.org>
93782         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
93783         whether errno is declared. Assume <errno.h> declares errno.
93785 2006-06-17  Bruno Haible  <bruno@clisp.org>
93787         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
93789 2006-06-17  Bruno Haible  <bruno@clisp.org>
93791         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
93792         problem on Solaris 2.5.1.
93794 2006-06-16  Eric Blake  <ebb9@byu.net>
93796         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
93797         * lib/unicodeio.c [!defined errno]: Likewise.
93798         * lib/strtol.c [!defined errno]: Likewise.
93799         * lib/strtod.c [!defined errno]: Likewise.
93801 2006-06-15  Eric Blake  <ebb9@byu.net>
93803         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
93805 2006-06-15  Eric Blake  <ebb9@byu.net>
93807         * config/srclist.txt (ssize_t.m4): Lose sync.
93809 2006-06-15  Bruno Haible  <bruno@clisp.org>
93811         * modules/stdint (Files): Include m4/full-header-path.m4,
93812         m4/size_max.m4, m4/wchar_t.m4.
93813         (Makefile.am): Many more substitutions.
93814         * modules/stdint-tests: New file.
93815         * tests/test-stdint.c: New file.
93817 2006-06-15  Bruno Haible  <bruno@clisp.org>
93819         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
93820         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
93821         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
93822         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
93823         gl_CHECK_TYPE_SAME): New macros.
93825 2006-06-15  Bruno Haible  <bruno@clisp.org>
93827         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
93829 2006-06-15  Bruno Haible  <bruno@clisp.org>
93831         * lib/stdint_.h: Rewritten to be fully auto-configured.
93832         Fixes bug on HP-UX/IA64.
93834 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
93836         * lib/getdate.y (__attribute__): Don't define if already defined.
93837         Problem reported by Larry Jones.
93838         * lib/utimens.c (__attribute__): Likewise.
93840 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
93842         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
93843         reported by Andreas Schwab.
93845 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93846             Bruno Haible  <bruno@clisp.org>
93848         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
93849         check for the declaration of strnlen and a run test that exposes the
93850         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
93851         rpl_strndup.
93853 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93854             Bruno Haible  <bruno@clisp.org>
93856         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
93858 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93860         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
93861         compile test, for Tru64 4.0D.
93863 2006-05-28  Karl Berry  <karl@gnu.org>
93865         * config/srclist.txt (printf-args.c): lose sync.
93867 2006-05-26  Martin Lambers  <marlam@marlam.de>
93869         * lib/getpass.c: Updates the test for the native W32 API, and adds
93870         missing includes, thus fixing compilation warnings.
93872 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
93874         * lib/exclude.c (exclude_fnmatch): New function.
93875         (excluded_file_name): Call exclude_fnmatch.
93876         * lib/exclude.h (excluded_file_name): New prototype
93878 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
93880         * lib/tempname.c (small_open, large_open): New macros.
93881         (__open, __open64) [!_LIBC]: Remove.
93882         (__gen_tempname): Use small_open and large_open instead of __open
93883         and __open64.  This fixes a portability bug on HP-UX 11.11i
93884         reported by Simon Wing-Tang in
93885         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
93887 2006-05-24  Bruno Haible  <bruno@clisp.org>
93889         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
93890         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
93891         Reported by Thorsten Maerz <torte@netztorte.de> via
93892         Aaron Stone <aaron@serendipity.cx>.
93894 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
93896         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
93897         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
93898         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
93899         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
93900         not really conditional on the cache.
93901         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
93903 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
93905         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
93906         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
93907         (my_usleep): Don't mishandle maximum value.
93909 2006-05-19  Jim Meyering  <jim@meyering.net>
93911         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
93913 2006-05-17  Bruno Haible  <bruno@clisp.org>
93915         Cygwin portability.
93916         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
93918 2006-05-17  Bruno Haible  <bruno@clisp.org>
93920         * lib/stdint_.h: Fix recognition of Cygwin.
93922 2006-05-15  Bruno Haible  <bruno@clisp.org>
93924         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
93925         on libtool patch by Ralf Wildenhues.
93927 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
93929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
93930         test for C99 conformance; (bool) 0.5 is an integer constant
93931         expression, but (bool) -0.5 is not.  Problem reported by Fedor
93932         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
93934 2006-05-11  Simon Josefsson  <jas@extundo.com>
93936         * m4/xvasprintf.m4: Fix obvious typo.
93938 2006-05-11  Jim Meyering  <jim@meyering.net>
93940         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
93941         James Lemley.
93943 2006-05-10  Simon Josefsson  <jas@extundo.com>
93945         * lib/md4.c: Typo fix, update copyright years.
93946         (K1, K2): Don't use L because it turn computations into 64-bit on
93947         64-bit platforms.
93949 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
93951         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
93952         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
93953         unwanted sign propagation, e.g., on hosts with 64-bit int.
93954         There still are some problems with reeelly weird theoretical hosts
93955         (e.g., 33-bit int) but it's not worth worrying about now.
93956         * lib/sha1.c (rol): Likewise.
93957         (K1, K2, K3, K4): Remove unnecessary L suffix.
93959 2006-05-10  Bruno Haible  <bruno@clisp.org>
93961         * lib/des.c: Cast to avoid warnings.
93963 2006-05-09  Bruno Haible  <bruno@clisp.org>
93965         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
93966         (Depends-on): Depend also on xsize, stdarg.
93967         (configure.ac): Add gl_XVASPRINTF.
93969 2006-05-09  Bruno Haible  <bruno@clisp.org>
93971         * m4/xvasprintf.m4: New file.
93973 2006-05-09  Bruno Haible  <bruno@clisp.org>
93975         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
93976         (EOVERFLOW): Define fallback value.
93977         (xstrcat): New function.
93978         (xvasprintf): Recognize the special case of a string concatenation.
93980 2006-05-08  Eric Blake  <ebb9@byu.net>
93982         * gnulib-tool (func_version): Base copyright year on CVS date.
93983         (func_emit_copyright_notice): New function.
93984         (func_emit_lib_Makefile_am): Use it.
93985         (func_emit_tests_Makefile_am): Likewise.
93986         (func_import): Likewise.
93988 2006-05-08  Bruno Haible  <bruno@clisp.org>
93990         * modules/stdarg: New file.
93991         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
93993 2006-05-08  Bruno Haible  <bruno@clisp.org>
93995         * m4/stdarg.m4: New file, from GNU gettext.
93997 2006-05-08  Bruno Haible  <bruno@clisp.org>
93999         * config/srclist.txt (build-aux/config.rpath): different from latest
94000         release.
94002 2006-05-08  Bruno Haible  <bruno@clisp.org>
94004         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
94006 2006-05-05  Jim Meyering  <jim@meyering.net>
94008         * m4/warning.m4: New file, derived from bison's file by the same name.
94010 2006-05-03  Bruno Haible  <bruno@clisp.org>
94012         * lib/stdint_.h: Shorter URL.
94013         * lib/inttypes.h: Likewise.
94015 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
94017         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
94019 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
94021         * lib/verify.h: Document the internals better.  Most of this change
94022         was written by Bruno Haible.
94024 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
94026         * doc/verify.texi: New file, partly based on a proposal by
94027         Bruno Haible.
94029 2006-05-02  Bruno Haible  <bruno@clisp.org>
94031         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
94032         test from here...
94033         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
94035 2006-04-29  Bruno Haible  <bruno@clisp.org>
94037         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
94038         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
94040 2006-04-29  Bruno Haible  <bruno@clisp.org>
94042         * gnulib-tool: Make --update option actually work.
94044 2006-04-29  Bruno Haible  <bruno@clisp.org>
94046         * doc/gcd.texi: New file.
94047         * doc/gnulib.texi: Include it.
94049 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
94051         * lib/getdate.y (get_date): When adding relative date, start with the
94052         initial time, not with the result of the first mktime call.
94054 2006-04-25  Bruno Haible  <bruno@clisp.org>
94056         * gnulib-tool (func_import): Output the include directives in three
94057         blocks, sorted separately.
94058         Reported by Ben Pfaff <blp@cs.stanford.edu>.
94060 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
94062         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
94063         to define main with arguments, for C++.  Reported by Eric Blake.
94064         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
94065         Prefer 'int main ()' to 'int main (void)', for C++.
94066         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
94067         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
94068         for 'main', for C99 and C++.
94070 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
94072         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
94073         Don't assume that exit status -1 is valid.
94074         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
94075         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94076         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
94077         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
94078         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
94079         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
94080         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
94081         functions can be used without declaring them, or that you can
94082         exit with status -1.
94083         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
94085 2006-04-24  Karl Berry  <karl@gnu.org>
94087         * config/srclist.txt (longdouble.m4): sync lost.
94089 2006-04-24  Eric Blake  <ebb9@byu.net>
94091         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
94093 2006-04-24  Bruno Haible  <bruno@clisp.org>
94095         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
94096         poll() implementation in AIX.
94097         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94099 2006-04-24  Bruno Haible  <bruno@clisp.org>
94101         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
94102         assigned exactly once.
94104 2006-04-23  Claudio Fontana  <claudio@gnu.org>
94105             Bruno Haible  <bruno@clisp.org>
94107         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
94108         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
94109         for AM_CPPFLAGS.
94111 2006-04-23  Bruno Haible  <bruno@clisp.org>
94113         * modules/copy-file: Depend on unistd.
94114         * modules/execute: Likewise.
94115         * modules/fatal-signal: Likewise.
94116         * modules/findprog: Likewise.
94117         * modules/mkdtemp : Likewise.
94118         * modules/pipe: Likewise.
94119         * modules/wait-process: Likewise.
94121 2006-04-23  Bruno Haible  <bruno@clisp.org>
94123         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
94124         condition was already detected.
94125         Reported by Ben Pfaff <blp@cs.stanford.edu>.
94127 2006-04-23  Bruno Haible  <bruno@clisp.org>
94129         * lib/copy-file.c: Include <unistd.h> unconditionally.
94130         * lib/execute.c: Likewise.
94131         * lib/fatal-signal.c: Likewise.
94132         * lib/findprog.c: Likewise.
94133         * lib/mkdtemp.c: Likewise.
94134         * lib/pipe.h: Likewise.
94135         * lib/pipe.c: Likewise.
94136         * lib/wait-process.h: Likewise.
94138 2006-04-23  Bruno Haible  <bruno@clisp.org>
94140         * gnulib-tool (func_usage): Fix --import description. Document
94141         --update.
94142         (func_import): Create temporary file in a temporary directory, if
94143         --dry-run is specified. Silence errors from 'grep' when there are no
94144         m4 files in $m4dir.
94145         (func_create_testdir): Silence errors from 'grep' when there are no
94146         m4 files in $m4dir.
94147         Reported by Karl Berry <karl@freefriends.org>.
94149 2006-04-20  Bruno Haible  <bruno@clisp.org>
94151         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
94152         one argument, so that the code will be portable to Autoconf 2.60.
94153         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
94154         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
94155         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
94157 2006-04-19  Derek Price  <derek@ximbiot.com>
94158             Eric Blake  <ebb9@byu.net>
94160         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
94161         rather than "/full/path.h".  Update comment to match.  Shorten &
94162         generalize m4_translit call via AS_TR_CPP.
94164 2006-04-19  Derek Price  <derek@ximbiot.com>
94165             Eric Blake  <ebb9@byu.net>
94167         * lib/inttypes.h: Correct grammar in comment.
94169 2006-04-18  Derek Price  <derek@ximbiot.com>
94170             Paul Eggert  <eggert@cs.ucla.edu>
94172         * modules/inttypes: New file.
94173         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
94175 2006-04-18  Derek Price  <derek@ximbiot.com>
94176             Paul Eggert  <eggert@cs.ucla.edu>
94178         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
94179         New files.
94181 2006-04-18  Derek Price  <derek@ximbiot.com>
94182             Paul Eggert  <eggert@cs.ucla.edu>
94184         * lib/inttypes.h: New file.
94185         * lib/strtoimax.c: Assume <inttypes.h>.
94187 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
94189         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
94190         isn't mounted.  Problem reported by Kir Kolyshkin.
94192 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
94194         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
94195         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
94196         Derek R. Price.
94197         * lib/regex.h (RE_DUP_MAX): Update comment to match current
94198         implementation.
94200 2006-04-12  Eric Blake  <ebb9@byu.net>
94202         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
94203         is now done automatically by the corresponding Autoconf macro.
94205 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
94207         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
94208         time_r.h.
94210 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
94212         Merge regex changes from libc, removing some of our
94213         POSIX-conformance changes that were rejected and redoing them in a
94214         less-intrusive way.
94216         * lib/regcomp.c (re_compile_internal, init_dfa):
94217         Length arg is now size_t, not Idx.  All uses changed.
94218         (peek_token): Forward decl now says internal_function.
94219         (__re_error_msgid, __re_error_msgid_idx):
94220         Now static rather than extern with attribute_hidden.
94221         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
94222         For some reason libc prefers K&R style defns for external functions.
94223         (regerror) [!defined _LIBC]: Likewise.
94224         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
94225         (seek_collating_symbol_entry, lookup_collation_sequence_value):
94226         (build_range_exp, build_collating_symbol):
94227         Use K&R-style defn.
94228         (re_compile_fastmap): Use '\0' to memset, not 0.
94229         (utf8_sb_map): Make the calculations more obvious.
94230         (init_dfa, parse_bracket_exp, build_charclass_op):
94231         Call calloc and cast result, as glibc does.
94232         (init_word_char, fetch_token, peek_token, peek_token_bracket):
94233         (build_range_exp, build_collating_symbol):
94234         Now internal functions.
94236         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
94238         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
94239         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
94240         Don't depend on VMS; depend on __VMS instead, for POSIX
94241         namespace cleanness.
94242         (regoff_t): Define to ssize_t, not long int.
94244         Remove the REG_ macros named below.  Instead, make the old names
94245         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
94246         __USE_GNU_REGEX.
94247         (REG_BACKSLASH_ESCAPE_IN_LISTS):
94248         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
94249         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
94250         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
94251         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
94252         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
94253         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
94254         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
94255         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
94256         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
94257         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
94258         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
94259         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
94260         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
94261         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
94262         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
94263         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
94264         (REG_NREGS):
94265         Remove.  All uses replaced by the old RE_* names.
94266         (RE_BACKSLASH_ESCAPE_IN_LISTS):
94267         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
94268         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
94269         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
94270         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
94271         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
94272         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
94273         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
94274         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
94275         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
94276         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
94277         Don't bother having these macros be independent of each others'
94278         values, since they no longer exist in the POSIX name space.
94280         Rename the following member names back to their old names,
94281         unless !__USE_GNU_REGEX.  All uses changed back.
94282         (buffer): Renamed from re_buffer.
94283         (allocated): Renamed from re_allocated.
94284         (used): Renamed from re_used.
94285         (syntax): Renamed from re_syntax.
94286         (fastmap): Renamed from re_fastmap.
94287         (translate): Renamed from re_translate.
94288         (can_be_null): Renamed from re_can_be_null.
94289         (regs_allocated): Renamed from re_regs_allocated.
94290         (fastmap_accurate): Renamed from re_fastmap_accurate.
94291         (no_sub): Renamed from re_no_sub.
94292         (not_bol): Renamed from re_not_bol.
94293         (not_eol): Renamed from re_not_eol.
94294         (newline_anchor): Renamed from re_newline_anchor.
94295         (num_regs): Renamed from rm_num_regs.
94296         (start): Renamed from rm_start.
94297         (end): Renamed from rm_end.
94299         (free_state): Move up a bit.
94301         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
94302         #define to be empty.
94303         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
94304         when that is what is intended.
94305         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
94306         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
94307         (MAX): New macro.
94308         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
94309         All uses changed back to re_malloc, etc.  It's now the caller's
94310         responsibility to check for overflow; all callers changed.
94311         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
94312         (re_x2nrealloc): Remove.
94313         (free_state): Remove decl.
94315         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
94316         (re_set_registers, re_exec):
94317         Use K&R-style defn.
94319         2006-01-31  Roland McGrath  <roland@redhat.com>
94321         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
94322         Reported by Mike Frysinger <vapier@gentoo.org>.
94324         2006-01-15  Andreas Jaeger  <aj@suse.de>
94326         [BZ #1950]
94327         * lib/regex_internal.c (re_string_reconstruct): Adjust for
94328         build_wcs_upper_buffer change.
94329         (build_wcs_upper_buffer): Change return type.
94331         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
94333         * lib/regex_internal.h: Include <stdint.h> if available.
94335         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
94337         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
94339         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
94341         * lib/regcomp.c: Adjust for changed secondary hash function.
94343         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
94345         * lib/regex.h: Pretty printing.
94346         Clean up namespace a bit.
94348         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
94350         * lib/regexec.c (update_cur_sifted_state, check_arrival,
94351         check_arrival_add_next_nodes): Avoid using uninitialized variable.
94353         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
94354                     Ulrich Drepper  <drepper@redhat.com>
94356         [BZ #1302]
94357         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
94358         changed.
94359         (bitset_word_t): Renamed from bitset_word.  All uses changed.
94361         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
94363         [BZ #281]
94364         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
94365         * lib/regcomp.c: Remove unnecessary uses of
94366         unsigned RE_TRANSLATE_TYPE.
94367         * lib/regex_internal.h: Likewise.
94368         * lib/regex_internal.c: Likewise.
94369         * lib/regexec.c: Likewise.
94370         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
94372         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
94374         * lib/regexec.c (find_recover_state): Remove unnecessary
94375         initialization.
94376         (transit_state_bkref): Make DFA a const pointer.
94377         (get_subexp): Likewise.
94378         (check_arrival): Likewise.
94379         (update_cur_sifted_state): Likewise.
94380         (re_search_internal): Likewise.
94381         (prune_impossible_nodes): Likewise.
94382         (acquire_init_state_context): Likewise.
94383         (proceed_next_node): Likewise.
94384         (set_regs): Likewise.
94385         (free_fail_stack_return): Likewise.
94386         (check_arrival_expand_ecl): Mark DFA parameter as const.
94387         (check_arrival_expand_ecl_sub): Likewise.
94388         (check_subexp_limits): Likewise.
94389         (sub_epsilon_src_nodes):  Likewise.
94390         (add_epsilon_src_nodes):  Likewise.
94391         (merge_state_array): Likewise.
94392         (update_regs): Likewise.
94393         (build_trtable): Likewise.
94394         (sift_states_backward): Mark MCTX parameter as const.
94395         (build_sifted_states): Likewise.
94396         (update_cur_sifted_state): Likewise.
94397         (sift_states_mkref): Likewise.
94398         (check_arrival_expand_ecl): Mark eclosure as const.
94399         (check_dst_limits_calc_pos_1): Likewise.
94400         * lib/regex_internal.h (re_match_context_t): Make dfa a const
94401         pointer.
94403         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
94405         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
94406         (transit_state_sb): Likewise.
94407         (transit_state_mb): Likewise.
94408         (sift_states_iter_mb): Likewise.
94409         (check_arrival_add_next_nodes): Likewise.
94410         (check_node_accept_bytes): Change first parameter to pointer-to-const.
94411         [_LIBC] (re_search_2_stub): Use mempcpy.
94413         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
94414         mbrtowc for very simple UTF-8 case.
94416         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
94417         a pointer-to-const.
94418         (re_acquire_state_context): Likewise.
94419         * lib/regex_internal.h: Adjust prototypes.
94421         * lib/regex.c: Prevent using C++ compilers.
94423         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
94424         (re_acquire_state_context): Likewise.
94426 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
94428         * modules/regex (Depends-on): Add ssize_t.
94430 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
94432         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
94433         translation table.
94435 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
94437         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
94439 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
94440             Bruno Haible  <bruno@clisp.org>
94442         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
94443         <sys/types.h> and <inttypes.h>.
94445 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94447         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
94448         `__error_t_defined', so argp.h will not typedef the former.
94450 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
94452         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
94453         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
94454         glibc names.  Even if glibc is changed to conform to POSIX, the
94455         traditional names will be available anyway, since regex depends on
94456         the extensions module.  Also, fix a longstanding typo in the
94457         implementation of Spencer ERE test #75 from grep 2.3.  Problems
94458         reported by Emanuele Giaquinta.  Also, change sense of cached
94459         variable, so that the message makes sense.
94461 2006-03-24  Simon Josefsson  <jas@extundo.com>
94463         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
94464         including some doc fixes.
94465         (base64_encode_alloc): Fix +1 bug on allocation failures.
94467 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94469         * lib/base64.c (base64_encode): Do not read past end of array with
94470         unsanitized input on systems with CHAR_BIT > 8.
94472 2006-03-24  Eric Blake  <ebb9@byu.net>
94474         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
94476 2006-03-22  Karl Berry  <karl@gnu.org>
94478         * config/srclist.txt (*setenv.[ch]): get from coreutils.
94479         * config/srclistvars.sh (COREUTILS): new var.
94481 2006-03-17  Jim Meyering  <jim@meyering.net>
94483         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
94484         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
94486 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
94488         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
94489         no longer needs it.  Instead, check that regoff_t is as least
94490         as wide as ptrdiff_t.
94492         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
94493         so that our regex.h stays compatible with the installed regex.
94494         This is helpful for installers who configure --without-included-regex.
94495         Problem reported by Emanuele Giaquinta.
94497 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
94499         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
94500         Typedef to long int, not to off_, as POSIX will likely change
94501         in that direction.
94503 2006-03-15  Eric Blake  <ebb9@byu.net>
94505         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
94507 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
94509         * lib/argp-help.c (validate_uparams): Fix typo
94510         * lib/argp-parse.c (argp_default_options): Consistently begin help
94511         messages with a lowercase letter.
94513 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
94515         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
94516         overrun buffers and shouldn't be used (much as gets shouldn't be
94517         used).
94518         * lib/time_r.c (asctime_r, ctime_r): Likewise.
94520 2006-03-08  Simon Josefsson  <jas@extundo.com>
94522         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
94523         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94525 2006-03-08  Simon Josefsson  <jas@extundo.com>
94527         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
94528         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94530 2006-03-08  Simon Josefsson  <jas@extundo.com>
94532         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
94533         signal that configure disabled the device.
94535 2006-03-08  Simon Josefsson  <jas@extundo.com>
94537         * build-aux/maint.mk: Fix refresh-po, to handle no translated
94538         languages.
94540 2006-03-07  Simon Josefsson  <jas@extundo.com>
94542         * modules/getopt (Depends-on): Add unistd.
94544         * modules/unistd: New file.
94546 2006-03-07  Simon Josefsson  <jas@extundo.com>
94548         * modules/gc-random: New file.
94550 2006-03-07  Simon Josefsson  <jas@extundo.com>
94552         * m4/unistd_h.m4: New file.
94554 2006-03-07  Simon Josefsson  <jas@extundo.com>
94556         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
94557         test to be side-effect free by storing the result in the cache
94558         variable gl_cv_lib_readline, and moving the assignment of
94559         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
94560         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94562 2006-03-07  Simon Josefsson  <jas@extundo.com>
94564         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
94565         error on missing devices (the functions will return an error).
94567         * m4/gc.m4: Move random stuff to gc-random.m4
94569 2006-03-07  Simon Josefsson  <jas@extundo.com>
94571         * lib/unistd_.h: New file.
94573 2006-03-07  Simon Josefsson  <jas@extundo.com>
94575         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
94577 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
94579         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
94580         Problem reported by Juan Manuel Guerrero.
94582 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
94584         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
94585         the unistd module.
94586         * lib/getlogin_r.c: Likewise.
94587         * lib/getlogin_r.h: Likewise.
94588         * lib/glob.c: Likewise.
94589         * lib/pagealign_alloc.c: Likewise.
94590         * lib/unistd_.h: Remove; no longer needed.
94592 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
94594         * MODULES.html.sh (Support for systems lacking POSIX:2001):
94595         Add unistd.
94596         * modules/c-stack (Depends-on): Add unistd.
94597         * modules/getlogin_r: Likewise.
94598         * modules/glob: Likewise.
94599         * modules/pagealign_alloc: Likewise.
94600         * modules/unistd (Files): Remove lib/unistd_.h.
94601         (EXTRA_DIST): Remove.
94602         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
94603         need unistd_.h.
94604         (MOSTLYCLEANFILES): Remove unistd.h-t.
94606 2006-03-03  Simon Josefsson  <jas@extundo.com>
94608         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
94610 2006-03-03  Simon Josefsson  <jas@extundo.com>
94612         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
94613         libidn and bison.
94615 2006-03-03  Simon Josefsson  <jas@extundo.com>
94617         * build-aux/maint.mk: Add indent target.
94619 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
94621         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
94622         our replacement poll.h in any case, to avoid a differing
94623         declaration from a system header.  Seen on AIX.
94625 2006-03-01  Simon Josefsson  <jas@extundo.com>
94627         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
94628         <kasal@ucw.cz>.
94630 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
94632         * modules/gettime (Depends-on): Add extensions module.
94633         * modules/nanosleep (Depends-on): Likewise.
94634         * modules/settime (Depends-on): Likewise.
94636 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
94638         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
94639         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
94640         pedantically.
94641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
94642         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
94644         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
94645         not "==".  Reported by Ralf Wildenhues.
94647 2006-03-01  Karl Berry  <karl@gnu.org>
94649         * doc/Copyright/request-*: new files, synced from gnuorg.
94651 2006-03-01  Karl Berry  <karl@gnu.org>
94653         * config/srclist.txt (Copyright/*): new entries.
94655 2006-02-28  Simon Josefsson  <jas@extundo.com>
94657         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
94659 2006-02-27  Simon Josefsson  <jas@extundo.com>
94661         * lib/base64.h: Indent #define's.  From Jim Meyering
94662         <jim@meyering.net>.
94664 2006-02-27  Jim Meyering  <jim@meyering.net>
94666         Revert the change of 2006-02-24, so these files can continue
94667         to be sync'd from gettext.
94668         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
94669         of `config.h'.
94671 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
94673         * modules/intprops: New file.
94674         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
94675         Add intprops.
94676         * modules/getloadavg (Files): Remove lib/intprops.h.
94677         (Depends-on): Add intprops.
94678         * modules/human: Likewise.
94679         * modules/inttostr: Likewise.
94680         * modules/openat: Likewise.
94681         * modules/sig2str: Likewise.
94682         * modules/userspec: Likewise.
94683         * modules/utimecmp: Likewise.
94684         * modules/xnanosleep: Likewise.
94685         * modules/xstrtol: Likewise.
94687 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
94689         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
94690         * modules/lock-tests (TESTS): Use $(EXEEXT).
94691         * modules/tls-tests: Likewise.
94692         * modules/argp-tests: Likewise.
94693         (check_PROGRAMS): New var, replacing...
94694         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
94696 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94698         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
94699         `config.h'.
94701 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
94703         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
94705 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94707         Sync from coreutils.
94708         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
94709         gl_CHDIR_SAFER.
94711 2006-02-22  Jim Meyering  <jim@meyering.net>
94713         Sync from coreutils.
94714         * m4/chdir-safer.m4: New file.
94716 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
94718         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
94719         AT_FDCWD exceeds INT_MAX.
94720         * lib/openat.h (AT_FDCWD): Likewise.
94722 2006-02-17  Eric Blake  <address@hidden>
94724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
94726 2006-02-16  Simon Josefsson  <jas@extundo.com>
94728         * modules/getaddrinfo (Depends-on): Add sys_socket.
94730 2006-02-15  Simon Josefsson  <jas@extundo.com>
94732         * build-aux/maint.mk: Add dsyntax-check rule.
94734 2006-02-15  Eric Blake  <ebb9@byu.net>
94736         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
94737         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
94738         'present but cannot compile' warnings on cygwin.
94739         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
94740         use ws2tcpip.h if sys/socket.h works.
94741         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
94742         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
94744 2006-02-14  Simon Josefsson  <jas@extundo.com>
94746         * modules/maintainer-makefile (Files): Rename.
94748         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
94749         and (the local) Makefile.cfg to maint-cfg.mk.
94751         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
94752         to the latter.
94754         * modules/maintainer-makefile: New module.
94756         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
94757         severaly stripped to make it possible to build it up from scratch
94758         with reliable tests.
94760         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
94761         fixes to permit overriding the default actions when configure and
94762         makefile are not available.
94764 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
94766         Sync from coreutils.
94767         * modules/lstat (Depends-on): Don't depend on xalloc.
94768         (License): Change from GPL to LGPL, since this is now simply a
94769         replacement for a libc function.
94771 2006-02-14  Jim Meyering  <jim@meyering.net>
94773         Sync from coreutils.
94775         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
94776         failure on deficient systems, and simplify gnulib lgpl dependencies.
94777         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
94778         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
94780         * lib/xalloc-die.c: Remove unused definition of N_.
94782 2006-02-14  Jim Meyering  <jim@meyering.net>
94784         Sync from coreutils.
94785         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
94786         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
94787         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
94788         double-quote uses of that variable, to accommodate the rare case in
94789         which getmntent is available in none of the libraries checked.  This
94790         happens at least on FreeBSD 5.0.
94792 2006-02-13  Simon Josefsson  <jas@extundo.com>
94794         * gnulib-tool (Usage): Fix --import, from
94795         karl@freefriends.org (Karl Berry).
94797 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
94799         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
94801 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
94803         * lib/argp-namefrob.h: Restore changes accidentally lost during the
94804         "autoupdate" on 2005-12-12.
94806 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
94808         * modules/closeout (Depends-on): Remove atexit.
94810 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
94812         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
94813         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
94815 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
94817         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
94818         __EXTENSIONS__ if this causes compilation to fail.  Problem
94819         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
94820         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
94822 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
94824         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
94825         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
94826         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
94827         All uses changed.
94829 2006-01-26  Simon Josefsson  <jas@extundo.com>
94831         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
94832         prototype is visible on mingw32.
94834         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
94835         for mingw32.
94837         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
94838         mingw32).
94840 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
94842         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
94843         attempt to open for write; this always fails, at least on POSIX
94844         hosts.  This reinstates the 2006-01-09 change, which was
94845         inadvertently removed.
94847 2006-01-26  Bruno Haible  <bruno@clisp.org>
94849         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
94850         Reported by Paul Eggert.
94852 2006-01-26  Bruno Haible  <bruno@clisp.org>
94853             Paul Eggert  <eggert@cs.ucla.edu>
94855         * lib/stdbool_.h (_Bool)
94856         [(! (defined __cplusplus || defined __BEOS__)
94857           && !defined __GNUC__
94858           && !(defined __HP_cc || defined __xlc__
94859                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
94860                || defined __sgi))]:
94861         #define to signed char in these cases too; this simplifies
94862         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
94863         etc., separately) and makes it more conservative.
94865 2006-01-25  Simon Josefsson  <jas@extundo.com>
94867         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
94868         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
94869         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
94871 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
94873         * lib/argp-namefrob.h: Bugfix. Remove stray #
94875 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
94877         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
94878         so that we test the test.
94879         Check for yet another HP-UX cc bug involving *bool |= bool.
94881 2006-01-25  Karl Berry  <karl@gnu.org>
94883         * config/srclist.txt (vasnprintf.c): sync lost.
94885 2006-01-25  Jim Meyering  <jim@meyering.net>
94887         Sync from the stable (b5) branch of coreutils:
94889         * lib/fts.c (fts_children): Don't let close() clobber errno from
94890         failed fchdir().
94892         * lib/fts.c (fts_stat): When following a symlink-to-directory,
94893         don't necessarily interpret stat-fails+lstat-succeeds as indicating
94894         a dangling symlink.  That can also happen at least for ELOOP.
94895         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
94896         FYI, this bug predates the inclusion of fts.c in coreutils.
94898         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
94899         in their own block, so pre-c99 compilers don't object.
94901         Avoid the double-free (first in fts_read, second in fts_close) that
94902         would occur when an `active' directory is made inaccessible (e.g.,
94903         via chmod a-x) during a traversal.
94904         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
94905         before returning.  Reproduce this failure by
94906         mkdir -p a/b; cd a; chmod a-x . b
94907         Reported by Stavros Passas.
94909 2006-01-25  Jim Meyering  <jim@meyering.net>
94911         * lib/fileblocks.c: Remove more useless parentheses.
94912         * lib/readutmp.h: Likewise.
94914 2006-01-25  Bruno Haible  <bruno@clisp.org>
94916         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
94917         warnings.
94918         Reported by Paul Eggert.
94920 2006-01-25  Bruno Haible  <bruno@clisp.org>
94922         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
94923         rid of a trap command. For Solaris sh.
94924         Reported by Mark D. Baushke <mdb@gnu.org>.
94926 2006-01-24  Simon Josefsson  <jas@extundo.com>
94928         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
94929         Bruno.
94931 2006-01-24  Karl Berry  <karl@gnu.org>
94933         * config/srclist.txt (argp-namefrob.h): sync lost.
94935 2006-01-24  Jim Meyering  <jim@meyering.net>
94937         * modules/openat (Files): Add lib/intprops.h.
94938         From Mark D. Baushke.
94940 2006-01-24  Jim Meyering  <jim@meyering.net>
94942         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
94943         Reported by Mark D. Baushke.
94945 2006-01-24  Jim Meyering  <jim@meyering.net>
94947         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
94949 2006-01-24  Bruno Haible  <bruno@clisp.org>
94951         * modules/strnlen (Maintainer): Change from glibc to all.
94953 2006-01-24  Bruno Haible  <bruno@clisp.org>
94955         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
94956         Patch by Paul Eggert.
94958 2006-01-24  Bruno Haible  <bruno@clisp.org>
94960         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
94961         already has it.
94962         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
94963         2005-11-26.
94965         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
94966         'signed char' to avoid problems with the built-in _Bool type.
94967         Reported by Paul Eggert on 2005-11-26.
94969 2006-01-24  Bruno Haible  <bruno@clisp.org>
94971         * gnulib-tool (func_import): Avoid constructing complicated sed
94972         expressions inside backquote.
94973         Report and solution by Mark D. Baushke <mdb@gnu.org>.
94975 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
94977         These changes imported from libc.
94978         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
94979         test and two separate function calls.
94980         * lib/strndup.c (__strndup): Add libc_hidden_def.
94982 2006-01-23  Simon Josefsson  <jas@extundo.com>
94984         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
94985         Remove the test_*_SOURCES variable: automake infers it by default.
94986         * modules/tls-tests: Likewise.
94988 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
94990         Work around porting bugs reported by Dieter in
94991         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
94992         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
94993         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
94994         Include "getopt.h" first, to check interface.
94995         (getenv): Declare only if defined HAVE_DECL_GETENV &&
94996         !HAVE_DECL_GETENV.
94997         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
94998         (__strndup): Revert to K&R-style function dfns, the glibc style.
94999         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
95000         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
95001         Include strnlen.h first, to get prototype properly.
95002         (strnlen): Renamed from __strnlen.
95003         Remove weak alias.
95005 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
95007         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
95009 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
95011         * config/srclist.txt: Adjust to reflect glibc reorganization.
95012         This affects only comments.
95014 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
95016          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
95017          Reported by Bruce Korb <bkorb@gnu.org>.
95019 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
95021         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
95022         to pacify gcc -Wswitch-default.
95024 2006-01-22  Bruno Haible  <bruno@clisp.org>
95026         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
95027         temporary buffer for sprintf, take into account the precision also
95028         for 'd', 'i', 'u', 'o', 'x', 'X'.
95030 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
95032         * modules/argp-tests: New module
95033         * tests/test-argp.c: New file
95034         * tests/test-argp-2.sh: New file
95036 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
95038         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
95039         (__argp_base_name): Removed
95040         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
95041         typo.
95042         (__argp_base_name): Provide macro definition or extern declaration
95043         depending on the configuration
95045 2006-01-20  Simon Josefsson  <jas@extundo.com>
95047         * modules/inet_ntop (Depends-on): Depend on sys_socket.
95049 2006-01-20  Simon Josefsson  <jas@extundo.com>
95051         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
95053 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
95055         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
95056         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
95057         Suggested by Bruno Haible.
95059 2006-01-20  Karl Berry  <karl@gnu.org>
95061         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
95062         until changes propagate, I guess.
95064 2006-01-19  Simon Josefsson  <jas@extundo.com>
95066         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
95068 2006-01-19  Simon Josefsson  <jas@extundo.com>
95070         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
95072 2006-01-19  Simon Josefsson  <jas@extundo.com>
95074         * gnulib-tool: Set check_PROGRAMS.
95076         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
95077         modules/des-tests, modules/gc-arcfour-tests,
95078         modules/gc-arctwo-tests, modules/gc-des-tests,
95079         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
95080         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
95081         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
95082         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
95083         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
95084         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
95085         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
95086         test_*_SOURCES.
95088 2006-01-18  Simon Josefsson  <jas@extundo.com>
95090         * modules/socklen (Depends-on): Depend on sys_socket.
95092 2006-01-18  Simon Josefsson  <jas@extundo.com>
95094         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
95095         modules/des-tests, modules/gc-arcfour-tests,
95096         modules/gc-arctwo-tests, modules/gc-des-tests,
95097         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
95098         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
95099         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
95100         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
95101         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
95102         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
95103         $(EXEEXT) to automake TESTS variable, for mingw32.
95105 2006-01-17  Simon Josefsson  <jas@extundo.com>
95107         * modules/socklen (Include): Need sys/socket.h.
95109 2006-01-17  Bruno Haible  <bruno@clisp.org>
95111         * modules/ssize_t (Include): Add <sys/types.h>.
95113 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
95115         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
95116         it's not portable and it doesn't work with cross-compiles.
95117         Problem reported by Bruno Haible.  Fix missing-$ typo in
95118         'test "gl_cv_ignore_unused_libraries" ...' that prevented
95119         -zignore from being used with Sun's C compiler.
95121 2006-01-12  Simon Josefsson  <jas@extundo.com>
95123         * lib/base64.c: Fix warning, reported by Bruno Haible
95124         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
95126 2006-01-12  Bruno Haible  <bruno@clisp.org>
95128         * modules/ldd: New file.
95129         * build-aux/ldd.sh.in: New file.
95130         * MODULES.html.sh (Support for building libraries and executables): Add
95131         ldd.
95133 2006-01-12  Bruno Haible  <bruno@clisp.org>
95135         * m4/ldd.m4: New file.
95137 2006-01-12  Bruno Haible  <bruno@clisp.org>
95139         * gnulib-tool (func_import, func_create_testdir): Don't go into an
95140         endless loop while replacing $auxdir with build-aux.
95142 2006-01-11  Simon Josefsson  <jas@extundo.com>
95144         * lib/stdint_.h (SIZE_MAX): Add missing (.
95146 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
95148         Sync from coreutils.
95149         * lib/md5.c: Fix commentary typos.
95150         (alignof, UNALIGNED_P): No need for a GCC-specific version.
95151         * lib/md5.h (__attribute__): Remove; unused.
95152         * lib/sha1.c: Fix commentary to match md5 better.
95153         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
95154         so that we don't need to worry about alignment.  All uses changed.
95155         This merges the 2005-10-28 md5 change into sha1.
95157 2006-01-11  Jim Meyering  <jim@meyering.net>
95159         Sync from coreutils.
95160         * lib/md5.c (OP): Fix spacing.
95162 2006-01-11  Bruno Haible  <bruno@clisp.org>
95164         Ensure automatic ordering between gl_LOCK and gl_ARGP.
95165         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
95166         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
95168 2006-01-11  Bruno Haible  <bruno@clisp.org>
95170         Ensure automatic ordering between gl_LOCK and gl_ARGP.
95171         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
95172         the "early" section as well.
95174 2006-01-11  Bruno Haible  <bruno@clisp.org>
95176         Avoid "ar: no archive members specified" error on MacOS X.
95177         * gnulib-tool (func_modules_add_dummy): New function.
95178         (func_import, func_create_testdir): Invoke it.
95180 2006-01-11  Bruno Haible  <bruno@clisp.org>
95182         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
95183         with $auxdir in AC_CONFIG_FILES statements.
95185 2006-01-11  Bruno Haible  <bruno@clisp.org>
95187         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95188         Initialize also noinst_HEADERS to empty.
95190 2006-01-11  Bruno Haible  <bruno@clisp.org>
95192         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
95193         variables.
95194         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
95195         autoreconf.
95197 2006-01-11  Bruno Haible  <bruno@clisp.org>
95199         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
95200         overridable by the user.
95201         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95203 2006-01-10  Simon Josefsson  <jas@extundo.com>
95205         * modules/sys_socket: New file.
95207 2006-01-10  Simon Josefsson  <jas@extundo.com>
95209         * m4/sys_socket_h.m4: New file.
95211 2006-01-10  Simon Josefsson  <jas@extundo.com>
95213         * lib/socket_.h: New file.
95215 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
95217         * modules/readutmp (Maintainer): Add myself.
95219 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
95221         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
95222         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
95223         People who are still concerned with buggy memcmp implementations
95224         can invoke gl_FUNC_MEMCMP themselves.
95226 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
95228         * lib/regex_internal.h (BITSET_WORD_BITS):
95229         Work around a bug in 64-bit PGC (before version 6.1-2), where the
95230         preprocessor mishandles large unsigned values as if they were signed.
95231         Problem reported by Claudio Fontana in
95232         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
95234 2006-01-10  Jim Meyering  <jim@meyering.net>
95236         Avoid the double-free (first in fts_read, second in fts_close) that
95237         would occur when an `active' directory is made inaccessible (e.g.,
95238         via chmod a-x) during a traversal.
95239         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
95240         before returning.  Reproduce this failure by
95241         mkdir -p a/b; cd a; chmod a-x . b
95242         Reported by Stavros Passas.
95244         Sync from coreutils.
95245         * lib/sha1.c: Tweak grammar in a comment.
95247 2006-01-10  Jim Meyering  <jim@meyering.net>
95249         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
95250         Patch by Joerg Sonnenberger.
95252 2006-01-10  Bruno Haible  <bruno@clisp.org>
95254         * modules/readutmp: Depend on module free.
95255         * modules/strtok_r: Depend on module restrict.
95257 2006-01-10  Bruno Haible  <bruno@clisp.org>
95259         * modules/gettext (configure.ac): Add an invocation of
95260         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
95262 2006-01-10  Bruno Haible  <bruno@clisp.org>
95264         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
95265         Reported by Werner Lemberg <wl@gnu.org>.
95267 2006-01-10  Bruno Haible  <bruno@clisp.org>
95269         * lib/localcharset.c: Update from GNU gettext.
95271 2006-01-10  Bruno Haible  <bruno@clisp.org>
95273         * lib/argp.h (__const): Remove macro. Use const instead.
95274         * lib/argp-fmtstream.h (__const): Likewise.
95275         * lib/glob_.h (__const): Remove macro.
95276         * lib/glob-libc.h: Use const instead of __const.
95278 2006-01-10  Bruno Haible  <bruno@clisp.org>
95280         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
95281         variable.
95282         Needed to avoid an automake error regarding the 'gettext' module.
95284 2006-01-09  Simon Josefsson  <jas@extundo.com>
95286         * modules/inet_ntop (Depends-on): Add restrict.
95288 2006-01-09  Simon Josefsson  <jas@extundo.com>
95290         * modules/gc-rijndael-tests (License): Put under LGPL.
95292         * modules/gc-des-tests (License): Likewise.
95294         * modules/gc-arcfour-tests (License): Likewise.
95296         * modules/gc-arctwo-tests (License): Likewise.
95298         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
95300         * modules/gc-hmac-sha1-tests (Files): Likewise.
95302         * modules/gc-hmac-md5-tests (License): Likewise.
95304         * modules/gc-sha1-tests (License): Likewise.
95306         * modules/gc-md5-tests (License): Likewise.
95308         * modules/gc-md4-tests (License): Likewise.
95310         * modules/gc-md2-tests (License): Likewise.
95312         * modules/gc-tests (License): Likewise.
95314         * modules/des-tests (License): Likewise.
95316         * modules/md4-tests (License): Likewise.
95318         * modules/md2-tests (License): Likewise.
95320 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
95322         Sync from coreutils:
95324         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
95325         * modules/lib-ignore: New file.
95326         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
95327         chdir-safer.m4, lchmod.m4.
95328         * modules/openat: Add mkdirat.c, openat-priv.h.
95330 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
95332         Sync from coreutils.
95333         * m4/lib-ignore.m4: New file.
95334         * m4/lchmod.m4: New file.
95336 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
95338         Sync from coreutils.
95339         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
95340         for write access: POSIX says that must fail.
95341         * lib/fts.c (diropen): Likewise.
95342         * lib/save-cwd.c (save_cwd): Likewise.
95343         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
95344         well, for minor improvements on hosts that lack O_DIRECTORY.
95345         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
95346         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
95347         Fall back on chown if open failed with EACCES.
95349         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
95350         Report an error at compile-time if only a 1-second nominal clock
95351         resolution is found.
95353         * lib/lchmod.h: New file.
95354         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
95355         (make_dir_parents): Use lchown rather than chown, and
95356         lchmod rather than chmod.
95358         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
95359         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
95360         "proc" reported by n0dalus.
95362         * lib/mountlist.c: Include <limits.h>.
95363         (dev_from_mount_options)
95364         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
95365         New function.  It no longer assumes "dev=" has the System V meaning
95366         on Linux (since it doesn't).  It also parses "dev=" more carefully.
95367         (read_file_system_list)
95368         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
95369         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
95370         dev= in that case.
95372         * lib/posixtm.h (PDS_PRE_2000): New macro.
95373         * lib/posixtm.c (year): Arg is now syntax_bits rather than
95374         allow_century.  All usages changed.  Reject dates outside the range
95375         1969-1999 if PDS_PRE_2000 is used.
95377 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
95379         Sync from coreutils.
95380         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
95381         (Time of day items): Mention the possibility of leap seconds.
95382         Problem reported by Dr. David Alan Gilbert.
95384 2006-01-09  Jim Meyering  <jim@meyering.net>
95386         Sync from coreutils.
95388         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
95390         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
95392         * lib/modechange.c (mode_compile): Reject an invalid mode string
95393         that starts with an octal digit.  From Andreas Gruenbacher.
95395         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
95396         and dup to open_safer and dup_safer, respectively.
95397         (openat_permissive): Fix typo in comment.
95399         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
95400         "gettext.h"; either no longer needed or are guaranteed by openat.h.
95401         (_): Remove; no longer needed.
95402         (openat): Renamed from rpl_openat; no need for rpl_openat
95403         since openat.h renames openat for us.
95404         Replace most of the body with a call to openat_permissive,
95405         to avoid duplicate code.
95406         Port to (probably hypothetical) environments were mode_t is
95407         wider than int.
95408         (openat_permissive): Require mode arg, so that we can check
95409         types better.  Put it just after flags.  Change cwd failure
95410         indicator from pointer-to-bool to pointer-to-errno-value.
95411         All callers changed.
95412         Invoke openat_save_fail and/or openat_restore_fail if
95413         cwd_errno is null, so that openat can call us.
95414         (openat_permissive, fdopendir, fstatat, unlinkat):
95415         Simplify errno handling to avoid some duplicate code,
95416         as it's OK to set errno on success.
95417         * lib/openat.h: Revamp code so that function macros depend on
95418         __OPENAT_PREFIX only, not also on AT_FDCWD.
95419         (openat_ro): Remove.  Caller changed to use openat_permissive.
95420         (openat_permissive): Now a macro, if not a function.
95421         (openat_restore_fail, openat_save_fail): Now always functions,
95422         since mkdirat needs them even if __OPENAT_PREFIX is defined.
95424         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
95425         and openat.c.
95426         * lib/mkdirat.c: Include openat-priv.h.
95427         Remove definitions of macros defined therein.
95428         * lib/openat.c: Likewise.
95430         * lib/mkdirat.c (mkdirat): New file and function.
95431         * lib/openat.h (mkdirat): Declare.
95433         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
95435         * lib/openat.h (openat_permissive): Declare.
95436         (openat_ro): Define.
95438         * lib/openat.c (EXPECTED_ERRNO): New macro.
95439         (openat_permissive): New function -- used in remove.c rewrite.
95440         (all functions): Set errno just before returning, only if there
95441         was an actual failure.
95442         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
95444         Emulate openat-family functions using Linux's procfs, if possible.
95445         Idea and some code based on Ulrich Drepper's glibc changes.
95447         * lib/openat.c: (BUILD_PROC_NAME): New macro.
95448         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
95449         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
95450         before falling back on save_cwd and restore_cwd.
95451         (fdopendir, fstatat, unlinkat): Likewise.
95453         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
95454         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
95456         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
95457         as second argument to va_arg.  Otherwise, some versions of gcc
95458         warn that `if this code is reached, the program will abort'.
95460 2006-01-09  Jim Meyering  <jim@meyering.net>
95462         Sync from coreutils.
95463         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
95464         Require openat-priv.h.
95466 2006-01-09  Bruno Haible  <bruno@clisp.org>
95468         * modules/strnlen (Include): Use strnlen.h.
95470 2006-01-09  Bruno Haible  <bruno@clisp.org>
95472         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
95474 2006-01-09  Bruno Haible  <bruno@clisp.org>
95476         * lib/sysexit_.h (EX_OK): New macro.
95477         Suggested by Martin Lambers <marlam@marlam.de>.
95479 2006-01-09  Bruno Haible  <bruno@clisp.org>
95481         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
95482         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
95484 2006-01-09  Bruno Haible  <bruno@clisp.org>
95486         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
95487         numbers.
95489 2006-01-09  Bruno Haible  <bruno@clisp.org>
95491         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
95492         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
95493         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
95494         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
95496 2006-01-09  Bruno Haible  <bruno@clisp.org>
95498         * build-aux/javacomp.sh.in: New file, moved from lib/.
95499         * modules/javacomp-script (Files): Update.
95500         (configure.ac): Add AC_CONFIG_FILES invocation.
95501         (EXTRA_DIST): Remove variable.
95503         * build-aux/javaexec.sh.in: New file, moved from lib/.
95504         * modules/javaexec (Files): Update.
95505         (configure.ac): Add AC_CONFIG_FILES invocation.
95506         (EXTRA_DIST): Remove javaexec.sh.in.
95508         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
95509         * modules/csharpcomp-script (Files): Update.
95510         (configure.ac): Add AC_CONFIG_FILES invocation.
95511         (EXTRA_DIST): Remove variable.
95513         * build-aux/csharpexec.sh.in: New file, moved from lib/.
95514         * modules/csharpexec (Files): Update.
95515         (configure.ac): Add AC_CONFIG_FILES invocation.
95516         (EXTRA_DIST): Remove csharpexec.sh.in.
95518 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
95520         Sync from coreutils.
95522         Add POSIX ACL support
95523         * lib/acl.h (copy_acl, set_acl): Add declarations.
95524         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
95525         systems other than Linux.
95526         (chmod_or_fchmod): New function: use fchmod when possible,
95527         and chmod otherwise.
95528         (file_has_acl): Add a POSIX ACL implementation, with a
95529         Linux-specific subcase.
95530         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
95531         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
95532         acls are unsupported.
95533         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
95534         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
95535         are unsupported.
95537 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
95539         Sync from coreutils.
95540         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
95542 2006-01-07  Bruno Haible  <bruno@clisp.org>
95544         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
95545         gl_EARLY.
95547 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
95549         * lib/strftime.c (tzname): Don't declare if it is already #defined.
95550         Problem reported for Mingw by Mark Junker.
95552 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
95554         * README: Gnulib normally doesn't generate a tarball.
95556 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
95558         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
95559         long int, not int, for nanosecond counts, so that people who are
95560         used to POSIX struct timespec won't be surprised.  Reported by Jim
95561         Meyering.
95563 2005-12-28  Bruno Haible  <bruno@clisp.org>
95565         * build-aux/config.rpath: Update from GNU gettext.
95567 2005-12-16  Jim Meyering  <jim@meyering.net>
95569         * modules/fprintftime: New module.
95570         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
95572 2005-12-16  Jim Meyering  <jim@meyering.net>
95574         * m4/fprintftime.m4: New file.
95576 2005-12-16  Jim Meyering  <jim@meyering.net>
95578         * lib/fprintftime.c, lib/fprintftime.h: New files.
95580 2005-12-15  Simon Josefsson  <jas@extundo.com>
95582         * modules/socklen (configure.ac): Fix M4 macro name, to align with
95583         new m4/socklen.m4.
95585 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
95587         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
95588         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
95590 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
95592         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
95593         * lib/argp-help.c (fill_in_uparams): Check if the constructed
95594         struct uparams is valid. Fall back to the default values if it is
95595         not.
95597 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95599         * modules/argp (Files): Add argp-pin.c
95600         (Depends-on): dirname
95601         (lib_SOURCES): Add argp-pin.c
95603 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95605         * m4/argp.m4:  Check if program_invocation_name and
95606         program_invocation_short_name are declared and define appropriate
95607         macros if they are not.
95609 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95611         * lib/argp-help.c (__argp_base_name): New function
95612         (__argp_short_program_name): Rewrite using __argp_base_name
95613         * lib/argp-namefrob.h: Define program_invocation_name and
95614         program_invocation_short_name if requested
95615         (__argp_base_name): Add prototype
95616         * lib/argp-parse.c (argp_def): Use gettext wrappers
95617         (argp_default_parser): Use __argp_base_name
95618         * lib/argp-pin.c: New file. Defines program_invocation_name and
95619         program_invocation_short_name on systems that lack them.
95621 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
95623         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
95624         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
95625         porting problem reported by Georg Schwarz in
95626         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
95628 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
95630         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
95631         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
95632         porting problem reported by Georg Schwarz in
95633         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
95635 2005-12-05  Bruno Haible  <bruno@clisp.org>
95637         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
95638         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
95639         Reported by Mark Junker <mjscod@gmx.de>.
95641 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
95643         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
95644         Use implementation from Albert Chin, with some
95645         comments/corrections by Stepan Kasal and myself.
95647 2005-12-02  Bruno Haible  <bruno@clisp.org>
95649         * gnulib-tool (func_import): Accept GPLed build tool modules when
95650         --lgpl is given.
95651         * modules/csharpcomp-script: New file.
95652         * modules/csharpcomp: Depend on it.
95653         * modules/javacomp-script: New file.
95654         * modules/javacomp: Depend on it.
95655         Suggested by Simon Josefsson.
95657 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
95659         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
95660         statement, to work around an HP-UX 10.20 compiler bug reported by
95661         Peter O'Gorman.
95663 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
95665         * modules/savedir (Depends-on): Add openat.
95667 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
95669         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
95670         (uintmax_t) [defined uintmax_t]: Do not declare.
95671         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
95672         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
95673         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
95674         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
95675         sake of portability to weird hosts that C allows (though we don't
95676         know of any practical examples).
95678         * lib/savedir.h (fdsavedir): New decl.
95679         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
95680         contains most of the former guts of savedir.
95681         (savedir): Use savedirstream.
95682         Include "openat.h".
95684 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
95686         * modules/obstack (Files): Add m4/ulonglong.m4.
95687         Problem reported by Davide Angelocola.
95689 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
95691         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
95692         coreutils no longer futzes with rounding modes.
95694 2005-11-14  Jim Meyering  <jim@meyering.net>
95696         * lib/mkstemp-safer.c: Include <config.h>, required for possible
95697         replacement of mkstemp.
95699 2005-11-10  Simon Josefsson  <jas@extundo.com>
95701         * lib/readline.c: Remove EOL.
95703 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
95705         * modules/gethrxtime (Depends-on): Add gettime.
95707 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
95709         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
95710         or gettimeofday; no longer needed.
95712 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
95714         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
95715         time business.
95716         (gethrxtime) [! (HAVE_NANOUPTIME
95717         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
95718         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
95719         our own approximation.
95721 2005-11-08  Eric Blake  <ebb9@byu.net>
95723         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
95725 2005-11-08  Eric Blake  <ebb9@byu.net>
95727         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
95729 2005-11-04  Bruno Haible  <bruno@clisp.org>
95731         * gnulib-tool: Implement --update mode.
95733 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
95735         Fix porting problem reported by Theodoros V. Kalamatianos.
95736         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
95737         Don't assume that futimes failing means we must fail.
95739 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
95741         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
95742         variables to suggest the intended function of the PATH_MAX check.
95744 2005-10-30  Kean Johnston  <jkj@sco.com>
95746         Trivial changes to support SCO systems.
95747         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
95748         as PATH_MAX.
95749         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
95750         where __ptr is null when no I/O is pending.
95752 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
95754         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
95755         leave errno alone.  Problem reported by Dmitry V. Levin.
95757 2005-10-28  Simon Josefsson  <jas@extundo.com>
95759         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
95760         Test more.
95762         * tests/test-gc-md2.c, tests/test-md2.c: New files.
95764         * modules/md2, modules/md2-tests: New files.
95766 2005-10-28  Simon Josefsson  <jas@extundo.com>
95768         * m4/inet_ntop.m4: More tests.
95770         * m4/gc-md2.m4, md2.m4: New file.
95772 2005-10-28  Simon Josefsson  <jas@extundo.com>
95774         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
95775         "restrict" keywords, as per POSIX.  Protect the function
95776         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
95777         Don't use K&R prototypes.  Check the sprintf return values.
95778         Re-define EAFNOSUPPORT if not present.  Indent.
95780         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
95781         suggested by Bruno Haible <bruno@clisp.org>.
95783         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
95785         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
95787         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
95788         libgcrypt).
95790         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
95792         * lib/md2.h, lib/md2.c: New files.
95794 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
95796         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
95797         errno alone.  Problem reported by Frederic Jolliton.
95799 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95801         * modules/verify (License): Change from GPL to LGPL.  This is a
95802         tiny module and there are apparently near-equivalents that are
95803         under the BSD license.
95805 2005-10-24  Simon Josefsson  <jas@extundo.com>
95807         * modules/sha1: Relicense to LGPL.
95809 2005-10-24  Simon Josefsson  <jas@extundo.com>
95811         * lib/md4.h: Shrink buffer size, now that we changed the type.
95813 2005-10-23  Simon Josefsson  <jas@extundo.com>
95815         * gnulib-tool (func_import): Fix --tests-base.
95817 2005-10-22  Simon Josefsson  <jas@extundo.com>
95819         * modules/arcfour (Depends-on): Need stdint.
95821 2005-10-22  Simon Josefsson  <jas@extundo.com>
95823         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
95824         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
95826 2005-10-22  Simon Josefsson  <jas@extundo.com>
95828         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
95829         suggested by Bruno Haible <bruno@clisp.org>.
95831 2005-10-22  Simon Josefsson  <jas@extundo.com>
95833         * lib/crc.h: Include stddef.h, for size_t.
95835 2005-10-22  Simon Josefsson  <jas@extundo.com>
95837         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
95838         arcfour_context struct (simplify test vector testing in GNU
95839         Shishi).
95841 2005-10-21  Simon Josefsson  <jas@extundo.com>
95843         * modules/des, modules/des-tests: New files.
95845         * modules/gc-des, modules/gc-des-tests: New files.
95847         * tests/test-des.c, tests/test-gc-des.c: New file.
95849 2005-10-21  Simon Josefsson  <jas@extundo.com>
95851         * modules/arctwo, modules/arctwo-tests: New files.
95853         * tests/test-arctwo.c: New file.
95855         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
95857         * tests/test-gc-arctwo.c: New file.
95859 2005-10-21  Simon Josefsson  <jas@extundo.com>
95861         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
95862         Bruno Haible <bruno@clisp.org>.
95864         * m4/gc-des.m4: New file.
95866 2005-10-21  Simon Josefsson  <jas@extundo.com>
95868         * m4/arctwo.m4: New file.
95870         * m4/gc-arctwo.m4: New file.
95872 2005-10-21  Simon Josefsson  <jas@extundo.com>
95874         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
95875         block.
95877 2005-10-21  Simon Josefsson  <jas@extundo.com>
95879         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
95880         <bruno@clisp.org>.
95882         * lib/hmac-sha1.c (hmac_sha1): Likewise.
95884         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
95885         Bruno Haible <bruno@clisp.org>.
95887         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
95888         <bruno@clisp.org>.
95890 2005-10-21  Simon Josefsson  <jas@extundo.com>
95892         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
95894 2005-10-21  Simon Josefsson  <jas@extundo.com>
95896         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
95898 2005-10-21  Simon Josefsson  <jas@extundo.com>
95900         * lib/des.h, lib/des.c: New files.
95902         * lib/gc-gnulib.c: Support DES.c
95904 2005-10-21  Simon Josefsson  <jas@extundo.com>
95906         * lib/arctwo.h, lib/arctwo.c: New files.
95908         * lib/gc-gnulib.c: Support ARCTWO.
95910 2005-10-21  Simon Josefsson  <jas@extundo.com>
95912         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
95913         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95915 2005-10-21  Simon Josefsson  <jas@extundo.com>
95917         * gnulib-tool (func_import, func_create_testdir): Define automake
95918         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
95919         Makefile.am snippet),
95920         suggested by Bruno Haible <bruno@clisp.org>.
95922         * modules/gc (Makefile.am): Use it.
95924 2005-10-21  Bruno Haible  <bruno@clisp.org>
95926         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
95927         patch.
95929 2005-10-19  Simon Josefsson  <jas@extundo.com>
95931         * tests/test-gc-rijndael.c: New file.
95933         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
95935 2005-10-19  Simon Josefsson  <jas@extundo.com>
95937         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
95938         interface too.
95940 2005-10-19  Simon Josefsson  <jas@extundo.com>
95942         * tests/test-gc-arcfour.c: New file.
95944         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
95946 2005-10-19  Simon Josefsson  <jas@extundo.com>
95948         * modules/gc-md4, modules/gc-md4-tests: New file.
95950         * tests/test-gc-md4.c: New file.
95952 2005-10-19  Simon Josefsson  <jas@extundo.com>
95954         * m4/gc-md4.m4: New file.
95956 2005-10-19  Simon Josefsson  <jas@extundo.com>
95958         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
95959         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
95960         <kasal@ucw.cz>.
95962 2005-10-19  Simon Josefsson  <jas@extundo.com>
95964         * m4/gc-arcfour.m4: New file.
95966         * m4/gc-rijndael.m4: New file.
95968 2005-10-19  Simon Josefsson  <jas@extundo.com>
95970         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
95972 2005-10-19  Simon Josefsson  <jas@extundo.com>
95974         * lib/gc-gnulib.c: Support ARCFOUR.
95976 2005-10-19  Simon Josefsson  <jas@extundo.com>
95978         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
95979         support.
95981         * lib/gc.h: Add ECB enum type.
95983         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
95985 2005-10-18  Simon Josefsson  <jas@extundo.com>
95987         * tests/test-md5.c: New file.
95989         * modules/md5-tests: New file.
95991 2005-10-18  Simon Josefsson  <jas@extundo.com>
95993         * tests/test-md4.c: New file.
95995         * modules/md4, modules/md4-tests: New files.
95997 2005-10-18  Simon Josefsson  <jas@extundo.com>
95999         * m4/md4.m4: New file.
96001 2005-10-18  Simon Josefsson  <jas@extundo.com>
96003         * lib/md4.h, lib/md4.c: New files, based on md5.?.
96005 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
96007         * gnulib-tool (func_create_testdir): Omit the second check whether
96008         BUILT_SOURCES in nonempty.
96010 2005-10-17  Simon Josefsson  <jas@extundo.com>
96012         * tests/test-rijndael.c: New file.
96014 2005-10-17  Simon Josefsson  <jas@extundo.com>
96016         * modules/sha1: Depend on stdint instead of md5.
96018         * modules/md5: Depend on stdint, remove uint32_t.
96020 2005-10-17  Simon Josefsson  <jas@extundo.com>
96022         * modules/gc-sha1-tests: New file.
96024         * tests/test-gc-sha1.c: New file.
96026 2005-10-17  Simon Josefsson  <jas@extundo.com>
96028         * m4/md5.m4: Remove call to uint32_t.m4.
96030 2005-10-17  Simon Josefsson  <jas@extundo.com>
96032         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
96034         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
96035         md5.h.
96037         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
96039         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
96041 2005-10-17  Simon Josefsson  <jas@extundo.com>
96043         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
96045 2005-10-17  Simon Josefsson  <jas@extundo.com>
96047         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
96049 2005-10-17  Simon Josefsson  <jas@extundo.com>
96051         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
96053         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
96055 2005-10-17  Bruno Haible  <bruno@clisp.org>
96057         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
96058         that it can also be used in a test.
96060 2005-10-16  Bruno Haible  <bruno@clisp.org>
96062         * gnulib-tool (func_emit_tests_Makefile_am): Also define
96063         TESTS_ENVIRONMENT, so that individual tests can augment it.
96065         * gnulib-tool (func_create_testdir): Use an intermediate target for
96066         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
96067         macros, like $(ALLOCA_H), which cannot be passed through the command
96068         line.
96070 2005-10-15  Simon Josefsson  <jas@extundo.com>
96072         * modules/rijndael-tests: New file.
96074         * modules/rijndael: New file.
96076 2005-10-15  Simon Josefsson  <jas@extundo.com>
96078         * m4/rijndael.m4: New file.
96080 2005-10-15  Simon Josefsson  <jas@extundo.com>
96082         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
96084         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
96086 2005-10-14  Simon Josefsson  <jas@extundo.com>
96088         * tests/test-arcfour.c: New file.
96090         * modules/arcfour, modules/arcfour-tests: New files.
96092 2005-10-14  Simon Josefsson  <jas@extundo.com>
96094         * m4/arcfour.m4: New file.
96096 2005-10-14  Simon Josefsson  <jas@extundo.com>
96098         * lib/arcfour.h, lib/arcfour.c: New files.
96100 2005-10-14  Roland McGrath  <roland@redhat.com>
96102         Import from libc.  [BZ #1331]
96103         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
96104         macro argument.
96105         Reported by Matej Vela <vela@debian.org>.
96107 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
96109         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
96110         include <wchar.h>; no longer needed.
96112 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
96114         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
96116 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
96117         and  Ulrich Drepper  <drepper@redhat.com>
96119         Import from libc.
96120         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
96121         instead of inline stream orientation test and two separate
96122         function calls.  Pay no attention to USE_IN_LIBIO.
96124 2005-10-13  Simon Josefsson  <jas@extundo.com>
96126         * modules/gc-hmac-md5-tests: New file.
96128         * tests/test-gc-hmac-sha1.c: New file.
96130         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
96132         * modules/gc-hmac-md5-tests: New file.
96134         * tests/test-gc-md5.c: New file.
96136         * modules/gc-md5-tests: New file.
96138 2005-10-13  Simon Josefsson  <jas@extundo.com>
96140         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
96141         Move memory allocation outside of loop.
96143 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
96145         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
96146         intermediate directory is in a read-only file system.  Problem
96147         reported by Eric Blake.
96149 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
96151         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
96153 2005-10-12  Simon Josefsson  <jas@extundo.com>
96155         * tests/test-hmac-sha1.c: New file.
96157         * modules/hmac-sha1-tests: New file.
96159         * modules/hmac-sha1: New file.
96161 2005-10-12  Simon Josefsson  <jas@extundo.com>
96163         * modules/gc-sha1: New file.
96165 2005-10-12  Simon Josefsson  <jas@extundo.com>
96167         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
96169         * tests/test-gc-pbkdf2-sha1.c: New file.
96171 2005-10-12  Simon Josefsson  <jas@extundo.com>
96173         * modules/gc-md5, modules/gc-hmac-md5: New files.
96175         * modules/gc (Files): Remove md5, memxor and hmac files.
96177 2005-10-12  Simon Josefsson  <jas@extundo.com>
96179         * m4/gc-pbkdf2-sha1.m4: New file.
96181         * m4/gc-hmac-sha1.m4: New file.
96183         * m4/gc-sha1: New file.
96185         * m4/hmac-sha1.m4: New file.
96187 2005-10-12  Simon Josefsson  <jas@extundo.com>
96189         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
96191         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
96193 2005-10-12  Simon Josefsson  <jas@extundo.com>
96195         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
96196         suggested by Bruno Haible <bruno@clisp.org>.
96198 2005-10-12  Simon Josefsson  <jas@extundo.com>
96200         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
96202 2005-10-12  Simon Josefsson  <jas@extundo.com>
96204         * lib/gc-pbkdf2-sha1.c: New file.
96206         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
96208 2005-10-12  Simon Josefsson  <jas@extundo.com>
96210         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
96212         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
96214 2005-10-12  Simon Josefsson  <jas@extundo.com>
96216         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
96217         GC_USE_HMAC_MD5, respectively.
96219         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
96220         (gc_md5): Fix typo.
96222         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
96224         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
96226         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
96228 2005-10-12  Bruno Haible  <bruno@clisp.org>
96230         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
96231         Reported by Stepan Kasal <kasal@ucw.cz>.
96233 2005-10-11  Simon Josefsson  <jas@extundo.com>
96235         * tests/test-crc.c: New file.
96237         * modules/crc, modules/crc-tests: New files.
96239 2005-10-11  Simon Josefsson  <jas@extundo.com>
96241         * m4/crc.m4: New file.
96243 2005-10-11  Simon Josefsson  <jas@extundo.com>
96245         * lib/gc.h: Add gc_hash and gc_hash_buffer.
96247         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
96249         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
96251 2005-10-11  Simon Josefsson  <jas@extundo.com>
96253         * lib/crc.h, lib/crc.c: New files.
96255         * lib/gc.h (gc_hash_buffer): Add doc.
96257 2005-10-11  Bruno Haible  <bruno@clisp.org>
96259         * modules/c-strcasestr: New file.
96260         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
96262 2005-10-11  Bruno Haible  <bruno@clisp.org>
96264         * modules/c-strcase: New file.
96265         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
96267 2005-10-11  Bruno Haible  <bruno@clisp.org>
96269         * lib/strcasecmp.c: Include limits.h.
96270         (strcasecmp): Avoid integer overflow on exotic platforms.
96271         * lib/strncasecmp.c: Include limits.h.
96272         (strncasecmp): Avoid integer overflow on exotic platforms.
96273         Reported by Paul Eggert.
96275 2005-10-11  Bruno Haible  <bruno@clisp.org>
96277         * lib/c-strcasestr.h: New file, from GNU gettext.
96278         * lib/c-strcasestr.c: New file, from GNU gettext.
96280 2005-10-11  Bruno Haible  <bruno@clisp.org>
96282         * lib/c-strcase.h: New file, from GNU gettext.
96283         * lib/c-strcasecmp.c: New file, from GNU gettext.
96284         * lib/c-strncasecmp.c: New file, from GNU gettext.
96286 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96288         * modules/mempcpy (License): GPL -> LGPL.
96289         * modules/strchrnul (License): Likewise.
96290         * modules/sysexits (License): Likewise.
96292 2005-10-08  Simon Josefsson  <jas@extundo.com>
96294         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
96296 2005-10-07  Simon Josefsson  <jas@extundo.com>
96298         * m4/memxor.m4: Remove gl_C_RESTRICT call.
96300 2005-10-06  Simon Josefsson  <jas@extundo.com>
96302         * tests/test-hmac-md5.c: New file.
96304         * modules/hmac-md5-tests: New file.
96306         * modules/hmac-md5: New file.
96308 2005-10-06  Simon Josefsson  <jas@extundo.com>
96310         * m4/hmac-md5.m4: New file.
96312         * m4/memxor.m4: Require gl_C_RESTRICT.
96314 2005-10-06  Simon Josefsson  <jas@extundo.com>
96316         * lib/memxor.c (memxor): Avoid casts and warnings.
96318 2005-10-06  Simon Josefsson  <jas@extundo.com>
96320         * lib/hmac-md5.c: New file.
96322         * lib/hmac.h: New file.
96324 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96326         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
96327         promotes to int, not unsigned int, to catch the AIX 5.3
96328         compiler bug.
96330 2005-10-05  Simon Josefsson  <jas@extundo.com>
96332         * modules/memxor: New file.
96334         * modules/iconv (Files): Move config.rpath to havelib, it is used
96335         there.
96337         * modules/havelib (Files): Add config.rpath.
96339 2005-10-05  Simon Josefsson  <jas@extundo.com>
96341         * m4/memxor.m4: New file.
96343 2005-10-05  Simon Josefsson  <jas@extundo.com>
96345         * lib/memxor.c (memxor): Fix compiler error.
96347         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
96348         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
96350         * lib/memxor.h, lib/memxor.c: New files.
96352         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
96353         we assume all systems have it, suggested by Jim Meyering
96354         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
96355         any systems lack sys/socket.h; mingw32 is known to lack it, but we
96356         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
96357         same reasons.
96359 2005-10-05  Simon Josefsson  <jas@extundo.com>
96361         * config/srclist.txt: Add glibc bug 1423 for md5.h.
96363 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96365         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
96366         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
96367         needed, since the source code now assumes these .h files.
96369 2005-10-05  Derek Price  <derek@ximbiot.com>
96371         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
96373 2005-10-05  Bruno Haible  <bruno@clisp.org>
96375         * modules/stdint (License): Change to LGPL.
96377 2005-10-04  Simon Josefsson  <jas@extundo.com>
96379         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
96380         D. Baushke" <mdb@gnu.org>.
96382 2005-10-04  Bruno Haible  <bruno@clisp.org>
96384         * lib/verify.h (verify_true): Provide alternative definition for C++.
96386 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
96388         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
96389         (SSIZE_MAX): New macro, if not already defined.
96390         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
96391         than 2 GiB.
96393 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
96395         Sync from coreutils.
96396         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
96397         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
96398         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
96399         ULLONG_MAX doesn't work with 2.7.2.1.
96401 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
96403         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
96404         From Ben Pfaff.
96406         * modules/exclude (Depends-on): Depend on verify.
96407         * modules/strtoimax (Depends-on): Likewise.
96408         * modules/utimecmp (Depends-on): Likewise.
96410 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
96412         * lib/exclude.c: Include verify.h.
96413         (verify): Remove.  All callers changed to use verify.h's version.
96414         * lib/strtoimax.c: Likewise.
96415         * lib/utimecmp.c: Likewis.e
96417         Sync from coreutils.
96418         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
96419         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
96420         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
96421         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
96422         bother returning ENOSYS if settimeofday or stime fails; just let
96423         them return whatever errno they want to return.
96424         * lib/utimens.c: Include unistd.h, for dup2.
96425         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
96426         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
96428 2005-10-02  Jim Meyering  <jim@meyering.net>
96430         Sync from coreutils.
96431         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
96432         from glibc-2.2.5 that fails for read-only files.
96434 2005-10-02  Jim Meyering  <jim@meyering.net>
96436         Sync from coreutils.
96437         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
96438         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
96439         `#if HAVE_CONFIG_H'.
96440         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
96441         Remove AT_FDCWD test.
96442         Do not consume the fd unless successful.
96443         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
96444         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
96445         block, so that we don't even try to compile it if settimeofday is
96446         available.  This works around a compilation failure on OSF1 V5.1,
96447         due to stime requiring a `long int*' while tv_sec is `int'.
96449 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
96451         Sync from coreutils.
96452         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
96453         against `yes', rather than just testing for nonempty.
96455 2005-10-01  Simon Josefsson  <jas@extundo.com>
96457         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
96458         and Darwin.
96460         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
96461         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
96462         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
96463         freeaddrinfo and gai_strerror are declared by the POSIX headers.
96464         Check if struct addrinfo is declared.
96466 2005-10-01  Simon Josefsson  <jas@extundo.com>
96468         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
96469         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
96470         AI_* and EAI_* definitions.  Protect function declarations.
96472 2005-10-01  Jim Meyering  <jim@meyering.net>
96474         Sync from coreutils.
96476         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
96477         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
96478         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
96479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
96480         in the inet and nsl libraries.  Required on Solaris 5.7.
96482 2005-10-01  Jim Meyering  <jim@meyering.net>
96484         Sync from coreutils.
96485         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
96486         in the inet and nsl libraries.  Required on Solaris 5.7.
96488 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
96490         * lib/getdelim.c (getdelim): Remove unused variables.
96492 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
96494         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
96495         so that the code works even with ancient cpp.  Portability problem
96496         with GCC 2.7.2.1 reported by Thomas M.Ott.
96498 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
96500         * modules/regex (Depends-on): Add strcase.
96502         * modules/gethostname (Licence): Change from GPL to LGPL, since
96503         gethostname.c is a trivial implementation of a standard library
96504         function.
96505         * modules/poll (License): Change from GPL to LGPL, since it's
96506         derived from LGPL code.
96508 2005-09-27  Jim Meyering  <jim@meyering.net>
96510         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
96511         HAVE_CONFIG_H.
96513         * lib/intprops.h (signed_type_or_expr__): Define.
96514         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
96515         for unsigned types.
96517 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
96519         * lib/verify.h (verify_expr): Remove, replacing with:
96520         (verify_true): New macro that returns true instead of void.
96521         (verify_type__): Remove.
96522         (verify): Use verify_true rather than verify_type__.
96524 2005-09-26  Bruno Haible  <bruno@clisp.org>
96526         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
96527         is necessary.
96528         (lib_SOURCES): Remove mbchar.c.
96529         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
96530         (Files): Add m4/mbrtowc.m4.
96531         * modules/mbiter: Likewise.
96532         * modules/mbuiter: Likewise.
96534 2005-09-26  Bruno Haible  <bruno@clisp.org>
96536         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
96537         compile mbchar.c if they are not both present.
96538         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
96539         * m4/mbiter.m4 (gl_MBITER): Likewise.
96540         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
96541         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
96542         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
96544 2005-09-25  Jim Meyering  <jim@meyering.net>
96546         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
96547         also uses socklen_t.
96549 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
96551         * lib/utimens.c (ENOSYS): Define if not already defined.
96552         (futimens): Support having a null PATH if the file descriptor
96553         is nonnegative.
96555         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
96556         Remove.
96557         (__attribute): Define to empty unless GCC 3.1 or later.
96558         This works around a core dump on OpenBSD 3.4, which has GCC
96559         2.95.3, which dumps core when given __attribute__(()).  It also
96560         simplifies other tests, since we really don't want to bother with
96561         worrying about which ancient version of GCC supported what.
96562         Original problem reported by Yoann Vandoorselaere, with part of
96563         the fix suggested by Derek Price.
96565 2005-09-24  Jim Meyering  <jim@meyering.net>
96567         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
96568         so we can once again use a positive bitfield width of 1 -- now we
96569         don't have to explain why we were using a bitfield width of 2.
96571 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
96573         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
96574         and similarly for the other external symbols.  Problem reported
96575         by James Gallager.
96577         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
96578         bug reported by Jim Meyering.
96580         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
96581         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
96582         not needed, since socklen is a prerequisite module.
96584 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
96586         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
96587         Problem reported by Eric Blake.
96588         (getaddrinfo): Initialize se so that it's not garbage.
96589         Redo internal storage allocation so that it doesn't make unportable
96590         assumptions about alignment.
96591         Fix a memory leak.
96593         * lib/utimens.c (futimens): Use futimesat if available.
96594         Prefer it to futimes since it doesn't have the futimes bug.
96596         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
96597         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
96598         Instead, declare a function that returns a pointer to an array,
96599         and use verify_type__ to declare the size of the array.
96600         Problem and germ of a solution reported by Bruno Haible.
96601         (verify_type__): Use 2, not 1, for bitfield size, to avoid
96602         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
96604 2005-09-23  Jim Meyering  <jim@meyering.net>
96606         Sync from coreutils.
96607         Correct build failure (socklen_t not defined) on at least
96608         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
96609         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
96611 2005-09-23  Jim Meyering  <jim@meyering.net>
96613         * modules/getaddrinfo (Depends-on): Add socklen.
96615 2005-09-23  Bruno Haible  <bruno@clisp.org>
96617         * tests/test-verify.c: New file.
96619 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
96621         Sync from coreutils.
96623         * modules/argmatch (Depends-on): Add verify.
96624         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
96625         unistd-safer.
96626         * modules/save-cwd (Depends-on): Likewise.
96628         * modules/openat (Files): Add lib/openat-die.c.
96629         (Depends-on): Remove error, exitfail.
96630         Add dirname.
96632         * modules/verify: New file.
96633         * MODULES.html.sh (Diagnostics <assert.h>): New section,
96634         with "verify" module.
96636 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
96638         Sync from coreutils.
96640         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
96641         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
96642         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
96643         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
96644         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
96645         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
96646         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
96647         Don't bother checking for string.h, stdlib.h, unistd.h.
96648         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
96649         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
96650         module's job.
96651         * m4/jm-macros.m4 (gl_MACROS): Likewise.
96652         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
96654         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
96655         (gl_GETDATE): Use it.
96657         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
96659 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
96661         Sync from coreutils.
96663         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
96664         stat-time.h.
96665         * lib/argmatch.h: Include verify.h
96666         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
96667         (ARGMATCH_ASSERT): Remove; unused.
96668         * lib/canonicalize.c: Assume STDC_HEADERS.
96669         * lib/exclude.c: Include "strcase.h".
96670         * lib/regex_internal.h [!defined _LIBC]: Likewise.
96671         * lib/getusershell.c: Include stdio--.h rather than stdio.h
96672         and stdio-safer.h.
96673         (getusershell): Call fopen, not fopen_safer.
96674         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
96675         Do not include unistd-safer.h.
96676         (save_cwd): Don't call fd_safer; no longer needed
96677         now that we include fcntl--.h.
96679         * lib/getdate.y (relative_time): New type.
96680         (RELATIVE_TIME_0): New constant.
96681         (parser_control): Use relative_time instead of doing it ourselves.
96682         (%union): Add new relative_time rel member.
96683         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
96684         Now typeless.
96685         (relunit, relunit_snumber): Now of type rel.
96686         (zone, rel, relunit, get_date): Adjust to above changes.
96688         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
96689         Do not include unistd-safer.h.
96690         (getloadavg): Don't call fd_safer; no longer needed
96691         now that we include fcntl--.h.
96693         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
96694         (make_dir_parents): Treat ENOSYS like EEXIST.
96696         Improve quality of diagnostics on restore_cwd failure.
96697         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
96698         (make_dir_parents): Last arg is now int * (for errno), not bool *.
96699         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
96700         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
96701         each time through the loop.  Do not diagnose restore_cwd failure;
96702         that is the caller's job (and perhaps the caller does not care).
96704         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
96705         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
96706         If the file already exists but is not a directory, don't bother
96707         to try to make its parents.
96708         Close potential file descriptor leak if we can't chdir("/") (!).
96709         Don't always return true if chdir($PWD) fails; return true only
96710         if the requested action was done successfully (except for the
96711         chdir($PWD)).
96712         Don't log final directory unless we actually made it.
96713         Refactor to avoid duplicate code to fix up permissions.
96714         Don't attempt to fix up parent permissions if chdir($PWD) fails.
96716         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
96717         to make it a bit faster and (I hope) clearer.
96718         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
96719         Fix bug in formats like %2N.
96721         * lib/verify.h: New file.
96723 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
96725         Sync from coreutils.
96726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
96728 2005-09-22  Jim Meyering  <jim@meyering.net>
96730         Sync from coreutils.
96732         * m4/lstat.m4 (gl_FUNC_LSTAT):
96733         Use AC_LIBSOURCES to require lstat.c and lstat.h.
96734         Remove obsolete comment.
96735         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
96736         * m4/xstrtod.m4: Likewise.
96738         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
96740 2005-09-22  Jim Meyering  <jim@meyering.net>
96742         Sync from coreutils.
96744         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
96746         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
96747         the .tm_year member, since otherwise gcc-4.0 would now warn about
96748         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
96750         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
96751         order to avoid an unsuppressible warning from gcc on 64-bit systems.
96753         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
96754         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
96755         when run in a time zone for which daylight savings time is in effect
96756         for the starting date.
96758         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
96759         stop us from restricting permissions of just-created absolute-named
96760         directories.
96761         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
96762         to restore initial working directory.
96763         * lib/mkdir-p.c (make_dir_parents): New parameter:
96764         different_working_dir, to tell caller if/when we change the working
96765         directory and are unable to return to the initial one.
96766         * lib/mkdir-p.h (make_dir_parents): Update prototype.
96767         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
96768         `return false'.  This fixes a bug introduced on 2004-07-30.
96770         * lib/openat.c (fdopendir): Be sure to close the supplied
96771         file descriptor before returning.  This makes our replacement
96772         implementation a little closer to Solaris's, where fdopendir
96773         ties the file descriptor to the returned DIR* pointer.
96774         * lib/openat.c (unlinkat): New function.
96775         * lib/openat.h (unlinkat): Add prototype.
96776         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
96777         (openat_restore_fail): Rename from openat_restore_die.
96778         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
96780         Provide an alternative to exiting immediately upon save_cwd or
96781         restore_cwd failure.  Now, an application can arrange e.g.,
96782         to perform a longjump in that case.
96783         * lib/openat.c: Include dirname.h.
96784         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
96785         (rpl_openat, fdopendir, fstatat): Call openat_save_die
96786         and openat_restore_die rather than calling error directly.
96787         Don't include "error.h" or "exitfail.h"; they're no longer needed.
96789         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
96790         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
96791         define.
96793         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
96794         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
96795                             int utc, int nanoseconds);
96796         Background:
96797         date should not have to allocate a megabyte of virtual memory to
96798         handle a format argument like +%1048575T.  When implemented with
96799         strftime, it must allocate such a buffer, use strftime to fill it
96800         in, print it, then free it.
96801         With fprintftime, it simply prints everything and exits.
96802         With no need for memory allocation, that's one fewer way to fail.
96803         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
96804         optional field width, not before, so we accept %9:z, not %:9z.
96805         (my_strftime): Be sure to use L_('x') for literals.
96807         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
96808         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
96809         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
96810         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
96811         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
96812         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
96813         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
96814         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
96815         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
96816         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
96817         * lib/xgethostname.c, lib/xreadlink.c:
96818         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
96820         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
96821         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
96822         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
96823         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
96824         and don't include <sys/file.h>).
96826 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
96828         Sync from coreutils.
96830         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
96831         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
96832         [!LDAV_DONE]: Avoid unused variable warning.
96834 2005-09-21  Bruno Haible  <bruno@clisp.org>
96836         * lib/unicodeio.h (unicode_to_mb): New declaration.
96838 2005-09-20  Derek Price  <derek@ximbiot.com>
96840         * lib/getaddrinfo.c: Don't include <netdb.h> included from
96841         getaddrinfo.h.
96843 2005-09-20  Bruno Haible  <bruno@clisp.org>
96845         * gnulib-tool: Remove trailing slashes from the values specified for
96846         --source-base, --m4-base, --tests-base, --aux-dir.
96847         Suggested by Simon Josefsson <jas@extundo.com>.
96849 2005-09-20  Bruno Haible  <bruno@clisp.org>
96851         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
96852         func_modules_to_filelist, func_import, func_create_testdir): Make all
96853         sorting results locale-independent, so that gnulib-cache.m4 doesn't
96854         change when gnulib-tool is invoked in a different locale.
96856 2005-09-19  Simon Josefsson  <jas@extundo.com>
96858         * m4/socklen.m4: Fix typo.
96860 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96862         Use a consistent style for including <config.h>.
96863         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
96864         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
96865         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
96866         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
96867         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
96868         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
96869         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
96870         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
96871         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
96872         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
96873         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
96874         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
96875         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
96876         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
96877         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
96878         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
96879         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
96880         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
96881         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
96882         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
96883         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
96884         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
96885         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
96886         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
96887         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
96888         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
96889         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
96890         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
96891         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
96892         lib/xstrtoumax.c, lib/yesno.c:
96893         Standardize inclusion of config.h.
96894         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
96895         lib/inttostr.h:  Removed inclusion of config.h from header files.
96896         * lib/inttostr.c:  Adjusted in-tree users.
96897         * lib/timespec.h: Remove superfluous warning to include config.h.
96898         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
96899         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
96900         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
96901         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
96902         config.h with HAVE_CONFIG_H.
96904 2005-09-19  Jim Meyering  <jim@meyering.net>
96906         * modules/pathmax (License): Change to LGPL.
96908 2005-09-19  Derek Price  <derek@ximbiot.com>
96910         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
96912 2005-09-19  Bruno Haible  <bruno@clisp.org>
96914         * gnulib-tool (import): Provide default for --tests-base.
96916 2005-09-19  Bruno Haible  <bruno@clisp.org>
96918         * doc/quote.texi: New file, extracted from gnulib.texi.
96919         * doc/ctime.texi: New file, extracted from gnulib.texi.
96920         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
96921         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
96922         * doc/gnulib.texi: Include them.
96924 2005-09-18  Bruno Haible  <bruno@clisp.org>
96926         Portability fix.
96927         * gnulib-tool (func_readlink): New function.
96928         (func_ln_if_changed): Use it.
96930 2005-09-18  Bruno Haible  <bruno@clisp.org>
96932         * gnulib-tool: Support --with-tests also with --import.
96933         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
96934         (func_import): Use variables $testsbase and $inctests. Emit a
96935         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
96936         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
96937         SUBDIRS += $testsdir.
96938         (func_create_testdir): Update.
96940 2005-09-18  Bruno Haible  <bruno@clisp.org>
96942         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
96943         instead of $dry_run.
96944         (func_cp_if_changed, func_mv_if_changed): Remove functions.
96945         (func_ln_if_changed): Don't handle dry-run here.
96946         (func_import): In dry-run mode, detect more precisely which actions
96947         would be performed, and don't use "...ing" verbs.
96949 2005-09-18  Bruno Haible  <bruno@clisp.org>
96951         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
96952         (func_import): Use join on two temporary files instead of three nested
96953         loops, in order to determine which files are new or old.
96955 2005-09-18  Bruno Haible  <bruno@clisp.org>
96957         * gnulib-tool (func_import): Comment out code that spits out the
96958         new files with --dry-run.
96960 2005-09-18  Bruno Haible  <bruno@clisp.org>
96962         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
96964 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
96966         * lib/stat-time.h: New file.
96967         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
96968         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
96969         in a different way.
96970         (timespec_cmp): New function.
96971         * lib/utimecmp.c: Include stat-time.h.
96972         (SYSCALL_RESOLUTION): Depend on whether various struct stat
96973         members exist, not on the obsolescent ST_MTIM_NSEC.
96974         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
96976 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
96978         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
96980 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
96982         * MODULES.html.sh (File system functions): Add stat-time.
96983         * modules/stat-time: New file.
96984         * modules/timespec (Files): Remove m4/st_mtim.m4; this
96985         is now done in a different way, by the stat-time module.
96986         * modules/utimecmp (Depends-on): Add stat-time.
96988 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96990         * m4/st_mtim.m4: Remove.  Superseded by...
96991         * m4/stat-time.m4: New file.
96992         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
96993         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
96995 2005-09-15  Derek Price  <derek@ximbiot.com>
96997         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
96999 2005-09-15  Derek Price  <derek@ximbiot.com>
97001         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
97002         * lib/regex_internal.c: Ditto, using this...
97003         (__GNUC_PREREQ): ...new macro.
97004         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
97005         using...
97006         (__GNUC_PREREQ): ...this new macro.
97008         * lib/strstr.h: Include string.h. Define strstr as a macro here.
97010 2005-09-15  Derek Price  <derek@ximbiot.com>
97011             Paul Eggert  <eggert@cs.ucla.edu>
97013         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
97014         changes, consolidating in...
97015         * lib/regex_internal.h: ...this file.
97017 2005-09-13  Jim Meyering  <jim@meyering.net>
97019         * lib/canon-host.c: Filter through gnu indent and reword comments
97020         slightly.
97021         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
97023 2005-09-13  Derek Price  <derek@ximbiot.com>
97025         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
97026         failure.
97027         Reported by Jim Meyering  <jim@meyering.net>.
97029 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97031         * lib/base64.c: Typo.
97032         (base64_encode): Put b64str in initialized data section.
97034 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
97036         Merge glibc and coreutils changes into gnulib, plus a few
97037         extra fixes.
97038         * lib/md5.c: Use #error rather than a string.
97039         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
97040         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
97041         (__attribute__): Define to empty for non recent-GCC.
97042         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
97043         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
97044         Renamed from their non-__ counterparts, with new macros replacing
97045         them if not _LIBC.  Add __THROW attribute.
97046         (rol): Remove.
97047         (struct md5_ctx): Align buffer if using GCC.
97048         * lib/sha1.h (struct sha1_ctx): Likewise.
97049         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
97050         The old name was backwards.
97051         (NOTSWAP): Remove; not used.
97052         (rol): New macro, moved here from md5.h.
97053         (sha1_process_block): Remove a FIXME that doesn't make sense.
97055 2005-09-12  Derek Price  <derek@ximbiot.com>
97057         Return usable errors from canon-host.
97058         * lib/canon-host.h: New file.
97059         * lib/canon-host.c (canon_host): Wrap...
97060         (canon_host_r): ...this new function, which now relies exclusively on
97061         getaddrinfo.
97062         (ch_strerror): New function.
97063         (last_cherror): New global.
97064         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
97065         interface.
97066         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
97067         void *.
97068         (freeaddrinfo): Free ai->ai_canonname when set.
97070 2005-09-12  Derek Price  <derek@ximbiot.com>
97072         Make canon-host require getaddrinfo.
97073         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
97074         AC_LIBSOURCE canon-host.h.  Call...
97075         (gl_PREREQ_CANON_HOST): ...this new function, which requires
97076         gl_GETADDRINFO.
97077         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
97079 2005-09-12  Derek Price  <derek@ximbiot.com>
97081         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
97082         LGPL.
97083         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
97085 2005-09-12  Derek Price  <derek@ximbiot.com>
97087         * lib/gai_strerror.c: Include config.h when available.  Include
97088         getaddrinfo.h before other headers to test interface.
97089         Reported by Larry Jones <lawrence.jones@ugs.com>.
97091 2005-09-12  Derek Price  <derek@ximbiot.com>
97092             Paul Eggert  <eggert@cs.ucla.edu>
97094         * modules/glob (Files): Add glob-libc.h.
97096 2005-09-12  Derek Price  <derek@ximbiot.com>
97097             Paul Eggert  <eggert@cs.ucla.edu>
97099         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
97100         glob_.h, glob-libc.h.
97101         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
97103 2005-09-12  Derek Price  <derek@ximbiot.com>
97104             Paul Eggert  <eggert@cs.ucla.edu>
97106         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
97107         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
97108         protecting things that should be done only in gnulib contexts.
97109         * lib/glob_.h: New file, containing only the glob things needed for
97110         gnulib.
97111         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
97112         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
97113         (glob, globfree, glob_pattern_p): Now defined simply in terms of
97114         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
97115         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
97116         and to respect the namespace rules better.
97118 2005-09-08  Simon Josefsson  <jas@extundo.com>
97120         * modules/socklen: New file.
97122 2005-09-08  Simon Josefsson  <jas@extundo.com>
97124         * m4/socklen.m4: New file.
97126 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97128         * modules/utimens (Files): Add m4/utimbuf.m4, since
97129         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
97130         Reported by Sergey Poznyakoff.
97132 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97134         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
97135         definitions, since that's the preferred style in glibc.
97136         Fix a minor spacing issue, and update copyright notice to match
97137         glibc's.
97139 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97141         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
97143 2005-09-06  Simon Josefsson  <jas@extundo.com>
97145         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
97146         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
97148 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97150         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
97151         warning.
97153 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97155         * config/srclist.txt: Add glibc bug 1302.
97157 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
97159         Change bitset word type from unsigned int to unsigned long int,
97160         as this has better performance on typical 64-bit hosts.
97161         Port bitset code to hosts with unusual word sizes.
97162         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
97163         (build_collating_symbol):
97164         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
97165         argument is a bitset.  This is merely a style issue, but it makes
97166         it clearer that an entire array is expected.
97167         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
97168         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
97169         Port to the case where bitset_word is not the same as unsigned int.
97170         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
97171         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
97172         Likewise.
97173         * lib/regexec.c (check_dst_limits_calc_pos_1,
97174         check_subexp_matching_top):
97175         (build_trtable, group_nodes_into_DFAstates):
97176         Likewise.
97177         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
97178         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
97179         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
97180         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
97181         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
97182         * lib/regcomp.c (optimize_subexps, lower_subexp):
97183         Work even if bitset_word has holes in its bitwise representation.
97184         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
97185         * lib/regexec.c (check_dst_limits_calc_pos_1,
97186         check_subexp_matching_top):
97187         Likewise.
97188         * lib/regex_internal.c (re_string_reconstruct):
97189         Don't assume UCHAR_MAX == 255.
97190         * lib/regex_internal.h (bitset_set_all): Likewise.
97191         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
97192         All uses changed.
97193         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
97194         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
97195         All uses changed.
97196         (BITSET_WORD_MAX): New macro.
97197         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
97198         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
97199         (bitset_empty, bitset_copy):
97200         Prefer sizeof (bitset) to multiplying it out ourselves.
97201         (bitset_not_merge): Remove; unused.
97202         (bitset_contain): Return bool, not unsigned int with one bit on.
97203         All callers changed.
97204         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
97205         alignment than re_node_set; do this by defining a new internal
97206         type struct dests_alloc and using it to allocate memory.
97208 2005-09-05  Bruno Haible  <bruno@clisp.org>
97210         * gnulib-tool (func_import): Fix comparison in handling of symbolic
97211         links.
97213 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
97215         * modules/size_max (Makefile.am): Add size_max.h
97217 2005-09-04  Derek Price  <derek@ximbiot.com>
97219         * gnulib-tool (func_import): Fix reversed $symbolic logic.
97221 2005-09-03  Simon Josefsson  <jas@extundo.com>
97223         * gnulib-tool: Fix typo.
97225 2005-09-03  Simon Josefsson  <jas@extundo.com>
97227         * config/srclist.txt: Add glibc bug 1293.
97229 2005-09-03  Derek Price  <derek@ximbiot.com>
97231         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
97232         From Larry Jones <lawrence.jones@ugs.com>.
97234 2005-09-02  Simon Josefsson  <jas@extundo.com>
97236         * modules/socklen: New file.
97238 2005-09-02  Simon Josefsson  <jas@extundo.com>
97240         * modules/havelib: New module.
97242         * modules/gettext, modules/iconv, modules/lock, modules/readline:
97243         Use havelib.
97245 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
97247         Check for arithmetic overflow when calculating sizes, to prevent
97248         some buffer-overflow issues.  These patches are conservative, in the
97249         sense that when I couldn't determine whether an overflow was possible,
97250         I inserted a run-time check.
97251         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
97252         macros.
97253         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
97254         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
97255         (re_xnrealloc, re_x2nrealloc): New inline functions.
97256         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
97257         parse_bracket_exp):
97258         (build_equiv_class, build_charclass): Check for arithmetic overflow
97259         in size expression calculations.
97260         * lib/regex_internal.c (re_string_realloc_buffers):
97261         (build_wcs_upper_buffer, re_node_set_add_intersect):
97262         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
97263         (re_dfa_add_node, register_state): Likewise.
97264         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
97265         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
97266         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
97267         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
97269 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
97271         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
97272         m4/ulonglong.m4.  Problem reported by Martin Lambers.
97274 2005-09-02  Bruno Haible  <bruno@clisp.org>
97276         Support for lib vs. lib64 distinction on biarch platforms.
97277         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
97278         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
97279         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
97281 2005-09-02  Bruno Haible  <bruno@clisp.org>
97283         * gnulib-tool (import): In the other first-use case, provide defaults
97284         as well.
97286 2005-09-02  Bruno Haible  <bruno@clisp.org>
97288         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
97289         patches not yet found in the latest gettext release.
97291 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97293         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
97294         to avoid a collision with bits/local_lim.h in glibc.
97295         All uses changed.  Problem reported by Dmitry V. Levin in
97296         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
97298         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
97299         bugs in int versus size_t comparisons.
97300         (re_string_context_at): Fix bug where the code assumed that
97301         Idx is signed.
97303         Use bool where appropriate.
97304         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
97305         All callers changed.
97306         (calc_eclosure_iter): Likewise, for ROOT arg.
97307         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
97308         (build_charclass_op): Likewise, for NON_MATCH arg.
97309         * lib/regex_internal.c (re_string_allocate, re_string_construct):
97310         (re_string_construct_common): Likewise, for ICASE arg.
97311         * lib/regexec.c (re_search_2_stub, re_search_stub):
97312         Likewise, for RET_LEN arg.
97313         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
97314         (set_regs): Likewise, for FL_BACKTRACK arg.
97315         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
97316         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
97317         (calc_eclosure_iter, parse_bracket_exp):
97318         Use bool for internal variables that are booleans.
97319         * lib/regexec.c (re_search_internal, check_matching,
97320         proceed_next_node):
97321         (set_regs, build_sifted_states, sift_states_bkref):
97322         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
97323         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
97324         (find_collation_sequence_value):
97325         Likewise.
97326         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
97327         (re_node_set_compare):
97328         Return bool, not int. All callers changed.
97329         * lib/regexec.c (check_halt_node_context, check_dst_limits):
97330         (build_trtable, check_node_accept): Likewise.
97331         * lib/regex_internal.h: Include stdbool.h.
97333         Fix bugs uncovered when converting to bool.
97334         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
97335         failure instead of charging ahead blindly.
97336         * lib/regex_internal.c (register_state): Likewise.
97337         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
97338         for freeing internal storage.
97339         (group_nodes_into_DFA_states): Use unsigned int, not int, for
97340         bitset pieces used as boolean, to avoid undefined behavior
97341         on hosts that do int overflow checking.
97343 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97345         * config/srclist.txt: Add glibc bugs 1285-1287.
97347 2005-09-01  Jim Meyering  <jim@meyering.net>
97349         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
97350         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
97351         Require gl_STAT_MACROS, too.
97353 2005-09-01  Bruno Haible  <bruno@clisp.org>
97355         * gnulib-tool (import): In the first-use case, provide defaults.
97357 2005-09-01  Bruno Haible  <bruno@clisp.org>
97359         * gnulib-tool (func_import): Remove the .tmp files.
97361 2005-09-01  Bruno Haible  <bruno@clisp.org>
97363         * gnulib-tool (func_import): Fix handling of symbolic links.
97365 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97367         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
97368         old glibc regex code mishandles strings longer than 2**31 bytes.
97369         This patch fixes this when the regex code is used in gnulib
97370         (i.e., outside glibc).
97372         This patch should not affect the use of the regex code inside
97373         glibc.  No doubt this problem also needs to be handled for glibc
97374         as well, but the result will be an incompatible change to the
97375         glibc ABI, and the old ABI will have to be supported too.  That
97376         can be the subject for another patch.
97378         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
97379         governing whether the rest of this patch is active.  By default,
97380         the macro is disabled and the patch has no effect.
97381         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
97382         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
97383         (struct re_pattern_buffer, re_search, re_search_2, re_match):
97384         (re_match_2, re_set_registers): Use the new types.
97385         * lib/regex_internal.h (Idx, re_hashval_t): New types.
97386         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
97387         New macros.
97388         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
97389         (re_string_context_at, bin_tree_t, re_dfastate_t):
97390         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
97391         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
97392         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
97393         (re_string_char_size_at, re_string_wchar_at):
97394         (re_string_elem_size_at):
97395         Use the new types and macros to port to 64-bit hosts.
97396         Use unsigned types for internal values, so that the code
97397         mostly works even for arrays larger than SSIZE_MAX.
97398         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
97399         (search_duplicated_node, calc_eclosure_iter, fetch_number):
97400         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
97401         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
97402         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
97403         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
97404         (calc_inveclosure, parse_dup_op, build_range_exp):
97405         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
97406         (fetch_number, create_token_tree, mark_opt_subexp):
97407         Likewise.
97408         * lib/regex_internal.c (re_string_construct_common,
97409         create_ci_newstate):
97410         (create_cd_newstate, re_string_allocate, re_string_construct):
97411         (re_string_realloc_buffers, build_wcs_upper_buffer):
97412         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
97413         (re_string_reconstruct, re_string_peek_byte_case):
97414         (re_string_fetch_byte_case, re_string_context_at):
97415         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
97416         (re_node_set_init_copy, re_node_set_add_intersect):
97417         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
97418         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
97419         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
97420         (re_acquire_state, re_acquire_state_context, register_state):
97421         Likewise.
97422         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
97423         search_cur_bkref_entry):
97424         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
97425         (re_search_internal, re_search_2_stub, re_search_stub)
97426         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
97427         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
97428         (update_cur_sifted_state, check_dst_limits):
97429         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
97430         (check_subexp_limits, sift_states_bkref, merge_state_array):
97431         (check_subexp_matching_top, get_subexp, get_subexp_sub):
97432         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
97433         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
97434         (expand_bkref_cache, check_node_accept_bytes):
97435         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
97436         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
97437         (acquire_init_state_context, check_halt_node_context):
97438         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
97439         (sift_states_backward, clean_state_log_if_needed):
97440         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
97441         (find_recover_state, transit_state_sb, transit_state_mb):
97442         (transit_state_bkref, build_trtable, match_ctx_clean):
97443         Likewise.
97444         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
97445         to work around an assumption that REG_MISSING is negative.
97447         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
97448         (seek_collating_symbol_entry) [defined _LIBC]:
97449         (lookup_collation_sequence_value) [defined _LIBC]:
97450         (build_range_exp, build_collating_symbol) [defined _LIBC]:
97451         Use prototypes rather than old-style function definitions.
97452         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
97453         (transit_state_sb) [0]:
97454         (find_collation_sequence_value) [defined _LIBC]: Likewise.
97456         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
97457         rm_eo.
97459         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
97460         (optimize_subexps, lower_subexp):
97461         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
97462         since the signed shift might overflow.  Use 1u<<31 instead.
97463         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
97464         Likewise.
97465         * lib/regexec.c (check_dst_limits_calc_pos_1,
97466         check_subexp_matching_top): Likewise.
97468         * lib/regcomp.c (optimize_subexps, lower_subexp):
97469         Use CHAR_BIT rather than 8, for clarity.
97470         * lib/regexec.c (check_dst_limits_calc_pos_1):
97471         (check_subexp_matching_top): Likewise.
97472         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
97473         have to worry about portability issues when shifting it left.
97474         Remove no-longer-needed test for table_size > 0.
97475         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
97476         in a word, as the resulting behavior is undefined.
97477         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
97478         in one case, a <= should have been an <, and in another case the
97479         whole test was missing.
97480         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
97481         the standard name CHAR_BIT.
97482         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
97483         this is not true on one's complement and signed-magnitude hosts.
97485         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
97486         next_last_offset.
97487         (struct re_dfa_t): Remove unused member states_alloc.
97488         * lib/regcomp.c (init_dfa): Don't initialize unused members.
97490 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97492         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
97493         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
97494         and large-file glibc and in 32-bit large-file Solaris.
97496 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97498         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
97499         lengths fit in regoff_t; this isn't true if regoff_t is the same
97500         width as size_t.
97501         * lib/regex.c (re_search_internal): 5th arg is LAST_START
97502         (= START + RANGE) instead of RANGE.  This avoids overflow
97503         problems when regoff_t is the same width as size_t.
97504         All callers changed.
97505         (re_search_2_stub): Check for overflow when adding the
97506         sizes of the two strings.
97507         (re_search_stub): Check for overflow when adding START
97508         to RANGE; if it occurs, substitute the extreme value.
97510 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97512         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
97514 2005-08-31  Jim Meyering  <jim@meyering.net>
97516         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
97517         a pointer-to-const.
97518         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
97519         (register_state): Likewise.
97520         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
97521         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
97522         (group_nodes_into_DFAstates): Likewise.
97524 2005-08-31  Jim Meyering  <jim@meyering.net>
97526         * check-module: Add a FIXME comment.
97528 2005-08-31  Eric Blake  <ebb9@byu.net>
97530         * modules/unistd-safer (Files): Add unistd--.h.
97531         * modules/stdio-safer (Files): Add stdio--.h.
97533 2005-08-31  Derek Price  <derek@ximbiot.com>
97535         * lib/getdelim.c (getdelim): Return EOF on EOF.
97536         Reported by Larry Jones <lawrence.jones@ugs.com>.
97538 2005-08-31  Bruno Haible  <bruno@clisp.org>
97540         Avoid unnecessary diffs in the generated lib/Makefile.am.
97541         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
97542         the generated files.
97543         (func_import): Don't set cmd.
97545 2005-08-31  Bruno Haible  <bruno@clisp.org>
97547         * lib/strstr.c: Include <stddef.h>, for NULL.
97548         * lib/strcasestr.c: Likewise.
97549         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97551 2005-08-31  Bruno Haible  <bruno@clisp.org>
97553         * gnulib-tool: New option --macro-prefix.
97554         (func_import): Use macro_prefix.
97555         (import): Handle option --macro-prefix.
97557 2005-08-31  Bruno Haible  <bruno@clisp.org>
97559         * gnulib-tool (import): Rename most ac_* variables to cached_*.
97560         Also use new variables cached_lgpl, cached_libtool.
97562 2005-08-31  Bruno Haible  <bruno@clisp.org>
97564         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
97565         always instantiating them.
97567 2005-08-31  Bruno Haible  <bruno@clisp.org>
97569         * gnulib-tool (func_import): Read the previous cached settings
97570         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
97571         earlier added by gnulib but are now dropped. Warn when a gnulib file
97572         overwrites a non-gnulib file.
97574 2005-08-31  Bruno Haible  <bruno@clisp.org>
97576         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
97577         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
97578         projects that don't keep autogenerated files in CVS. Put into
97579         actioncmd only the specified modules, not the transitive closure.
97581 2005-08-31  Bruno Haible  <bruno@clisp.org>
97583         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
97584         Create directories that shall be filled.
97585         (import): Don't look for gl_* macros in configure.ac. Recurse across
97586         all directories containing a gnulib-cache.m4 files, if meaningful.
97588 2005-08-31  Bruno Haible  <bruno@clisp.org>
97590         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
97591         (import): Set seen_libtool when we see gl_LIBTOOL.
97593 2005-08-31  Bruno Haible  <bruno@clisp.org>
97595         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
97596         declaration macro definitions from generated gnulib.m4.
97598 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
97600         * lib/iconvme.h: Add prototype for iconv_alloc.
97602 2005-08-29  Simon Josefsson  <jas@extundo.com>
97604         * lib/iconvme.c: Fix errno.
97606 2005-08-29  Bruno Haible  <bruno@clisp.org>
97608         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
97609         that it works when the directory contains spaces.
97611 2005-08-29  Bruno Haible  <bruno@clisp.org>
97613         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
97615 2005-08-29  Bruno Haible  <bruno@clisp.org>
97617         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
97618         Emit more advice.
97620 2005-08-29  Bruno Haible  <bruno@clisp.org>
97621         and Stepan Kasal  <kasal@ucw.cz>
97623         * check-module: If more parameters are given, check each of them
97624         separately; add more exceptions, as noted by Jim Meyering.
97625         (check_module): New procedure.
97626         (%exempt_header): Now contains all exceptions.
97628 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
97630         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
97632 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
97634         * lib/iconvme.c: Split iconv_string into iconv_alloc.
97636 2005-08-28  Bruno Haible  <bruno@clisp.org>
97638         * m4/gnulib-tool.m4: New file.
97640 2005-08-27  Jim Meyering  <jim@meyering.net>
97642         * modules/unistd-safer (Files): Add pipe-safer.c.
97643         * modules/fcntl-safer (Files): Add creat-safer.c.
97645 2005-08-27  Jim Meyering  <jim@meyering.net>
97647         * m4/stdlib-safer.m4: New file.  From coreutils.
97648         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
97649         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
97650         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
97651         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
97652         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
97654 2005-08-27  Jim Meyering  <jim@meyering.net>
97656         * lib/fopen-safer.c: Merge minor changes from coreutils.
97657         * lib/dup-safer.c: Likewise.
97658         * lib/fd-safer.c: Likewise.
97660         Merge from coreutils.
97661         * lib/stdio--.h: New file.
97662         * lib/stdlib--.h: New file.
97663         * lib/mkstemp-safer.c: New file.
97665         GNU tar needs these.
97666         * lib/pipe-safer.c: New file.
97667         * lib/creat-safer.c: New file.
97668         * lib/fcntl--.h (creat): Define to creat_safer.
97669         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
97670         * lib/unistd--.h (pipe): Define to pipe_safer.
97671         * lib/unistd-safer.h: Declare pipe_safer.
97673 2005-08-26  Simon Josefsson  <jas@extundo.com>
97675         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
97676         Haible <bruno@clisp.org>.
97678 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
97680         * lib/regex_internal.h: Remove all references to
97681         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
97682         or better.
97683         (bitset_not, bitset_merge, bitset_not_merge):
97684         (bitset_mask, re_string_allocate, re_string_construct):
97685         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
97686         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
97687         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
97688         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
97689         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
97690         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
97691         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
97692         (re_acquire_state_context):
97693         Remove unnecessary forward decls.
97694         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
97695         Put __attribute at function definition,
97696         now that the function decl has been removed.
97697         * lib/regex_internal.c (re_string_peek_byte_case):
97698         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
97699         Likewise.
97701 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
97703         * m4/regex.m4: Add AC_PREREQ(2.50).
97704         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
97706 2005-08-25  Simon Josefsson  <jas@extundo.com>
97708         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
97709         __fsetlocking.
97711 2005-08-25  Simon Josefsson  <jas@extundo.com>
97713         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
97714         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
97715         GLIBC specific code.
97717 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97719         Make regex safe for g++.  This fixes one real bug (an "err"
97720         that should have been "*err").  g++ problem reported by
97721         Sam Steingold.
97722         * lib/regex_internal.h (re_calloc): New macro, consistent with
97723         re_malloc etc.  All callers of calloc changed to use re_calloc.
97724         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
97725         not int.  All callers changed.
97726         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
97727         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
97728         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
97729         (find_recover_state): Change "err" to "*err"; this fixes what
97730         appears to be a real bug.
97731         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
97732         versus int.
97734 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97736         * modules/regex (Depends-on): Add malloc, since the code
97737         assumes that !malloc(0) means failure.
97739 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97741         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
97743         alloca modernization/simplification for regex.
97744         * lib/regex.c: Remove portability cruft for alloca.  This no longer
97745         needs to be at the start of the file, and can be moved into
97746         regex_internal.h and simplified.
97747         * lib/regex_internal.h: Include <alloca.h>.
97748         (__libc_use_alloca) [!defined _LIBC]: New macro.
97749         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
97750         now works outside glibc.
97752 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97754         * config/srclist.txt: Add glibc bugs 1241, 1245.
97756 2005-08-25  Jim Meyering  <jim@meyering.net>
97758         * lib/open-safer.c: Include <config.h>.
97759         Otherwise, we'd lose LARGEFILE support in any file using
97760         e.g. "fcntl--.h"
97762 2005-08-25  Bruno Haible  <bruno@clisp.org>
97764         * m4/minmax.m4: Require autoconf 2.52.
97765         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
97766         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
97767         alternatives of translit over the alphabet.
97768         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
97770 2005-08-24  Simon Josefsson  <jas@extundo.com>
97772         * tests/test-getpass.c: New file.
97774 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97776         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
97777         for GNU regex features.
97779 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97781         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
97782         * lib/regex.h (regerror): Likewise.
97784         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
97785         requires this.  (The code never needed it.)
97787         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
97788         All uses of recently-renamed identifiers changed to use the new,
97789         POSIX-compliant names.  The code will build and run just fine
97790         without these changes, but it's better to eat our own dog food
97791         and use the standard-conforming names.
97793         * lib/regex.h: Fix a multitude of POSIX name space violations.
97794         These changes have an effect only for programs that define
97795         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
97796         do not change anything for programs compiled in the normal way.
97797         Also, there is no effect on the ABI.
97799         (_REGEX_SOURCE): New macro.
97800         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
97801         defined and _GNU_SOURCE is not; this fixes a name space violation.
97803         Rename the following macros to obey POSIX requirements.
97804         The old names are still visible as macros if _REGEX_SOURCE is defined.
97805         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
97806         RE_BACKSLASH_ESCAPE_IN_LISTS.
97807         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
97808         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
97809         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
97810         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
97811         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
97812         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
97813         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
97814         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
97815         (REG_INTERVALS): renamed from RE_INTERVALS.
97816         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
97817         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
97818         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
97819         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
97820         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
97821         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
97822         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
97823         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
97824         RE_UNMATCHED_RIGHT_PAREN_ORD.
97825         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
97826         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
97827         (REG_DEBUG): renamed from RE_DEBUG.
97828         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
97829         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
97830         unusual, since we can't clash with the POSIX REG_ICASE.
97831         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
97832         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
97833         (REG_NO_SUB): renamed from RE_NO_SUB.
97834         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
97835         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
97836         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
97837         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
97838         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
97839         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
97840         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
97841         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
97842         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
97843         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
97844         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
97845         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
97846         RE_SYNTAX_POSIX_MINIMAL_BASIC.
97847         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
97848         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
97849         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
97850         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
97851         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
97852         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
97853         (REG_FIXED): Renamed from REGS_FIXED.
97854         (REG_NREGS): Renamed from RE_NREGS.
97856         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
97857         of other REG_* macros, since POSIX says the user is allowed to
97858         #undef these macros selectively.
97860         (reg_errcode_t): Update comment stating what other tables need
97861         to be consistent.
97863         Rename the following enum values to obey POSIX requirements.
97864         The old names are still visible as macros.
97865         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
97866         is not defined, since GNU is supposed to be a superset of POSIX as
97867         much as possible, and since we want reg_errcode_t to be a signed
97868         type for implementation consistency.
97869         (_REG_NOERROR): Renamed from REG_NOERROR.
97870         (_REG_NOMATCH): Renamed from REG_NOMATCH.
97871         (_REG_BADPAT): Renamed from REG_BADPAT.
97872         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
97873         (_REG_ECTYPE): Renamed from REG_ECTYPE.
97874         (_REG_EESCAPE): Renamed from REG_EESCAPE.
97875         (_REG_ESUBREG): Renamed from REG_ESUBREG.
97876         (_REG_EBRACK): Renamed from REG_EBRACK.
97877         (_REG_EPAREN): Renamed from REG_EPAREN.
97878         (_REG_EBRACE): Renamed from REG_EBRACE.
97879         (_REG_BADBR): Renamed from REG_BADBR.
97880         (_REG_ERANGE): Renamed from REG_ERANGE.
97881         (_REG_ESPACE): Renamed from REG_ESPACE.
97882         (_REG_BADRPT): Renamed from REG_BADRPT.
97883         (_REG_EEND): Renamed from REG_EEND.
97884         (_REG_ESIZE): Renamed from REG_ESIZE.
97885         (_REG_ERPAREN): Renamed from REG_ERPAREN.
97886         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
97887         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
97888         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
97889         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
97891         (_REG_RE_NAME, _REG_RM_NAME): New macros.
97892         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
97893         changed.  But support the old name if the new one is not defined
97894         and if _REGEX_SOURCE.
97896         Change the following member names in struct re_pattern_buffer.
97897         The old names are still supported if !_REGEX_SOURCE.
97898         The new names are always supported, regardless of _REGEX_SOURCE.
97899         (re_buffer): Renamed from buffer.
97900         (re_allocated): Renamed from allocated.
97901         (re_used): Renamed from used.
97902         (re_syntax): Renamed from syntax.
97903         (re_fastmap): Renamed from fastmap.
97904         (re_translate): Renamed from translate.
97905         (re_can_be_null): Renamed from can_be_null.
97906         (re_regs_allocated): Renamed from regs_allocated.
97907         (re_fastmap_accurate): Renamed from fastmap_accurate.
97908         (re_no_sub): Renamed from no_sub.
97909         (re_not_bol): Renamed from not_bol.
97910         (re_not_eol): Renamed from not_eol.
97911         (re_newline_anchor): Renamed from newline_anchor.
97913         Change the following member names in struct re_registers.
97914         The old names are still supported if !_REGEX_SOURCE.
97915         The new names are always supported, regardless of _REGEX_SOURCE.
97916         (rm_num_regs): Renamed from num_regs.
97917         (rm_start): Renamed from start.
97918         (rm_end): Renamed from end.
97920         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
97921         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
97922         Prepend __ to parameter names.
97924         Undo yesterday's changes.
97926 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97928         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
97929         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
97930         lib/regex.c.
97932 2005-08-24  Jim Meyering  <jim@meyering.net>
97934         Sync from coreutils.
97935         * m4/fcntl-safer.m4: New file.
97937         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
97938         and object files for this module.
97940 2005-08-24  Jim Meyering  <jim@meyering.net>
97942         Sync from coreutils.
97943         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
97945 2005-08-24  Jim Meyering  <jim@meyering.net>
97947         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
97948         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
97950 2005-08-24  Jim Meyering  <jim@meyering.net>
97952         * modules/fcntl-safer: New module.
97953         * modules/fts (Depends-on): Add fcntl-safer.
97954         * MODULES.html.sh (File descriptor based Input/Output):
97955         Add fcntl-safer.
97957 2005-08-24  Bruno Haible  <bruno@clisp.org>
97959         Support for unit test modules.
97960         * modules/README: Mention tests modules.
97961         * modules/TEMPLATE-TESTS: New file.
97962         * gnulib-tool: New options --extract-tests-module, --with-tests and
97963         --tests-base (unused for the moment).
97964         (testsbase, inctests): New variables.
97965         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
97966         (func_verify_module): Exclude TEMPLATE-TESTS.
97967         (func_verify_nontests_module, func_verify_tests_module): New functions.
97968         (func_get_dependencies): Add implicit dependency for tests modules.
97969         (func_get_tests_module): New function.
97970         (func_modules_transitive_closure): When --with-tests was specified,
97971         include the unit tests as well, unless explicitly avoided.
97972         (func_emit_lib_Makefile_am): Ignore the tests modules here.
97973         (func_emit_tests_Makefile_am): New function.
97974         (func_create_testdir): When --with-tests was specified, emit a
97975         tests/ directory.
97976         * MODULES.html.sh (Future developments): Update.
97978 2005-08-24  Bruno Haible  <bruno@clisp.org>
97980         * modules/tls-tests: New file.
97981         * tests/test-tls.c: New file, from GNU gettext.
97983 2005-08-24  Bruno Haible  <bruno@clisp.org>
97985         * modules/lock-tests: New file.
97986         * tests/test-lock.c: New file, from GNU gettext.
97988 2005-08-24  Bruno Haible  <bruno@clisp.org>
97990         * lib/lock.h: Add multiple inclusion guard.
97991         * lib/tls.h: Add multiple inclusion guard.
97993 2005-08-24  Bruno Haible  <bruno@clisp.org>
97995         * gnulib-tool: Add support for the --aux-dir option to
97996         --create-testdir, --create-megatestdir, --test, --megatest.
97997         (func_create_testdir, func_create_megatestdir): Optionally emit a
97998         AC_CONFIG_AUX_DIR directive.
97999         (create-testdir, create-megatestdir, test, megatest): Provide a
98000         default value for $auxdir.
98002 2005-08-24  Bruno Haible  <bruno@clisp.org>
98004         * gnulib-tool (import): Use compound statement instead of subshell
98005         where possible.
98007 2005-08-24  Bruno Haible  <bruno@clisp.org>
98009         * gnulib-tool (import): Change --aux-dir default to "build-aux".
98011 2005-08-24  Bruno Haible  <bruno@clisp.org>
98013         * gnulib-tool (func_version): Update.
98015 2005-08-24  Bruno Haible  <bruno@clisp.org>
98017         * gnulib-tool (func_import, func_create_testdir,
98018         func_create_megatestdir): Quote all autoconf macro arguments.
98020 2005-08-24  Bruno Haible  <bruno@clisp.org>
98022         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
98023         option --force, because --force causes the aclocal.m4 of each
98024         subdirectory to be newer than the corresponding config.h.in.
98026 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
98028         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
98029         All contents moved to gl_REGEX.
98030         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
98031         assume that it does.
98033 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
98035         * lib/regex.h (REG_NOSYS)
98036         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
98037         Define, since POSIX requires it as of 2001.
98038         (_REG_ENOSYS)
98039         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
98040         New private symbol, used to keep the enum signed in all cases.
98041         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
98042         Youngman in
98043         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
98045         * lib/regex_internal.c (re_string_skip_chars, register_state):
98046         (calc_state_hash):
98047         Remove forward decls; no longer needed now that we use prototypes.
98048         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
98049         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
98050         (clean_state_log_if_needed): Likewise.
98052 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
98054         * config/srclist.txt: Add glibc bugs 1231-1233.
98056 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98058         Fix problems reported by Sam Steingold in
98059         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
98060         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
98061         assumed that reg_errcode_t is a signed type, which is not
98062         necessarily true if _XOPEN_SOURCE is not defined.
98063         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
98064         since some compilers warn about it otherwise.
98066 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98068         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
98069         (init_word_char, create_initial_state, duplicate_node_closure):
98070         (fetch_token, peek_token_bracket, build_range_exp):
98071         (build_collating_symbol): Remove forward decls; no longer needed
98072         now that we use prototypes.
98074         * lib/regcomp.c:
98075         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
98076         (re_compile_fastmap_iter, regcomp, regerror, regfree):
98077         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
98078         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
98079         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
98080         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
98081         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
98082         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
98083         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
98084         (build_range_exp, build_collating_symbol, parse_bracket_exp):
98085         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
98086         (build_charclass, build_charclass_op, fetch_number, create_tree):
98087         (create_token_tree, mark_opt_subexp, duplicate_tree):
98088         Use prototypes rather than old-style definitions.
98090         * lib/regex_internal.c:
98091         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
98092         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
98093         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
98094         (re_string_reconstruct, re_string_peek_byte_case):
98095         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
98096         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
98097         (re_node_set_init_copy, re_node_set_add_intersect):
98098         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
98099         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
98100         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
98101         (re_acquire_state, re_acquire_state_context, register_state):
98102         (create_ci_newstate, create_cd_newstate, free_state):
98103         Likewise.
98104         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
98105         re_search_2):
98106         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
98107         (re_search_internal, prune_impossible_nodes):
98108         (acquire_init_state_context, check_matching, static):
98109         (check_halt_node_context, check_halt_state_context, proceed_next_node):
98110         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
98111         (update_regs, sift_states_backward, build_sifted_states):
98112         (clean_state_log_if_needed, merge_state_array):
98113         (update_cur_sifted_state, add_epsilon_src_nodes):
98114         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
98115         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
98116         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
98117         (find_recover_state, check_subexp_matching_top, transit_state_mb):
98118         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
98119         (check_arrival, check_arrival_add_next_nodes):
98120         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
98121         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
98122         (check_node_accept_bytes, check_node_accept, extend_buffers):
98123         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
98124         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
98125         (sift_ctx_init):
98126         Likewise.
98128         * lib/regex_internal.h:
98129         (re_string_allocate, re_string_construct, re_string_reconstruct):
98130         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
98131         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
98132         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
98133         (re_string_context_at, re_string_peek_byte_case):
98134         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
98135         is defined, since we now use prototypes always.
98137         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
98138         C89 or better.  All uses removed.
98140 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98142         * config/srclist.txt: Add glibc bugs 1220-1227.
98144 2005-08-20  Jim Meyering  <jim@meyering.net>
98146         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
98147         of unused local, dfa.
98149 2005-08-20  Bruno Haible  <bruno@clisp.org>
98151         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
98153 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98155         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
98156         (re_node_set_insert_last, re_dfa_add_node):
98157         Rename local variables to avoid GCC shadowing warnings.
98159 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98161         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
98162         [defined lint]: Suppress bogus uninitialized-variable warnings.
98164         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
98165         and let the caller return REG_ESPACE if out of space.  This
98166         removes an uninitialied-variable warning with GCC 4.0.1, and also
98167         avoids taking the address of a local variable.  All callers
98168         changed.
98170 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98172         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
98173         $LIBCSRC/posix/regexec.c.
98174         Add glibc bug 1217 for regcomp.c.
98176 2005-08-19  Jim Meyering  <jim@meyering.net>
98178         * lib/regexec.c (proceed_next_node): Redo local variables to
98179         avoid GCC shadowing warnings.
98181 2005-08-18  Bruno Haible  <bruno@clisp.org>
98183         * lib/strstr.c (strstr): Fix return value in multibyte case.
98184         * lib/strcasestr.c (strcasestr): Likewise.
98186 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98188         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
98190 2005-08-17  Jim Meyering  <jim@meyering.net>
98192         Make the %s format (seconds since the epoch) work for a negative
98193         number and when used with a zero-padded field width, e.g. %015s.
98195         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
98196         label so that it precedes the code to set `digits'.  Otherwise,
98197         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
98198         print `00-22'.  Now, it prints `-0022', as it should.
98200 2005-08-17  Bruno Haible  <bruno@clisp.org>
98202         * modules/strstr (Files): Add m4/mbrtowc.m4.
98203         (Depends-on): Add mbuiter.
98205 2005-08-17  Bruno Haible  <bruno@clisp.org>
98207         * modules/strcasestr: New file.
98208         * MODULES.html.sh (String handling, based on ANSI C 89): Add
98209         strcasestr.
98211 2005-08-17  Bruno Haible  <bruno@clisp.org>
98213         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
98215 2005-08-17  Bruno Haible  <bruno@clisp.org>
98217         * modules/mbuiter: New file.
98218         * MODULES.html.sh (Extended multibyte and wide character utilities):
98219         Add mbuiter.
98221 2005-08-17  Bruno Haible  <bruno@clisp.org>
98223         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
98224         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
98226 2005-08-17  Bruno Haible  <bruno@clisp.org>
98228         * m4/strcasestr.m4: New file.
98230 2005-08-17  Bruno Haible  <bruno@clisp.org>
98232         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
98233         * lib/strstr.c: Completely rewritten, with multibyte locale support.
98235 2005-08-17  Bruno Haible  <bruno@clisp.org>
98237         * lib/strcasestr.h: New file.
98238         * lib/strcasestr.c: New file.
98240 2005-08-17  Bruno Haible  <bruno@clisp.org>
98242         * lib/strcasecmp.c: Use mbuiter.h.
98244 2005-08-17  Bruno Haible  <bruno@clisp.org>
98246         * lib/mbuiter.h: New file.
98248 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
98251         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
98252         and gl_GETOPT are both invoked via different paths (as happens
98253         with GNU tar CVS because it uses both argp and getopt), the former
98254         wins.
98256 2005-08-16  Bruno Haible  <bruno@clisp.org>
98258         * modules/tls: New file.
98259         * MODULES.html.sh (Multithreading): Add tls.
98261 2005-08-16  Bruno Haible  <bruno@clisp.org>
98263         * modules/strnlen1: New file.
98264         * MODULES.html.sh (String handling): Add strnlen1.
98266 2005-08-16  Bruno Haible  <bruno@clisp.org>
98268         * modules/strcase (Files): Add m4/mbrtowc.m4.
98269         (Depends-on): Add strnlen1, mbchar.
98271 2005-08-16  Bruno Haible  <bruno@clisp.org>
98273         * modules/mbiter: New file.
98274         * MODULES.html.sh (Extended multibyte and wide character utilities):
98275         Add mbiter.
98277 2005-08-16  Bruno Haible  <bruno@clisp.org>
98279         * modules/mbfile: New file.
98280         * MODULES.html.sh (Extended multibyte and wide character utilities):
98281         Add mbfile.
98283 2005-08-16  Bruno Haible  <bruno@clisp.org>
98285         * modules/mbchar: New file.
98286         * MODULES.html.sh (Extended multibyte and wide character utilities):
98287         New section.
98289 2005-08-16  Bruno Haible  <bruno@clisp.org>
98291         * m4/tls.m4: New file, from GNU gettext.
98293 2005-08-16  Bruno Haible  <bruno@clisp.org>
98295         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
98296         always.
98297         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
98299 2005-08-16  Bruno Haible  <bruno@clisp.org>
98301         * m4/mbiter.m4: New file.
98303 2005-08-16  Bruno Haible  <bruno@clisp.org>
98305         * m4/mbfile.m4: New file.
98307 2005-08-16  Bruno Haible  <bruno@clisp.org>
98309         * m4/mbchar.m4: New file.
98311 2005-08-16  Bruno Haible  <bruno@clisp.org>
98313         * lib/tls.h: New file, from GNU gettext.
98314         * lib/tls.c: New file, from GNU gettext.
98316 2005-08-16  Bruno Haible  <bruno@clisp.org>
98318         * lib/strnlen1.h: New file.
98319         * lib/strnlen1.c: New file.
98321 2005-08-16  Bruno Haible  <bruno@clisp.org>
98323         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
98324         (mbi_init): Update.
98325         (mbi_avail, mbi_advance): Let the iteration end before the terminating
98326         NUL byte, not after it.
98328 2005-08-16  Bruno Haible  <bruno@clisp.org>
98330         * lib/strcase.h (strcasecmp): Add note in comments.
98331         * lib/strncasecmp.c: Use code from strcasecmp.c.
98332         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
98333         (strcasecmp): Work correctly in multibyte locales.
98335 2005-08-16  Bruno Haible  <bruno@clisp.org>
98337         * lib/mbiter.h: New file.
98339 2005-08-16  Bruno Haible  <bruno@clisp.org>
98341         * lib/mbfile.h: New file.
98343 2005-08-16  Bruno Haible  <bruno@clisp.org>
98345         * lib/mbchar.h: New file.
98346         * lib/mbchar.c: New file.
98348 2005-08-16  Bruno Haible  <bruno@clisp.org>
98350         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
98351         the valid ones. Makes the comparison operations transitive:
98352         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
98353         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
98355 2005-08-15  Simon Josefsson  <jas@extundo.com>
98357         * modules/ssize_t (License): Change to 'unlimited'.
98359         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
98361 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98363         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
98364         Add comments for each pending glibc patch.
98366 2005-08-15  Bruno Haible  <bruno@clisp.org>
98368         * lib/regex.h (__restrict_arr): Don't define to __restrict if
98369         __cplusplus is defined.
98371 2005-08-14  Jim Meyering  <jim@meyering.net>
98373         Sync from coreutils.
98375         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
98376         Use the hash-table-based cycle-detection code not just when
98377         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
98378         Reported by James Youngman in
98379         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
98380         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
98381         FTS_TIGHT_CYCLE_CHECK.
98382         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
98383         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
98384         once again.
98385         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
98386         * lib/fts.c (fd_safer): Remove decl.
98387         Include fcntl--.h rather than unistd-safer.h
98388         (fts_safe_changedir): Don't call fd_safer; no longer needed
98389         now that we include fcntl--.h.
98391 2005-08-12  Simon Josefsson  <jas@extundo.com>
98393         * modules/getndelim2: Use ssize_t module.
98394         * modules/getnline: Likewise.
98395         * modules/safe-read: Likewise.
98396         * modules/xreadlink: Likewise.
98398         * modules/ssize_t: New file.
98400 2005-08-12  Simon Josefsson  <jas@extundo.com>
98402         * m4/readline.m4: Look for termcap, curses or ncurses if required.
98404 2005-08-12  Simon Josefsson  <jas@extundo.com>
98406         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
98407         ssize_t.
98409 2005-08-12  Simon Josefsson  <jas@extundo.com>
98411         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
98412         readline, getdelim and check_version.
98413         (Support for systems lacking ISO C 99: Sizes of integer types):
98414         Add size_max.
98416 2005-08-12  Bruno Haible  <bruno@clisp.org>
98418         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
98420 2005-08-11  Simon Josefsson  <jas@extundo.com>
98422         * modules/readline: New file.
98424         * modules/strnlen (Files): Add strnlen.h.
98426 2005-08-11  Simon Josefsson  <jas@extundo.com>
98428         * m4/readline.m4: New file.
98430 2005-08-11  Simon Josefsson  <jas@extundo.com>
98432         * lib/readline.h, readline.c: New file.
98434 2005-08-11  Simon Josefsson  <jas@extundo.com>
98436         * doc/gnulib.texi (Initial import, Finishing touches): Mention
98437         gl_AVOID.
98439 2005-08-11  Bruno Haible  <bruno@clisp.org>
98441         * lib/strnlen.h (strnlen): Change parameter name to match comment.
98443 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
98445         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
98447 2005-08-10  Simon Josefsson  <jas@extundo.com>
98449         * tests/test-iconvme.c: New file.
98451 2005-08-10  Simon Josefsson  <jas@extundo.com>
98453         * m4/strnlen.m4: New file.
98455         * m4/strndup.m4: Don't check for strnlen declaration, done in
98456         strnlen.m4.
98458 2005-08-10  Simon Josefsson  <jas@extundo.com>
98460         * lib/strndup.c: Use strnlen.h.
98462         * lib/strnlen.h: New file.
98464 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
98466         * README: Typos.
98468 2005-08-02  Simon Josefsson  <jas@extundo.com>
98470         * modules/readline: New file.
98472 2005-08-02  Simon Josefsson  <jas@extundo.com>
98474         * modules/getdelim: New file.
98476         * modules/getline: Rewrite, don't use getndelim2.
98478 2005-08-02  Simon Josefsson  <jas@extundo.com>
98480         * m4/getline.m4: Separate out getdelim stuff into separate module.
98482         * m4/getdelim.m4: New file.
98484 2005-08-02  Simon Josefsson  <jas@extundo.com>
98486         * lib/getline.h, getline.c: Rewrite.
98488         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
98490 2005-07-31  Bruno Haible  <bruno@clisp.org>
98492         * lib/lock.h (gl_lock_initializer): New macro.
98493         (gl_lock_define_initialized): Use it.
98494         (gl_rwlock_initializer): New macro.
98495         (gl_rwlock_define_initialized): Use it.
98496         (gl_recursive_lock_initializer): New macro.
98497         (gl_recursive_lock_define_initialized): Use it.
98499 2005-07-30  Karl Berry  <karl@gnu.org>
98501         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
98502         Report from Ben Pfaff, regarding getopt.
98504 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
98506         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
98507         normal way.
98508         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
98509         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
98510         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
98511         (gl_GETOPT): Use the new macros.  Most of the implementation
98512         is moved to the new macros.  This is for programs like Emacs
98513         that don't want all the functionality of gl_GETOPT.
98515 2005-07-26  Bruno Haible  <bruno@clisp.org>
98517         * m4/lock.m4: Update from GNU gettext.
98519 2005-07-26  Bruno Haible  <bruno@clisp.org>
98521         * lib/lock.h: Update from GNU gettext.
98522         * lib/lock.c: Update from GNU gettext.
98524 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
98526         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
98527         obsolescent AC_TRY_RUN.  Include the default includes files, for
98528         'exit'.
98530 2005-07-24  Bruno Haible  <bruno@clisp.org>
98532         * modules/visibility: New file.
98533         * MODULES.html.sh (Misc): Add visibility.
98535 2005-07-24  Bruno Haible  <bruno@clisp.org>
98537         * m4/visibility.m4: New file.
98539 2005-07-24  Bruno Haible  <bruno@clisp.org>
98541         * doc/visibility.texi: New file.
98543 2005-07-22  Bruno Haible  <bruno@clisp.org>
98545         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
98546         $(ALLOCA_H), redundant through BUILT_SOURCES.
98547         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
98548         redundant through BUILT_SOURCES.
98549         * modules/byteswap (Makefile.am): Remove explicit dependency on
98550         $(BYTESWAP_H), redundant through BUILT_SOURCES.
98551         * modules/fnmatch (Makefile.am): Remove explicit dependency on
98552         $(FNMATCH_H), redundant through BUILT_SOURCES.
98553         * modules/getopt (Makefile.am): Remove explicit dependency on
98554         $(GETOPT_H), redundant through BUILT_SOURCES.
98555         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
98556         redundant through BUILT_SOURCES.
98557         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
98558         redundant through BUILT_SOURCES.
98559         * modules/stdbool (Makefile.am): Remove explicit dependency on
98560         $(STDBOOL_H), redundant through BUILT_SOURCES.
98561         * modules/stdint (Makefile.am): Remove explicit dependency on
98562         $(STDINT_H), redundant through BUILT_SOURCES.
98563         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
98564         Remove explicit dependency on $(SYSEXITS_H).
98565         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
98567 2005-07-18  Simon Josefsson  <jas@extundo.com>
98569         * lib/check-version.c (check_version): Accept identical versions too.
98571 2005-07-18  Bruno Haible  <bruno@clisp.org>
98573         * modules/lock: New file.
98574         * MODULES.html.sh (Multithreading): New section.
98576 2005-07-18  Bruno Haible  <bruno@clisp.org>
98578         * m4/lock.m4: New file, from GNU gettext.
98580 2005-07-18  Bruno Haible  <bruno@clisp.org>
98582         * lib/lock.h: New file, from GNU gettext.
98583         * lib/lock.c: New file, from GNU gettext.
98585 2005-07-18  Bruno Haible  <bruno@clisp.org>
98587         * lib/lock.h (gl_once_t): New type.
98588         (gl_once_define, gl_once): New macros.
98589         * lib/lock.c (fresh_once): New variable.
98590         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
98591         functions.
98593 2005-07-16  Simon Josefsson  <jas@extundo.com>
98595         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
98596         workaround, suggested by Bruno.
98598 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
98600         * modules/xalloc (Depends-on): Add xalloc-die.
98601         * modules/xvasprintf (Depends-on): Add xalloc-die.
98603 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
98605         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
98606         with a minor change.
98608 2005-07-15  Bruno Haible  <bruno@clisp.org>
98610         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
98611         When using lib/poll.c, define poll as rpl_poll.
98613 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
98615         * modules/argp (Depends-on): Remove unlocked-io.
98617 2005-07-14  Derek Price  <derek@ximbiot.com>
98619         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
98620         for glob symlink bug.
98622 2005-07-14  Bruno Haible  <bruno@clisp.org>
98624         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
98625         Instead, test for *_unlocked function declarations directly.
98627 2005-07-11  Simon Josefsson  <jas@extundo.com>
98629         * modules/size_max: New file.
98631         * modules/xsize: Depend on size_max module for size_max.m4.
98633 2005-07-11  Simon Josefsson  <jas@extundo.com>
98635         * lib/size_max.h: New file.
98637 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
98639         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
98640         copyright symbol and the year.
98641         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
98642         (version_etc_va): Use parameterized copyright notice.
98643         Reword to conform to the current GNU coding standards.
98645 2005-07-11  Karl Berry  <karl@gnu.org>
98647         * doc/gnulib.texi (Quoting): new node.
98648         (Initial import): more info, from Patrice.
98650 2005-07-11  Bruno Haible  <bruno@clisp.org>
98652         * gnulib-tool (func_usage): Document option --avoid.
98653         (Command line options): Handle --avoid.
98654         (func_acceptable): New function.
98655         (func_modules_transitive_closure): Use it.
98657 2005-07-11  Bruno Haible  <bruno@clisp.org>
98659         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
98660         Reported by Jim Meyering.
98662 2005-07-10  Bruno Haible  <bruno@clisp.org>
98664         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
98665         Needed when size_t is smaller than 'unsigned int'.
98666         Reported by Paul Eggert.
98668 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98670         * modules/argp (Depends-on): Add unlocked-io
98672 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
98674         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
98675         block of defines.
98677 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
98679         * config/srclist.txt: Comment out regcomp.c, since we have a porting
98680         fix now.
98682 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
98683         and Paul Eggert  <eggert@cs.ucla.edu>
98685         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
98686         in wint_t, not wchar_t.  Remove now-unnecessary cast.
98688 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
98690         * modules/regex (Files): Add lib/regex_internal.c,
98691         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
98692         (Depends-on): Add extensions.
98693         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
98695 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
98697         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
98698         pathconf.
98699         * m4/same.m4 (gl_SAME): Likewise.
98700         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
98702         * m4/regex.m4: Adjust to new libc regex implementation.
98703         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
98704         all the .c and .h parts of (the new) regex.
98705         Quote the m4 stuff better.
98706         Check for RE_ICASE bug of old gnulib.
98707         Check for REG_STARTEND of recent libc.
98708         Rename local variables from jm_* to gl_*.
98709         Quote operand of "test -f".
98710         Say "recent enough" version of libc, not "version 2".
98711         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
98712         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
98713         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
98714         Remove check for btowc, isascii.
98715         Require AM_LANGINFO_CODESET.
98717 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
98719         * lib/regex.c, regex.h: Sync from libc.
98720         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
98721         * lib/regexec.c:
98722         New files, synced from libc, except that regex_internal.h
98723         currently has a small porting fix.
98725 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
98727         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
98728         regex_internal.c, regexec.c.
98729         Add regex_internal.h too, but as a comment, since the libc version
98730         is currently broken in gnulib mode.
98732 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
98734         Support programs like Emacs that use gnulib but not gettext.
98735         * MODULES.html.sh (Internationalization functions): Add gettext-h.
98736         * modules/gettext-h: New file.
98737         * modules/gettext (Files): Remove lib/gettext.h.
98738         (Depends-on): Add gettext-h.
98739         (Makefile.am): Remove lib_SOURCES.
98740         * modules/argmatch, modules/c-stack, modules/closeout:
98741         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
98742         * modules/execute, modules/file-type, modules/getaddrinfo:
98743         * modules/getopt, modules/human, modules/javacomp:
98744         * modules/javaexec, modules/mkdir-p, modules/obstack:
98745         * modules/openat, modules/pagealign_alloc, modules/pipe:
98746         * modules/quotearg, modules/regex, modules/rpmatch:
98747         * modules/unicodeio, modules/userspec, modules/version-etc:
98748         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
98749         * modules/xsetenv:
98750         Depend on gettext-h, not gettext.
98752 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
98754         * gnulib-tool (func_import): Add support for 'public domain' license.
98755         * modules/alloca, modules/atexit, modules/memmove:
98756         Now public domain, not GPL.
98757         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
98758         * modules/realloc, modules/strerror, modules/strtod:
98759         Now LGPL, not GPL.
98761 2005-07-05  Bruno Haible  <bruno@clisp.org>
98763         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
98764         autoconf CVS. Needed for mingw.
98766 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98768         Remove the dependency of the strftime module on the tzset module.
98769         * modules/strftime (Depends-on): Remove dependency on tzset.
98771 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98773         Remove the dependency of the strftime module on the tzset module.
98774         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
98775         gl_FUNC_TZSET_CLOBBER.
98777 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98779         Remove the dependency of the strftime module on the tzset module.
98780         * lib/strftime.c (my_strftime)
98781         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
98782         Copy the input structure, to work around some of the bug with
98783         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
98784         Solaris releases, you should also use the tzset module, but we won't
98785         require it as a dependency any more since we don't want LGPLed code
98786         to depend on GPLed code.
98788 2005-07-02  Jim Meyering  <jim@meyering.net>
98790         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
98791         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
98792         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
98793         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
98795 2005-07-02  Jim Meyering  <jim@meyering.net>
98797         * lib/backupfile.c (backup_args): Change a `0' to NULL.
98799 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98801         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
98802         declares only 'struct timespec;' (!).
98804 2005-07-01  Jim Meyering  <jim@meyering.net>
98806         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
98807         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
98808         * lib/save-cwd.c, tempname.c:
98809         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
98810         and don't include <sys/file.h>).
98812 2005-06-29  Jim Meyering  <jim@meyering.net>
98814         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
98815         type name.  Use the variable name instead.
98816         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
98817         Likewise.
98819 2005-06-28  Simon Josefsson  <jas@extundo.com>
98821         * modules/check-version (Files): Add check-version.m4.
98823 2005-06-28  Simon Josefsson  <jas@extundo.com>
98825         * m4/check-version.m4: New file, suggested by Jim Meyering
98826         <jim@meyering.net>.
98828 2005-06-28  Simon Josefsson  <jas@extundo.com>
98830         * lib/check-version.h, lib/check-version.c: New files.
98832 2005-06-28  Simon Josefsson  <jas@extundo.com>
98834         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
98835         collision with global variable.  Better indentation.  Don't
98836         increment buffer pointer beyond buffer end.  Based on comments
98837         from Paul Eggert <eggert@cs.ucla.edu>.
98839         * lib/base64.h: Indent.
98841 2005-06-28  Simon Josefsson  <jas@extundo.com>
98843         * doc/gnulib.texi (Library version handling): New section.
98845 2005-06-28  Jim Meyering  <jim@meyering.net>
98847         * check-module (find_included_lib_files): Hard-code another
98848         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
98849         but modules/fts-lgpl (correctly) does not list those files.
98851         * modules/canonicalize (Files): Add lib/pathmax.h.
98853 2005-06-25  Simon Josefsson  <jas@extundo.com>
98855         * modules/check-version: New file.
98857 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
98859         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
98860         initializer of struct addrinfo, as an indication that we don't
98861         care how many members the structure has.
98863 2005-06-24  Derek Price  <derek@ximbiot.com>
98864         and Bruno Haible  <bruno@clisp.org>
98866         Remove stat module & update lstat.
98867         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
98868         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98869         * m4/stat.m4: Remove this file.
98871 2005-06-24  Derek Price  <derek@ximbiot.com>
98872         and Bruno Haible  <bruno@clisp.org>
98874         Remove stat module & update lstat.
98875         * lib/stat.c: Remove this file...
98876         (slash_aware_lstat): ...moving this content and its support...
98877         * lib/lstat.c (rpl_lstat): ...into here.
98878         * lib/lstat.h: New file.
98880 2005-06-24  Derek Price  <derek@ximbiot.com>
98881         and Bruno Haible  <bruno@clisp.org>
98883         Remove stat module & update lstat.
98884         * config/srclist.txt (libc sources): Remove stat.
98886 2005-06-24  Derek Price  <derek@ximbiot.com>
98887         and Bruno Haible  <bruno@clisp.org>
98889         Remove stat module & update lstat.
98890         * MODULES.html.sh (stat): Remove.
98891         * MODULES.html: Regenerated.
98892         * modules/lstat (Description): Correct function name.
98893         (Files): Add "lstat.h".
98894         (Depends-on): Remove stat, add xalloc, stat-macros.
98895         * modules/stat: Remove this file.
98896         (Include): Add "lstat.h", remove <sys/stat.h>.
98898 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
98900         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
98901         (ranged_convert): Don't save conversion in a temporary struct.
98902         This causes a warning with GCC 4.0.0, and anyway in the typical
98903         case it's not worth the extra 100 bytes or so of code.
98904         (ranged_convert, __mktime_internal): When calling a function via a
98905         pointer P, use P () rather than (*P) (), as we now assume C89 or
98906         better.
98908 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
98910         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
98911         "who -r" failed to give output.  Problem reported by Tim Waugh.
98913         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
98914         (xcalloc): Use it to avoid needless tests.
98915         Problem reported by Jim Meyering.
98917 2005-06-20  Derek Price  <derek@ximbiot.com>
98919         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
98920         unnecessary for Autoconfs > 2.59c.
98922 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98924         * lib/argp.h (__option_is_short): Check upper limit of
98925         __key. Isprint() requires its argument to have the value
98926         of an unsigned char or EOF.
98928 2005-06-16  Jim Meyering  <jim@meyering.net>
98930         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
98931         when either N or S is zero.
98933 2005-06-16  Derek Price  <derek@ximbiot.com>
98935         * m4/bison.m4: Declare YACC & YFLAGS precious.
98937 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
98939         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
98940         multibyte string or pattern, fall back on unibyte matching.
98941         Problem reported by James Youngman.
98943 2005-06-08  Bruno Haible  <bruno@clisp.org>
98945         * modules/csharpcomp: New file.
98946         * MODULES.html.sh (C#): Add csharpcomp.
98948 2005-06-08  Bruno Haible  <bruno@clisp.org>
98950         * m4/csharpcomp.m4: New file, from GNU gettext.
98952 2005-06-08  Bruno Haible  <bruno@clisp.org>
98954         * lib/csharpcomp.h: New file, from GNU gettext.
98955         * lib/csharpcomp.c: New file, from GNU gettext.
98956         * lib/csharpcomp.sh.in: New file, from GNU gettext.
98958 2005-06-08  Bruno Haible  <bruno@clisp.org>
98960         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
98961         warning on mingw.
98963 2005-06-07  Derek Price  <derek@ximbiot.com>
98965         Sync from CVS.
98966         * lib/glob_.h: Indent nested #ifdef.
98968 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
98970         Sync from coreutils.
98971         Use "file name" when talking about file names, instead of "filename"
98972         or "path", as per the GNU coding standards.
98973         * lib/mkdir-p.c: Renamed from makepath.c.
98974         (make_dir_parents): Renamed from make_path.  All callers changed.
98975         * lib/mkdir-p.h: Likewise.  All includers changed.
98976         * lib/filenamecat.c: Renamed from path-concat.c.
98977         (file_name_concat): Renamed from path_concat.  All callers changed.
98978         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
98979         * lib/filenamecat.h: Likewise.  All includers changed.
98980         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
98981         in comments or local variable names.
98982         * lib/basename.c: Likewise.
98983         * lib/canonicalize.c, canonicalize.h: Likewise.
98984         * lib/dirname.c, dirname.h: Likewise.
98985         * lib/euidaccess.c: Likewise.
98986         * lib/exclude.c: Likewise
98987         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
98988         * lib/fsusage.c, fsuage.h: Likewise.
98989         * lib/fts.c, fts_.h: Likewise.
98990         * lib/getcwd.c: Likewise.
98991         * lib/getloadavg.c: Likewise.
98992         * lib/mkstemp.c: Likewise.
98993         * lib/mountlist.c, mountlist.h: Likewise.
98994         * lib/openat.c, openat.h: Likewise.
98995         * lib/readlink-stub.c: Likewise.
98996         * lib/readutmp.c, readutmp.h: Likewise.
98997         * lib/rename.c: Likewise.
98998         * lib/rmdir.c: Likewise.
98999         * lib/same.c: Likewise.
99000         * lib/savedir.c: Likewise.
99001         * lib/stripslash.c: Likewise.
99002         * lib/tempname.c: Likewise.
99003         * lib/xreadlink.c: Likewise.
99004         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
99005         All uses changed.
99006         * lib/exclude.h: Likewise.
99008         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
99009         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
99010         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
99011         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
99012         * lib/pathmax.h: Include <limits.h> unconditionally, since other
99013         files have been getting away with it for years (MORE/BSD 4.3
99014         is extinct now).
99015         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
99016         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
99018         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
99019         Define to 256, not 255, as per modern POSIX.
99021 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
99023         Sync from coreutils.
99024         Use "file name" when talking about file names, instead of "filename"
99025         or "path", as per the GNU coding standards.
99026         * MODULES.html.sh: mkdir-p renamed from makepath.
99027         filenamecat renamed from path-concat.
99028         * modules/filenamecat: Renamed from modules/path-concat.
99029         (Files): filenamecat.h and filenamecat.c renamed from
99030         path-concat.h and path-concat.c.
99031         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
99032         (Include): filenamecat.h, not path-concat.h.
99033         * modules/mkdir-p: Renamed from modules/makepath.
99034         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
99035         makepath.c.
99036         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
99037         (Include): mkdir-p.h, not makepath.h.
99039 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
99041         Sync from coreutils.
99042         * m4/mkdir-p.m4: Renamed from makepath.m4.
99043         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
99044         Rename files from makepath.c to mkdir-p.c, and from
99045         makepath.h to mkdir-p.h.
99046         * m4/filenamecat.m4: Renamed from path-concat.m4.
99047         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
99048         Rename files from path-concat.c to filenamecat.c,
99049         and from path-concat.h to filenamecat.h.
99050         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
99051         "file name" in local variables or comments.
99052         * m4/rename.m4: Likewise.
99054 2005-06-01  Bruno Haible  <bruno@clisp.org>
99056         * modules/csharpexec: New file.
99057         * MODULES.html.sh (C#): New section.
99059 2005-06-01  Bruno Haible  <bruno@clisp.org>
99061         * m4/csharp.m4: New file, from GNU gettext.
99062         * m4/csharpexec.m4: New file, from GNU gettext.
99064 2005-06-01  Bruno Haible  <bruno@clisp.org>
99066         * lib/csharpexec.h: New file, from GNU gettext.
99067         * lib/csharpexec.c: New file, from GNU gettext.
99068         * lib/csharpexec.sh.in: New file, from GNU gettext.
99070 2005-05-31  Derek Price  <derek@ximbiot.com>
99071             Paul Eggert  <eggert@cs.ucla.edu>
99073         Sync from cvs.
99074         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
99076 2005-05-31  Derek Price  <derek@ximbiot.com>
99077             Paul Eggert  <eggert@cs.ucla.edu>
99079         Sync from cvs.
99080         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
99082 2005-05-29  Derek Price  <derek@ximbiot.com>
99084         * config/srclist.txt (glob_.h, glob.c): Add these files.
99086 2005-05-29  Derek Price  <derek@ximbiot.com>
99088         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
99089         * modules/glob: New file.
99090         * modules/getlogin_r: Add link to POSIX spec in description.
99092 2005-05-29  Derek Price  <derek@ximbiot.com>
99093             Paul Eggert  <eggert@cs.ucla.edu>
99095         * m4/glob.m4: New file.
99097 2005-05-29  Derek Price  <derek@ximbiot.com>
99098             Paul Eggert  <eggert@cs.ucla.edu>
99100         * lib/glob_.h, lib/glob.c: New files.
99102 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
99104         * modules/fts (Files): Remove m4/inttypes-pri.m4.
99105         * modules/fts-lgpl (Depends-on): Remove gettext.
99107 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
99109         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
99110         and don't require gt_INTTYPES_PRI.
99112 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
99114         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
99116         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
99117         the configuration hassle isn't worth it.
99118         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
99119         (LONGEST_MODIFIER, PRIuMAX): Remove.
99121 2005-05-27  Bruno Haible  <bruno@clisp.org>
99123         * lib/getlogin_r.h: Remove second include of <stddef.h>.
99125 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
99127         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
99128         _POSIX_PTHREAD_SEMANTICS for Solaris.
99130 2005-05-25  Derek Price  <derek@ximbiot.com>
99132         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
99134 2005-05-25  Derek Price  <derek@ximbiot.com>
99135             Paul Eggert  <eggert@cs.ucla.edu>
99137         * modules/getlogin_r, m4/getlogin_r.m4: New files.
99138         * lib/getlogin_r.c, getlogin_r.h: New files.
99140 2005-05-25  Bruno Haible  <bruno@clisp.org>
99141             Derek Price  <derek@ximbiot.com>
99143         * lib/getlogin_r.h: Simplify API documentation.
99145 2005-05-23  Derek Price  <derek@ximbiot.com>
99147         * modules/minmax (Files): Add m4/minmax.m4.
99148         (configure.ac): Add gl_MINMAX.
99150 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
99152         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
99153         so that unistd-safer.h (GPL'ed code) need not be included.
99155 2005-05-22  Bruno Haible  <bruno@clisp.org>
99157         * m4/minmax.m4: New file.
99158         Based on a patch by Derek Price <derek@ximbiot.com>.
99160 2005-05-22  Bruno Haible  <bruno@clisp.org>
99162         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
99163         (INT64_MIN): Fix definition.
99164         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
99166         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
99167         NEED_SIGNED_INT_TYPES.
99169         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
99170         HAVE_SYSTEM_INTTYPES.
99172 2005-05-22  Bruno Haible  <bruno@clisp.org>
99174         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
99175         Also include <sys/param.h> if it defines MIN, MAX.
99176         Based on a patch by Derek Price <derek@ximbiot.com>.
99178 2005-05-21  Jim Meyering  <jim@meyering.net>
99180         * modules/fts (Files): Add m4/inttypes-pri.m4.
99181         (Depends-on): Add lstat and remove gettext.  Alphabetize.
99183 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
99185         New fts module.
99186         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
99187         (setup_dir, free_dir): New functions.
99188         (enter_dir, leave_dir): Define trivial
99189         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
99190         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
99191         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
99192         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
99193         Move to fts-cycle.c.
99194         (fts_open): Use setup_dir.
99195         (fts_close): Use free_dir.
99196         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
99197         This adds a label and some gotos, but the alternatives were messier.
99198         Check for memory allocation failure when entering a dir.
99199         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
99200         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
99201         (FTS): New member fts_cycle, that is a union that contains the
99202         old active_dir_ht and cycle_state.  All uses changed to mention
99203         fts_cycle.ht and fts_cycle.state.
99204         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
99205         fts.c, with the following changes:
99206         (setup_dir, free_dir): New functions.
99207         (enter_dir): Now returns bool.  Return true if successful, false
99208         if memory exhausted.  All callers changed.
99209         Do not bother partly cleaning up on
99210         memory allocation failure; that is free_dir's job.
99211         However, free ad if hash_insert fails, to avoid memory leak.
99212         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
99213         fts->fts_options to see which union member to use.
99215 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
99217         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
99218         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
99220 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
99222         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
99224 2005-05-20  Jim Meyering  <jim@meyering.net>
99226         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
99227         Now a macro, to pacify GCC.
99229 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
99231         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
99232         of -1.
99234 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
99236         * lib/chown.c (rpl_chown): Return -1 on failure.
99238 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
99240         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
99241         Don't check for stddef.h.
99242         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
99243         don't use its results.
99244         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
99245         since we include them unconditionally.  Don't require
99246         AM_STDBOOL_H, since stdbool is a prerequisite.
99247         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
99248         since we assume C89 or better.
99249         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
99250         as we don't use their results.
99251         Don't check for fchdir, memmove, memset, strrchr, as we use
99252         them unconditionally.
99253         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
99254         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
99256 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
99258         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
99259         Include <stddef.h> unconditionally, since we assume C89 now.
99260         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
99261         * lib/fts.c: Include fts_.h first, to check interface.
99262         Do not include intprops.h; no longer needed.
99263         Include cycle-check.h and hash.h, since fts_.h no longer does.
99264         Remove unnecessary casts of closedir to void.
99265         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
99266         decide whether to decrement nlinks.
99267         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
99268         (FTS): Use struct hash_table * instead of Hash_table, so that
99269         we no longer need to include hash.h here.
99271 2005-05-18  Jim Meyering  <jim@meyering.net>
99273         * modules/dirfd (License): Change to LGPL.  Most of the code
99274         is already in the public domain.
99276 2005-05-18  Jim Meyering  <jim@meyering.net>
99278         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
99279         Reported by Yoann Vandoorselaere.
99281 2005-05-17  Jim Meyering  <jim@meyering.net>
99283         * m4/fts.m4: New file, from coreutils.
99285 2005-05-17  Jim Meyering  <jim@meyering.net>
99287         * lib/fts.c, lib/fts_.h: New files, from coreutils.
99289 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
99291         Sync from coreutils.
99292         * m4/unlinkdir.m4: New file.
99294 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
99296         Sync from coreutils.
99297         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
99298         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
99299         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
99300         White space changes only.
99301         * lib/makepath.c (make_path): Port to hosts where leading "//" is
99302         special.
99303         * lib/yesno.c: Include getline.h, not ctype.h.
99304         (yesno): Don't remove leading white space; POSIX doesn't allow it.
99305         Use getline to remove arbitrary restriction on response length.
99307 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
99309         * config/srclist-update: Spell out "Street" in FSF postal
99310         mail address; this is the style the FSF seems to prefer.
99312         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
99313         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
99314         this updates FSF postal mail address.
99316         Sync from coreutils.
99317         * modules/unlinkdir: New file.
99318         * modules/yesno (Depends-on): Add getline.
99319         * MODULES.html.sh (File system functions): Add unlinkdir.
99321 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
99323         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
99324         lib/strsep.h:
99325         Change the initial comment to refer to GPL, not LGPL.
99326         gnulib-tool will change it to LGPL as needed.
99328         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
99329         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
99330         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
99331         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
99332         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
99333         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
99334         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
99335         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
99336         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
99337         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
99338         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
99339         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
99340         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
99341         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
99342         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
99343         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
99344         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
99345         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
99346         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
99347         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
99348         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
99349         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
99350         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
99351         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
99352         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
99353         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
99354         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
99355         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
99356         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
99357         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
99358         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
99359         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
99360         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
99361         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
99362         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
99363         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
99364         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
99365         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
99366         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
99367         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
99368         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
99369         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
99370         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
99371         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
99372         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
99373         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
99374         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
99375         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
99376         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
99377         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
99378         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
99379         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
99380         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
99381         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
99382         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
99383         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
99384         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
99385         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
99386         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
99387         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
99388         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
99389         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
99390         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
99391         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
99392         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
99393         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
99394         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
99395         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
99396         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
99397         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
99398         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
99399         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
99400         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
99401         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
99402         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
99403         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
99404         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
99405         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
99406         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
99407         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
99408         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
99409         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
99410         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
99411         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
99412         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
99413         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
99414         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
99415         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
99416         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
99417         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
99418         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
99419         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
99420         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
99421         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
99422         lib/yesno.c, lib/yesno.h:
99423         Update FSF postal mail address.
99425 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
99427         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
99428         tests/test-memmem.c, tests/test-stpncpy.c:
99429         Update FSF postal mail address.
99431 2005-05-13  Bruno Haible  <bruno@clisp.org>
99433         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
99434         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
99435         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
99436         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
99437         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
99438         Add support for 64-bit integers in the MSVC compiler.
99440 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99442         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
99444 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
99446         * gnulib-tool (func_import): Sort and uniquify recommended includes.
99448 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
99450         * doc/getdate.texi (General date syntax): Don't say that date
99451         date --iso-8601=ns generates acceptable dates; it doesn't yet.
99452         Problem reported by Nic Ferrier.
99454 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99456         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
99457         specified in ai_socktype. Fix invalid ai_protocol
99458         check. ai_protocol is usually set to 0 or depending on
99459         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
99460         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
99461         ai_socktype / ai_protocol in the returned addrinfo structure.
99463 2005-05-10  Simon Josefsson  <jas@extundo.com>
99465         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
99466         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99468 2005-05-10  Karl Berry  <karl@gnu.org>
99470         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
99471         (from http://www.gnu.org/licenses).
99472         * doc/COPYING.LIB: also rename to COPYING.LESSER.
99473         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
99474         fdl.texi suffices.
99476 2005-05-10  Karl Berry  <karl@gnu.org>
99478         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
99479         (COPYING.DOC): remove.
99481         * config/srclist-update: new FSF address.
99483 2005-05-10  Derek Price  <derek@ximbiot.com>
99485         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
99486         possible.
99488 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99489             Bruno Haible  <bruno@clisp.org>
99491         * modules/inet_ntop: New file.
99492         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
99493         inet_ntop.
99495 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99496             Bruno Haible  <bruno@clisp.org>
99498         * m4/inet_ntop.m4: New file.
99500 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99501             Bruno Haible  <bruno@clisp.org>
99503         * lib/inet_ntop.h: New file.
99504         * lib/inet_ntop.c: New file, from glibc with modifications.
99506 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
99508         * modules/time_r (License): Change to LGPL.
99509         * modules/extensions (License): Change to LGPL.  Actually,
99510         the license is more permissive than that, but currently gnulib-tool
99511         doesn't know how to handle more-permissive licenses.
99513         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
99514         Problem reported by Dave Love.
99516 2005-05-08  Jim Meyering  <jim@meyering.net>
99518         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
99519         blank.
99521 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
99523         * modules/argmatch (Depends-on): Add stdbool.
99524         * modules/backupfile (Depends-on): Likewise.
99525         * modules/chdir-long (Depends-on): Likewise.
99526         * modules/closeout (Depends-on): Likewise.
99527         * modules/cycle-check (Depends-on): Likewise.
99528         * modules/dirname (Depends-on): Likewise.
99529         * modules/fnmatch (Depends-on): Likewise.
99530         * modules/fsusage (Depends-on): Likewise.
99531         * modules/fwriteerror (Depends-on): Likewise.
99532         * modules/getcwd (Depends-on): Likewise.
99533         * modules/getloadavg (Depends-on): Likewise.
99534         * modules/hard-locale (Depends-on): Likewise.
99535         * modules/makepath (Depends-on): Likewise.
99536         * modules/mountlist (Depends-on): Likewise.
99537         * modules/nanosleep (Depends-on): Likewise.
99538         * modules/posixtm (Depends-on): Likewise.
99539         * modules/quotearg (Depends-on): Likewise.
99540         * modules/readtokens (Depends-on): Likewise.
99541         * modules/readtokens0 (Depends-on): Likewise.
99542         * modules/readutmp (Depends-on): Likewise.
99543         * modules/save-cwd (Depends-on): Likewise.
99544         * modules/strftime (Depends-on): Likewise.
99545         * modules/userspec (Depends-on): Likewise.
99546         * modules/utimecmp (Depends-on): Likewise.
99547         * modules/xgetcwd (Depends-on): Likewise.
99548         * modules/xnanosleep (Depends-on): Likewise.
99549         * modules/xstrtod (Depends-on): Likewise.
99550         * modules/yesno (Depends-on): Likewise.
99552 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
99554         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
99555         needless checks.
99557 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
99559         Merge from coreutils.  Among other things,
99560         add bulletproofing for cases where stdin, stdout, or stderr are closed.
99561         * lib/fd-safer.c: New file.
99562         * lib/fcntl-safer.h, open-safer.c: Remove.
99563         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
99564         * lib/dup-safer.c: Include unistd-safer.h first.
99565         Don't include errno.h.
99566         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
99567         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
99568         * lib/file-type.c: Rely on file-type.h change.
99569         * lib/getloadavg.c: Include unistd-safer.h.
99570         (getloadavg): Use safer open.
99571         * lib/getusershell.c: Include "stdio-safer.h".
99572         (getusershell): Use safer fopen.
99573         * lib/long-options.c (long_options): Use NULL rather than 0.
99574         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
99575         'free'.
99576         * lib/modechange.c: Likewise.
99577         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
99578         (MODE_DONE): New constant.
99579         (struct mode_change): Remove 'next' member.
99580         (make_node_op_equals): New function; like the old one of the
99581         same name, except it allocates an array.
99582         (mode_compile, mode_create_from_ref): Use it.
99583         (mode_compile): Allocate result as an array, not a linked list.
99584         Parse octal string ourself, so that we catch mistakes like "+0".
99585         (mode_adjust): Arg is an array, not a linked list.
99586         * lib/modechange.c: Include stat-macros.h, xalloc.h.
99587         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
99588         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
99589         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
99590         Remove.  This is now stat-macros.h's job.
99591         (talloc): Remove.  All callers replaced by xalloc, so that
99592         our invokers don't have to worry about reporting memory failures.
99593         (make_node_op_equals): Remove.
99594         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
99595         New constants.
99596         (struct mode_change): Moved here from modechange.h.
99597         (mode_append_entry): Remove.
99598         (mode_compile): Remove MASKED_OPS arg, since it encouraged
99599         apps to have incorrect behavior.  Use simpler algorithm for head
99600         and tail.  Don't futz with umask; that's now the job of mode_adjust.
99601         Detect more invalid usages rather than having somewhat-random behavior.
99602         Don't insert an "a=" action, as that leads to incorrect behavior.
99603         (mode_compile, mode_create_from_ref): Return NULL on error instead
99604         of an enum, since now there's only one way to have an error.  All
99605         callers changed.
99606         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
99607         at the correct time.  Simplify calculation of "+u" and its ilk.
99608         Don't mishandle "+X".
99609         (mode_free): Remove "register" and localize decls.
99610         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
99611         (struct mode_change): Move to modechange.c; callers don't
99612         need to see this stuff.
99613         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
99614         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
99615         (mode_change, mode_adjust): Reflect the new signatures noted above.
99616         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
99617         that might redefine system include files.
99618         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
99619         (my_usleep): Use NULL rather than (void *) 0.
99620         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
99621         Use siginterrupt to specify that system calls should be interrupted.
99622         (rpl_nanosleep): Move initialization of suspended closer to call of
99623         my_usleep.
99624         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
99625         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
99626         (desirable_utmp_entry): New function.
99627         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
99628         using x2nrealloc, to simplify logic.
99629         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
99630         size calculation.  Do not assume utmp file is a regular file.
99631         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
99632         (READ_UTMP_CHECK_PIDS): New constant.
99633         * lib/save-cwd.c: Include unistd-safer.h.
99634         (save_cwd): Use fd_safer.
99635         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
99636         [!_LIBC] Include "stat-macros.h" instead.
99637         * lib/unistd-safer.h (fd_safer): New decl.
99639 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
99641         * modules/getloadavg (Depends-on): Add unistd-safer.
99642         * modules/getusershell (Depends-on): Add stdio-safer.
99643         * modules/lstat (Depends-on): Remove xalloc.
99644         * modules/mkstemp (Depends-on): Add stat-macros.
99645         * modules/modechange (Depends-on): Remove xstrtol.
99646         Add stat-macros, xalloc.
99647         * modules/save-cwd (Depends-on): Add unistd-safer.
99648         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
99649         * modules/unistd-safer (Files): Add lib/fd-safer.c
99650         (Makefile.am): Remove lib_SOURCES.
99652         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
99653         Remove fcntl-safer; unistd-safer supersedes it.
99655 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
99657         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
99658         AC_HEADER_STAT.
99659         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
99660         (gl_PREREQ_CHOWN): Remove.
99661         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
99662         it.  Don't require AC_HEADER_STAT.
99663         (gl_PREREQ_LSTAT): Remove.
99664         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
99665         Don't require AC_HEADER_STAT.
99666         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
99667         (gl_PREREQ_RMDIR): Remove.
99668         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
99669         mention stat-macros.h or AC_HEADER_STAT, since we'll make
99670         the stat-macros module a prerequisite.
99671         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
99672         * m4/filemode.m4 (gl_FILEMODE): Likewise.
99673         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
99674         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
99675         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
99676         variable names.
99677         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
99678         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
99679         variable prefixes.
99680         * m4/fcntl-safer.m4: Remove.
99681         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
99682         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
99683         Invoke gl_PREREQ_FD_SAFER.
99684         (gl_PREREQ_FD_SAFER): New macro.
99685         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
99686         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
99687         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
99688         Remove duplicate call to AC_LIBOBJ(readutmp).
99689         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
99691         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
99692         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
99694 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
99696         * MODULES.html.sh (Misc): Add byteswap.
99698 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
99700         * modules/getcwd (Depends-on): Add extensions.
99701         * modules/openat (Depends-on): Likewise.
99703 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
99705         * modules/byteswap: New file.
99707 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
99709         * m4/byteswap.m4: New file.
99711 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
99713         * lib/byteswap_.h: New file.
99715 2005-04-25  Karl Berry  <karl@gnu.org>
99717         * m4/gettext.m4: Update from GNU gettext 0.14.4.
99719 2005-04-25  Albert Chin  <china@thewrittenword.com>
99721         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
99722         Toolkit C bug.
99724 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
99726         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
99727         (func_ln_if_changed): Remove forcibly for no error message
99728         in case file does not exist.
99730 2005-04-19  Simon Josefsson  <jas@extundo.com>
99732         * gnulib-tool (Options): Make --symlink mean --symbolic.
99734 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
99736         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
99738 2005-04-16  Simon Josefsson  <jas@extundo.com>
99740         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
99742 2005-04-15  Simon Josefsson  <jas@extundo.com>
99744         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
99746 2005-04-15  Simon Josefsson  <jas@extundo.com>
99748         * gnulib-tool: Rename --symlink to --symbolic.
99750 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
99752         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
99753         symbolic links to files instead of copying/moving.  Add --aux-dir,
99754         specifying directory relative --dir where auxiliary build tools
99755         are placed.
99757 2005-04-14  Bruno Haible  <bruno@clisp.org>
99759         * modules/allocsa (License): Change to LGPL.
99760         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
99762 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
99764         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
99765         that "UTC +1 second" continues to work.  Problem reported
99766         by Dmitry V. Levin.
99767         (relunit_snumber): New rule.
99768         (relunit): Use it.
99770 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
99772         * lib/getdate.y (universal_time_zone_table): New constant.
99773         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
99774         universal_time_zone_table.
99775         (lookup_zone): Prefer universal_time_zone_table to
99776         local_time_zone_table, so that "GMT" time stamps are allowed in
99777         London during the summer.  Problem reported by Ian Abbott.
99779 2005-04-12  Jim Meyering  <jim@meyering.net>
99781         * lib/human.c (humblock): Set *options even when returning due to
99782         xstrtoumax conversion failure.  Thanks to a used-uninitialized
99783         warning from gcc-4.
99785 2005-04-09  Jim Meyering  <jim@meyering.net>
99787         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
99788         -Wuninitialized: initialize tm0.tm_year.
99790 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
99792         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
99793         count, since there's no maximum.  All uses changed.
99794         Add member dsts_seen.
99795         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
99796         not being INT_MAX.
99797         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
99798         Use pc_rels_seen to decide whether a date is absolute.
99800         * lib/getdate.y (number): Don't overwrite year.
99801         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
99802         check.
99804 2005-04-02  Simon Josefsson  <jas@extundo.com>
99806         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
99807         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
99809 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
99811         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
99812         where no absolute path name can be longer than PATH_MAX.
99814 2005-03-27  Jim Meyering  <jim@meyering.net>
99816         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
99818 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
99820         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
99821         "one's complement" -> "ones' complement" in comment, as per Knuth.
99822         "value of type" -> "type or expression" in comment.
99823         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
99825 2005-03-26  Jim Meyering  <jim@meyering.net>
99827         Comment nits.
99828         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
99829         Correct typos: s/or/of/.
99831 2005-03-26  Jim Meyering  <jim@meyering.net>
99833         * modules/check-include-files: Move to ../ and rename to...
99834         * check-module: ...this.
99836 2005-03-25  Jim Meyering  <jim@meyering.net>
99838         * modules/xvasprintf (Files): Add xalloc.h.
99840 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
99842         * modules/gettext (Files): config/config.rpath ->
99843         build-aux/config.rpath
99844         * modules/iconv (Files): Likewise.
99845         Problem reported by Oskar Liljeblad.
99847 2005-03-23  Jim Meyering  <jim@meyering.net>
99849         * modules/check-include-files: New script to check for
99850         missing dependencies, multiple includes, etc.
99852         * modules/c-strtold (Depends-on): Add xalloc.
99853         * modules/c-strtod (Depends-on): Add xalloc.
99854         * modules/hash (Depends-on): Add xalloc.
99855         (Files): Remove lib/xalloc.h.
99857         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
99858         * modules/userspec (Files): Add lib/inttostr.h.
99860 2005-03-23  Jim Meyering  <jim@meyering.net>
99862         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
99864 2005-03-22  Jim Meyering  <jim@meyering.net>
99866         * modules/stat-macros: New module.
99867         * modules/canonicalize, modules/euidaccess, modules/file-type,
99868         * modules/filemode, modules/lchown, modules/makepath,
99869         * modules/rmdir, modules/stat: Depend on new stat-macros module
99870         rather than listing lib/stat-macros.h manually.
99871         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
99873 2005-03-22  Jim Meyering  <jim@meyering.net>
99875         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
99877 2005-03-22  Bruno Haible  <bruno@clisp.org>
99879         * config/srclist.txt: Replace target directory 'config' with
99880         'build-aux'.
99881         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
99882         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
99883         ../build-aux/.
99885 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
99887         * modules/chdir-long (Depends-on): Add mempcpy.
99889         * modules/acl, modules/backupfile, modules/c-strtod,
99890         modules/c-strtold, modules/canon-host, modules/canonicalize,
99891         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
99892         modules/exclude, modules/exitfail, modules/file-type,
99893         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
99894         modules/getdate, modules/getline, modules/getpagesize,
99895         modules/getpass, modules/getugroups, modules/group-member,
99896         modules/hard-locale, modules/hash, modules/human, modules/idcache,
99897         modules/inttostr, modules/long-options, modules/makepath,
99898         modules/md5, modules/memcasecmp, modules/memcoll,
99899         modules/modechange, modules/mountlist, modules/path-concat,
99900         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
99901         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
99902         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
99903         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
99904         modules/strftime, modules/strndup, modules/strverscmp,
99905         modules/timespec, modules/unlocked-io, modules/userspec,
99906         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
99907         modules/yesno:
99908         Remove lib_SOURCES line from Makefile.am section, as this is now
99909         done automatically by the corresponding Autoconf macro.
99911 2005-03-21  Jim Meyering  <jim@meyering.net>
99913         Changes imported from coreutils.
99915         * lib/cycle-check.c: Don't include xalloc.h.
99917         * lib/path-concat.c: Don't include assert.h.
99918         (path_concat): Remove assertion that would have triggered
99919         for ABASE starting with more than one slash.
99920         Reported by Andreas Schwab.
99922         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
99923         properly when ABASE is an absolute file name.
99924         Correct the description of this function.
99925         Include <assert.h>.
99926         Add an assertion and a test driver.
99927         This fixes a bug introduced on 2004-07-02.
99928         Andreas Schwab reported the resulting failure of cp --parents:
99929         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
99931 2005-03-21  Jim Meyering  <jim@meyering.net>
99933         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
99934         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
99936 2005-03-21  Jim Meyering  <jim@meyering.net>
99937         and  Paul Eggert  <eggert@cs.ucla.edu>
99939         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
99940         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
99941         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
99942         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
99943         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
99944         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
99945         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
99946         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
99947         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
99948         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
99949         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
99950         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
99951         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
99952         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
99953         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
99954         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
99955         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
99956         for these modules.
99958 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
99960         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
99961         (which shouldn't happen), generate nothing instead of returning 0
99962         immediately, so that nstrftime (NULL, ...) doesn't return 0.
99964 2005-03-16  Bruno Haible  <bruno@clisp.org>
99966         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
99967         HAVE_LONGLONG_64BIT.
99969 2005-03-16  Bruno Haible  <bruno@clisp.org>
99971         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
99972         HAVE_LONGLONG_64BIT.
99974 2005-03-16  Bruno Haible  <bruno@clisp.org>
99976         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
99977         HAVE_LONGLONG_64BIT.
99979 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
99981         * lib/strftime.c (my_strftime): Prepend space to format so that we can
99982         reliably distinguish strftime failure from empty output on POSIX
99983         hosts.
99985 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
99987         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
99988         (iconv_string): Don't guess a size-zero buffer, as that might cause
99989         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
99990         result would be 'too large', where 'too large' is (heuristically)
99991         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
99992         overflow concerns.  This will prevent some unwanted malloc failures
99993         when the inputs are very large.
99995 2005-03-15  Karl Berry  <karl@gnu.org>
99997         * config/srclist.txt (config.rpath): from gettext.
99998         * config/config.rpath: update.
100000 2005-03-15  Bruno Haible  <bruno@clisp.org>
100002         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
100003         to 'negate'.
100005         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
100006         variable.
100008         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
100009         results.
100011 2005-03-14  Simon Josefsson  <jas@extundo.com>
100013         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
100014         <fx@gnu.org>.
100016 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
100018         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
100019         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
100020         intprops.h.
100021         * lib/strtol.c: Likewise.
100023 2005-03-14  Jim Meyering  <jim@meyering.net>
100025         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
100026         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
100027         to be nonzero so that we (and caller) can detect the difference
100028         between a valid zero-length expansion and an error return, even
100029         when the underlying strftime fails before writing anything into
100030         that location.
100032 2005-03-14  Bruno Haible  <bruno@clisp.org>
100034         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
100035         Update from GNU gettext 0.14.3.
100037 2005-03-10  Jim Meyering  <jim@meyering.net>
100039         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
100041 2005-03-10  Jim Meyering  <jim@meyering.net>
100043         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
100044         so that this module works on systems without fchdir.
100046 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
100048         Factor int-properties macros into a single file, except for
100049         glibc-related files.
100050         * lib/intprops.h: New file.
100051         * lib/getloadavg.c: Include it instead of limits.h.
100052         (INT_STRLEN_BOUND): Remove.
100053         * lib/human.c: Include intprops.h.
100054         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
100055         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
100056         302/1000.
100057         * lib/inttostr.h: Include intprops.h instead of limits.h.
100058         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
100059         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
100060         for consistency with intprops.h.
100061         (time_t_is_integer, twos_complement_arithmetic): Use them.
100062         * lib/sig2str.h: Include <signal.h>, intprops.h.
100063         (INT_STRLEN_BOUND): Remove.
100064         * lib/strftime.c (TYPE_SIGNED): Remove.
100065         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
100066         * lib/strtol.c: Adjust comments to match intprops.h.
100067         * lib/userspec.c: Include intprops.h.
100068         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
100069         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
100070         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
100071         instead of rolling our own expressions.
100072         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
100074         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
100075         instead of int.
100076         (my_strftime): Do not mishandle years close to INT_MAX, by doing
100077         the right thing even if adding 1900 would overflow.  Similarly
100078         for tm_mon + 1 and tm_yday + 1.
100079         Make %Y always equivalent to %C%y, and similarly for %G and %g.
100080         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
100081         (DO_SIGNED_NUMBER): New macro.
100082         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
100084 2005-03-07  Bruno Haible  <bruno@clisp.org>
100086         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
100088 2005-03-07  Bruno Haible  <bruno@clisp.org>
100090         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
100092 2005-03-04  Derek R. Price  <derek@ximbiot.com>
100094         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
100095         (func_import): Only replace files via --import when they have actually
100096         changed.
100098 2005-03-03  Derek R. Price  <derek@ximbiot.com>
100100         * m4/mmap-anon.m4: New file.
100101         * m4/pagealign_alloc.m4: New file.
100103 2005-03-03  Derek R. Price  <derek@ximbiot.com>
100104             Bruno Haible  <bruno@clisp.org>
100106         * modules/pagealign_alloc: New file.
100107         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
100109 2005-03-03  Derek R. Price  <derek@ximbiot.com>
100110             Bruno Haible  <bruno@clisp.org>
100112         * lib/pagealign_alloc.h: New file.
100113         * lib/pagealign_alloc.c: New file.
100115 2005-03-03  Bruno Haible  <bruno@clisp.org>
100117         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
100118         Use an all-permissive copyright notice, recommended by RMS.
100120 2005-03-02  Bruno Haible  <bruno@clisp.org>
100122         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
100123         of AIX, the replacement has to be done only after <string.h> is
100124         included, therefore not in config.h. stpncpy.h does the replacement,
100125         and stpncpy.c uses it.
100127 2005-03-02  Bruno Haible  <bruno@clisp.org>
100129         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
100130         stpncpy.c uses it.
100132 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
100134         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
100135         The workaround isn't strictly needed for POSIX conformance, and
100136         it's too much of a pain to configure and maintain.  We'll ask
100137         people to fix their kernels instead.
100138         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
100139         (NANOSLEEP_BUG_WORKAROUND): Remove.
100140         (xnanosleep): Remove the workaround.
100142 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
100144         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
100145         Reported by Derek Price.
100146         (Include): Add "timespec.h".
100148         * modules/xnanosleep (Depends-on): Remove gethrxtime.
100150 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
100152         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
100153         to detect nanosleep bug.
100155 2005-03-01  Bruno Haible  <bruno@clisp.org>
100157         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
100159 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
100161         * modules/gethrxtime: New file.
100162         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
100163         (Depends-on): Add gethrxtime.
100164         (configure.ac): Add gl_XNANOSLEEP.
100165         (Makefile.am): Remove lib_SOURCES line.
100167 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
100169         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
100170         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
100172 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
100174         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
100175         * lib/timespec.h (gettime): Return void, since it always
100176         succeeds now.  All uses changed.
100177         * lib/gettime.c (gettime): Likewise.
100178         [HAVE_NANOTIME]: Prefer nanotime.
100179         Assume gettimeofday succeeds, as POSIX requires.
100180         Assime time () succeeds, since other code already does.
100181         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
100182         (timespec_subtract): Remove.
100183         (NANOSLEEP_BUG_WORKAROUND): New constant.
100184         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
100185         things considerably.  Use it only on GNU/Linux hosts, since the
100186         workaround shouldn't be needed elsewhere.
100188 2005-02-24  Bruno Haible  <bruno@clisp.org>
100190         * modules/gettext (Files): Add m4/glibc2.m4.
100192 2005-02-24  Bruno Haible  <bruno@clisp.org>
100194         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
100195         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
100196         * m4/progtest.m4:
100197         Update from GNU gettext 0.14.2.
100198         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
100200 2005-02-24  Bruno Haible  <bruno@clisp.org>
100202         * lib/localcharset.c: Update from GNU gettext 0.14.2.
100203         * lib/config.charset: Update from GNU gettext 0.14.2.
100205 2005-02-24  Bruno Haible  <bruno@clisp.org>
100207         * lib/gettext.h: Update from GNU gettext 0.14.2.
100209 2005-02-23  Simon Josefsson  <jas@extundo.com>
100211         * m4/iconvme.m4: New file.
100213 2005-02-23  Jim Meyering  <jim@meyering.net>
100215         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
100216         change.
100217         Thanks to Bruno Haible for catching it.
100219 2005-02-22  Simon Josefsson  <jas@extundo.com>
100221         * modules/iconvme: New file.
100223         * MODULES.html.sh: Add iconvme.
100225 2005-02-22  Simon Josefsson  <jas@extundo.com>
100227         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
100229 2005-02-22  Simon Josefsson  <jas@extundo.com>
100231         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
100233 2005-02-22  Jim Meyering  <jim@meyering.net>
100235         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
100236         s/ifndef/ifdef/.
100238 2005-02-20  Neil Conway  <neilc@samurai.com>
100240         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
100241         returned by OSX/Darwin if the specified buffer is not large
100242         enough for the hostname.
100244 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100246         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
100247         pass it to _help, otherwise the latter coredumps trying to
100248         dereference state.root_argp.
100250 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
100252         * modules/chdir-long (Depends-on): Add memrchr.
100253         * modules/memrchr (Files): Add lib/memrchr.h.
100254         (Include): "memrchr.h".
100256 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
100258         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
100260 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
100262         * lib/memrchr.h: New file.
100263         * lib/chdir-long.c: Include it.
100264         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
100265         Don't bother including stddef.h.
100267 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
100269         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
100270         inclusion.
100271         Include <sys/types.h>, for dev_t.
100272         (ME_DUMMY, ME_REMOTE): Move from here....
100273         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
100274         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
100275         Dmitry V. Levin.
100276         Include mountlist.h first, to test the interface.
100278 2005-01-29  Bruno Haible  <bruno@clisp.org>
100280         * lib/progname.c (program_name): Initialize.
100281         Needed when linking statically on MacOS X.
100283 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
100285         Sync from coreutils.
100286         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
100287         (Depends-on): Add c-strtod.
100288         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
100290 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
100292         Sync from coreutils.
100293         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
100295         Remove files that are specific to coreutils.
100296         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
100298 2005-01-28  Bruno Haible  <bruno@clisp.org>
100300         * modules/javacomp: New file.
100301         * MODULES.html.sh (Java): Add javacomp.
100303 2005-01-28  Bruno Haible  <bruno@clisp.org>
100305         * m4/javacomp.m4: New file, from GNU gettext.
100307 2005-01-28  Bruno Haible  <bruno@clisp.org>
100309         * lib/javacomp.sh.in: New file, from GNU gettext.
100310         * lib/javacomp.h: New file, from GNU gettext.
100311         * lib/javacomp.c: New file, from GNU gettext.
100313 2005-01-26  Simon Josefsson  <jas@extundo.com>
100315         * lib/gai_strerror.c: Use GPL in header.
100317 2005-01-26  Bruno Haible  <bruno@clisp.org>
100319         * modules/javaexec: New file.
100320         * MODULES.html.sh (Java): Add javaexec.
100322 2005-01-26  Bruno Haible  <bruno@clisp.org>
100324         * m4/javaexec.m4: New file, from GNU gettext.
100326 2005-01-26  Bruno Haible  <bruno@clisp.org>
100328         * lib/javaexec.sh.in: New file, from GNU gettext.
100329         * lib/javaexec.h: New file, from GNU gettext.
100330         * lib/javaexec.c: New file, from GNU gettext.
100332 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100334         * modules/lchown (Depends-on): Remove lchown.h
100336 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100338         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
100339         must be defined if the header file was not found, in order
100340         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
100342 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100344         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
100345         initializers for struct pentry_state.
100346         (__argp_error): Check return value of __asprintf
100347         (__argp_failure): Translate error message
100349         * lib/argp-parse.c: Removed braces around the expansion of N_()
100351 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
100353         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
100354         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
100355         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
100356         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
100357         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
100358         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
100359         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
100360         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
100361         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
100362         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
100363         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
100364         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
100365         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
100366         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
100367         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
100368         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
100369         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
100370         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
100371         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
100372         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
100373         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
100374         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
100375         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
100376         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
100377         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
100378         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
100379         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
100380         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
100381         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
100382         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
100383         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
100384         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
100385         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
100386         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
100387         xstrtol.m4, xstrtoumax.m4, yesno.m4:
100388         Use an all-permissive copyright notice, recommended by RMS.
100390 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
100392         * modules/chdir-long (Depends-on): Remove mempcpy.
100394 2005-01-21  Jim Meyering  <jim@meyering.net>
100396         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
100397         same value as for Solaris 9.
100399         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
100400         component length.  This included changing the parameter to be
100401         of type `char *' rather than `char const *'.
100402         * lib/chdir-long.h (chdir_long): Update prototype.
100404         * lib/openat.c (fdopendir, fstatat): New functions.
100405         * lib/openat.h: Include headers required for use of DIR and struct
100406         stat.
100407         [AT_SYMLINK_NOFOLLOW]: Define.
100408         (fdopendir, fstatat): Add prototypes.
100410 2005-01-21  Bruno Haible  <bruno@clisp.org>
100412         * modules/classpath: New file.
100413         * MODULES.html.sh (Java): Add classpath.
100415 2005-01-21  Bruno Haible  <bruno@clisp.org>
100417         * lib/classpath.h: New file, from GNU gettext.
100418         * lib/classpath.c: New file, from GNU gettext.
100420 2005-01-20  Simon Josefsson  <jas@extundo.com>
100422         * modules/version-etc-fsf: New file.
100424 2005-01-20  Simon Josefsson  <jas@extundo.com>
100426         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
100427         * lib/version-etc.c: Remove version_etc_copyright.
100428         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
100429         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
100431 2005-01-20  Simon Josefsson  <jas@extundo.com>
100433         * lib/base64.h (isbase64): Add.
100435         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
100436         using a unsigned prototype, don't inline.
100437         (base64_decode): Use it.
100439 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
100441         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
100442         it.
100444 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
100446         * lib/save-cwd.c (save_cwd): Remove code to support the case
100447         where fchdir is missing or flaky.
100449 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
100451         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
100453 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
100455         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
100456         AC_LIBSOURCES now does this.
100457         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
100458         with new ullong_max module.
100460 2005-01-19  Bruno Haible  <bruno@clisp.org>
100462         * modules/sh-quote: New file.
100463         * MODULES.html.sh (Executing programs): Add sh-quote.
100465 2005-01-19  Bruno Haible  <bruno@clisp.org>
100467         * lib/sh-quote.h: New file, from GNU gettext.
100468         * lib/sh-quote.c: New file, from GNU gettext.
100470 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
100472         Merge from coreutils.
100473         * m4/ullong_max.m4: New file.
100474         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
100475         (gl_MACROS): Assume localeconv exists.
100477 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
100479         Merge changes from coreutils, as described below in several
100480         changelogs dated today.
100482         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
100483         (O_DIRECTORY): Remove; not needed here, since "." must be
100484         a directory.  All uses removed.
100485         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
100486         universal on Suns, and we also need to test for IRIX.
100487         Revamp code to use 'if' rather than '#if'.
100488         Avoid unnecessary comparison of cwd->desc to 0.
100490         * lib/utimens.c (futimens): Robustify the previous patch, by checking
100491         for known valid error numbers rather than observed invalid ones.
100493 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
100495         * modules/ullong_max: New file.
100497         * modules/chdir-long, modules/openat: New files.
100498         * modules/save-cwd (Depends-on): Depend on chdir-long.
100499         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
100501 2005-01-18  Jim Meyering  <jim@meyering.net>
100503         Merge from coreutils.
100504         * m4/chdir-long.m4, m4/openat.m4: New files.
100505         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
100506         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
100507         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
100508         is sane and DOES follow symlinks.  Besides, testing 20 different
100509         systems found no broken chown implementations.
100510         Prompted by a change in rsync's copy of this macro.
100511         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
100513         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
100515         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
100516         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
100517         NULL-means-set-to-current-time semantics.
100518         Remove temporary file immediately, rather than waiting
100519         for configure's at-exit trap code to do it.
100521 2005-01-18  Jim Meyering  <jim@meyering.net>
100523         * lib/version-etc.c (version_etc_copyright): Update copyright date.
100525         * lib/utimens.c (futimens): Account for the fact that futimes
100526         can also fail with errno == ENOSYS or errno == ENOENT.
100527         Patch from Dmitry V. Levin.
100529         Change the name of the robust chdir function from chdir to chdir_long.
100530         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
100531         (restore_cwd): Use chdir_long, not chdir.
100532         * lib/chdir-long.c: Renamed from chdir.c.
100533         * lib/chdir-long.h: Renamed from chdir.h.
100534         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
100535         Hurd.
100537 2005-01-18  Bruno Haible  <bruno@clisp.org>
100539         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
100540         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
100541         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
100542         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
100543         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
100544         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
100545         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
100546         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
100547         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
100548         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
100549         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
100550         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
100551         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
100552         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
100553         Use an all-permissive copyright notice, recommended by RMS.
100555 2005-01-18  Bob Proulx  <bob@proulx.com>
100557         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
100558         simplify offsetof() macro construct to avoid compile failure with
100559         native HP-UX 11.0 ANSI C compiler.
100561 2005-01-17  Bruno Haible  <bruno@clisp.org>
100563         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
100564         redundant because stpncpy.m4 takes care of it.
100566 2005-01-17  Bruno Haible  <bruno@clisp.org>
100568         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
100570 2005-01-17  Bruno Haible  <bruno@clisp.org>
100572         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
100573         used.
100575 2005-01-17  Bruno Haible  <bruno@clisp.org>
100577         * lib/fwriteerror.h (fwriteerror): Change specification to include
100578         fclose.
100579         * lib/fwriteerror.c: Include <stdbool.h>.
100580         (fwriteerror): At the end, close the file stream. Record whether
100581         stdout was already closed.
100583 2005-01-17  Bruno Haible  <bruno@clisp.org>
100585         * lib/execute.c (environ): Declare if needed.
100586         * lib/pipe.c (environ): Likewise.
100587         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
100589 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100591         * modules/argp: Depend on vsnprintf
100593 2005-01-10  Jim Meyering  <jim@meyering.net>
100595         * modules/closeout (Depends-on): Add atexit.
100597 2005-01-06  Bruno Haible  <bruno@clisp.org>
100599         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
100601 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100603         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
100604         definitions to be after all include files, to avoid collisions.
100605         Problem reported by Bob Proulx.
100607 2005-01-04  Jim Meyering  <jim@meyering.net>
100609         Changes imported from coreutils.
100610         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
100611         as the mkstemp template, use a temporary directory and an
100612         8.3-friendly template to avoid trouble on systems like DJGPP.
100613         Reported by Juan M. Guerrero via Stepan Kasal.
100614         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
100615         close. Remove the temporary directory right away, rather than waiting
100616         for configure's at-exit trap code to do it.
100617         Suggestion from Stepan Kasal.
100619 2005-01-01  Simon Josefsson  <jas@extundo.com>
100621         * gnulib-tool: Print #include directives when --import'ing.
100623 2004-12-28  Simon Josefsson  <jas@extundo.com>
100625         * tests/test-base64.c: Include required header files.  Remove
100626         unused variables.
100628 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
100630         * modules/error (Depends-on): Remove gettext.
100632 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
100634         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
100635         not needed.  This removes a dependency on the gettext module.
100636         [defined _LIBC]: Do not include <libintl.h>; not needed.
100638 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
100640         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
100641         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
100643 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
100645         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
100646         HAVE_DECL_STRTOLD.
100648 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
100650         * modules/getdate (Depends-on): Remove alloca-opt.
100652 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
100654         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
100656 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
100658         * lib/argp-parse.c: Include <stddef.h>.
100659         (alignof, alignto): New macros.
100660         (parser_init): Don't assume that void * is aligned sufficiently
100661         for struct option.
100663         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
100664         need to extend the stack.
100665         (YYINITDEPTH): New macro, so that the initial stack isn't overly
100666         large.
100668 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100670         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
100672 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
100674         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
100675         (2004-10-24) change.  Apparently this was a false alarm.
100677         * modules/getdate: Depend on alloca-opt, not alloca.
100679 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
100681         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
100682         Remove now-obsolete comment about AIX.
100683         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
100684         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
100685         (YYMAXDEPTH): New macro.
100687 2004-12-18  Simon Josefsson  <jas@extundo.com>
100689         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
100691 2004-12-18  Bruno Haible  <bruno@clisp.org>
100693         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
100695 2004-12-18  Bruno Haible  <bruno@clisp.org>
100697         * lib/fatal-signal.c (fatal_signals): Make non-const.
100698         (init_fatal_signals): New function.
100699         (uninstall_handlers, install_handlers): Ignore signals that were set to
100700         SIG_IGN.
100701         (at_fatal_signal): Call init_fatal_signals.
100702         (init_fatal_signal_set): Likewise. Ignore signals that were set to
100703         SIG_IGN.
100704         Reported by Paul Eggert.
100706 2004-12-18  Bruno Haible  <bruno@clisp.org>
100708         * doc/alloca.texi: New file.
100709         * doc/alloca-opt.texi: New file.
100711 2004-12-17  Jim Meyering  <jim@meyering.net>
100713         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
100714         Otherwise, install-sh could exit with improper exit status when
100715         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
100717 2004-12-16  Simon Josefsson  <jas@extundo.com>
100719         * tests/test-base64.c: Add license.
100721 2004-12-15  Stepan Kasal  <address@hidden>
100723         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
100725 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
100727         * modules/getcwd (Files): Add m4/d-ino.m4.
100728         Suggested by Mark D. Baushke.
100730 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
100732         * lib/getdate.y (textint): New member "negative".
100733         (time_zone_hhmm): New function.
100734         Expect 14 shift-reduce conflicts, not 13.
100735         (o_colon_minutes): New rule.
100736         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
100737         (yylex): Set the "negative" member of signed numbers.
100739 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
100741         * doc/getdate.texi (Time of day items, Time zone items):
100742         Describe new formats +00:00, UTC+00:00.
100744 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
100746         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
100747         spurious "-l"s.  Problem reported by Stepan Kasal.
100749 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
100751         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
100752         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
100754 2004-12-04  Simon Josefsson  <jas@extundo.com>
100756         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
100757         Vandoorselaere <yoann@prelude-ids.org>.
100759 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
100761         Changes imported from coreutils.
100762         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
100763         exist.
100764         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
100766 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
100768         Changes imported from coreutils.
100769         * lib/hard-locale.c: Assume <locale.h> exists.
100770         Include "strdup.h".
100771         (GLIBC_VERSION): New macro.
100772         (hard_locale): Assume setlocale exists.
100773         Rewrite to avoid #ifdef.
100774         Use strdup rather than malloc + strcpy.
100775         * lib/human.c: Assume <locale.h> exists.
100776         (human_readable): Assume localeconv exists.
100778 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
100780         * modules/hard-locale (Depends-on): Add strdup.
100782 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
100784         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
100785         convert T2, not T.  (Imported from libc.)
100787 2004-11-30  Simon Josefsson  <jas@extundo.com>
100789         * modules/restrict (License): Change to LGPL.
100791 2004-11-30  Simon Josefsson  <jas@extundo.com>
100793         * m4/restrict.m4: Add copyright and copying conditions.
100795 2004-11-30  Simon Josefsson  <jas@extundo.com>
100797         * m4/base64.m4: New file.
100799 2004-11-30  Simon Josefsson  <jas@extundo.com>
100801         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
100802         base64.
100804         * tests/test-base64.c: New file.
100806         * modules/base64: New file.
100808 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
100810         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
100811         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
100813         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
100815 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
100817         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
100818         (__getcwd.c): Don't restore errno; glibc doesn't.
100819         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
100820         first, falling back to our code only if its results look suspicious.
100821         Ensure that the resulting buffer is only as large as necessary.
100823         * lib/readutmp.c: Include readutmp.h first.
100824         Include <errno.h>, since readutmp.h no longer does that.
100825         * lib/readutmp.h: Don't include <errno.h>,
100826         <sys/param.h>, <time.h>; not needed to establish interface.
100827         (errno): Remove decl.
100828         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
100829         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
100830         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
100832 2004-11-28  Simon Josefsson  <jas@extundo.com>
100834         * lib/base64.h, base64.c: New file.
100836 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
100838         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
100840 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
100842         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
100843         (Depends-on): Remove pathmax, same.  Add mempcpy.
100844         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
100845         (Makefile.am): Append getcwd.h to lib_SOURCES.
100846         (Include): Add getcwd.h.
100847         (Maintainer): Change from Jim Meyering to "all, glibc",
100848         since getdate now uses intended-for-glibc code.
100849         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
100850         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
100852 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
100854         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
100855         HP's ANSI C compiler.
100856         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
100857         Declaring int functions causes warnings on some modern systems and
100858         shouldn't be needed to compile on ancient ones.
100859         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
100860         defined.
100862         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
100863         with the following changes.
100864         (__set_errno): Parenthesize properly.
100865         Include <stdbool.h>.
100866         (MIN, MAX, MATCHING_INO): New macros.
100867         (__getcwd): Define with prototype, not K&R form.
100868         Use heuristics to allocate default buffer on stack if possible.
100869         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
100870         behavior, and to avoid the PATH_MAX limit when computing
100871         ../../../../...
100872         Use MATCHING_INO to compare inode number to file.
100873         Check for arithmetic overflow in size calculations.
100874         Fix bug in reallocation of dot array that caused getcwd to fail
100875         on directories nested deeper than 75.
100876         Be more careful about saving errno on error.
100877         Do not use realloc; use only free+malloc, as this is a bit
100878         more flexible and avoids a needless copy operation.
100879         Do not inspect st_dev and st_ino for symbolic links; POSIX
100880         doesn't specify the latter.
100881         Check for closedir errors.
100882         Avoid needless casts.
100883         Use "#ifdef weak_alias" around weak_alias, to be like other
100884         glibc code.
100885         The following changes to getcwd.c have effect only when used in
100886         gnulib; they have no effect inside glibc proper.
100887         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
100888         as alloca isn't used.
100889         (alloca, __alloca): Likewise.
100890         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
100891         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
100892         unconditionally, as gnulib assumes C89 or better.
100893         Do not include <sys/param.h>.
100894         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
100895         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
100896         better.
100897         (NULL) [!defined NULL]: Remove; we assume C89 or better.
100898         Include <dirent.h> in a way that is compatible with modern Autoconf.
100899         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
100900         New macros, if not already defined.
100901         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
100902         Use "_LIBC", not "defined _LIBC", for consistency.
100903         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
100904         a mempcpy module.
100905         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
100906         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
100907         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
100908         credit only to Jim Meyering and adjust the copyright dates.
100909         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
100910         <stdlib.h>, <unistd.h>, "pathmax.h".
100911         Instead, include "xgetcwd.h" (first) and "getcwd.h".
100912         (INITIAL_BUFFER_SIZE): Remove.
100913         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
100915 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
100917         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
100918         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
100919         Use the _ONCE methods, for efficiency.
100920         Check for fcntl.h.  In test program, include <errno.h>
100921         and <fcntl.h> if available.  Remove old K&R cruft from
100922         test program.  Check for common errors in GNU/Linux,
100923         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
100924         don't do AC_LIBOBJ, as that's getcwd.m4's job.
100925         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
100926         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
100927         name accordingly.
100928         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
100929         accommodate new getcwd.c.
100930         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
100931         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
100932         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
100933         that's all we need now.
100935 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100937         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
100938         argp-parse.c depends on getopt internals, that means we should
100939         always use our getopt, to be on the safe side.
100940         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
100941         order not to spoil the result of an eventual previous invocation
100942         of gl_GETOPT_SUBSTITUTE.
100944 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100946         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
100947         redefinition warnings. To avoid them, include the defines
100948         in `#if !defined __need_getopt ... #endif'. The only place
100949         where __getopt_argv_const is used is in definitions
100950         of getopt_long and getopt_long_only below, which are as well
100951         protected by `#ifndef __need_getopt'.
100952         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
100953         __need_getopt after including <stdio.h> and <unistd.h> These
100954         headers might have defined it.
100956 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
100958         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
100960 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
100962         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
100963         (futimens): New function, which uses futimes if available.
100964         (futimens, utimens): Support timespec==NULL, with same semantics
100965         as utime and utimens.
100966         * lib/utimens.h (futimens): New decl.
100968 2004-11-23  Jim Meyering  <jim@meyering.net>
100970         * lib/getopt_.h: Remove trailing blanks.
100972 2004-11-23  Jim Meyering  <jim@meyering.net>
100974         * lib/__fpending.c: Add comment.
100976 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
100978         * modules/canonicalize (Depends-on): Add xreadlink.
100979         Problem reported by James Youngman.
100981 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
100983         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
100984         New macros.
100985         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
100986         optopt): Use them instead of invoking ## directly; otherwise, the
100987         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
100989 2004-11-19  Bruno Haible  <bruno@clisp.org>
100991         * lib/strtok_r.c: Move comments from here...
100992         * lib/strtok_r.h: ... to here.
100994 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
100996         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
100997         implementations that mishandle size_t overflow.
100999 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
101001         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
101002         might fail.  Problem reported by Yoann Vandoorselaere.
101003         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
101004         implementations that mishandle size_t overflow.
101006 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
101008         * modules/canon-host (Depends-on): Add strdup.
101010 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
101012         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
101014 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
101016         * lib/canon-host.c: Include "strdup.h".
101017         (canon_host): Use getaddrinfo if available, so that IPv6 works.
101018         Use strdup instead of malloc/strcpy to duplicate strings.
101020         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
101021         (human_space_before_unit): New constant.
101022         * lib/human.c (human_readable): Support it.
101024         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
101025         (xgetcwd): Set errno correctly when failing.
101026         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
101027         the failure is actually due to a PATH_MAX problem.
101029         Further getopt changes to make it more likely that glibc will
101030         buy the changes back.
101031         * lib/getopt.c (POSIXLY_CORRECT): New constant.
101032         (getopt): Use it, so to preserve glibc semantic
101033         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
101034         when compiling for libc.
101035         * lib/getopt_.h (__getopt_argv_const): Bring it back.
101036         (getopt_long, getopt_long_only): Use it.
101038         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
101039         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
101040         (getopt): Argv is now char * const *, as per standard.
101041         (_getopt_internal_r, _getopt_internal): Argv is now char **,
101042         not char *__getopt_argv_const *.
101043         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
101044         _getopt_long_only_r): Likewise.
101045         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
101046         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
101047         _getopt_long_r, _getopt_long_only_r): Likewise.
101048         * lib/getopt_.h (__getopt_argv_const): Remove.
101049         (getopt): Argv is now char * const *, as per standard.
101051         * lib/getdate.y (tORDINAL): New token.
101052         (day, relunit): Allow it for relative times.
101053         (relative_time_table): Use tORDINAL for ordinals.
101055 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
101057         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
101058         Document that "second" isn't allowed as an ordinal number.
101060 2004-11-16  Jim Meyering  <jim@meyering.net>
101062         * modules/closeout (Depends-on): Add fpending.
101064 2004-11-15  Jim Meyering  <jim@meyering.net>
101066         * lib/closeout.c: Include "__fpending.h" once again.
101067         Include <stdbool.h>.
101068         (close_stdout): Don't fail just because stdout was closed initially,
101069         since some programs don't write to stdout in the normal course of
101070         operation (other than --version and --help), and we don't want this
101071         function to make e.g. `touch file >&-' fail.
101072         But do fail if it was closed and someone has tried to write to it.
101073         E.g., `printf foo >&-' must fail.
101075 2004-11-13  Jim Meyering  <jim@meyering.net>
101077         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
101079 2004-11-12  Simon Josefsson  <jas@extundo.com>
101081         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
101082         small doc fix is still pending.
101084 2004-11-11  Simon Josefsson  <jas@extundo.com>
101086         * modules/strtok_r: New file.
101088         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101089         strtok_r.
101091 2004-11-11  Simon Josefsson  <jas@extundo.com>
101093         * m4/strtok_r.m4: New file.
101095         * m4/getopt.m4: Replace opterr.
101097 2004-11-11  Simon Josefsson  <jas@extundo.com>
101099         * lib/strtok_r.h, strtok_r.c: New file.
101101 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
101103         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
101104         of replacing opterr, getopt, etc.  This should handle the
101105         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
101107 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
101109         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
101110         we can stop lying to compilers about the constness of argv when we
101111         are compiled outside glibc.
101112         (getopt, getopt_long, getopt_long_only): Use it.
101113         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
101114         _getopt_internal, getopt): Likewise.
101115         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
101116         _getopt_long_only_r): Likewise.
101117         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
101118         _getopt_long_r, _getopt_long_only_r): Likewise.
101120         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
101121         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
101122         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
101123         the other external symbols.
101124         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
101125         declaration, since the above renaming now works around collisions.
101127 2004-11-11  Jim Meyering  <jim@meyering.net>
101129         * lib/linebreak.c: Remove trailing blanks.
101130         * lib/alloca_.h: Likewise.
101131         * lib/acosl.c: Likewise.
101132         * lib/euidaccess.c: Likewise.
101133         * lib/allocsa.h: Likewise.
101135 2004-11-10  Simon Josefsson  <jas@extundo.com>
101137         * m4/getaddrinfo.m4: New file.
101139 2004-11-10  Simon Josefsson  <jas@extundo.com>
101141         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
101143 2004-11-10  Simon Josefsson  <jas@extundo.com>
101145         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101146         getaddrinfo.
101148         * modules/getaddrinfo: New file.
101150 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
101152         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
101154 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
101156         * lib/mktime.c (SHR): New macro, which is a portable
101157         substitute for >> that should work even on Crays.
101158         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
101159         Problem reported by Mark D. Baushke in
101160         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
101161         * lib/getdate.y (SHR): Likewise.
101162         (tm_diff): Use it.
101163         * lib/strftime.c (SHR): Likewise.
101164         (tm_diff): Use it.
101165         * lib/quotearg.c (struct quoting_options): Use unsigned int for
101166         quote_these_too, so that right shifts are well defined.  All uses
101167         changed.
101169 2004-11-10  Jim Meyering  <jim@meyering.net>
101171         Ensure that no close failure goes unreported.
101172         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
101173         return early when it seems there's nothing to flush.
101174         Don't include __fpending.h.
101176 2004-11-10  Jim Meyering  <jim@meyering.net>
101178         * modules/closeout (Depends-on): Remove fpending.
101180 2004-11-10  Jim Meyering  <jim@meyering.net>
101182         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
101184 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
101186         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
101187         gl_FUNC_STRFTIME.
101188         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
101189         and AC_REQUIRE when possible, to avoid duplicate checks.
101190         Check for <wchar.h>.
101192 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
101194         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
101196 2004-11-09  Bruno Haible  <bruno@clisp.org>
101198         * m4/sockpfaf.m4: New file.
101200 2004-11-05  Bruno Haible  <bruno@clisp.org>
101202         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
101203         Reported by Mark D. Baushke <mdb@cvshome.org>.
101205 2004-11-04  Bruno Haible  <bruno@clisp.org>
101207         2004-09-11  Bruno Haible  <bruno@clisp.org>
101208                 * allocsa.valgrind: New file.
101209         2004-02-06  Bruno Haible  <bruno@clisp.org>
101210                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
101211                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
101212                 Reported by Christopher Seip <chris.seip@hp.com>.
101214 2004-11-04  Bruno Haible  <bruno@clisp.org>
101216         * modules/allocsa (Files): Add lib/allocsa.valgrind.
101217         (Makefile.am): Distribute it.
101219 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
101221         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
101222         with errno == ERANGE if the buffer is too small.
101223         Problem reported by Mark D. Baushke.
101225 2004-11-03  Albert Chin  <china@thewrittenword.com>
101226             Paul Eggert  <eggert@cs.ucla.edu>
101228         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
101229         equivalent, substitute $ac_type for equivalent type rather than
101230         blindly using uint32_t *always* which won't work if uint32_t is not
101231         available.  Define _UINT32_T to work around typedef of uint32_t if
101232         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
101233         2.5.1.
101235 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
101237         * m4/jm-macros.m4: Sync from coreutils.
101238         (gl_MACROS): Check for mbrlen, for pathchk.
101239         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
101241 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
101243         * lib/xreadlink.c (MAXSIZE): New macro.
101244         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
101245         size does not exceed MAXSIZE.  Avoid cast.
101246         As suggested by Mark D. Baushke in
101247         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
101248         if readlink fails with buffer size just under MAXSIZE, try again
101249         with MAXSIZE.
101251 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
101253         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
101255 2004-11-02  Derek R. Price  <derek@ximbiot.com>
101256         and  Paul Eggert  <eggert@cs.ucla.edu>
101258         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
101259         (get_date): Overparenthesize to avoid GCC warning.
101261 2004-11-02  Bruno Haible  <bruno@clisp.org>
101263         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
101264         returns void.
101266 2004-11-02  Bruno Haible  <bruno@clisp.org>
101268         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
101269         function returns void.
101271 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
101273         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
101274         fflush_unlocked, flockfile, funlockfile, funlockfile,
101275         fputs_unlocked, putc_unlocked.
101277 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
101279         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
101280         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
101281         already declared.
101283 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
101285         * modules/getdate (Files): Add doc/getdate.texi.
101286         (Depends-on): Add setenv, xalloc.
101288 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
101290         * lib/getdate.y: Add support for TZ="foo" within a date string.
101291         Fix some bugs near time_t boundaries.  Reject dates with
101292         out-of-range components, e.g., "Sept 31".
101293         Include <stdlib.h>, "setenv.h", "xalloc.h".
101294         (ISDIGIT_LOCALE): Remove; unused.
101295         Note that the TZ and time functions used here are not reentrant.
101296         (mktime_ok, get_tz): New functions.
101297         (TZBUFSIZE): New constant.
101298         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
101299         This requires that we sometimes generate our own TZ="XXX..." setting.
101301 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
101303         * doc/getdate.texi: New file, from coreutils with modifications for
101304         the new TZ parsing.
101306 2004-10-27  Derek R. Price  <derek@ximbiot.com>
101308         * lib/mktime.c (not_equal_tm): Remove redundant check.
101310 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
101312         * modules/regex (lib_SOURCES): Add regex.c.
101313         Reported by James Youngman in
101314         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
101316 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
101318         * lib/getdate.y: Use Bison 1.875 features, and some minor
101319         code cleanups.  This change does not affect semantics.
101320         Don't include <stdlib.h>; no longer needed.
101321         Don't include unlocked-io.h; only the "#if TEST" code uses
101322         stdio, and performance isn't crucial there.
101323         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
101324         Bison 1.875 features as described below.
101325         All uses of "PC." replaced by "pc->".
101326         (YYSTYPE): Add a forward declaration.
101327         (yylex, yyerror): Use full prototypes in forward decls.
101328         Use "%pure-parser" rather than obsolescent "%pure_parser".
101329         Use %parse-param and %lex-param instead of obsolescent
101330         YYPARSE_PARAM and YYLEX_PARAM.
101331         (meridian_table, month_and_day_table, time_units_table,
101332         relative_time_table, time_zone_table, military_table,
101333         lookup_zone, lookup_word, get_date):
101334         Use NULL instead of 0 where appropriate.
101335         (to_hour): Avoid abort (), to avoid a dependency on
101336         stdlib.h.
101337         (yyerror, yylex): Now accepts parser_control * arg.
101338         (main) [TEST]: Use '\0' rather than 0 for char.
101340 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
101342         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
101344 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
101346         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
101347         It's now the caller's responsibility to handle the case where
101348         !HAVE_GETPAGESIZE && !defined getpagesize.
101350         * lib/mktime.c (leapyear): Arg is long int, not int.
101352 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
101354         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
101356 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
101358         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
101359         missing.  Problem reported by James Youngman.
101361 2004-10-16  Simon Josefsson  <jas@extundo.com>
101363         * gnulib-tool: Fix comments.  Fix parse problem.
101364         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
101366 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
101368         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
101369         implementation of getopt_long.  Problem reported by Alexander Taler in:
101370         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
101372 2004-10-15  Bruno Haible  <bruno@clisp.org>
101374         * gnulib-tool: Untabify. Initialize supplied_libname.
101375         (func_usage): More homogenous output.
101376         (func_modules_transitive_closure, func_modules_to_filelist,
101377         func_emit_lib_Makefile_am): New functions.
101378         (func_import): New function, extracted from big case statement. Use
101379         func_get_license, func_modules_transitive_closure,
101380         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
101381         opt_lgpl. Don't use test -a, as it's not portable.
101382         (func_create_testdir): Use func_modules_transitive_closure,
101383         func_modules_to_filelist, func_emit_lib_Makefile_am.
101385 2004-10-15  Bruno Haible  <bruno@clisp.org>
101387         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
101389 2004-10-15  Bruno Haible  <bruno@clisp.org>
101391         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
101392         the portions belonging to each module.
101393         Suggested by Derek Robert Price <derek@ximbiot.com>.
101395 2004-10-12  Simon Josefsson  <jas@extundo.com>
101397         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
101398         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
101399         to real functions.
101401 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101403         * modules/vsnprintf: New file.
101405 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101407         * m4/vsnprintf.m4: New file.
101409 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101411         * lib/vsnprintf.h: New file.
101412         * lib/vsnprintf.c: New file.
101414 2004-10-11  Bruno Haible  <bruno@clisp.org>
101416         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
101417         vsnprintf.
101419 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
101421         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
101423 2004-10-07  Bruno Haible  <bruno@clisp.org>
101425         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
101426         fits into the provided buffer.
101428 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
101430         * lib/diacrit.c, diacrit.h: Add GPL notice.
101432         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
101433         notice.
101434         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
101435         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
101436         This avoids a potential constant-folding bug.
101438 2004-10-05  Bruno Haible  <bruno@clisp.org>
101440         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
101441         for the declaration of strsep.
101443 2004-10-05  Bruno Haible  <bruno@clisp.org>
101445         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
101447 2004-10-04  Simon Josefsson  <jas@extundo.com>
101449         * modules/memmem: New file.
101450         * tests/test-memmem.c: New file.
101451         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
101453 2004-10-04  Simon Josefsson  <jas@extundo.com>
101455         * m4/memmem.m4: New file.
101457 2004-10-04  Simon Josefsson  <jas@extundo.com>
101459         * lib/memmem.h: New file.
101460         * lib/memmem.c: New file, taken from glibc.
101462 2004-10-04  Simon Josefsson  <jas@extundo.com>
101464         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
101465         '#ifdef USE_UNLOCKED_IO'.
101467 2004-10-04  Simon Josefsson  <jas@extundo.com>
101469         * config/srclist.txt: Add memmem from glibc.
101471 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
101473         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
101475         * modules/argmatch, modules/argp, modules/closeout, modules/error,
101476         modules/exclude, modules/getdate, modules/getline,
101477         modules/getndelim2, modules/getpass, modules/getpass-gnu,
101478         modules/getusershell, modules/linebuffer, modules/md5,
101479         modules/mountlist, modules/posixtm, modules/readtokens,
101480         modules/readutmp, modules/regex, modules/sha1,
101481         modules/version-etc, modules/yesno:
101482         Remove dependency on unlocked-io.
101484 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
101486         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
101488         * m4/unlocked-io.m4: Add copyright notice.
101489         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
101491 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
101493         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
101494         * lib/xmalloc.c (xmemdup): Likewise.
101495         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
101496         XFREE): Remove these long-obsolescent macros.
101497         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
101498         * lib/xstrdup.c: Remove.
101500         * lib/regex.c (re_comp): Cast gettext return value to char *,
101501         Problem reported by Martin Neitzel via Mark D. Baushke.
101503 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
101505         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
101506         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
101507         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
101508         regex.c, sha1.c, version-etc.c, yesno.c:
101509         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
101510         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
101511         the includer's responsibility.
101513         Sync from coreutils.
101515         * lib/modechange.c (mode_compile): Don't decrement a pointer that
101516         points to the start of a string, as the C Standard says the
101517         resulting behavior is undefined.
101519         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
101520         simple -> simple_backups, numbered_existing ->
101521         numbered_existing_backups, numbered -> numbered_backups
101522         to avoid shadowing problems.  All uses changed.
101523         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
101524         * lib/backupfile.c (check_extension, numbered_backup):
101525         Rename locals to avoid shadowing 'basename'.
101526         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
101527         once.
101529         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
101530         * lib/.cvsignore: Add getopt.h.
101532 2004-10-04  Bruno Haible  <bruno@clisp.org>
101534         * modules/README: New file.
101535         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
101536         not a module.
101538 2004-10-02  Jim Meyering  <jim@meyering.net>
101540         * lib/dirfd.h, getpagesize.h: Add copyright notice.
101542 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101544         * modules/strsep: New file.
101546 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101548         * m4/strsep.m4: New file.
101550 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
101552         * lib/strsep.h: New file.
101553         * lib/strsep.c: New file.
101555 2004-10-01  Simon Josefsson  <jas@extundo.com>
101557         * lib/snprintf.c (snprintf): Handle size==0.
101559 2004-10-01  Simon Josefsson  <jas@extundo.com>
101560             Bruno Haible  <bruno@clisp.org>
101562         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
101563         (snprintf): Declare 'args'.
101565 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
101567         * lib/snprintf.c: Remove comments as to why each header is needed.
101569 2004-10-01  Bruno Haible  <bruno@clisp.org>
101571         * MODULES.html.sh: Add strsep.
101573 2004-09-30  Simon Josefsson  <jas@extundo.com>
101575         * modules/snprintf: New file.
101577 2004-09-30  Simon Josefsson  <jas@extundo.com>
101579         * m4/snprintf.m4: New file.
101581 2004-09-30  Simon Josefsson  <jas@extundo.com>
101583         * lib/snprintf.h, lib/snprintf.c: New files.
101585 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101587         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
101588         (hol_entry_help): Never translate an empty string.
101589         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
101590         * lib/argp.h (OPTION_NO_TRANS): New option.
101592 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
101594         * modules/argp (Maintainer): Replace Simon Josefsson
101595         by Sergey Poznyakoff.
101597 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
101599         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
101600         changes merged back into glibc.
101602 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
101604         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
101606 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
101608         * lib/xvasprintf.c: Include xalloc.h.
101609         (xvasprintf): Use xalloc_die, not xmalloc_die.
101611 2004-09-29  Bruno Haible  <bruno@clisp.org>
101613         * modules/alloca-opt: New file, derived from modules/alloca.
101614         * modules/allocsa: Depend on alloca-opt instead of alloca.
101615         * modules/setenv: Likewise.
101616         * modules/vasnprintf: Likewise.
101617         * MODULES.html.sh: Add alloca-opt.
101619 2004-09-28  Simon Josefsson  <jas@extundo.com>
101621         * gnulib-tool: New parameter --lgpl, to asseert that modules are
101622         LGPL, and to replace license template from GPL to LGPL.
101624 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
101626         * modules/dummy: Change license to LGPL.
101628 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
101630         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
101632 2004-09-24  Simon Josefsson  <jas@extundo.com>
101634         * modules/minmax (License): Change from GPL to LGPL.
101636 2004-09-23  Simon Josefsson  <jas@extundo.com>
101638         * gnulib-tool (--import): Typo.
101640 2004-09-23  Simon Josefsson  <jas@extundo.com>
101642         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
101644 2004-09-22  Bruno Haible  <bruno@clisp.org>
101646         * modules/*: Add 'License' field.
101647         * gnulib-tool: Accept --extract-license option.
101648         (func_get_license): New function.
101650 2004-09-21  Bruno Haible  <bruno@clisp.org>
101652         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
101653         Reported by Simon Josefsson.
101655 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
101657         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
101658         gl_AC_TYPE_LONG_LONG.
101660 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
101662         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
101664 2004-09-18  Simon Josefsson  <jas@extundo.com>
101665         and  Paul Eggert  <eggert@cs.ucla.edu>
101667         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
101668         calls with autoreconf.  Define GL_LIB.
101670 2004-09-14  Karl Berry  <karl@gnu.org>
101672         * config/srclist.txt: unsync setenv.c, sigh.
101674 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
101676         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
101677         Problem reported by Bruno Haible in:
101678         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
101680 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
101682         * config/srclist.txt: Comment out argp-pvh.c.
101684 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
101686         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
101687         in case some system header has #define'd it.  Problem reported by
101688         Soeren D. Schulze in
101689         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
101691 2004-09-09  Karl Berry  <karl@gnu.org>
101693         * regex.[ch]: delete from the root.  These were supposed to be
101694                 synced with emacs cvs, but this has not happened for about
101695                 a year, and anyway nothing else uses emacs regex.[ch].
101696                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
101697                 lib/regex[.ch] is untouched.
101699 2004-09-09  Bruno Haible  <bruno@clisp.org>
101701         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
101703 2004-09-09  Bruno Haible  <bruno@clisp.org>
101705         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
101706         modifications.
101707         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
101709 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
101711         * modules/xvasprintf: New file.
101712         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
101714 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
101716         * lib/xvasprintf.h: New file.
101717         * lib/xvasprintf.c: New file.
101718         * lib/xasprintf.c: New file.
101720 2004-09-08  Bruno Haible  <bruno@clisp.org>
101722         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
101724 2004-09-08  Bruno Haible  <bruno@clisp.org>
101726         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
101727         length is > INT_MAX.
101728         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
101729         more.
101731 2004-09-08  Bruno Haible  <bruno@clisp.org>
101733         * lib/stdint_.h: New file, taken from GNU clisp.
101735 2004-09-08  Bruno Haible  <bruno@clisp.org>
101736             Oskar Liljeblad  <oskar@osk.mine.nu>
101738         * modules/stdint: New file.
101739         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
101741 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101743         Import from coreutils.
101744         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
101745         strings on unbounded length.  alloca's performance benefits aren't
101746         that important here.
101747         (V_STRDUP): Remove.
101748         (parse_with_separator): New function, with most of the internals
101749         of the old parse_user_spec.  Allow user to omit both user and group,
101750         for compatibility with FreeBSD.
101751         Clone only the user name, not the entire spec.
101752         Do not set *uid, *gid unless entirely successful.
101753         Avoid memory leak in some failing cases.
101754         Fix regression for USER.GROUP reported by Dmitry V. Levin in
101755         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
101756         (parse_user_spec): Rewrite to use parse_with_separator.
101758 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101760         * modules/userspec: Don't depend on alloca.
101762 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101764         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
101766 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
101768         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
101769         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
101770         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
101772 2004-08-16  Simon Josefsson  <jas@extundo.com>
101774         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
101775         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
101776         Add --dry-run for --import.
101777         Let user provided command line parameters override configure.ac
101778         settings.
101780 2004-08-12  Simon Josefsson  <jas@extundo.com>
101782         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
101783         as discussed with Paul Eggert in threads rooted at
101784         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
101785         and
101786         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
101787         Before, the test was empty, and relied on ELIDE_CODE in source
101788         code.)
101789         (gl_PREREQ_GETOPT): New macro.
101790         (gl_GETOPT): Use them.
101792 2004-08-12  Simon Josefsson  <jas@extundo.com>
101794         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
101795         * lib/getopt_.h: Renamed from getopt.h.
101797 2004-08-12  Simon Josefsson  <jas@extundo.com>
101799         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
101800         Change default library name from libfoo to libgnu.
101801         Now, if you have a configure.ac that says:
101802                 gl_SOURCE_BASE(gl)
101803                 gl_M4_BASE(gl/m4)
101804                 gl_MODULES(error getopt etcetera)
101805                 gl_INIT
101806         you can import all you need by running:
101807                 ../gnulib/gnulib-tool --import
101809         * modules/getopt (Files): Rename getopt.h to getopt_.h.
101810         (Makefile.am): Rewrite, use logic from argz.
101811         (Include): Use <getopt.h> instead of "getopt.h".
101813 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
101815         * modules/argp (Files): Add m4/unlocked-io.m4.
101816         (Depends-on): Add extensions.
101818 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
101820         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
101821         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
101822         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
101823         Check for program_invocation_name, program_invocation_short_name,
101824         flockfile, funlockfile, features.h, _getopt_long_only_r.
101826 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
101828         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
101829         its complicated substitute.
101830         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
101831         and program_invocation_name.
101832         (__argp_basename) [!_LIBC]: Remove; the only use was
101833         replaced by its body.
101834         (__argp_short_program_name): Change condition from
101835         !defined __argp_short_program_name to
101836         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
101837         to match argp-namefrob.h.
101838         (__argp_failure): Don't assume strerror_r returns char *.
101839         * lib/argp-parse.c (N_): Define unconditionally.
101840         (argp_default_options): Fill out initializers with 0 to avoid
101841         gcc warnings.
101843 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
101845         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
101846         getopt1.c.
101848 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
101850         Merge from coreutils.
101852         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
101854         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
101855         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
101857 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
101859         Merge from coreutils.
101861         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
101862         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
101863         for Reliant Unix 5.43.
101865         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
101866         (union fooround): Use uintmax_t, not long int.
101867         The rest is a merge from libc:
101868         [defined _LIBC]: Include <shlib-compat.h>.
101869         (_obstack) [defined _LIBC]: Remove after 2.3.4.
101871         * lib/settime.c (settime): Recode to avoid warning with
101872         Sun Forte C 6U2.
101874         * lib/strverscmp.c: Convert to UTF-8.
101876 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
101878         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
101879         m4/uintmax_t.m4.
101881 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
101883         * modules/xalloc-die: New file.
101884         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
101886         * modules/md5 (Files): Add m4/uint32_t.m4.
101887         * modules/sha1: Renamed from modules/sha.
101888         (Files):
101889         Rename lib/sha.h to lib/sha1.h.
101890         Rename lib/sha.c to lib/sha1.c.
101891         Rename m4/sha.m4 to m4/sha1.m4.
101892         (lib_SOURCES): Likewise.
101893         (configure.ac): Rename gl_SHA to gl_SHA1.
101894         (Include): sha.h -> sha1.h.
101896 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
101898         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
101899         * m4/sha1.m4: Renamed from sha.m4.
101900         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
101902 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
101904         * lib/obstack.h (obstack_empty_p):
101905         Don't assume that chunk->contents is suitably aligned.
101906         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
101907         Likewise. Problem reported by Benno in
101908         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
101910         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
101911         readable.  This could be improved further but it'd take some work.
101913 2004-08-08  Simon Josefsson  <jas@extundo.com>
101915         * modules/xgethostname (Depends-on): Remove exit and error (not
101916         used).
101918         * modules/getpass-gnu: Add getpass.h.
101919         (Depends-on): Add stdbool.
101920         * modules/getpass: Add getpass.h.
101922 2004-08-08  Simon Josefsson  <jas@extundo.com>
101924         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
101925         Check getpass declaration.
101927 2004-08-08  Simon Josefsson  <jas@extundo.com>
101929         * lib/xgethostname.c: Don't include error.h (not used).
101931         * lib/getpass.h: Add.
101932         * lib/getpass.c: Include getpass.h first.
101934 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
101936         * lib/xalloc-die.c: New file.
101937         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
101938         All uses removed.
101939         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
101940         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
101941         xalloc-die.c.
101942         (_, N_, xalloc_die): Move to xalloc-die.c.
101943         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
101944         so that we needn't mess with xalloc_msg_memory_exhausted.
101946         * lib/sha1.h: Renamed from sha.h.
101947         (SHA1_H): Renamed from _SHA_H.
101948         (sha1_ctx): Renamed from sha_ctx.
101949         (sha1_init_ctx): Renamed from sha_init_ctx.
101950         (sha1_process_block): Renamed from sha_process_block.
101951         (sha1_process_bytes): Renamed from sha_process_bytes.
101952         (sha1_finish_ctx): Renamed from sha_finish_ctx.
101953         (sha1_read_ctx): Renamed from sha_read_ctx.
101954         (sha1_stream): Renamed from sha_stream.
101955         (sha1_buffer): Renamed from sha_buffer.
101956         * lib/sha1.c: Likewise; renamed from sha.c.
101957         Do not include <sys/types.h>.
101958         Include <stddef.h> rather than <stdlib.h>.
101960 2004-08-08  Bruno Haible  <bruno@clisp.org>
101962         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
101963         FILESYSTEM_PREFIX_LEN.
101964         * lib/progreloc.c: Likewise.
101965         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
101967 2004-08-06  Simon Josefsson  <jas@extundo.com>
101969         * modules/progname (Depends-on): Don't depend on stdbool.
101971 2004-08-06  Simon Josefsson  <jas@extundo.com>
101973         * modules/getsubopt: New file.
101974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101975         getsubopt.
101977 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101979         More merge from coreutils.
101981         * m4/utimens.m4, m4/utimecmp.m4: New files.
101982         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
101983         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
101984         prereq.m4, sha.m4: Import changes from coreutils.
101986 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101988         More merge from coreutils.
101989         * modules/raise, modules/readtokens0, modules/utimens:
101990         * modules/utimecmp, module/xnanosleep: New files.
101991         * modules/strftime: Add lib/strftime.h.
101992         Change include from <time.h> to "strftime.h".
101993         * modules/yesno: Add lib/yesno.h.
101994         * modules/backupfile: Remove lib/addext.c.
101995         * modules/euidaccess: Add stat-macros.h.
101996         * modules/canonicalize, modules/euidaccess,
101997         modules/filemode, modules/lchown, modules/makepath,
101998         modules/rmdir, modules/stat: Likewise.
102000 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102002         Merge from tar.
102003         * lib/argp-help.c (make_hol, hol_append): Don't assume that
102004         SIZE_MAX is a valid preprocessor constant.
102005         (__argp_basename): Change from "#ifndef _LIBC"
102006         to "#ifndef __argp_short_program_name", so that
102007         we don't compile these functions for tar.
102009         More merges from coreutils.
102010         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
102011         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
102012         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
102013         * lib/addext.c: Remove; no longer needed.
102014         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
102015         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
102016         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
102017         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
102018         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
102019         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
102020         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
102021         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
102022         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
102023         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
102024         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
102025         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
102026         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
102027         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
102028         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
102029         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
102030         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
102031         Import changes from coreutils.
102033 2004-08-05  Simon Josefsson  <jas@extundo.com>
102035         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
102037 2004-08-05  Simon Josefsson  <jas@extundo.com>
102039         * m4/getsubopt.m4: New file.
102041 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
102043         Merge from coreutils.
102045         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
102046         * m4/getcwd-path-max.m4: New files.
102048         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
102049         FILESYSTEM_PREFIX_LEN ->
102050         FILE_SYSTEM_PREFIX_LEN.
102051         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
102052         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
102053         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
102054         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
102056         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
102057         prerequisite modules now handle the DOS stuff.
102058         Don't check for unistd.h.
102060 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
102062         Merge from coreutils.
102064         * lib/.gdb-history: Remove; this doesn't belong here.
102066         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
102067         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
102068         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
102069         * lib/getcwd.c: New files.
102071         * lib/dirname.h: Include <stdbool.h>.
102072         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
102073         for consistency with POSIX terminology.  All uses changed.
102074         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
102075         (strip_trailing_slashes): Use bool for booleans.
102076         * lib/stripslash.c (strip_trailing_slashes): Likewise.
102078         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
102079         sometimes returns a positive errno value even when it succeeds.
102080         (print_errno_message) [!LIBC]: Fall back on strerror if
102081         __strerror_r fails.
102083         * lib/path-concat.c (mempcpy): Don't define if a system header defines
102084         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
102085         (longest_relative_suffix): New function.
102086         (path_concat): Use it.  Assume first argument is not NULL.
102087         Port to DOS.  Omit redundant separators.
102088         Report an error instead of returning NULL.
102089         Use mempcpy instead of memcpy.
102090         (xpath_concat): Remove: not declared or used.
102092         * lib/same.h: Include <stdbool.h>
102093         (same_name): Return bool, not int.
102094         * lib/same.c (same_name): Likewise.
102095         (errno): Don't declare; we assume C89 or better now.
102097         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
102098         if not already defined.
102100         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
102101         * lib/dup-safer.c (errno): Likewise.
102103 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
102105         Merge from coreutils.
102106         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
102107         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
102108         * modules/path-concat: Don't depend on strdup.
102110 2004-08-03  Simon Josefsson  <jas@extundo.com>
102112         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
102113         * lib/progname.h: Don't include stdbool.h.
102115 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
102117         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
102118         * MODULES.html.sh (func_all_modules): Remove fatal.
102120 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
102122         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
102124 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
102126         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
102127         working.
102129 2004-08-02  Simon Josefsson  <jas@extundo.com>
102131         * lib/getsubopt.h: New file, with comments from Bruno Haible.
102132         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
102133         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
102135 2004-08-01  Simon Josefsson  <jas@extundo.com>
102137         * lib/xgetdomainname.c: Include stdlib.h, for free().
102139 2004-07-19  Bruno Haible  <bruno@clisp.org>
102141         * MODULES.html.sh (func_all_modules): Add dummy.
102143 2004-07-16  Simon Josefsson  <jas@extundo.com>
102145         * modules/dummy: New file.
102147 2004-07-16  Simon Josefsson  <jas@extundo.com>
102149         * lib/dummy.c: New file.
102151 2004-07-16  Bruno Haible  <bruno@clisp.org>
102153         * lib/backupfile.h: Add extern "C" for C++.
102154         * lib/closeout.h: Likewise.
102155         * lib/copy-file.h: Likewise.
102156         * lib/findprog.h: Likewise.
102157         * lib/full-write.h: Likewise.
102158         * lib/pathname.h: Likewise.
102159         * lib/progname.h: Likewise.
102160         * lib/stpcpy.h: Likewise.
102161         * lib/stpncpy.h: Likewise.
102162         * lib/strcase.h: Likewise.
102163         * lib/strstr.h: Likewise.
102164         * lib/xalloc.h: Likewise.
102166         * lib/mbswidth.h: Add extern "C" for C++.
102167         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
102169 2004-07-13  Robert Millan  <robertmh@gnu.org>
102171         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
102173 2004-07-09  Simon Josefsson  <jas@extundo.com>
102175         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
102176         failed without this.)
102178 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
102180         * modules/chown (Files): Add lib/fchown-stub.c, since
102181         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
102183 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
102185         * lib/fchown-stub.c: New file.
102187 2004-06-24  Jim Meyering  <jim@meyering.net>
102189         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
102191 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102193         * modules/argz: Omit "#include".
102195         * MODULES.html.sh (func_all_modules): Add calloc, to match
102196         2004-06-01 addition of calloc module.
102198 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102200         * m4/argz.m4: New file, which is autoupdated from libtool.
102202 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102204         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
102205         libtool.
102207 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102209         * config/srclist-update: Don't insist on "USA." before the
102210         close-comment, as libtool omits the period and puts the */ on a
102211         separate line.
102212         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
102213         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
102215 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
102217         * modules/argz: New file.
102218         * MODULES.html.sh (func_all_modules): Add argz.
102220 2004-06-12  Jim Meyering  <jim@meyering.net>
102221         and  Paul Eggert  <eggert@cs.ucla.edu>
102223         * modules/hash (Files): Add lib/xalloc.h.
102224         * modules/pipe (Depends-on): Add wait-process.
102225         * modules/stat (Depends-on): Add xalloc.
102226         * modules/userspec (Files): Add lib/userspec.h.
102227         * modules/xstrto
102229         Upgrade from gettext-0.13.
102230         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
102231         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
102232         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
102234 2004-06-10  Jim Meyering  <jim@meyering.net>
102236         * lib/calloc.c: New file.
102238 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
102240         * lib/getdate.y (yylex): Allow space between sign and number.
102241         Problem reported by Dan Jacobson.
102243 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
102245         Merge from coreutils CVS.
102247         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
102248         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
102249         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
102250         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
102251         xstrtol.m4: Fix copyright date and/or serial number.
102253         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
102254         See if we need an fchown replacement.
102255         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
102256         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
102257         and use the replacement function if we detect either defect.
102259         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
102260         gl_UTIMECMP.
102262 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
102263         and  Jim Meyering  <jim@meyering.net>
102265         Merge from coreutils CVS.
102267         * lib/stat-macros.h: New file, with contents from file-type.h
102268         and coreutils' system.h.
102269         * lib/file-type.c: Include "stat-macros.h".
102270         * lib/file-type.h (file_type): Move all macro definitions to new file,
102271         stat-macros.h.
102273         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
102274         Wrap old code with this conditional.
102275         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
102276         function that does not dereference symlinks.
102277         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
102279         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
102280         dependency problems.
102281         (xreadlink): Accept new arg SIZE, for efficiency.
102282         All decls and uses changed.
102283         * lib/xreadlink.h: Include <stddef.h>, for size_t.
102285         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
102286         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
102288         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
102289         sysexits.h.
102291 2004-06-01  Jim Meyering  <jim@meyering.net>
102293         * m4/calloc.m4: New file.
102295 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
102297         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
102298         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
102299         Also, fix a typo in a diagnostic.
102301 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
102303         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
102304         or AC_FUNC_REALLOC.
102306 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
102308         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
102309         macros to be defined.
102310         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
102311         the allocator returns NULL because the requested size is zero.
102313 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102315         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
102316         var.  Add comment explaining why libc still defines it.  This
102317         merges the following patch from glibc:
102318         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
102320 2004-05-20  Andreas Schwab  <schwab@suse.de>
102322         * m4/free.m4: Replace free if it not known to work, not the other
102323         way round.
102325 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
102327         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
102328         present in glibc since revision 1.1 of this file.
102329         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
102330         obstack_alignment_mask, obstack_alloc, obstack_base,
102331         obstack_blank, obstack_blank_fast, obstack_chunk_size,
102332         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
102333         obstack_grow0, obstack_init, obstack_int_grow,
102334         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
102335         obstack_next_free, obstack_object_size, obstack_ptr_grow,
102336         obstack_ptr_grow_fast, obstack_room): Remove declarations of
102337         nonexistent functions.
102339 2004-05-18  Karl Berry  <karl@gnu.org>
102341         * config/srclist.txt: break link for vasnprintf.c.
102343 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
102345         Port obstack to the AS/400, where pointers are 16 bytes wide and
102346         you cannot cast an integer to a valid pointer.  This patch is
102347         currently waiting to be integrated into glibc; see
102348         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
102350         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
102351         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
102352         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
102353         (struct obstack): temp member is now a union of a pointer and
102354         an integer, instead of an integer.  All integer uses changed.
102355         This does not affect the physical layout of struct obstack,
102356         except on hosts (like the AS/400) where the size or alignment of
102357         void * is greater than that of ptrdiff_t.
102358         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
102359         __STDC__)]: Store temporary in pointer member of union, not
102360         integer member.
102361         * lib/obstack.c: Include <stddef.h>, for offsetof.
102362         (struct fooalign): Remove; it doesn't need a name.
102363         (union fooround): Change double to long double, and add void *.
102364         (DEFAULT_ALIGNMENT): Use offsetof to compute.
102365         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
102366         not a macro.  Hence the values are always int; so remove all
102367         casts-to-int in uses.
102369 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
102371         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
102372         we can get this patch merged into glibc.
102374 2004-05-17  Derek R. Price  <derek@ximbiot.com>
102375             Paul Eggert  <eggert@cs.ucla.edu>
102377         * m4/argp: Depend on alloca.
102379 2004-05-17  Derek R. Price  <derek@ximbiot.com>
102380             Paul Eggert  <eggert@cs.ucla.edu>
102382         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
102383         freecoding.
102385 2004-05-17  Bruno Haible  <bruno@clisp.org>
102387         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
102388         precision that consists of a '.' followed by an empty digit string.
102389         Patch by Tor Lillqvist <tml@iki.fi>.
102391 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
102393         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
102394         for backward compatibility with older code.  We need our own
102395         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
102396         it under some other name, and our alloca.h will define it.
102398 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
102399             Derek Price  <derek@ximbiot.com>
102401         * lib/alloca.c: Include <alloca.h>, to get our interface.
102402         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
102403         include <alloca.h> first.  Use C89 prototype for alloca; this
102404         requires including <stddef.h> for size_t.  Use extern "C" if C++.
102405         Use #elif for simplicity, since we can assume C89 now.
102406         Don't try to source the system alloca.h since it will not be found
102407         and to prevent recursively including its replacement.
102408         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
102409         * lib/regex.c: Likewise.
102411 2004-05-16  Derek Price  <derek@ximbiot.com>
102412             Paul Eggert  <eggert@cs.ucla.edu>
102414         getline cleanup.  This changes the getndelim2 API: both order of
102415         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
102416         no delimiter).
102418         * lib/getline.c: Don't include stddef.h or stdio.h, since our
102419         interface does that.
102420         (getline): Always use getdelim, so that we don't have two
102421         copies of this code.
102422         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
102423         if available.
102424         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
102425         (GETNDELIM2_MAXIMUM): New macro.
102426         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
102427         instead of the old practice of delim2==0.  All callers changed.
102428         Return -1 on overflow, instead of returning junk.
102429         Do not set *linesize unless allocation succeeds.
102430         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
102431         that we include sys/types.h.
102432         * lib/getnline.h: Likewise.
102433         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
102434         (getndelim2): Reorder arguments.
102435         * lib/getnline.c (getnline, getndelim):
102436         Don't discard the NMAX argument.
102437         (getnline): Invoke getndelim, to avoid code duplication.
102438         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
102439         of (size_t) -1 by callers of the getnline family.
102441 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102443         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
102444         Check for gettimeofday.
102445         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
102446         Check for settimeofday, stime.
102448 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102450         * lib/nanosleep.c (suspended): Change its type from int to
102451         sig_atomic_t volatile.
102452         (first_call): Make it private to rpl_nanosleep, and have it
102453         be zero initially as that's a bit faster.
102454         (my_usleep): Round up fractional times instead of truncating them,
102455         as this is the usual meaning for 'sleep'.
102457         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
102458         doesn't work.
102459         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
102460         (ENOSYS): Define if not defined.
102461         (settime): Fall back on stime if it exists and settimeofday fails.
102462         But don't bother with fallbacks if a method fails with errno == EPERM.
102464 2004-05-11  Jim Meyering  <jim@meyering.net>
102466         Prior to this change, the save_cwd caller required read access to the
102467         current directory on most systems (ones with the fchdir function).
102469         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
102470         fails, try write-only, and finally, resort to using xgetcwd.
102472 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
102474         * lib/obstack.c, obstack.h: Import changes from libc.
102476 2004-04-28  Bruno Haible  <bruno@clisp.org>
102478         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
102479         also implicitly appends .exe to executables.
102480         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
102481         accepts Windows pathnames.
102482         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
102483         Treat Cygwin like Windows, since it now accepts Windows pathnames.
102484         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
102485         Treat Cygwin like Windows, since it now accepts Windows pathnames.
102486         Reported by Derek Robert Price <derek@ximbiot.com>.
102488 2004-04-21  Karl Berry  <karl@gnu.org>
102490         * config/srclist.txt (localcharset.c): break sync.
102492 2004-04-20  Paul Eggert  <eggert@twinsun.com>
102494         * m4/host-os.m4: Add a copyright notice.
102496 2004-04-20  Jim Meyering  <jim@meyering.net>
102498         Change UTILS_ to gl_ in AC_DEFINE'd names.
102499         Change utils_- and jm_-prefixed variables, too.
102500         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
102501         UTILS_FUNC_MKDIR_TRAILING_SLASH.
102502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
102504         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
102505         Don't emit trailing blanks.
102506         Also rename jm_-prefixed variables to have gl_ prefix.
102508         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
102509         Also rename jm_-prefixed variables to have gl_ prefix.
102511         * m4/jm-macros.m4: Reflect the renamings.
102512         * m4/prereq.m4: Likewise.
102514 2004-04-20  Jim Meyering  <jim@meyering.net>
102516         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
102517         memory.
102519 2004-04-20  Jim Meyering  <jim@meyering.net>
102520             Bruno Haible  <bruno@clisp.org>
102522         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
102523         memory when realloc fails.
102525 2004-04-19  Jim Meyering  <jim@meyering.net>
102527         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
102528         now that readutmp.c may call `free (0)'.
102530 2004-04-19  Bruno Haible  <bruno@clisp.org>
102532         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
102533         * m4/inttypes_h.m4: Likewise.
102534         * m4/stdint_h.m4: Likewise.
102535         * m4/intmax_t.m4: Likewise.
102536         * m4/uintmax_t.m4: Likewise.
102538 2004-04-18  Jim Meyering  <jim@meyering.net>
102540         * m4/prereq.m4: Don't forbid jm_ prefix.
102542         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
102543         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
102544         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
102545         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
102546         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
102547         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
102548         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
102549         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
102550         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
102551         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
102552         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
102553         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
102554         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
102555         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
102556         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
102557         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
102558         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
102559         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
102560         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
102562 2004-04-18  Jim Meyering  <jim@meyering.net>
102564         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
102565         failure, don't leak memory and do call END_UTMP_ENT.
102567 2004-04-16  Jim Meyering  <jim@meyering.net>
102569         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
102570         coreutils' stat program.
102571         (gl_PREREQ): Don't require jm_PREREQ_STAT.
102573 2004-04-11  Paul Eggert  <eggert@twinsun.com>
102575         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
102576         C89.
102577         (CHAR_BIT): Remove, since we assume C89.
102578         Include <stdint.h> if available, as per current Autoconf CVS advice.
102580 2004-03-31  Jim Meyering  <jim@meyering.net>
102582         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
102583         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
102584         * m4/xalloc.m4: Likewise.
102586 2004-03-30  Paul Eggert  <eggert@twinsun.com>
102588         Merge from coreutils.
102590         * m4/inttostr.m4: New file.
102591         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
102592         Require AM_STDBOOL_H and gl_TIMESPEC instead.
102593         Require gl_CLOCK_TIME.
102594         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
102596 2004-03-30  Paul Eggert  <eggert@twinsun.com>
102598         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
102599         not bool, to be more consistent with Unix conventions.
102600         Suggested by Bruno Haible.
102602         Merge from coreutils.
102604         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
102605         * lib/umaxtostr.c: New files.
102607         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
102608         the usual <time.h> dance.
102609         (get_date): Change signature to support fractional time stamps.
102610         All callers changed.
102611         * lib/getdate.y: Include "getdate.h" first, as we can now
102612         assume C89 and don't need to worry about 'const'.
102613         Similarly, include "unlocked-io.h" near start, not in middle.
102614         Include <limits.h>.
102615         (textint.value): Use long int rather than int.
102616         (textint.digits): Use size_t rather than int.
102617         (BILLION, LOG10_BILLION): New constants.
102618         (parser_control): New member rel_ns.  Members day_ordinal,
102619         time_zone, month, day, hour, minutes, rel_year, rel_month,
102620         rel_day, rel_hour, rel_minutes, rel_seconds
102621         are now long int, not int.  Member seconds is now struct timespec,
102622         not int.  New member timespec_seen.  Members dates_seen, days_seen,
102623         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
102624         not int.
102625         (%union.intval): Now long int, not int.
102626         New member timespec.
102627         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
102628         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
102629         (spec): Now is a timespec or an item list.
102630         (timespec, items): New nonterminals.
102631         (time, rel, relunit, number, get_date):
102632         Add support for fractional seconds.
102633         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
102634         (gmtime, localtime, mktime): Remove decls; not needed with C89.
102635         (to_hour): First arg is now long int, not int.
102636         (to_year): Returns long int, not int.
102637         Don't treat year -70 like 70.
102638         (tm_diff): Returns long int, not int.
102639         (lookup_word): Use bool instead of int when appropriate.
102640         (yylex): Use size_t for count, not int.
102641         Detect overflow when parsing large integer constants.
102642         Add support for fractions.
102643         (get_date): Make pointers 'const' if possible.
102644         Use more-portable code to detect integer overflow.
102645         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
102646         Don't use ctime; it's not reliable if the year has >4 digits.
102648         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
102649         This is for compatibility with BSD.
102651         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
102652         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
102653         From coreutils' system.h.
102655         * lib/userspec.c: Don't include "posixver.h".
102656         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
102657         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
102658         compatible extension.  Simplify code by removing a boolean int
102659         that was always nonzero if a string was nonnull.
102661 2004-03-30  Jim Meyering  <jim@meyering.net>
102663         Merge from coreutils.
102665         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
102666         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
102667         on some systems one must include <grp.h> before it.
102668         Reported by Christian Krackowizer.
102670 2004-03-30  Jim Meyering  <jim@meyering.net>
102672         Merge from coreutils.
102674         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
102676         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
102677         an empty input stream.
102679         * lib/readtokens.c: Include <stdbool.h>.
102680         (readtoken): Use `size_t' rather than int/long.
102681         All callers adjusted.
102682         Use `bool' rather than `int' where appropriate.
102683         Use memset rather than an explicit loop.
102684         Use x2nrealloc rather than xrealloc.
102685         Allow the use of `\0' as a delimiter.
102686         (readtokens): Likewise.
102687         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
102689 2004-03-30  Jim Meyering  <jim@meyering.net>
102691         * m4/realloc.m4: Remove file, since now it does no more than
102692         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
102693         the `configure.ac' section of module/realloc.
102694         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
102696 2004-03-30  Bruno Haible  <bruno@clisp.org>
102698         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
102699         nonnull.
102701 2004-03-29  Paul Eggert  <eggert@twinsun.com>
102703         Merge changes to getloadavg.c from coreutils and Emacs.
102705         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
102706         Define to an expression, not to the empty string.
102707         Include cloexec.h and xalloc.h.
102708         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
102709         Use set_cloexec_flag rather than rolling our own.
102710         * lib/cloexec.c, lib/cloexec.h: New files.
102712 2004-03-29  Paul Eggert  <eggert@twinsun.com>
102714         * m4/cloexec.m4: New file.
102716 2004-03-18  Paul Eggert  <eggert@twinsun.com>
102718         * lib/getopt.h: Sync with libc CVS.
102720 2004-03-18  Paul Eggert  <eggert@twinsun.com>
102721             Bruno Haible  <bruno@clisp.org>
102723         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
102724         mbswidth.
102726 2004-03-18  Paul Eggert  <eggert@twinsun.com>
102727             Bruno Haible  <bruno@clisp.org>
102729         * lib/mbswidth.h: Include <wchar.h> only if
102730         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
102731         <wchar.h>.
102732         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
102734 2004-03-09  Paul Eggert  <eggert@twinsun.com>
102736         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
102737         Sync with libc CVS.
102738         * lib/getopt_int.h: New file, also synced from libc.
102740 2004-03-09  Paul Eggert  <eggert@twinsun.com>
102742         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
102743         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
102744         Bring back getopt.c, getopt.h, getopt1.c.
102746 2004-03-07  Paul Eggert  <eggert@twinsun.com>
102748         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
102749         All uses changed.  Check for sa_sigaction member; this fixes
102750         a bug first reported by Jason Andrade in
102751         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
102753 2004-03-07  Paul Eggert  <eggert@twinsun.com>
102755         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
102756         '#if' expressions.  Unlike the code it replaces, it does not
102757         depend on (defined _SC_PAGESIZE).  However, it does depend on
102758         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
102759         first reported by Jason Andrade in
102760         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
102762 2004-02-25  Simon Josefsson  <jas@extundo.com>
102764         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
102766 2004-02-25  Simon Josefsson  <jas@extundo.com>
102768         * lib/strdup.h: New file.
102769         * lib/strdup.c: Include it.
102770         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
102771         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
102773 2004-02-23  Karl Berry  <karl@gnu.org>
102775         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
102776         (from fencepost.gnu.org:/gd/gnuorg).
102778 2004-02-23  Karl Berry  <karl@gnu.org>
102780         * config/srclistvars.sh (GNUORG) [karl]: redefine.
102781         * config/srclist.txt: add maintain/standards documents.
102783 2004-02-18  Bruno Haible  <bruno@clisp.org>
102785         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
102786         Reported by Derek Robert Price <derek@ximbiot.com>.
102788 2004-02-16  Karl Berry  <karl@gnu.org>
102790         * config/mkinstalldirs, install-sh: update from automake.
102792 2004-02-06  Karl Berry  <karl@gnu.org>
102794         * m4/po.m4: update from gettext 0.14.1.
102796 2004-02-06  Karl Berry  <karl@gnu.org>
102798         * lib/config.charset: update from gettext 0.14.1.
102800 2004-02-05  Paul Eggert  <eggert@twinsun.com>
102802         Add comments and code, prompted by suggestions from Bruno Haible
102803         for sh-quote.
102804         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
102805         describing the enum quoting_style values.
102806         * lib/quotearg.c (quotearg_alloc): New function.
102807         (quotearg_buffer_restyled): Treat lone { and } as special.
102808         Treat = as special.  Work around bug with older shells
102809         that "see" a '\' that is really the 2nd byte of a multibyte char.
102810         Quote empty string with shell_quoting_style.
102812 2004-02-03  Bruno Haible  <bruno@clisp.org>
102814         * m4/pipe.m4: New file, from GNU gettext.
102816 2004-02-03  Bruno Haible  <bruno@clisp.org>
102818         * lib/pipe.h: New file, from GNU gettext.
102819         * lib/pipe.c: New file, from GNU gettext.
102821 2004-01-27  Bruno Haible  <bruno@clisp.org>
102823         * m4/execute.m4: New file, from GNU gettext.
102825 2004-01-27  Bruno Haible  <bruno@clisp.org>
102827         * lib/execute.h: New file, from GNU gettext.
102828         * lib/execute.c: New file, from GNU gettext.
102829         * lib/w32spawn.h: New file, from GNU gettext.
102831 2004-01-24  Paul Eggert  <eggert@twinsun.com>
102833         Merge from diffutils.
102835         * lib/file-type.c (file_type): Add typed memory objects.
102836         * lib/file-type.h (S_TYPEISTMO): New macro.
102838         * lib/c-stack.h (c_stack_action): Remove argv argument.
102839         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
102840         (die): Don't calculate message unless segv_action returns.
102841         (get_stack_location, min_address_from_argv, max_address_from_argv,
102842         volatile stack_base, volatile_stack_size): Remove.
102843         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
102844         that every segmentation violation is a stack overflow.  (Ouch!)
102845         See Debian bug 136249 (still outstanding) for more info about why
102846         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
102848 2004-01-24  Paul Eggert  <eggert@twinsun.com>
102850         Exit-status fix from coreutils.
102852         Use exit_failure consistently in place of EXIT_FAILURE,
102853         so that program exit statuses are consistent on failure.
102855         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
102856         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
102857         * lib/argmatch.h: Comment fix to match the above.
102858         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
102859         Now a macro referring to exit_failure, instead of a separate
102860         variable.  Include "exitfail.h" to get it.
102861         * lib/xstrtol.h: Include "exitfail.h".
102862         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
102864         * lib/long-options.c (parse_long_options): Use prototype
102865         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
102866         for clarity.
102868 2004-01-21  Jim Meyering  <jim@meyering.net>
102870         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
102871         so as not to conflict with a different-sized __mktime_internal
102872         function in GNU libc.
102873         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
102874         Problem building statically-linked `ls' reported by Michael Brunnbauer.
102876 2004-01-20  Karl Berry  <karl@gnu.org>
102878         * config/config.guess: update from config.
102880         * config/srclistvars.sh: GNUWWWLICENSES for karl.
102882 2004-01-20  Bruno Haible  <bruno@clisp.org>
102884         Safer stack allocation.
102885         * lib/setenv.c: Include allocsa.h.
102886         (alloca): Remove fallback definition.
102887         (freea): Remove macro.
102888         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
102889         instead of freea.
102891 2004-01-20  Bruno Haible  <bruno@clisp.org>
102893         * m4/eealloc.m4: New file, from GNU gettext.
102895 2004-01-20  Bruno Haible  <bruno@clisp.org>
102897         * m4/allocsa.m4: New file, from GNU gettext.
102899 2004-01-20  Bruno Haible  <bruno@clisp.org>
102901         * lib/xallocsa.h: New file, from GNU gettext.
102902         * lib/xallocsa.c: New file, from GNU gettext.
102904 2004-01-20  Bruno Haible  <bruno@clisp.org>
102906         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
102908 2004-01-20  Bruno Haible  <bruno@clisp.org>
102910         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
102911         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
102912         specially.
102914 2004-01-20  Bruno Haible  <bruno@clisp.org>
102916         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
102917         patch.
102919 2004-01-20  Bruno Haible  <bruno@clisp.org>
102921         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
102923 2004-01-20  Bruno Haible  <bruno@clisp.org>
102925         * lib/eealloc.h: New file.
102927 2004-01-20  Bruno Haible  <bruno@clisp.org>
102929         * lib/binary-io.h: Avoid warnings on Cygwin.
102931 2004-01-20  Bruno Haible  <bruno@clisp.org>
102933         * lib/allocsa.h: New file, from GNU gettext.
102934         * lib/allocsa.c: New file, from GNU gettext.
102936 2004-01-18  Karl Berry  <karl@gnu.org>
102938         * doc/gpl.texi, doc/lgpl.texi: new files.
102940 2004-01-18  Karl Berry  <karl@gnu.org>
102942         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
102943         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
102945 2004-01-15  Paul Eggert  <eggert@twinsun.com>
102947         Merge from coreutils.
102949         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
102950         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
102951         (gl_DEFAULT_POSIX2_VERSION): Move
102952         the documentation from 'configure' into 'config.hin',
102953         so that 'configure --help' isn't burdened by it and
102954         we don't have to worry about its formatting there.
102955         Reword the documentation so that it's more succinct
102956         and can be run together into a single paragraph.
102957         * m4/same.m4 (gl_SAME): Check for pathconf.
102959 2004-01-15  Paul Eggert  <eggert@twinsun.com>
102961         Merge from coreutils.
102963         * lib/posixver.c: Include posixver.h.
102965         * lib/same.c: Include <stdbool.h>, <limits.h>.
102966         (_POSIX_NAME_MAX): Define if not defined.
102967         (MIN): New macro.
102968         (same_name): If file names are silently truncated, report
102969         that the file names are the same if they are the same after
102970         the silent truncation.
102972         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
102973         conversion function.
102974         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
102975         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
102976         longer needed.
102978 2004-01-15  Jim Meyering  <jim@meyering.net>
102980         Merge from coreutils.
102982         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
102983         if no library is required.
102984         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
102985         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
102986         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
102987         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
102988         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
102989         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
102990         value, $ac_cv_search_crypt, if it's "none required".
102991         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
102992         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
102993         not gl_FUNC_GETLOADAVG.
102994         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
102995         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
102997 2004-01-15  Jim Meyering  <jim@meyering.net>
102999         Merge from coreutils.
103001         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
103002         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
103003         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
103005         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
103006         optional configure-time default.
103008         * lib/version-etc.c (version_etc_copyright): Update copyright date.
103010         * lib/xreadlink.c (xreadlink): Correct outdated comment.
103012 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
103014         Merge from coreutils.
103016         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
103017         value, $ac_cv_search_nanosleep, if it's "none required".
103019 2004-01-14  Paul Eggert  <eggert@twinsun.com>
103021         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
103022         with like-named macro in fnmatch.c.
103023         (EXT): Use an internal constant instead.
103025         Merge fnmatch patches from glibc.
103026         * lib/fnmatch.c (mbsinit): Remove define.
103027         Add libc_hidden_ver (__fnmatch, fnmatch).
103028         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
103029         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
103031 2004-01-14  Karl Berry  <karl@gnu.org>
103033         * config/install-sh: update from automake.
103035 2004-01-13  Karl Berry  <karl@gnu.org>
103037         * config/install-sh: update from automake.
103039 2004-01-09  Karl Berry  <karl@gnu.org>
103041         * config/install-sh: update from automake.
103043 2004-01-05  Karl Berry  <karl@gnu.org>
103045         * config/config.{sub,guess}: update from config.
103047 2003-12-31  Karl Berry  <karl@gnu.org>
103049         * config/depcomp: update from automake.
103051 2003-12-14  Karl Berry  <karl@gnu.org>
103053         * lib/config.charset: update from gettext-runtime.
103055 2003-12-03  Paul Eggert  <eggert@twinsun.com>
103057         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
103058         Bug reported by Alfred M. Szmidt.
103060 2003-12-03  Bruno Haible  <bruno@clisp.org>
103062         * m4/gettext.m4: Upgrade from gettext-0.13.
103063         * m4/po.m4: Upgrade from gettext-0.13.
103064         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
103065         * m4/intmax.m4: New file, from gettext-0.13.
103066         * m4/printf-posix.m4: New file, from gettext-0.13.
103068 2003-11-29  Karl Berry  <karl@gnu.org>
103070         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
103072 2003-11-25  Paul Eggert  <eggert@twinsun.com>
103073             Bruno Haible  <bruno@clisp.org>
103075         * lib/printf-parse.h: Don't include sys/types.h.
103076         (ARG_NONE): New macro.
103077         (char_directive): Change type of *arg_index fields to size_t.
103078         * lib/printf-parse.c: Don't include sys/types.h.
103079         (SSIZE_MAX): Remove macro.
103080         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
103081         Remove unnecessary overflow check.
103082         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
103083         fields.
103085 2003-11-25  Bruno Haible  <bruno@clisp.org>
103087         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
103089 2003-11-25  Bruno Haible  <bruno@clisp.org>
103091         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
103092         gt_TYPE_SSIZE_T.
103094 2003-11-24  Paul Eggert  <eggert@twinsun.com>
103096         * modules/alloca: Remove dependency on xalloc.
103098 2003-11-24  Paul Eggert  <eggert@twinsun.com>
103100         * lib/alloca.c: Remove dependency on xalloc module.
103101         (xalloc_die): Remove.
103102         (memory_full) [!defined emacs]: New macro.
103103         [!defined emacs]: Don't include xalloc.h.
103104         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
103105         address arithmetic overflows.  Change datatypes a bit to avoid
103106         unnecessary casts.
103108 2003-11-22  Jim Meyering  <jim@meyering.net>
103110         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
103111         s/size/size_t/.
103113 2003-11-21  Karl Berry  <karl@gnu.org>
103115         * config/config.{sub,guess}: update from config.
103117 2003-11-18  Karl Berry  <karl@gnu.org>
103119         * config/config.{sub,guess}: update from config.
103121         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
103123 2003-11-17  Paul Eggert  <eggert@twinsun.com>
103125         * README: Mention that S+T cannot overflow if S is the size of
103126         an existing object and T is sufficiently small.
103128 2003-11-17  Jim Meyering  <jim@meyering.net>
103130         On systems without utime and without a utimes function capable of
103131         dealing with a NULL struct utimbuf* argument, this utime replacement
103132         could -- in unusual circumstances -- leak a file descriptor.
103133         * lib/utime.c: Include <unistd.h> and <errno.h>.
103134         (utime_null): Be sure to close `fd' and to preserve errno.
103135         Reported by Geoff Collyer via Arnold Robbins.
103137 2003-11-17  Bruno Haible  <bruno@clisp.org>
103139         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
103140         (Depends-on): Add xsize.
103142 2003-11-17  Bruno Haible  <bruno@clisp.org>
103144         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
103146 2003-11-17  Bruno Haible  <bruno@clisp.org>
103148         * lib/vasnprintf.c (alloca): Remove fallback definition.
103149         (freea): Remove definition.
103150         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
103151         Reported by Paul Eggert.
103153 2003-11-16  Paul Eggert  <eggert@twinsun.com>
103154             Bruno Haible  <bruno@clisp.org>
103156         Protect against address arithmetic overflow.
103157         * lib/printf-args.h: Include stddef.h.
103158         (arguments): Change type of field 'count' to size_t.
103159         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
103160         'unsigned int' where appropriate.
103161         * lib/printf-parse.h: Include sys/types.h.
103162         (char_directive): Change type of *arg_index fields to ssize_t.
103163         (char_directives): Change type of fields 'count', max_*_length to
103164         size_t.
103165         * lib/printf-parse.c: Include sys/types.h and xsize.h.
103166         (SSIZE_MAX): Define fallback value.
103167         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
103168         instead of 'int' where appropriate. Check a_allocated, d_allocated
103169         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
103170         * lib/vasnprintf.c: Include xsize.h.
103171         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
103172         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
103173         overflow. Avoid wraparound when converting a width or precision from
103174         decimal to binary.
103176 2003-11-16  Bruno Haible  <bruno@clisp.org>
103178         Update from GNU gettext.
103179         * lib/printf-parse.c: Generalize to it can be compiled for wide
103180         strings.
103181         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
103182         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
103183         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
103184         SNPRINTF): New macros.
103185         Don't include <alloca.h> if the file is used inside libintl.
103186         (local_wcslen): New function, for Solaris 2.5.1.
103187         (VASNPRINTF): Use it instead of wcslen.
103189 2003-11-16  Bruno Haible  <bruno@clisp.org>
103191         * lib/xsize.h (xmax): New function.
103192         (xsum, xsum3, xsum4): Declare as "pure" functions.
103194 2003-11-12  Paul Eggert  <eggert@twinsun.com>
103196         * modules/xalloc (Files): Undo latest change, since xalloc.h
103197         no longer needs SIZE_MAX or PTRDIFF_MAX.
103199 2003-11-12  Paul Eggert  <eggert@twinsun.com>
103201         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
103202         gl_PTRDIFF_MAX.
103204 2003-11-12  Paul Eggert  <eggert@twinsun.com>
103206         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
103207         "return", to pacify some unknown compiler.  Problem reported
103208         by Joerg Schilling.
103210 2003-11-12  Paul Eggert  <eggert@twinsun.com>
103212         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
103213         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
103214         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
103215         heuristic is just as accurate as far as we know, and it removes a
103216         dependency on size_max.m4 and ptrdiff_max.m4.
103218 2003-11-11  Bruno Haible  <bruno@clisp.org>
103220         * modules/xsize (Files): Add m4/size_max.m4.
103221         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
103223 2003-11-11  Bruno Haible  <bruno@clisp.org>
103225         * m4/size_max.m4: New file.
103226         * m4/ptrdiff_max.m4: New file.
103227         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
103228         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
103229         (gl_XALLOC): Invoke it.
103231 2003-11-11  Bruno Haible  <bruno@clisp.org>
103233         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
103234         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
103235         defined.
103237 2003-11-10  Paul Eggert  <eggert@twinsun.com>
103239         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
103240         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
103241         rejected some allocations of exactly SIZE_MAX - 2 bytes.
103242         From Bruno Haible.
103243         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
103244         not (size_t) -1, since it's defined here.
103246 2003-11-09  Karl Berry  <karl@gnu.org>
103248         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
103250 2003-11-06  Paul Eggert  <eggert@twinsun.com>
103252         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
103253         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
103254         Reject sizes of exactly SIZE_MAX bytes.
103255         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
103256         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
103258 2003-11-05  Bruno Haible  <bruno@clisp.org>
103260         * lib/xsize.h: Include limits.h, to avoid a possible collision with
103261         SIZE_MAX defined in <limits.h> on Solaris.
103263 2003-11-04  Jim Meyering  <jim@meyering.net>
103265         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
103266         variable names, rather than @VAR@.
103267         * modules/poll: Likewise.
103269 2003-11-04  Bruno Haible  <bruno@clisp.org>
103271         * modules/xsize: New file.
103272         * modules/linebreak: Depend on xsize.
103273         * MODULES.html.sh (func_all_modules): Add xsize.
103275 2003-11-04  Bruno Haible  <bruno@clisp.org>
103277         * m4/xsize.m4: New file.
103279 2003-11-04  Bruno Haible  <bruno@clisp.org>
103281         * lib/xsize.h: New file.
103282         * lib/linebreak.c: Include xsize.h.
103283         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
103284         argument for overflow.
103285         Suggested by Paul Eggert.
103287 2003-11-03  Karl Berry  <karl@gnu.org>
103289         * config/config.{guess,sub}: update from config.
103291 2003-11-03  Jim Meyering  <jim@meyering.net>
103293         * modules/userspec (lib_SOURCES): Add userspec.h.
103294         (Include): Add "userspec.h".
103295         Improve description.
103297 2003-11-03  Jim Meyering  <jim@meyering.net>
103299         * lib/userspec.c: Include "userspec.h".
103300         * lib/userspec.h: New file.
103302 2003-11-03  Bruno Haible  <bruno@clisp.org>
103304         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
103306 2003-11-03  Bruno Haible  <bruno@clisp.org>
103308         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
103309         available, to avoid (extremely rare) race condition.
103310         Suggested by Paul Eggert.
103312 2003-11-02  Karl Berry  <karl@gnu.org>
103314         * config/srclist.txt (vasprintf.c): sync broken, sigh.
103316 2003-10-31  Paul Eggert  <eggert@twinsun.com>
103318         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
103319         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
103320         (read_filesystem_list): Set and use me_type_malloced.
103321         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
103322         whatever the type happens to be), for brevity and consistency.
103323         Check for size calculation overflow on Alphas running OSF/1.
103325 2003-10-31  Jim Meyering  <jim@meyering.net>
103327         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
103329         * lib/linebuffer.c: Include <string.h> for declaration of memset.
103331 2003-10-30  Paul Eggert  <eggert@twinsun.com>
103332             Bruno Haible  <bruno@clisp.org>
103334         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
103335         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
103337 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
103339         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
103340         netbsd*-gnu*.  Suggested by Robert Millan.
103342 2003-10-29  Paul Eggert  <eggert@twinsun.com>
103344         * modules/group-member: Depend on stdbool.
103346 2003-10-29  Paul Eggert  <eggert@twinsun.com>
103348         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
103350 2003-10-29  Paul Eggert  <eggert@twinsun.com>
103352         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
103353         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
103354         after the 'gnu' in these cases.  This fixes some bugs in the
103355         previous change, and is based on suggestions by Robert Millan.
103357 2003-10-29  Paul Eggert  <eggert@twinsun.com>
103359         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
103360         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
103361         no longer needed.
103362         * lib/quotearg.c (quotearg_n_options): Use it.
103363         * lib/group-member.c: Include <stdbool.h>.
103364         (free_group_info): Arg is now const *; don't free arg.
103365         (get_group_info): Now returns bool and accepts struct group_info *,
103366         rather than returning a malloc'ed struct group_info *.
103367         All uses changed.  Check for overflow in internal size calculation.
103369         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
103370         rather than xmalloc/xrealloc.
103371         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
103372         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
103373         conformance bug: the old code used a pointer after freeing the
103374         storage that it addressed.
103375         * lib/hash.c (hash_initialize): Simplify the code by using
103376         xalloc_oversized rather than doing it by hand.
103377         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
103378         the buffer preserved.  Use free and xmalloc instead.
103379         * lib/quotearg.c (quotearg_n_options): Likewise.
103380         Use a simpler test for size overflow.  Don't use xalloc_oversized
103381         because unsigned int might be wider than size_t (!); this suggests
103382         that we should switch from unsigned int to size_t for slot numbers.
103384 2003-10-28  Paul Eggert  <eggert@twinsun.com>
103386         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
103387         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
103388         NetBSD kernels.  Requested by Richard Stallman.
103390 2003-10-27  Paul Eggert  <eggert@twinsun.com>
103392         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
103393         to allocate the returned structure.  Do not allocate a subarray,
103394         as x2nrealloc will do that.
103395         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
103396         instead of xnrealloc.
103397         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
103399 2003-10-27  Bruno Haible  <bruno@clisp.org>
103401         * lib/stdbool_.h: Better support for BeOS.
103403 2003-10-26  Paul Eggert  <eggert@twinsun.com>
103405         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
103406         now uses inline.
103408 2003-10-26  Paul Eggert  <eggert@twinsun.com>
103410         * lib/xalloc.h (xalloc_oversized): New static inline function, for
103411         callers that want to do their own size-overflow checking.  Include
103412         <stdbool.h>, since xalloc_oversized returns bool.
103413         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
103414         to use xalloc_oversized.
103416         Add two functions x2realloc, x2nrealloc, for programs that grow
103417         arrays dynamically by doubling their sizes.
103418         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
103419         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
103420         New functions.
103422         Port to C99 semantics for 'inline' of external functions.
103423         Bug reported by Bruno Haible.
103424         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
103425         with the old contents of xnmalloc.
103426         (xnmalloc, xmalloc): Use it.
103427         (xnrealloc_inline): New static inline function,
103428         with the old contents of xnrealloc.
103429         (xnrealloc, xrealloc): Use it.
103431         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
103432         that.
103434 2003-10-26  Karl Berry  <karl@gnu.org>
103436         * config/srclist.txt (COPYING.DOC): no longer available from
103437         /gd/gnuorg; don't know where the ultimate source is.
103439 2003-10-25  Paul Eggert  <eggert@twinsun.com>
103441         Fix several address-calculation bugs in the hash modules,
103442         plus some minor code cleanup.
103444         * lib/hash.h: Include <stdbool.h>, for bool.
103445         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
103446         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
103447         hash_get_n_entries, hash_get_max_bucket_length,
103448         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
103449         hash_rehash): Use size_t rather than unsigned.
103450         * lib/hash.c (struct hash_table, hash_get_n_buckets,
103451         hash_get_n_buckets_used, hash_get_n_entries,
103452         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
103453         hash_get_entries, hash_do_for_each, hash_string, is_prime,
103454         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
103455         Likewise.
103456         (SIZE_MAX): Define if not defined.
103457         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
103458         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
103459         hash_print):
103460         Use const * when possible.
103461         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
103462         (check_tuning): Fix bug: if tuning parameters were very close to
103463         0 or 1, rounding errors could have caused subscript violations.
103464         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
103465         (hash_initialize): Add 'fail:' label
103466         to free table and return NULL, and use it to simplify code.
103467         Use calloc rather than clearing the storage ourself.
103468         (hash_initialize, hash_rehash): Check for arithmetic overflow in
103469         buffer size calculations.
103470         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
103471         Include <stddef.h>, for size_t.
103472         * lib/hash-pjw.c (hash_pjw): Likewise.
103473         Switch to method described by Bruno Haible.
103474         Include <limits.h>, for CHAR_BIT.
103475         (SIZE_BITS): New macro.
103477 2003-10-23  Paul Eggert  <eggert@twinsun.com>
103479         * m4/getline.m4 (AM_FUNC_GETLINE):
103480         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
103481         hosts.  Problem reported by Derek Robert Price in
103482         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
103483         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
103484         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
103486 2003-10-21  Paul Eggert  <eggert@twinsun.com>
103488         * lib/getndelim2.c (getndelim2): When size calculation overflows,
103489         ceiling the allocation at NMAX bytes rather than silently
103490         discarding input bytes before NMAX is reached.  This makes
103491         a difference only if NMAX exceeds SIZE_MAX / 2.
103493         * lib/obstack.c: Merge from glibc.
103494         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
103495         Add libc_hidden_def (_obstack_newchunk).
103496         (_obstack_free) [! defined _LIBC]: Remove.
103497         [defined _LIBC]: Make a strong alias from obstack_free, rather than
103498         a clone of the function body.
103499         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
103500         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
103502         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
103503         glibc.
103504         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
103505         arg to memcpy.
103507         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
103508         (obstack_ptr_grow_fast, obstack_int_grow_fast):
103509         Don't use lvalue casts, as GCC plans to remove support for them
103510         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
103511         was also present in the non-GCC version, indicating that this
103512         code had always been buggy and had never been widely used.
103513         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
103514         Use the fast variant of each macro, rather than copying the
103515         definiens of the fast variant; that way, we'll be more likely to
103516         catch future bugs in the fast variants.
103518 2003-10-20  Bruno Haible  <bruno@clisp.org>
103520         * modules/wait-process: New file.
103521         * MODULES.html.sh (func_all_modules): Add wait-process.
103523 2003-10-20  Bruno Haible  <bruno@clisp.org>
103525         * m4/wait-process.m4: New file.
103527 2003-10-20  Bruno Haible  <bruno@clisp.org>
103529         * lib/wait-process.h: New file, from GNU gettext.
103530         * lib/wait-process.c: New file, from GNU gettext.
103532 2003-10-19  Jim Meyering  <jim@meyering.net>
103534         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
103535         HPUX 10.20.
103537 2003-10-18  Karl Berry  <karl@gnu.org>
103539         * config/config.guess: update from config.
103541 2003-10-16  Paul Eggert  <eggert@twinsun.com>
103543         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
103544         (getgroups): First arg is int, not size_t.
103545         Don't let 'free' mangle errno.
103547 2003-10-16  Paul Eggert  <eggert@twinsun.com>
103549         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
103551 2003-10-16  Karl Berry  <karl@gnu.org>
103553         * config/config.{guess,sub}: update from config.
103555 2003-10-16  Jim Meyering  <jim@meyering.net>
103557         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
103558         memcpy.
103560 2003-10-15  Paul Eggert  <eggert@twinsun.com>
103562         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
103563         (SIZE_MAX): Remove.
103564         (new_exclude, add_exclude_file): Initial size no longer needs to
103565         be a power of 2.
103566         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
103567         our own address arithmetic overflow checking.
103569         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
103570         (fnmatch): Do not alloca more than 2000 wide characters;
103571         instead, use malloc for large buffers.
103572         Check for address arithmetic overflow, and return -1
103573         with errno set to ENOMEM in that case.
103574         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
103575         (NEW_PATTERN): Do not alloca more than 8000 bytes;
103576         instead, return -1.  Check for address arithmetic overflow.
103578 2003-10-14  Paul Eggert  <eggert@twinsun.com>
103580         Handle invalid suffixes and overflow independently, so that
103581         callers can treat them independently as needed.  Fix some bugs in
103582         suffix handling, e.g., "100k@" was not diagnosed as an invalid
103583         suffix for a human-readable blocksize.  The major caller-visible
103584         change is the addition of a new
103585         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
103586         that both overflow and suffix chars were found.
103588         * lib/human.c (humblock): Don't check separately for invalid suffix
103589         char; that is xstrtoumax's job (now that its bug is fixed).
103590         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
103591         INTMAX_MAX]: New macros.
103592         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
103593         TYPE_MAXIMUM): New macros.
103594         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
103595         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
103596         if overflow occurs, as it's what __strtol does and it's more useful
103597         in practice.
103598         (__xstrtol): If __strtol reports some error other than ERANGE,
103599         reflect it to the caller as LONGINT_INVALID.  If it reports
103600         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
103601         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
103602         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
103603         value.
103604         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
103605         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
103606         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
103607         [defined UINTMAX_MAX]: New macros.
103609 2003-10-14  Bruno Haible  <bruno@clisp.org>
103611         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
103613 2003-10-14  Bruno Haible  <bruno@clisp.org>
103615         * m4/sig_atomic_t: New file, from GNU gettext.
103616         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
103618 2003-10-14  Bruno Haible  <bruno@clisp.org>
103620         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
103621         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
103622         Also use volatile where needed.
103624 2003-10-12  Paul Eggert  <eggert@twinsun.com>
103626         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
103627         Change maintainer from Bruno Haible to 'all'.
103629 2003-10-12  Paul Eggert  <eggert@twinsun.com>
103631         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
103633 2003-10-12  Paul Eggert  <eggert@twinsun.com>
103635         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
103636         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
103637         and define in terms of the other primitives.
103638         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
103639         (SIZE_MAX): Define if not already defined.
103640         (array_size_overflow): New function.
103641         (xalloc_die): Abort instead of exiting if 'error' returns.
103642         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
103643         (xmalloc, xrealloc): Use them.
103644         (xcalloc): Check for address arithmetic overflow.
103645         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
103646         a bit faster than strcpy.
103648 2003-10-10  Simon Josefsson  <jas@extundo.com>
103650         * modules/argp (Depends-on): Add restrict and strcase.
103652 2003-10-10  Simon Josefsson  <jas@extundo.com>
103654         * m4/argp.m4: Add AC_C_INLINE.
103656 2003-10-08  Paul Eggert  <eggert@twinsun.com>
103658         Merge getpass from libc, plus a few fixes.
103660         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
103661         Include <stdbool.h>.
103662         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
103663         __fsetlocking to empty.
103664         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
103665         do include <bits/libc-lock.h>.
103666         Do not include <fcntl.h>; not needed.
103667         [_LIBC]: Include <wchar.h>.
103668         (NOTCANCEL_MODE): New macro.
103669         (flockfile, funlockfile) [_LIBC]: New macros.
103670         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
103671         [!_LIBC]: New macros.
103672         (call_fclose): New function.
103673         (getpass): Use it.  Save tty stream separately; this simplifies the
103674         code and makes it more reliable if stdin happens to equal stdout.
103675         Invoke __fsetlocking on tty.
103676         Handle thread cancellation if needed.
103677         Namespace cleanup (use __tcgetattr, __getline).
103678         Use bool for Booleans.
103679         [USE_IN_LIBIO]: Handle wide streams.
103680         [!_LIBC]: Unconditionally do the fseek, since we don't know what
103681         stream might go where.
103683         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
103684         doesn't have to include <stdio.h> before us.
103685         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
103686         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
103687         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
103688         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
103689         if not declared, so that we can use getpass.c code from libc without
103690         rewriting it.
103691         (flockfile, ftrylockfile, funlockfile): New macros.
103693 2003-10-08  Paul Eggert  <eggert@twinsun.com>
103695         * modules/getpass: Depend on stdbool.
103697 2003-10-08  Paul Eggert  <eggert@twinsun.com>
103699         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
103701 2003-10-07  Karl Berry  <karl@gnu.org>
103703         * config/config.{guess,sub}: update from config.
103705 2003-10-06  Jim Meyering  <jim@meyering.net>
103706             Bruno Haible  <bruno@clisp.org>
103708         This lets translators provide better translations for the
103709         "Written by ..." part of --version output.
103710         * lib/version-etc.h: Include stdarg.h.
103711         (version_etc_copyright): Declare as readonly.
103712         (version_etc): Make this function variadic with a NULL-terminated list
103713         of author name strings.
103714         (version_etc_va): New declaration.
103715         * lib/version-etc.c: Include stdarg.h, stdlib.h.
103716         (version_etc_copyright): Declare as readonly.
103717         (version_etc_va): New function. Provide a different translatable string
103718         for each possible number of authors < 10. Abbreviate when there are 10
103719         authors or more.
103720         (version_etc): Make this function variadic. Call version_etc_va.
103721         Suggestion from Gary V. Vaughan.
103723         * lib/long-options.h (parse_long_options): Change prototype: the
103724         authors string is moved to the end and becomes variadic.
103725         * lib/long-options.c: Include stdarg.h.
103726         (parse_long_options): Make this function variadic, too.
103727         Call version_etc_va, not version_etc.
103729 2003-10-06  Bruno Haible  <bruno@clisp.org>
103731         * modules/version-etc-2: Remove file.
103732         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
103734 2003-10-06  Bruno Haible  <bruno@clisp.org>
103736         * modules/fatal-signal: New file.
103737         * MODULES.html.sh (func_all_modules): Add fatal-signal.
103739 2003-10-06  Bruno Haible  <bruno@clisp.org>
103741         * m4/fatal-signal.m4: New file.
103742         * m4/signalblocking.m4: New file, from GNU gettext.
103744 2003-10-06  Bruno Haible  <bruno@clisp.org>
103746         * lib/version-etc-2.h: Remove file.
103747         * lib/version-etc-2.c: Remove file.
103749 2003-10-06  Bruno Haible  <bruno@clisp.org>
103751         * lib/fatal-signal.h: New file, from GNU gettext.
103752         * lib/fatal-signal.c: New file, from GNU gettext.
103754 2003-10-05  Paul Eggert  <eggert@twinsun.com>
103756         * README: Rework advice for preventing empty .o files.
103757         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
103758         not <sys/types.h>.
103760 2003-10-04  Karl Berry  <karl@gnu.org>
103762         * lib/argp*: update from libc.
103764 2003-10-04  Karl Berry  <karl@gnu.org>
103766         * config/config.{guess,sub}: update from config.
103768 2003-10-02  Bruno Haible  <bruno@clisp.org>
103770         * modules/lchown (Include): Add lchown.h.
103771         * modules/time_r (Include): Use "..." syntax.
103772         * modules/xgetdomainname (Include): Add xgetdomainname.h.
103774 2003-10-01  Simon Josefsson  <jas@extundo.com>
103776         * MODULES.html.sh (func_all_modules): Move gethostname from section
103777         'based on' to section 'lacking' POSIX:2001.
103779 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
103781         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
103782         to output mode on the same stream.
103784 2003-09-29  Paul Eggert  <eggert@twinsun.com>
103786         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
103787         Fix arg typo in previous patch.
103789 2003-09-28  Jim Meyering  <jim@meyering.net>
103791         * lib/error.c: Correct cpp indentation.
103793 2003-09-27  Paul Eggert  <eggert@twinsun.com>
103795         * modules/free: New file.
103797 2003-09-27  Paul Eggert  <eggert@twinsun.com>
103799         * m4/free.m4: New file.
103801 2003-09-27  Paul Eggert  <eggert@twinsun.com>
103803         * lib/minmax.h (MIN, MAX)
103804         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
103805         Omit the special code that used __typeof__, since we worry that
103806         it could be more trouble than it's worth.  See:
103807         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
103808         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
103810         * lib/free.c: New file.
103812 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
103814         Trivial fixes to Makefile.am parts of module listings.
103815         * modules/strstr: Append strstr.h to lib_SOURCES.
103816         * modules/strcase: Likewise, for strcase.h.
103818 2003-09-27  Karl Berry  <karl@gnu.org>
103820         * config/mkinstalldirs: update from automake.
103822 2003-09-26  Paul Eggert  <eggert@twinsun.com>
103824         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
103825         (error_tail): Do not loop, reallocating temporary buffer, since
103826         the output cannot contain more wide characters than the input
103827         contains bytes, the size must be big enough already.  This avoids
103828         one potential size overflow calculation.  Check for size overflow
103829         when calculating temporary buffer size.  Free temporary buffer
103830         when done, if it was allocated with malloc; this plugs a memory
103831         leak.  Remove casts from void * to pointers, that are no longer
103832         needed now that we're assuming C89 or better.
103834         Merge error changes from glibc.
103836         * lib/error.c, error.h: Update copyright notice header to match glibc.
103837         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
103838         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
103839         Disable cancellation while printing error.
103840         * lib/error.h: Prepend __ to parameter names.
103842 2003-09-26  Jim Meyering  <jim@meyering.net>
103844         * lib/error.c (error_tail): Move some declarations
103845         into inner scope where the local variables are used.
103847 2003-09-26  Bruno Haible  <bruno@clisp.org>
103849         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
103850         stpncpy().
103851         Don't define stpncpy through config.h; it's now done through stpncpy.h.
103853 2003-09-26  Bruno Haible  <bruno@clisp.org>
103855         * lib/stpncpy.h (gnu_stpncpy): New declaration.
103856         (stpncpy): Define as alias for gnu_stpncpy.
103857         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
103859 2003-09-25  Simon Josefsson  <jas@extundo.com>
103861         * lib/xgetdomainname.h: New file.
103862         * lib/xgetdomainname.c: New file.
103864 2003-09-25  Simon Josefsson  <jas@extundo.com>
103865             Bruno Haible  <bruno@clisp.org>
103867         * modules/getdomainname: New file.
103868         * modules/xgetdomainname: New file.
103869         * MODULES.html.sh (func_all_modules): Add getdomainname,
103870         xgetdomainname.
103872 2003-09-25  Simon Josefsson  <jas@extundo.com>
103873             Bruno Haible  <bruno@clisp.org>
103875         * m4/getdomainname.m4: New file.
103877 2003-09-25  Simon Josefsson  <jas@extundo.com>
103878             Bruno Haible  <bruno@clisp.org>
103880         * lib/getdomainname.h: New file.
103881         * lib/getdomainname.c: New file.
103883 2003-09-25  Karl Berry  <karl@gnu.org>
103885         * lib/argp-fmtstream.c, argp-help.c: update from libc.
103887 2003-09-25  Karl Berry  <karl@gnu.org>
103889         * config/install-sh: update from automake.
103891 2003-09-25  Bruno Haible  <bruno@clisp.org>
103893         * modules/version-etc-2: New file, from modules/version-etc with
103894         modifications.
103895         * MODULES.html.sh (func_all_modules): Add version-etc-2.
103897 2003-09-25  Bruno Haible  <bruno@clisp.org>
103899         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
103900         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
103902 2003-09-24  Simon Josefsson  <jas@extundo.com>
103904         * modules/xgethostname: Add xgethostname.h.
103906 2003-09-24  Paul Eggert  <eggert@twinsun.com>
103908         * lib/linebuffer.c (freebuffer): Don't free the argument, just
103909         the buffer associated with the argument.  Bug reported by
103910         Simon Josefsson.
103912 2003-09-24  Paul Eggert  <eggert@twinsun.com>
103914         * README: Document assumptions that 'int' is at least 32 bits
103915         wide, that integer arithmetic is 2's complement without overflow,
103916         that there are no holes in integer values, that adding sizes of
103917         two nonoverlapping objects can't overflow, and that all-bits-zero
103918         yields scalar zero.  Fix spelling and capitalization typos.
103920 2003-09-19  Karl Berry  <karl@gnu.org>
103922         * lib/argp.h: update from libc.
103924 2003-09-17  Paul Eggert  <eggert@twinsun.com>
103926         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
103927         to avoid spurious warnings like "AC_RUN_IFELSE was called before
103928         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
103930 2003-09-17  Paul Eggert  <eggert@twinsun.com>
103932         * gnulib-tool: Use "test -h", not "test -L", for portability
103933         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
103934         (tags_regexp): Remove, since \| doesn't conform to POSIX.
103935         (sed_extract_prog): Issue s commands one-by-one, rather than
103936         using \| in one s command.
103938 2003-09-16  Paul Eggert  <eggert@twinsun.com>
103940         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
103941         input error, instead of returning NULL the next time we are called
103942         (and therefore losing track of errno).
103944 2003-09-16  Bruno Haible  <bruno@clisp.org>
103946         * gnulib-tool (func_create_testdir): Warn about duplicated
103947         dependencies.
103949 2003-09-15  Paul Eggert  <eggert@twinsun.com>
103951         * modules/argmatch, modules/fatal, modules/obstack,
103952         modules/xalloc, modules/xgethostname: Sort dependencies by
103953         importance, not alphabetically.
103955 2003-09-15  Paul Eggert  <eggert@twinsun.com>
103957         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
103958         fails, so that the caller gets the proper errno.
103960         * lib/readutmp.c (read_utmp): Likewise.
103961         Check for fstat error.  Close stream and free storage
103962         when failing.
103964 2003-09-14  Karl Berry  <karl@gnu.org>
103966         * config/srclist.txt (strdup.c): disable for c89 changes.
103968 2003-09-14  Jim Meyering  <jim@meyering.net>
103970         * lib/getloadavg.c: Correct cpp indentation.
103971         * lib/strdup.c: Likewise.
103972         * lib/vasnprintf.c: Likewise.
103974 2003-09-14  Bruno Haible  <bruno@clisp.org>
103976         * modules/fwriteerror: New file.
103977         * MODULES.html.sh (func_all_modules): Add fwriteerror.
103979 2003-09-14  Bruno Haible  <bruno@clisp.org>
103981         * lib/fwriteerror.h: New file.
103982         * lib/fwriteerror.c: New file.
103984 2003-09-12  Paul Eggert  <eggert@twinsun.com>
103986         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
103987         modules/xgethostname, modules/xalloc: Depend on exit.
103989 2003-09-12  Paul Eggert  <eggert@twinsun.com>
103991         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
103993         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
103994         and AC_MINIX, too, so that their extensions are available.
103996         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
103997         This macro has been superseded by gl_BACKUPFILE.
103999         More patches to assume C89 or better.
104001         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
104003         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
104004         unconditionally.
104005         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
104006         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
104007         Include <string.h>, <stdlib.h> unconditionally.
104008         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
104009         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
104010         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
104011         headers or for string.h.
104012         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
104013         or strtoul.
104015         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
104016         headers.
104017         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
104018         * m4/userspec.m4 (gl_USERSPEC): Likewise.
104019         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
104020         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
104021         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
104022         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
104023         memcpy, memset.
104024         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
104025         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
104026         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
104027         strtol.
104028         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
104029         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
104030         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
104031         strtoul.
104033 2003-09-12  Paul Eggert  <eggert@twinsun.com>
104035         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
104036         * lib/obstack.c [!defined _LIBC]: Likewise.
104037         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
104038         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
104039         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
104041         More changes to assume C89 or better.
104043         * lib/error.c (error_tail): Assume vprintf.
104045         * lib/argmatch.c (getenv): Remove decl.
104046         * lib/progreloc.c (get_full_program_name): Define via prototype.
104047         * lib/setenv.c (clearenv): Likewise.
104048         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
104049         needed.
104050         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
104051         (malloc, memcpy): Remove decls.
104052         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
104053         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
104054         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
104055         (memcpy): Remove macro.
104056         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
104057         (__P): Remove.  All uses removed.
104058         (PTR): Remove.  All uses changed to void *.
104059         (CHAR_BIT, NULL): Remove.
104060         (spaces, zeros, memset_space, memset_zero)
104061         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
104062         Remove.
104063         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
104064         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
104065         Define with prototype.
104066         Remove now-unnecessary prototype decl.
104067         (extra_args_spec): Assume ANSI C.  All uses changed.
104068         (extra_args_spec_iso): Remove.
104069         (my_strftime, emacs_strftimeu): Define via prototype.
104070         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
104071         unconditionally.
104072         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
104073         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
104074         (strtoul, strtol): Remove decls.
104075         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
104076         LONG_MAX): Remove.
104077         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
104078         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
104079         (LOCALE_PARAM_PROTO): New macro.
104080         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
104081         (INTERNAL (strtol), strtol): Define with a prototype.
104082         (PARAMS): Remove.  All uses removed.
104083         * lib/tempname.c: Include <string.h> unconditionally.
104084         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
104085         * lib/xgethostname.c (main): Define with a prototype.
104086         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
104087         Include <stdlib.h> unconditionally.
104088         (calloc, malloc, realloc, free): Remove decls.
104089         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
104090         Include <stdlib.h> unconditionally.  Sort include file names.
104091         (strtod): Remove.
104092         (xstrtod): Define with a prototype.
104093         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
104094         (strtol, strtoul): Remove decls.
104096 2003-09-11  Paul Eggert  <eggert@twinsun.com>
104098         More patches to assume C89 or better.
104099         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
104100         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
104101         string.h, memchr, STDC_HEADERS.
104103 2003-09-11  Paul Eggert  <eggert@twinsun.com>
104105         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
104106         Include <stdlib.h>, <string.h> unconditionally.
104107         Remove now-unnecessary cast to char *.
104108         * lib/strnlen.c: Include <string.h> unconditionally.
104109         * lib/yesno.c (yesno): Define with a prototype.
104111 2003-09-11  Bruno Haible  <bruno@clisp.org>
104113         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
104115 2003-09-10  Jim Meyering  <jim@meyering.net>
104117         * lib/error.c: Correct indentation of cpp directives.
104119 2003-09-10  Bruno Haible  <bruno@clisp.org>
104121         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
104122         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
104123         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
104124         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
104125         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
104126         <stdlib.h> and <string.h> checks.
104127         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
104128         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
104130 2003-09-10  Bruno Haible  <bruno@clisp.org>
104132         * lib/strcspn.c: Include <string.h> unconditionally.
104133         * lib/strpbrk.c: Include <string.h> unconditionally.
104134         * lib/strstr.c: Include <string.h> unconditionally.
104135         * lib/unicodeio.c: Include <string.h> unconditionally.
104136         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
104137         * lib/unsetenv.c: Likewise.
104138         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
104139         * lib/yesno.c: Include <stdlib.h> unconditionally.
104140         (rpmatch): Add prototype.
104142 2003-09-09  Paul Eggert  <eggert@twinsun.com>
104144         More patches to assume C89 or better.
104145         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
104146         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
104147         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
104148         or for string.h.
104149         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
104150         stdlib.h.
104151         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
104152         C headers.
104153         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
104154         string.h.
104155         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
104156         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
104157         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
104158         or for string.h.
104159         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
104160         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
104161         C headers.
104162         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
104163         memcpy.
104164         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
104165         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
104166         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
104167         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
104168         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
104169         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
104170         string.h, free.
104171         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
104172         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
104173         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
104174         C headers, or for string.h.
104175         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
104176         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
104177         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
104178         headers, memory.h, stdlib.h, string.h, strings.h.
104179         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
104180         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
104181         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
104182         strchr.
104183         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
104184         headers, memory.h, string.h.
104185         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
104186         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
104187         free.
104188         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
104189         headers.
104190         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
104191         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
104192         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
104193         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
104194         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
104196 2003-09-09  Paul Eggert  <eggert@twinsun.com>
104198         More K&R removal.
104200         * lib/acosl.c (main): Use a prototype.
104201         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
104202         tanl.c: Likewise.
104204         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
104206         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
104207         (getopt, etopt_long, getopt_long_only, _getopt_internal)
104208         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
104209         with a prototype.
104210         * lib/getopt.c (const): Remove macro.
104211         Include <string.h> unconditionally.
104212         (my_index): Remove; all uses changed to strchr.
104213         (strlen): Remove decl.
104214         (exchange): Remove forward decl; no longer needed.
104215         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
104216         Define with prototype.
104217         * lib/getopt1.c (const): Remove macro.
104218         (getopt_long, getopt_long_only, main): Define with prototype.
104220         * lib/getugroups.c: Include <string.h> unconditionally.
104222         * lib/getusershell.c: Include <stdlib.h> unconditionally.
104223         (getusershell, setusershell, endusershell, readname, main):
104224         Define with prototypes.
104226         * lib/group-member.c: Include group-member.h first.
104227         Include <stdlib.h> unconditionally.
104229         * lib/hard-locale.c: Include hard-locale.h first.
104230         Include <stdlib.h>, <string.h> unconditionally.
104232         * lib/hash.c (free, malloc): Remove decls.
104233         Include <stdlib.h> unconditionally.
104235         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
104236         (getenv): Do not declare.
104238         * lib/idcache.c: Include <string.h> unconditionally.
104240         * lib/long-options.c: Include long-options.h first, to test interface.
104241         Include <stdlib.h> unconditionally.
104243         * lib/makepath.c: Include makepath.h first, to test interface.
104244         Include <stdlib.h> and <string.h> unconditionally.
104246         * lib/linebuffer.c: Include <stdlib.h>.
104247         (free): Remove decl.
104249         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
104250         stddef.h. rpl_malloc returns void *, not char *.
104251         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
104252         prototype.
104254         * lib/md5.h: Include <limits.h> unconditionally.
104255         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
104256         (__P): Remove; all uses removed.
104257         * lib/md5.c: Include "md5.h" first.
104258         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
104259         md5_buffer, md5_process_bytes, md5_process_block):
104260         Define with prototypes.
104261         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
104262         * lib/sha.c: Include "sha.h" first.
104263         Include <stdlib.h>, <string.h> unconditionally.
104265         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
104266         * lib/memcmp.c (__ptr_t): Likewise.
104267         * lib/memrchr.c (__ptr_t): Likewise.
104268         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
104269         Include <string.h> unconditionally.
104270         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
104271         * lib/memchr.c: Include <stdlib.h> unconditionally.
104272         * lib/memchr.c (LONG_MAX): Remove.
104273         * lib/memrchr.c (LONG_MAX): Likewise.
104274         * lib/memchr.c (__memchr): Define via a prototype.
104275         * lib/memrchr.c (__memrchr): Likewise.
104276         * lib/memcmp.c (__P): Remove, and remove all uses.
104277         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
104278         Remove forward decls; no longer needed.
104279         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
104280         Use types required by C89 in prototype.
104282         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
104283         * lib/savedir.c: Likewise.
104284         * lib/mkdir.c (free): Remove decl.
104285         * lib/rmdir.c (rmdir): Define with a prototype.
104286         * lib/savedir.c: Include savedir.h first, to test interface.
104288         * lib/mktime.c (STDC_HEADERS): Remove.
104289         Include <stdlib.h>, <string.h> unconditionally.
104291         * lib/modechange.c: Include <stdlib.h> unconditionally.
104292         (malloc): Remove decl.
104294         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
104295         (free): Remove decl.
104297         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
104298         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
104299         (This type really should be intptr_t, but that's a C99ism.)
104300         (_obstack_memcpy): Remove: all uses changed to memcpy.
104301         Include <string.h> unconditionally.
104302         (struct obstack): Assume __STDC__ for types of members
104303         chunkfun, freefun, extra_arg.
104304         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
104305         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
104306         obstack_begin, obstack_specify_allocation,
104307         obstack_specify_allocation_with_arg, obstack_chunkfun,
104308         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
104309         Remove unprototyped decls and the macros that use them.
104310         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
104311         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
104312         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
104313         (defined __STDC__ && __STDC__)]:
104314         Remove nonprototyped code.
104315         Include <stdlib.h> unconditionally.
104316         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
104317         _obstack_allocated_p, _obstack_free, obstack_free,
104318         _obstack_memory_used, print_and_abort):
104319         Define using prototypes.
104320         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
104321         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
104322         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
104323         obstack_next_free, obstack_object_size, obstack_room) [0]:
104324         Remove unused, unprototyped code.
104326         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
104328         * lib/physmem.c (physmem_total, physmem_available, main): Define
104329         with prototypes.
104331         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
104332         (main): Define with a prototype.
104334         * lib/posixver.c (getenv): Remove decl.
104336         * lib/putenv.c (malloc): Returns void *, not char *.
104337         Include <string.h> unconditionally.
104338         (strchr, memcpy, NULL): Do not define.
104340         * lib/readtokens.c: Include readtokens.h first, to test interface.
104341         Include <stdlib.h>, <string.h> unconditionally.
104342         (init_tokenbuffer): Define with a prototype.
104344         * lib/regex.c (PARAMS): Remove.  All uses removed.
104345         All uses of _RE_ARGS removed, too.
104346         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
104347         unconditionally.
104348         (bzero): Assume memset exists.
104349         (memcmp, memcpy, NULL): Remove.
104350         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
104351         char, or assignments to local vars of type signed char.
104352         (init_syntax_once, PREFIX(extract_number_and_incr),
104353         PREFIX(print_partial_compiled_pattern),
104354         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
104355         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
104356         PREFIX(regex_grow_registers), PREFIX(regex_compile),
104357         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
104358         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
104359         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
104360         wcs_compile_range, byte_compile_range, truncate_wchar,
104361         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
104362         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
104363         count_mbs_length, wcs_re_match_2_internal,
104364         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
104365         PREFIX(alt_match_null_string_p),
104366         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
104367         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
104368         regfree, PREFIX(extract_number)): Define with prototype.  Remove
104369         now-unnecessary declaration, if any.
104370         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
104371         regcomp, regexec):
104372         Remove now-unnecessary casts among pointer types.
104373         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
104375         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
104376         (free): Remove decl.
104378         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
104380         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
104381         (free): Remove decl.
104383         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
104384         * lib/xgetcwd.c: Likewise.
104386         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
104387         (free): Remove decl.
104389         * lib/strchrnul.c (strchrnul): Define with a prototype.
104390         Fix bug: c_in was not converted to char before searching.
104392         The following changes are not K&R related:
104394         * lib/group-member.h: Include <sys/types.h>, so that this file is
104395         self-contained.
104396         * lib/makepath.h: Likewise.
104398         * lib/getusershell.c (readname, default_index, line_size, readname):
104399         Use size_t, not int, for sizes.
104400         (readname): If the size overflows, report an error instead of
104401         looping forever.
104403 2003-09-09  Paul Eggert  <eggert@twinsun.com>
104405         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
104406         libc.
104408 2003-09-09  Paul Eggert  <eggert@twinsun.com>
104410         * README: New section: portability guidelines.
104412 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
104414         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
104415         C89 spec.
104417 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
104419         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
104421 2003-09-08  Paul Eggert  <eggert@twinsun.com>
104423         Assume C89 or better; remove K&R cruft.
104424         A few of these changes were first proposed by Derek Robert Price
104425         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
104427         * lib/addext.c: Include <string.h> unconditionally.
104428         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
104429         Don't declare getenv or malloc.
104431         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
104432         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
104433         (NULL): Remove.
104434         (find_stack_direction, alloca): Use prototypes.
104436         * lib/atexit.c (atexit): Define using a prototype.
104438         * lib/basename.c, dirname.c, stripslash.c:
104439         Include <string.h> unconditionally.
104441         * lib/bcopy.c: Include <stddef.h>.
104442         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
104444         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
104446         * lib/error.h (error, error_at_line, error_print_progname)
104447         [! (defined (__STDC__) && __STDC__)]: Remove decls.
104448         * lib/error.c: Include error.h first, to check interface.
104449         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
104450         (VA_START): Remove; all uses changeed to va_start.
104451         (exit, strerror): Remove decls.
104452         (error_print_progname): Prototype uncondionally.
104453         Don't include <errno.h>; no longer needed.
104454         (private_strerror): Remove.
104455         (error_tail): Always define.
104456         (error, error_at_line): Assume C89 or better; always use prototypes.
104457         * lib/fatal.c: Include "fatal.h" first, to test interface.
104458         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
104459         (VA_START): Remove; all uses changed to va_start.
104460         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
104461         this case.
104462         (exit): Remove decl.
104463         (fatal): Prototype unconditionally.  Assume va_start works.
104464         Abort at end, to pacify gcc.
104466         * lib/euidaccess.c (main): Define with a prototype.
104468         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
104470         * lib/exitfail.c: Include <stdlib.h> unconditionally.
104472         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
104473         prototypes.
104474         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
104475         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
104476         (getenv): Remove decl.
104477         (fnmatch): Define using a prototype.
104478         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
104479         (FCT): Define using a prototype.
104481         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
104483         * lib/gethostname.c: Include <stddef.h>.
104484         (gethostname): Define with prototype.  Length is size_t, not int.
104486 2003-09-08  Paul Eggert  <eggert@twinsun.com>
104488         Assume C89 or better; remove K&R cruft.
104489         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
104490         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
104491         string.h, getenv, malloc.
104492         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
104493         headers.
104494         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
104495         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
104496         do not check for strerror.
104497         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
104498         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
104499         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
104500         do not check for doprnt or vprintf.
104501         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
104502         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
104504 2003-09-08  Paul Eggert  <eggert@twinsun.com>
104506         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
104507         getversion.c should have been removed then, but was accidentally
104508         preserved.
104510         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
104511         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
104513 2003-09-08  Karl Berry  <karl@gnu.org>
104515         * config/config.sub, config.guess, srclistvars.sh: update from savannah
104516                 config, forget about prep.
104518         * config/depcomp, missing: update from automake.
104520 2003-09-07  Paul Eggert  <eggert@twinsun.com>
104522         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
104523         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
104525 2003-09-07  Paul Eggert  <eggert@twinsun.com>
104527         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
104528         copy_tm_result.  Bug reported by Simon Josefsson in
104529         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
104531 2003-09-06  Paul Eggert  <eggert@twinsun.com>
104533         * m4/time_r.m4: New file.
104534         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
104535         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
104536         is. Check for timegm declaration.
104537         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
104538         Do not check for gmtime_r.
104539         Replace mktime if __mktime_internal does not exist and if mktime
104540         hasn't been replaced already.
104542 2003-09-06  Paul Eggert  <eggert@twinsun.com>
104544         * lib/time_r.c, lib/time_r.h: New files.
104546         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
104547         __localtime_r.
104548         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
104549         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
104551         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
104552         __gmtime_r.
104553         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
104554         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
104555         Include <time_r.h>.
104557         * lib/timegm.c: Switch to glibc implementation, with the following
104558         changes:
104559         [defined HAVE_CONFIG_H]: Include <config.h>.
104560         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
104561         (__mktime_internal) [!defined _LIBC]: New decl.
104562         (__gmtime_r) [!defined _LIBC]: New macro and function.
104563         (timegm): Use a prototype, since gnulib assumes C89.
104564         Do not bother declaring tmp to be const, as it's not really usefu.
104565         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
104566         (timegm): Declare only if HAVE_DECL_TIMEGM.
104568 2003-09-06  Paul Eggert  <eggert@twinsun.com>
104570         * MODULES.html.sh (func_all_modules): Add time_r.
104571         * modules/time_r: New file.
104572         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
104573         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
104575 2003-09-03  Paul Eggert  <eggert@twinsun.com>
104577         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
104578         Bug reported by Lute Kamstra in
104579         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
104581         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
104582         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
104583         course with correspondingly smaller numbers for tomorrow and
104584         yesterday.  From Tadayoshi Funaba.  Originally installed into
104585         sh-utils on 1999-08-07, but the patch got lost (I guess during the
104586         coreutils merge?).
104588 2003-08-31  Simon Josefsson  <jas@extundo.com>
104590         * modules/timegm: New file.
104591         * MODULES.html.sh (func_all_modules): Add timegm.
104593 2003-08-31  Simon Josefsson  <jas@extundo.com>
104595         * m4/timegm.m4: New file.
104597 2003-08-31  Simon Josefsson  <jas@extundo.com>
104599         * lib/timegm.h: New file.
104600         * lib/timegm.c: New file.  Based on
104601         wget-1.8.2/src/http.c:mktime_from_utc.
104603 2003-08-31  Karl Berry  <karl@gnu.org>
104605         * lib/argp.h: update from libc.
104607 2003-08-28  Bruno Haible  <bruno@clisp.org>
104609         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
104610         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
104611         followed by '#define fnmatch fnmatch_posix' gives an error.
104613 2003-08-28  Bruno Haible  <bruno@clisp.org>
104615         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
104616         warning on QNX, which defines O_BINARY to 000000.
104618 2003-08-27  Jim Meyering  <jim@meyering.net>
104620         * m4/mkstemp.m4: Require that the system mkstemp be able to create
104621         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
104622         would fail after 32.  Reported by Danny Levinson.  Details here:
104623         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
104625 2003-08-24  Bruno Haible  <bruno@clisp.org>
104627         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
104628         MSVC7 <stdio.h> is included later.
104630 2003-08-22  Simon Josefsson  <jas@extundo.com>
104632         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
104634 2003-08-20  Karl Berry  <karl@gnu.org>
104636         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
104638 2003-08-20  Bruno Haible  <bruno@clisp.org>
104640         * modules/progname: New file.
104641         * MODULES.html.sh (func_all_modules): Add progname.
104643 2003-08-20  Bruno Haible  <bruno@clisp.org>
104645         * lib/progname.h: New file, from GNU gettext.
104646         * lib/progname.c: New file, from GNU gettext.
104647         * lib/progreloc.c: New file, from GNU gettext.
104649 2003-08-19  Jim Meyering  <jim@meyering.net>
104651         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
104652         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
104654 2003-08-19  Bruno Haible  <bruno@clisp.org>
104656         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
104657         more.
104659 2003-08-19  Bruno Haible  <bruno@clisp.org>
104661         * lib/xstrdup.c: Assume <string.h> exists.
104663 2003-08-18  Paul Eggert  <eggert@twinsun.com>
104665         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
104666         in makefile rules.
104668 2003-08-18  Jim Meyering  <jim@meyering.net>
104670         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
104671         * m4/lib-ld.m4: Likewise.
104673 2003-08-18  Jim Meyering  <jim@meyering.net>
104675         * lib/setenv.h: Indent nested cpp directive.
104676         * lib/vasnprintf.c: Remove trailing blanks.
104678 2003-08-17  Simon Josefsson  <jas@extundo.com>
104680         * modules/xstrndup: New file.
104681         * MODULES.html.sh (func_all_modules): Add xstrndup.
104683 2003-08-17  Simon Josefsson  <jas@extundo.com>
104685         * modules/argp: Fix autoconf macro name. Add more dependencies.
104687 2003-08-17  Simon Josefsson  <jas@extundo.com>
104689         * m4/xstrndup.m4: New file.
104691 2003-08-17  Simon Josefsson  <jas@extundo.com>
104693         * m4/argp.m4: New file.
104695 2003-08-17  Simon Josefsson  <jas@extundo.com>
104696             Bruno Haible  <bruno@clisp.org>
104698         * lib/xstrndup.h: New file.
104699         * lib/xstrndup.c: New file.
104701 2003-08-17  Bruno Haible  <bruno@clisp.org>
104703         * modules/strndup (Files, Include): Add lib/strndup.h.
104705 2003-08-17  Bruno Haible  <bruno@clisp.org>
104707         * modules/euidaccess (Files): Add lib/euidaccess.h.
104709 2003-08-17  Bruno Haible  <bruno@clisp.org>
104711         * lib/strndup.h: New file.
104713 2003-08-17  Bruno Haible  <bruno@clisp.org>
104715         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
104716         like AC_GNU_SOURCE.
104717         * modules/extensions (configure.ac): Comment out the invocation of
104718         gl_USE_SYSTEM_EXTENSIONS.
104720 2003-08-16  Paul Eggert  <eggert@twinsun.com>
104722         Merges from coreutils, etc.
104723         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
104724         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
104725         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
104726         fixing a typo.
104727         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
104728         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
104730 2003-08-16  Paul Eggert  <eggert@twinsun.com>
104732         Document merge from coreutils.
104733         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
104734         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
104735         * modules/utime: Add m4/utimes-null.m4.
104737 2003-08-16  Paul Eggert  <eggert@twinsun.com>
104739         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
104740         space, undoing this 2003-08-12 change:
104741         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
104743 2003-08-16  Paul Eggert  <eggert@twinsun.com>
104745         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
104746         strtoul.c from libc, undoing this 2003-08-12 change:
104747         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
104749 2003-08-16  Jim Meyering  <jim@meyering.net>
104751         Merges from coreutils.
104752         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
104753         prefix.  Adjust cache variables similarly.  Create 500 rather than
104754         just 300 files, to exercise bug on Darwin6.5, too.
104755         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
104756         $missing_dir.
104757         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
104758         AM_SYS_POSIX_TERMIOS.
104759         Reported by mkc@mathdogs.com.
104760         Also change use of $am_cv_sys_posix_termios
104761         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
104762         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
104763         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
104764         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
104765         in /proc/mounts until it finds one with matching device number.  This
104766         is unnecessary when the FILE argument *is* a mount point.  No stat call
104767         is necessary in that case.  So, disable the statvfs-testing code on
104768         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
104769         as RedHat bug# 84846.
104770         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
104771         to 1MB, so as not to render systems with no stack size limit (e.g.,
104772         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
104773         Include <unistd.h>.  On some systems,
104774         it is required for the definition of _SC_PAGESIZE.
104776 2003-08-16  Jim Meyering  <jim@meyering.net>
104778         Merge from coreutils.
104779         * lib/xstrtoimax.c: #else #if -> #elif.
104780         * lib/xstrtoumax.c: Likewise.
104782 2003-08-16  Jim Meyering  <jim@meyering.net>
104784         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
104785         * m4/utimes.m4: Removed.
104786         * m4/utimes-null.m4: Renamed from utimes.m4.
104788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
104789         to 1MB, so as not to render systems with no stack size limit (e.g.,
104790         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
104791         Include <unistd.h>.  On some systems,
104792         it is required for the definition of _SC_PAGESIZE.
104794 2003-08-16  Jim Meyering  <jim@meyering.net>
104795         and Paul Eggert  <eggert@cs.ucla.edu>
104797         Merges from coreutils, etc.
104799         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
104800         using the latest version from cvs.  This avoids problems with #line
104801         directives using a vendor (Sun) compiler.
104802         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
104803         Don't set GETGROUPS_LIB here; now it's
104804         done via getgroups.m4's wrapper function.
104805         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
104806         rather than just in sh-util/configure.in, so that the
104807         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
104808         same.
104809         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
104810         AC_FUNC_GETLOADAVG where to find getloadavg.c.
104811         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
104812         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
104813         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
104814         Remove code that is now done by the newly-required macros.
104815         Append $(EXEEXT) to DF_PROG.
104816         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
104817         Do not invoke or require the following here,
104818         since prereq.m4 or some gnulib .m4 now does this for us:
104819         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
104820         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
104821         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
104822         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
104823         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
104824         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
104825         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
104826         AC_FUNC_OBSTACK.
104827         Do not replace the following functions, as this is now the job
104828         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
104829         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
104830         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
104831         atexit getpass, strdup, getpagesize.
104832         Replace 'raise'.
104833         Do not check for the following functions, as this is now the job
104834         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
104835         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
104836         setregid.
104837         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
104838         Check for sys/sysctl.h.
104839         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
104840         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
104841         of checking for ssize_t ourselves.
104843         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
104844         Require every macro that gnulib/modules/* suggests for us.
104845         (jm_PREREQ_ADDEXT): New macro.
104846         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
104847         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
104849         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
104850         (gl_PHYSMEM): Use it.
104851         Also check for `table' function.
104852         Check for new headers and functions.
104853         Add check for sys/sysmp.h.
104854         With suggestions from Kaveh Ghazi.
104855         Ignore headers that are present but cannot be compiled.  This
104856         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
104857         C 5.4.
104859 2003-08-15  Paul Eggert  <eggert@twinsun.com>
104861         Document merge from coreutils.
104862         * modules/userspec: Depend on posixver.
104863         * modules/strftime: Depend on tzset.
104865 2003-08-15  Paul Eggert  <eggert@twinsun.com>
104867         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
104868         rather than tab, after '#' in shell-script copyright notices.
104869         Suggested by Bruno Haible.
104871 2003-08-15  Paul Eggert  <eggert@twinsun.com>
104873         * config/srclist-update: Use three spaces, rather than tab, after '#'
104874         in shell-script copyright notices.  Suggested by Bruno Haible.
104875         Remove unnecessary parenthesization in regular expression.
104877 2003-08-15  Jim Meyering  <jim@meyering.net>
104879         Merge from coreutils.
104880         * lib/xgethostname.c: Include <stdlib.h>.
104881         (xghostname): Don't exit for anything other than memory-related
104882         failure; just return NULL.
104883         * lib/userspec.c: Include "posixver.h".
104884         (parse_user_spec): Accept `.' as a separator only
104885         in pre-POSIX-200112 mode.
104886         * lib/strtoimax.c: Use #elif rather than #else #if.
104887         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
104888         Remove function, now that we can rely on a working tzset function.
104889         [!_LIBC]: Ensure that the required autoconf test has been run.
104890         [!defined _NL_CURRENT && HAVE_STRFTIME]:
104891         Use underlying_strftime for %r.
104892         * lib/sha.c: Merge in some clean-up and optimization changes from
104893         glibc.
104894         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
104895         Ensure that it is a multiple of 64.
104896         Rearrange loop exit tests so as to avoid performing an
104897         additional fread after encountering an error or EOF.
104898         * lib/realloc.c: Update copyright date.
104900 2003-08-15  Jim Meyering  <jim@meyering.net>
104901         and Paul Eggert  <eggert@twinsun.com>
104903         Merge from coreutils.
104904         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
104905         member but strut utmpx does not.  Needed for AIX 4.3.3.
104906         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
104908 2003-08-15  Jim Meyering  <jim@meyering.net>
104909         and Paul Eggert  <eggert@cs.ucla.edu>
104911         Merges from coreutils, etc.
104912         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
104913         Require gl_FUNC_TZSET_CLOBBER.
104914         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
104915         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
104916         members.
104918 2003-08-14  Paul Eggert  <eggert@twinsun.com>
104920         Help the merge from coreutils.
104921         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
104922         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
104923         * m4/tzset.m4: Use it too.
104925 2003-08-14  Paul Eggert  <eggert@twinsun.com>
104927         * modules/tzset: New file.
104929 2003-08-14  Jim Meyering  <jim@meyering.net>
104931         Merges from coreutils.
104932         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
104933         variable names, rather than @FNMATCH_H@.
104934         * modules/alloca: Likewise for $(ALLOCA_H).
104936         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
104937         the three copies of the literal target, `fnmatch.h'.
104938         * modules/alloca (alloca.h): Likewise.
104940 2003-08-14  Jim Meyering  <jim@meyering.net>
104942         Merge from coreutils.
104943         * m4/tzset.m4: New file.
104944         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
104945         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
104946         otherwise, AIX 5.1 systems would end up using the latter.
104947         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
104948         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
104949         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
104950         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
104952 2003-08-14  Jim Meyering  <jim@meyering.net>
104954         Merge from coreutils.
104955         * lib/obstack.h: Whitespace changes.
104956         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
104957         and xcalloc return values.
104958         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
104959         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
104960         hang on OSF/1 5.1 for DIR on both local and remote file systems.
104961         Reported by (and fix confirmed by) Nelson H. F. Beebe.
104962         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
104963         error from mntctl.
104964         Use mntctl's return value to drive the entry-processing loop, since
104965         we can't rely on the value of the vmt_length member in the last
104966         entry.  On some systems doing so could result in exhausting
104967         virtual memory.  Based in part on a patch from Mike Jetzer.
104969 2003-08-14  Jim Meyering  <jim@meyering.net>
104970         and Paul Eggert  <eggert@twinsun.com>
104972         Merges from coreutils, plus other fixes.
104973         * lib/physmem.c: Merge in portability changes from gcc/libiberty
104974         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
104975         for credits and details.  Thanks to Kaveh Ghazi for helping
104976         to keep these files in sync.
104977         (ARRAY_SIZE): Define it.
104978         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
104979         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
104980         (memcasecmp): Don't assume size_t fits in unsigned int.
104981         Remove casts and duplicate code.
104982         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
104983         (memcpy): Remove definition.
104984         Merge in some clean-up and optimization changes from glibc.
104985         [BLOCKSIZE]: Move definition to top of file.
104986         Ensure that it is a multiple of 64.
104987         Rearrange loop exit tests so as to avoid performing an
104988         additional fread after encountering an error or EOF.
104989         * lib/md5.h (md5_uintptr): Define.
104990         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
104991         return to the initial working directory.  Preserve errno
104992         for caller.
104993         * lib/idcache.c: Include "xalloc.h".
104994         (xmalloc, xrealloc): Remove decls.
104995         (getuser): Remove casts no longer required in C89.
104996         * lib/human.c: Include stdio.h, for sprintf.
104997         * lib/group-member.c: Include "xalloc.h".
104998         (xmalloc, xrealloc): Remove decls.
104999         (get_group_info): Remove casts no longer required in C89.
105000         * lib/getusershell.c (readname): Remove casts no longer required in
105001         C89.
105002         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
105003         * lib/getline.c: Whitespace fix, from coreutils.
105005 2003-08-13  Paul Eggert  <eggert@twinsun.com>
105007         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
105008         Check for isascii.
105010         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
105011         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
105012         Undo previous (whitespace-only) change.
105014 2003-08-13  Paul Eggert  <eggert@twinsun.com>
105016         * lib/exclude.c: Include <ctype.h>
105017         (IN_CTYPE_DOMAIN): New macro.
105018         (is_space): New fn.
105019         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
105020         and empty lines.
105022         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
105023         Undo previous (whitespace-only) change.
105025 2003-08-13  Paul Eggert  <eggert@twinsun.com>
105027         * config/srclist-update: Change update back to the old behavior,
105028         leaving whitespace alone.  Use one 'sed' command rather than a
105029         pipeline.
105030         (fixlicense): Now a variable, not a function.
105031         (remove_trailing_blanks): Remove.
105032         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
105033         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
105034         Undo previous (whitespace-only) change.
105036 2003-08-12  Paul Eggert  <eggert@twinsun.com>
105038         Merge from coreutils.
105039         * modules/euidaccess: Add lib_SOURCES, include for new
105040         file euidaccess.h
105042 2003-08-12  Paul Eggert  <eggert@twinsun.com>
105044         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
105045         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
105046         Normalize leading white space and remove trailing white space.
105048         Merge from coreutils
105049         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
105051         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
105052         0.12.1.  These files are now being upgraded automatically by
105053         ../config/srclist-update.
105055 2003-08-12  Paul Eggert  <eggert@twinsun.com>
105057         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
105058         Normalize leading white space and remove trailing white space.
105059         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
105060         notice, as per ../config/srclist-update.
105062         Merge from coreutils.
105063         * lib/euidaccess.h: New file.
105064         * lib/euidaccess.c: Include it.
105065         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
105066         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
105067         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
105069 2003-08-12  Paul Eggert  <eggert@twinsun.com>
105071         * config/srclist-update: Add copyright notice.
105072         (remove_id_lines, remove_trailing_blanks): New constants.
105073         (fixfile): Use them to normalize spacing a bit in copied files.
105074         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
105075         Normalize leading white space and remove trailing white space.
105077         * config/texinfo.tex: Sync with texinfo.
105079         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
105080         strtoul.c from libc, to merge coreutils whitespace changes.
105082         * config/srclist.txt: Get the following m4 files from gettext:
105083         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
105084         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
105085         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
105086         wint_t.m4.
105088 2003-08-12  Karl Berry  <karl@gnu.org>
105090         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
105091         been made.
105093 2003-08-11  Paul Eggert  <eggert@twinsun.com>
105095         * modules/gnu-source, m4/gnu-source.m4:
105096         Remove; we're assuming Autoconf 2.54 or later now.
105097         Suggested by Bruno Haible.
105098         * MODULES.html.sh (func_all_modules): Remove gnu-source.
105100 2003-08-11  Bruno Haible  <bruno@clisp.org>
105102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
105104 2003-08-11  Bruno Haible  <bruno@clisp.org>
105106         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
105107         (vasnprintf): Use it instead of wcslen.
105109 2003-08-11  Bruno Haible  <bruno@clisp.org>
105111         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
105112         value to ensure that _Bool promotes to int. Use #define for _Bool when
105113         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
105115 2003-08-10  Karl Berry  <karl@gnu.org>
105117         * lib/regex.h: update from libc (whitespace fix).
105119 2003-08-09  Paul Eggert  <eggert@twinsun.com>
105121         Merge some files from coreutils.  These changes were
105122         originally made by Jim Meyering.
105123         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
105124         many older Unixes require this.
105125         * lib/alloca.c (alloca): Remove cast to argument of free;
105126         no longer needed in C89.
105127         * lib/alloca_.h, regex.h: Fix white space to match
105128         what GNU indent does.
105130 2003-08-09  Paul Eggert  <eggert@twinsun.com>
105132         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
105133         apparently Emacs's Unicode mode got confused before my 2003-08-05
105134         checkin.
105136 2003-08-08  Paul Eggert  <eggert@twinsun.com>
105138         * m4/extensions.m4: New file.
105139         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
105140         Require gl_USE_SYSTEM_EXTENSIONS.
105141         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
105142         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
105144 2003-08-08  Paul Eggert  <eggert@twinsun.com>
105146         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
105147         * modules/extensions, modules/gnu-source: New files.
105148         * modules/timespec, modules/unlocked-io: Depend on extensions.
105150 2003-08-07  Paul Eggert  <eggert@twinsun.com>
105152         * modules/restrict: New file.
105153         * MODULES.html.sh (func_all_modules): Add restrict.
105154         * modules/regex: Depend on restrict.
105156 2003-08-07  Paul Eggert  <eggert@twinsun.com>
105158         * m4/restrict.m4: New file.
105159         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
105161 2003-08-07  Bruno Haible  <bruno@clisp.org>
105163         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
105164         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
105166 2003-08-07  Bruno Haible  <bruno@clisp.org>
105168         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
105169         makes the module 'getndelim2' compatible with the module 'getline'.
105171 2003-08-05  Paul Eggert  <eggert@twinsun.com>
105173         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
105174         byte with "\201" to avoid glitches when editing that source file
105175         with multi-gnome-terminal.
105177 2003-08-05  Paul Eggert  <eggert@twinsun.com>
105179         * lib/bumpalloc.h: Remove.
105181 2003-08-05  Paul Eggert  <eggert@twinsun.com>
105183         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
105184         * modules/bumpalloc: Remove.
105186 2003-08-04  Paul Eggert  <eggert@twinsun.com>
105188         * lib/getloadavg.c: Change copyright notice and spacing to conform to
105189         GNU coding style.
105191         Merge from coreutils.
105192         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
105193         1. From glibc.
105194         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
105195         from Karl Berry, implemented by Jim Meyering.
105196         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
105197         from Dmitry V. Levin.
105198         Remove anachronistic cast of xrealloc.
105199         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
105200         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
105201         type. Otherwise, it wouldn't compile with at least /bin/cc on
105202         ymp-cray-unicos9.0.2.X.
105203         Combine two mostly-identical uses of alloca into one.
105204         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
105206 2003-08-04  Dave Love  <d.love@dl.ac.uk>
105208         [From Emacs.]
105210         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
105211         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
105212         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
105213         obsolete NLIST_NAME_UNION.
105214         [__GNU__]: Undef BSD and FSCALE.
105215         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
105217 2003-08-03  Paul Eggert  <eggert@twinsun.com>
105219         * lib/stdbool_.h (_Bool): Make it signed char, instead of
105220         an enum type, so that it's guaranteed to promote to int.  See:
105221         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
105223 2003-08-03  Karl Berry  <karl@gnu.org>
105225         * config/depcomp: update from automake.
105227 2003-07-31  Paul Eggert  <eggert@twinsun.com>
105229         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
105230         (strerror): Don't assume that a printable int fits in 14 bytes.
105232 2003-07-31  Bruno Haible  <bruno@clisp.org>
105234         * modules/getpass-gnu: New file.
105235         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
105237 2003-07-31  Bruno Haible  <bruno@clisp.org>
105239         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
105241 2003-07-24  Karl Berry  <karl@gnu.org>
105243         * config/missing: update from automake.
105245 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
105246             Bruno Haible  <bruno@clisp.org>
105248         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
105249         * lib/getline.c (getline, getdelim): Likewise.
105250         Remove _GNU_SOURCE define; now it's defined in config.h through
105251         m4/getline.m4.
105253 2003-07-23  Karl Berry  <karl@gnu.org>
105255         * config/config.sub: update from prep.
105257 2003-07-22  Paul Eggert  <eggert@twinsun.com>
105259         * modules/xalloc (Depends-on): Add exitfail.
105260         * modules/xmemcoll: Likewise.
105262 2003-07-22  Paul Eggert  <eggert@twinsun.com>
105264         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
105265         over-parenthesization in macros.
105267         Sync with coreutils.
105269         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
105270         required by C99.
105272         Use `exit_failure' for xalloc and xmemcoll instead of their own
105273         private exit-failure variables.
105274         * lib/xalloc.h (xalloc_exit_failure): Remove.
105275         * lib/xmalloc.c: Likewise.  Include exitfail.h.
105276         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
105277         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
105278         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
105279         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
105281 2003-07-20  Jim Meyering  <jim@meyering.net>
105283         * modules/closeout (Depends-on): Add exitfail.
105284         Suggestion from Bruno Haible.
105286 2003-07-19  Karl Berry  <karl@gnu.org>
105288         * config/config.sub: update from prep.
105290 2003-07-18  Paul Eggert  <eggert@twinsun.com>
105292         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
105293         Remove.
105294         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
105295         to test that it can stand by itself.  Include "exitfail.h".
105296         Clients should set exit_failure instead.
105297         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
105299 2003-07-18  Bruno Haible  <bruno@clisp.org>
105301         * modules/getndelim2: New file.
105302         * modules/getline: Share files with module getndelim2.
105303         * modules/getnline: Depend on getndelim2 instead of sharing files with
105304         it. Add getnline.c to lib_SOURCES.
105305         * MODULES.html.sh (func_all_modules): Add getndelim2.
105307 2003-07-18  Bruno Haible  <bruno@clisp.org>
105309         * m4/getndelim2.m4: New file.
105310         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
105311         invoke gl_PREREQ_GETNDELIM2.
105312         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
105313         gl_PREREQ_GETNDELIM2.
105314         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
105315         gl_GETNDELIM2.
105317 2003-07-18  Bruno Haible  <bruno@clisp.org>
105319         * lib/getndelim2.h: New file.
105320         * lib/getndelim2.c: Make into a module of its own. Include config.h,
105321         getndelim2.h.
105322         (getndelim2): Make non-static. Change return type to ssize_t.
105323         * lib/getline.h: Change argument names.
105324         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
105325         * lib/getnline.c: Include getndelim2.h.
105327 2003-07-18  Andreas Schwab  <schwab@suse.de>
105329         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
105331 2003-07-17  Karl Berry  <karl@gnu.org>
105333         * config/config.sub: update from prep.
105335 2003-07-17  Bruno Haible  <bruno@clisp.org>
105337         * modules/getnline: New file.
105338         * modules/getline: Add lib/getndelim2.c to source file list.
105339         * MODULES.html.sh (func_all_modules): Add getnline.
105341 2003-07-17  Bruno Haible  <bruno@clisp.org>
105343         * m4/getnline.m4: New file.
105345 2003-07-17  Bruno Haible  <bruno@clisp.org>
105347         * m4/Makefile.am.in: Remove file.
105348         * m4/Makefile.am: Remove file.
105349         * m4/Makefile.in: Remove file.
105351 2003-07-17  Bruno Haible  <bruno@clisp.org>
105353         * lib/getnline.h: New file.
105354         * lib/getnline.c: New file.
105355         * lib/getndelim2.c: New file, extracted from getline.c.
105356         (getndelim2): Renamed from getdelim2, with added nmax argument.
105357         * lib/getline.c: Include getndelim2.c.
105358         (getdelim2): Moved out to getndelim2.c.
105359         (getline, getdelim): Update.
105361 2003-07-17  Bruno Haible  <bruno@clisp.org>
105363         * lib/Makefile.am: Remove file.
105364         * lib/Makefile.in: Remove file.
105366 2003-07-17  Bruno Haible  <bruno@clisp.org>
105368         * configure.in: Remove file.
105369         * Makefile.in: Remove file.
105371 2003-07-17  Bruno Haible  <bruno@clisp.org>
105373         * MODULES.html.sh: Put the </BODY> right before </HTML>.
105375 2003-07-16  Karl Berry  <karl@gnu.org>
105377         * config/srclist-update: was running fixlicense twice, which caused
105378                 texinfo.tex to be nullified for some reason.  Simplify,
105379                 $gplsrc is no longer needed as far as I can see?
105381 2003-07-16  Jim Meyering  <jim@meyering.net>
105383         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
105385 2003-07-15  Paul Eggert  <eggert@twinsun.com>
105387         * config/srclist.txt: Get the following files from gettext-runtime/intl
105388         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
105389         ref-del.sin.  From Bruno Haible.
105390         * config/srclist-update (fixfile): Change grep pattern again, since the
105391         previous fix didn't work (there was another trailing $).  Use
105392         '[$]' to escape the $s.
105394 2003-07-15  Karl Berry  <karl@gnu.org>
105396         * lib/vasnprintf.c: update from gettext.
105398 2003-07-15  Karl Berry  <karl@gnu.org>
105400         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
105401         gets expanded when surrounded by '$'.
105403 2003-07-15  Jim Meyering  <jim@meyering.net>
105405         * modules/save-cwd: Don't depend on error.  From Derek Price.
105407 2003-07-15  Jim Meyering  <jim@meyering.net>
105409         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
105411 2003-07-14  Simon Josefsson  <jas@extundo.com>
105413         * modules/mempcpy: New file.
105414         * MODULES.html.sh (func_all_modules): Add mempcpy.
105416 2003-07-14  Simon Josefsson  <jas@extundo.com>
105418         * m4/mempcpy.m4: New file.
105420 2003-07-14  Simon Josefsson  <jas@extundo.com>
105422         * lib/mempcpy.h: New file.
105423         * lib/mempcpy.c: New file.
105425 2003-07-14  Paul Eggert  <eggert@twinsun.com>
105427         * modules/getdate, modules/posixtm: Depend on mktime.
105429 2003-07-14  Paul Eggert  <eggert@twinsun.com>
105431         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
105432         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
105433         unicodeio.c, unicodeio.h, unlocked-io.h:
105434         Switch from LGPL to GPL.
105436 2003-07-14  Paul Eggert  <eggert@twinsun.com>
105438         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
105439         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
105440         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
105441         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
105442         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
105443         updated automatically by ../config/srclist-update.  This changes
105444         their license from LPGL to GPL.
105446 2003-07-14  Paul Eggert  <eggert@twinsun.com>
105448         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
105449         assumed to refer to the root of the most recent stable gettext version.
105450         * config/srclistvars.sh: Add defaults for eggert.
105451         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
105452         Match "This program" as well as "The program".  This is needed
105453         for gettext.
105455 2003-07-14  Jim Meyering  <jim@meyering.net>
105457         Don't emit diagnostics.  Let callers do that.
105458         * lib/save-cwd.c: Don't include "error.h".
105459         (save_cwd): Don't call error.  Ensure that errno is valid
105460         when returning nonzero.
105462         * lib/save-cwd.h (restore_cwd): Update prototype.
105463         * lib/save-cwd.c (restore_cwd): Remove two parameters.
105464         Simplify.  Don't call error upon failure.  Let callers do that.
105465         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
105466         when auditing is enabled.  But don't bother updating the #if.
105468 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
105470         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
105471         it breaks C++ compilation.
105472         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
105474 2003-07-10  Simon Josefsson  <jas@extundo.com>
105476         * modules/strchrnul (Makefile.am): Add strchrnul.h.
105478 2003-07-10  Jim Meyering  <jim@meyering.net>
105480         * m4/clock_time.m4: Remove trailing blank.
105481         * m4/intmax_t.m4: Likewise.
105483 2003-07-10  Jim Meyering  <jim@meyering.net>
105485         * lib/vasnprintf.c: Remove trailing blanks.
105486         Make cpp indentation consistent.
105488 2003-07-09  Paul Eggert  <eggert@twinsun.com>
105490         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
105491         posixver.c, strftime.c, strnlen.c, strverscmp.c:
105492         Switch from LGPL to GPL.
105494 2003-07-09  Paul Eggert  <eggert@twinsun.com>
105496         * config/srclist.txt: Sort sublists.  Add
105497         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
105498         that differ from gnulib for one reason or another; we'd like this list
105499         to be smaller but for now let's document what we have.
105501 2003-07-08  Paul Eggert  <eggert@twinsun.com>
105503         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
105504         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
105505         and sweeter "eval x=$x".
105506         * config/srclist.txt: Get lib/argp* from glibc.
105508 2003-07-07  Paul Eggert  <eggert@twinsun.com>
105510         * lib/mktime.c: Fix some boundary cases and remove need for floating
105511         point.
105513         Issue a compile-time diagnostic if time_t is floating point, or if
105514         two's complement arithmetic is not in effect, or if arithmetic
105515         right shift does not propagate the sign.  These assumptions were
105516         all in the original code but they weren't checked.
105518         (TIME_T_MIDPOINT, verify): New macros.
105519         (__isleap): Remove; it has integer overflow problems.
105520         (leapyear): New function, without those problems.
105521         (ydhms_tm_diff): Remove; splitting into two parts.
105522         (ydhms_diff): New function, containing the arithmetic part of
105523         the old ydhms_tm_diff function.  Issue a compile-time
105524         diagnostic if we are not using C99 integer division.
105525         Avoid casts when possible.
105526         (guess_time_tm): New function, containing the checking part of
105527         the old ydhms_tm_diff function.  Return the new value, rather than
105528         the difference between it and the old.  Accept a new argument T
105529         so that *T specifies the old value.  Check for overflow in the result.
105531         (__mktime_internal): Use a time_t offset, not a long int offset.
105532         This undoes the 2003-06-04 change, which is no longer needed now
105533         that we have better overflow checking.
105534         (localtime_offset): Likewise.
105536         (__mktime_internal): Avoid harmful overflow on hosts where time_t
105537         and long are 64-bit but int is only 32-bit.
105538         (ydhms_diff): Use long int to store year1 and yday1.
105539         Issue a compile-time diagnostic if long int is not wide enough.
105541         (__mktime_internal): Use long int to store adjusted year and yday.
105542         Use plain C rather than preprocessor commands, if that doesn't
105543         affect efficiency.
105544         Check for overflow (and try to repair) after each probe
105545         rather than checking only at the very end.  This avoids some bugs
105546         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
105547         does not equal GMT offset at maximum time).
105548         Use integer to check for overflow rather than floating point; this
105549         is more portable to non-IEEE hosts, and is a tad faster.
105550         When we detect that we are oscillating between two values,
105551         don't check whether tm_isdst has the requested value, since
105552         we already know the answer.  When tm_isdst has the wrong value,
105553         use a different heuristic to find the right one, based on the
105554         extreme values actually observed in practice in tz2003a,
105555         rather than the (overly optimistic) "previous 3 calendar quarters".
105557         (not_equal_tm, print_tm, check_result): Use "const T" rather than
105558         "T const" to accommodate glibc style.
105559         (check_result): Use less-confusing report format.  "long" -> "long int.
105560         (main): Likewise.
105561         Don't loop if the iteration overflows time_t.
105562         Allow a negative step in the iteration.
105564 2003-07-06  Karl Berry  <karl@gnu.org>
105566         * config/depcomp: update from automake.
105567         * config/config.sub: update from prep.
105569 2003-07-03  Karl Berry  <karl@gnu.org>
105571         * config/config.guess: update from prep.
105573 2003-07-01  Paul Eggert  <eggert@twinsun.com>
105575         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
105576         xreadlink.c now includes it unconditionally.
105578 2003-07-01  Paul Eggert  <eggert@twinsun.com>
105580         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
105581         having it depend on HAVE_SYS_TYPES_H.
105583 2003-07-01  Bruno Haible  <bruno@clisp.org>
105585         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
105586         <sys/types.h> should be sufficient.
105587         Reported by Paul Eggert.
105589 2003-06-26  Karl Berry  <karl@gnu.org>
105591         * config/depcomp: update from automake.
105593 2003-06-26  Bruno Haible  <bruno@clisp.org>
105595         * modules/human: Depend on module stdbool.
105597 2003-06-25  Bruno Haible  <bruno@clisp.org>
105599         * modules/readlink: New file.
105600         * modules/xreadlink: Depend on it.
105601         * MODULES.html.sh (func_all_modules): Add readlink.
105603 2003-06-25  Bruno Haible  <bruno@clisp.org>
105605         * m4/readlink.m4: New file.
105607 2003-06-25  Bruno Haible  <bruno@clisp.org>
105609         * lib/readlink.c: New file.
105611 2003-06-22  Karl Berry  <karl@gnu.org>
105613         * config/srclist.txt: update mkinstalldirs from automake.
105614         * config/mkinstalldirs: update.
105616 2003-06-22  Bruno Haible  <bruno@clisp.org>
105618         Portability to mingw32.
105619         * m4/ssize_t.m4: New file, from GNU gettext.
105620         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
105621         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
105623 2003-06-22  Bruno Haible  <bruno@clisp.org>
105625         * modules/safe-read: Add m4/ssize_t.m4.
105626         * modules/xreadlink: Add m4/ssize_t.m4.
105628 2003-06-20  Bruno Haible  <bruno@clisp.org>
105630         Assume C89, so PARAMS isn't needed.
105631         * lib/unicodeio.h (PARAMS): Remove.
105632         * lib/unicodeio.c: Don't use PARAMS.
105634 2003-06-18  Karl Berry  <karl@gnu.org>
105636         * config/config.{guess,sub}: update from prep.
105638 2003-06-18  Jim Meyering  <jim@meyering.net>
105640         Merge changes from coreutils.
105641         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
105642         Remove explicit declarations of xmalloc and realloc.
105643         Include xalloc.h.
105644         (read_utmp): Remove anachronistic cast of xmalloc.
105646 2003-06-17  Paul Eggert  <eggert@twinsun.com>
105648         Assume C89, so PARAMS isn't needed.
105649         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
105650         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
105651         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
105652         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
105653         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
105654         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
105655         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
105656         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
105657         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
105658         lib/xstrtod.h, lib/xstrtol.h: Likewise.
105659         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
105660         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
105661         no longer needed. Anyway, config.h should always be included before any
105662         other file.
105664 2003-06-11  Simon Josefsson  <jas@extundo.com>
105666         * modules/sysexits: New file.
105667         * MODULES.html.sh (func_all_modules): Add sysexits.
105669 2003-06-11  Simon Josefsson  <jas@extundo.com>
105671         * lib/sysexit_.h: New file.
105673 2003-06-11  Derek Price  <derek@ximbiot.com>
105675         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
105676         necessary.
105678 2003-06-11  Bruno Haible  <bruno@clisp.org>
105680         * m4/sysexits.m4: New file.
105682 2003-06-10  Simon Josefsson  <jas@extundo.com>
105684         * lib/argp.h: New file, from glibc.
105685         * lib/argp-ba.c: New file, from glibc.
105686         * lib/argp-eexst.c: New file, from glibc.
105687         * lib/argp-fmtstream.c: New file, from glibc.
105688         * lib/argp-fmtstream.h: New file, from glibc.
105689         * lib/argp-fs-xinl.c: New file, from glibc.
105690         * lib/argp-help.c: New file, from glibc.
105691         * lib/argp-namefrob.h: New file, from glibc.
105692         * lib/argp-parse.c: New file, from glibc.
105693         * lib/argp-pv.c: New file, from glibc.
105694         * lib/argp-pvh.c: New file, from glibc.
105695         * lib/argp-xinl.c: New file, from glibc.
105697 2003-06-10  Simon Josefsson  <jas@extundo.com>
105699         * modules/strchrnul: New file.
105701 2003-06-10  Simon Josefsson  <jas@extundo.com>
105703         * modules/argp: New file.
105705 2003-06-10  Simon Josefsson  <jas@extundo.com>
105707         * m4/strchrnul.m4: New file.
105709 2003-06-10  Simon Josefsson  <jas@extundo.com>
105711         * lib/strchrnul.h: New file.
105712         * lib/strchrnul.c: New file.
105714 2003-06-10  Bruno Haible  <bruno@clisp.org>
105716         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
105718 2003-06-07  Karl Berry  <karl@gnu.org>
105720         * config/config.{guess,sub}: update from prep.
105722 2003-06-07  Jim Meyering  <jim@meyering.net>
105724         * modules/strtod: Use $(...) notation, not @...@ for
105725         AC_REPLACE'd variables.
105726         * modules/localcharset: Likewise.
105728 2003-06-07  Jim Meyering  <jim@meyering.net>
105730         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
105731         in place of my name in the copyright comment.
105732         Remove definition and uses of __P.
105734         From coreutils.
105735         * lib/stat.c: Don't declare xmalloc explicitly.
105736         Instead, include "xalloc.h".
105737         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
105738         xrealloc, and xcalloc return values.
105739         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
105740         Improve comment.
105741         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
105743 2003-06-07  Bruno Haible  <bruno@clisp.org>
105745         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
105746         avoid AC_CONFIG_LINKS.
105747         * modules/fnmatch (Makefile.am): Use explicit creation rule for
105748         fnmatch.h, to avoid AC_CONFIG_LINKS.
105749         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
105751 2003-06-07  Bruno Haible  <bruno@clisp.org>
105753         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
105754         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
105755         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
105756         directory.
105757         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
105758         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
105759         directory.
105761 2003-06-06  Jim Meyering  <jim@meyering.net>
105763         Merge from coreutils.
105764         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
105765         Consolidate declarations and initializations of *_base* locals.
105767         Merge from coreutils.
105768         This avoids a core dump on systems without GNU putenv,
105769         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
105770         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
105771         (unsetenv): New static function, from GNU libc.
105772         (rpl_putenv): Use it.
105774         * lib/modechange.c: Remove trailing blanks.
105776         Merge from coreutils.
105777         * lib/fsusage.c: Remove declaration of statfs.
105778         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
105780         * lib/posixtm.c: Include <stdbool.h> unconditionally.
105782 2003-06-06  Jim Meyering  <jim@meyering.net>
105784         * lib/stdbool_.h: Renamed from stdbool.h.in.
105786 2003-06-06  Jim Meyering  <jim@meyering.net>
105787             Bruno Haible  <bruno@clisp.org>
105789         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
105790         Adjust Makefile.am snippet not to redirect directly to target.
105791         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
105793 2003-06-05  Paul Eggert  <eggert@twinsun.com>
105795         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
105796         mismatch, look in future quarters as well as past.  This fixes a
105797         bug when processing fall-backwards gaps immediately after a long
105798         period of daylight-saving time.
105800         * lib/mktime.c: Assume freestanding C89 or better.
105801         (HAVE_LIMITS_H): Remove.  Assume it's 1.
105802         (__P): Remove; not used.
105803         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
105804         (mktime, not_equal_tm, print_tm, check_result,
105805         main): Use prototypes.  Use const * where appropriate.
105806         (main): Fix typo in testing code that uncovered by above changes.
105807         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
105809 2003-06-04  Paul Eggert  <eggert@twinsun.com>
105811         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
105812         locale.h, localeconv.  This merges changes from coreutils.
105814         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
105815         It can be removed after the next Autoconf is released.
105816         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
105817         needed.
105819 2003-06-04  Paul Eggert  <eggert@twinsun.com>
105821         * lib/mktime.c: Fix Debian bug 177940
105822         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
105823         (localtime_offset): Now long int, not time_t, because we want it
105824         to be guaranteed to be signed.  All uses changed.
105825         (__mktime_internal): If overflow would occur when adding offset,
105826         don't add it.
105828         Merge 'human' changes from coreutils.  Rewrite to support
105829         locale-specific notations like thousands separators.
105830         * lib/human.c: Simplify authorship notice.
105831         Include human.h immediately after config.h.
105832         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
105833         <limits.h>: Do not include, since human.h does.
105834         (SIZE_MAX, UINTMAX_MAX): New macros.
105835         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
105836         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
105837         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
105838         (power_letter): Renamed from suffixes.
105839         (generate_suffix_backwards): Remove.
105840         (adjust_value): Now takes int style (because of human.h changes)
105841         and long double value (for greater precision on some platforms).
105842         (group_number): New function.
105843         (human_readable): Use it.  Use integer options, not enum.
105844         Put the options before the sizes in the arg list.
105845         Support all the new options.
105846         The old human_readable function has been removed;
105847         use inttostr.h instead.
105848         (human_readable, default_block_size, humblock):
105849         Use uintmax_t, not int, for block sizes.
105850         (human_readable_inexact, block_size_types): Remove.
105851         (block_size_opts): New constant.
105852         (human_options): Renamed from human_block_size, with new signature
105853         that allows block sizes up to UINTMAX_MAX.  All callers changed.
105854         * lib/human.h: Add copyright and authorship notice.
105855         Include <limits.h> and <stdbool.h> unconditionally.
105856         (PARAMS): Remove.  All uses removed.
105857         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
105858         (enum human_inexact_style): Remove tag; now a nameless enum.
105859         (human_floor, human_ceiling, human_round_to_even): Now have
105860         values 2, 0, 1 rather than -1, 1, 0.
105861         (human_group_digits, human_suppress_point_zero, human_autoscale,
105862         human_base_1024, human_SI, human_B): New constants.
105863         (human_readable_inexact, human_block_size): Remove.
105864         (human_readable): Size args are now uintmax_t, not int.
105865         (human_options): New decl.
105867         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
105868         unnecessary now that we assume C89 or better.  This change
105869         imported from coreutils.
105871         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
105872         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
105873         in the 2003-05-30 sync from glibc.
105875         .h files should stand alone, but we shouldn't include <sys/types.h>
105876         if we can get away with just <stddef.h>.
105878         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
105879         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
105880         rather than <sys/types.h>, as we merely need size_t.
105881         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
105882         to get size_t.
105883         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
105884         Include <stdio.h>, to get FILE.
105885         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
105886         memcasecmp.h has included <stddef.h> and all we need is size_t.
105887         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
105888         our interface, instead of including <sys/types.h>
105890 2003-06-04  Paul Eggert  <eggert@twinsun.com>
105892         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
105893         now, as glibc mktime is buggy on non-glibc systems.
105895 2003-06-03  Karl Berry  <karl@gnu.org>
105897         * config/config.sub: update from prep.
105899 2003-06-02  Paul Eggert  <eggert@twinsun.com>
105901         [from coreutils]
105902         Fix some minor time-related bugs with POSIX time arguments.
105903         Some valid time stamps were being rejected (notably -1, and
105904         time stamps before 1900 on 64-bit hosts).  And some invalid
105905         time stamps were being accepted, e.g. September 31.
105907         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
105908         that we can return (time_t) -1 successfully.
105909         * lib/posixtm.c: Likewise.
105910         [HAVE_STDBOOL_H]: Include <stdbool.h>.
105911         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
105912         (t): Remove static var.
105913         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
105914         of static var.  All uses changed.
105915         (year): Do not reject years before 1900; they can occur with
105916         64-bit time_t.
105917         (posix_time_parse): Do not check for out-of-range components;
105918         that is now the caller's responsibility, since our checks were
105919         only approximations.
105920         (posixtime): Use mktime to check for out-of-range components,
105921         since it knows them exactly.
105922         If mktime returns (time_t) -1, check whether an error actually occurred
105923         by invoking localtime on -1.
105924         (main) [TEST_POSIXTIME]: Check for input data errors, and report
105925         posixtime failures better.
105926         Improve the test data (in comments only).
105928 2003-06-02  Karl Berry  <karl@gnu.org>
105930         * config/mkinstalldirs (version): new variable.
105931         (--version): new option.
105932         (usage): improve message.
105934 2003-05-30  Karl Berry  <karl@gnu.org>
105936         * lib/mktime.c: update from libc.
105938 2003-05-30  Bruno Haible  <bruno@clisp.org>
105940         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
105941         * config/config.rpath: Upgrade to gettext-0.12.1.
105943 2003-05-30  Bruno Haible  <bruno@clisp.org>
105945         * m4/gettext.m4: Upgrade to gettext-0.12.1.
105946         * m4/nls.m4: New file, from gettext-0.12.1.
105947         * m4/po.m4: New file, from gettext-0.12.1.
105948         * m4/progtest.m4: Upgrade to gettext-0.12.1.
105950 2003-05-30  Bruno Haible  <bruno@clisp.org>
105952         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
105953         * lib/localcharset.h: Likewise.
105954         * lib/localcharset.c: Likewise.
105956 2003-05-29  Karl Berry  <karl@gnu.org>
105958         * config/config.rpath: update from gettext.
105960 2003-05-28  Paul Eggert  <eggert@twinsun.com>
105962         Assume the headers required for C89 freestanding compilers.
105963         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
105964         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
105965         * m4/human.m4 (gl_HUMAN): Likewise.
105966         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
105967         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
105968         * m4/userspec.m4 (gl_USERSPEC): Likewise.
105969         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
105970         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
105971         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
105973 2003-05-28  Paul Eggert  <eggert@twinsun.com>
105975         Assume the headers required for C89 freestanding compilers.
105976         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
105977         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
105978         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
105979         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
105980         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
105981         define, since <limits.h> is guaranteed to do that.
105982         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
105983         * lib/exclude.c: Include <stdbool.h> unconditionally.
105984         * lib/tempname.c: Include <stddef.h> unconditionally.
105985         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
105986         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
105987         <stddef.h> does that.
105988         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
105989         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
105990         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
105991         needed.
105992         * lib/xstrtol.c: Likewise.
105993         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
105994         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
105996         * lib/addext.c (addext): Use assignment rather than cast, to avoid
105997         warnings on some platforms.
105999         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
106000         arbitrarily.
106002 2003-05-26  Jim Meyering  <jim@meyering.net>
106004         Merge in a change from coreutils:
106005         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
106006         that is guaranteed to be `no'.  Use `no_such_member' to indicate
106007         that condition, rather than `-1' which is slightly misleading.
106008         Change the name of the cache variable to have the gl_ prefix.
106009         Prompted by a patch from Richard Dawe for DJGPP.
106011 2003-05-24  Karl Berry  <karl@gnu.org>
106013         * config/config.guess: update from prep.
106015 2003-05-22  Karl Berry  <karl@gnu.org>
106017         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
106019 2003-05-20  Karl Berry  <karl@gnu.org>
106021         * config/config.guess: update from prep.
106023 2003-05-18  Karl Berry  <karl@gnu.org>
106025         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
106026         might actually be set by the user.
106028         * config/depcomp, install-sh, mdate-sh: update from automake.
106030 2003-05-17  Bruno Haible  <bruno@clisp.org>
106032         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
106033         invalid expansion for AC_EGREP_CPP.
106034         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
106035         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
106036         Suggested by Akim Demaille <akim@epita.fr> in
106037         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
106039 2003-05-12  Jim Meyering  <jim@meyering.net>
106041         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
106042         the space-padded-by-default conversion specifiers, %e, %k, %l.
106044 2003-05-12  Bruno Haible  <bruno@clisp.org>
106046         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
106047         the string is longer than 4 KB.
106049 2003-05-11  Karl Berry  <karl@gnu.org>
106051         * config/config.{guess,sub}: update from prep.
106053 2003-05-09  Bruno Haible  <bruno@clisp.org>
106055         * modules/error: Add m4/strerror_r.m4 to file list.
106057 2003-05-03  Bruno Haible  <bruno@clisp.org>
106059         Upgrade to Unicode-4.0.
106060         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
106061         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
106062         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
106063         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
106064         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
106065         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
106066         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
106067         Change width of U+E0100..U+E01EF from 1 to 0.
106069 2003-04-25  Jim Meyering  <jim@meyering.net>
106071         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
106072         of type size_t, not int.
106074 2003-04-25  Bruno Haible  <bruno@clisp.org>
106076         * lib/copy-file.c: Include <stddef.h>, for size_t.
106078 2003-04-21  Paul Eggert  <eggert@twinsun.com>
106080         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
106081         code which expansion is under static control.  Patch imported from
106082         Akim Demaille's patch to Bison; see
106083         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
106085 2003-04-14  Bruno Haible  <bruno@clisp.org>
106087         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
106089 2003-04-11  Jim Meyering  <jim@meyering.net>
106091         Merge changes from Coreutils.
106093         2003-03-22  Jim Meyering  <jim@meyering.net>
106095         * lib/strftime.c (widen): Cast alloca return value to proper type.
106097         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
106099         From GNU libc.
106100         * lib/strftime.c (my_strftime): Handle very large width
106101         specifications for numeric values correctly.  Improve checks for
106102         overflow.
106104         2003-01-19  Jim Meyering  <jim@meyering.net>
106106         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
106107         definitions.
106108         (nl_get_alt_digit) [! defined my_strftime]: Define.
106109         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
106110         _nl_get_alt_digit and _nl_get_walt_digit.
106112         * lib/strftime.c (my_strftime): Merge in locale-related changes from
106113         libc. These changes have no effect outside of _LIBC.
106115 2003-04-10  Bruno Haible  <bruno@clisp.org>
106117         * modules/findprog: New file.
106118         * MODULES.html.sh (func_all_modules): Add it.
106120 2003-04-10  Bruno Haible  <bruno@clisp.org>
106122         * m4/findprog.m4: New file.
106123         * m4/eaccess.m4: New file.
106125 2003-04-10  Bruno Haible  <bruno@clisp.org>
106127         * lib/findprog.h: New file, from GNU gettext.
106128         * lib/findprog.c: New file, from GNU gettext.
106130 2003-04-05  Jim Meyering  <jim@meyering.net>
106132         Merge changes from Coreutils.
106134         * lib/exclude.h (PARAMS): Remove definition and uses.
106135         * lib/exclude.c: Remove uses of `PARAMS'.
106137         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
106138         Add test-cases for DOS filenames. Declare program_name.
106139         (main): Set up program_name.  Patch by Rich Dawe.
106141         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
106142         error from mntctl.
106143         Use mntctl's return value to drive the entry-processing loop, since
106144         we can't rely on the value of the vmt_length member in the last
106145         entry.  On some systems doing so could result in exhausting
106146         virtual memory.  Based in part on a patch from Mike Jetzer.
106148 2003-04-04  Bruno Haible  <bruno@clisp.org>
106150         * modules/linebreak: New file.
106151         * MODULES.html.sh (func_all_modules): Add it.
106153 2003-04-04  Bruno Haible  <bruno@clisp.org>
106155         * m4/linebreak.m4: New file.
106157 2003-04-04  Bruno Haible  <bruno@clisp.org>
106159         * lib/linebreak.h: New file, from GNU gettext.
106160         * lib/linebreak.c: New file, from GNU gettext with slight
106161         modifications.
106162         * lib/lbrkprop.h: New file, from GNU gettext.
106164 2003-04-03  Bruno Haible  <bruno@clisp.org>
106166         * modules/utf8-ucs4: New file.
106167         * modules/utf16-ucs4: New file.
106168         * modules/ucs4-utf8: New file.
106169         * modules/ucs4-utf16: New file.
106170         * MODULES.html.sh (func_all_modules): Add them.
106172 2003-04-03  Bruno Haible  <bruno@clisp.org>
106174         * m4/utf-ucs4.m4: New file.
106175         * m4/ucs4-utf.m4: New file.
106177 2003-04-03  Bruno Haible  <bruno@clisp.org>
106179         * lib/utf8-ucs4.h: New file, from GNU gettext.
106180         * lib/utf16-ucs4.h: New file, from GNU gettext.
106181         * lib/ucs4-utf8.h: New file, from GNU gettext.
106182         * lib/ucs4-utf16.h: New file, from GNU gettext.
106184 2003-04-02  Bruno Haible  <bruno@clisp.org>
106186         * modules/binary-io: New file.
106187         * MODULES.html.sh (func_all_modules): Add it.
106189 2003-04-02  Bruno Haible  <bruno@clisp.org>
106191         * lib/binary-io.h: New file, from GNU gettext.
106193 2003-04-01  Bruno Haible  <bruno@clisp.org>
106195         * modules/pathname: New file.
106196         * MODULES.html.sh (func_all_modules): Add it.
106198 2003-04-01  Bruno Haible  <bruno@clisp.org>
106200         * lib/pathname.h: New file, from GNU gettext.
106201         * lib/concatpath.c: New file, from GNU gettext.
106203 2003-03-30  Bruno Haible  <bruno@clisp.org>
106205         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
106207 2003-03-30  Bruno Haible  <bruno@clisp.org>
106209         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
106210         function chown() doesn't exist.
106212 2003-03-28  Bruno Haible  <bruno@clisp.org>
106214         * modules/copy-file: New file.
106215         * MODULES.html.sh (func_all_modules): Add it.
106217 2003-03-28  Bruno Haible  <bruno@clisp.org>
106219         * m4/copy-file.m4: New file.
106221 2003-03-28  Bruno Haible  <bruno@clisp.org>
106223         * lib/copy-file.h: New file, from GNU gettext.
106224         * lib/copy-file.c: New file, from GNU gettext.
106226 2003-03-18  Jim Meyering  <jim@meyering.net>
106228         * lib/quote.c (quote_n): Fix typo in comment.
106230 2003-03-18  Bruno Haible  <bruno@clisp.org>
106232         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
106233         checking.
106234         * m4/onceonly_2_57.m4: Likewise.
106236 2003-03-17  Bruno Haible  <bruno@clisp.org>
106238         * m4/onceonly.m4: Require autoconf 2.54 or newer.
106239         (m4_quote): Remove macro.
106240         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
106242 2003-03-14  Jim Meyering  <jim@meyering.net>
106244         Merge changes from Coreutils.
106245         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
106246         to be const, in order to avoid warnings.
106247         (obstack_room): Likewise.
106248         (obstack_empty_p): Likewise.
106250 2003-03-14  Bruno Haible  <bruno@clisp.org>
106252         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
106253         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
106255 2003-03-13  Paul Eggert  <eggert@twinsun.com>
106257         Merge changes from Bison.
106258         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
106259         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
106260         when compiling Bison 1.875's `bitset bset = obstack_alloc
106261         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
106262         * lib/hash.c: Include <stdbool.h> unconditionally.
106264 2003-03-13  Paul Eggert  <eggert@twinsun.com>
106266         * m4/onceonly.m4 (m4_quote): New macro.
106267         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
106268         Quote AC_FOREACH variable-expansions properly.
106270 2003-03-13  Paul Eggert  <eggert@twinsun.com>
106272         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
106274 2003-03-09  Paul Eggert  <eggert@twinsun.com>
106276         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
106277         Reported by Bruce Becker; see:
106278         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
106280 2003-03-03  Paul Eggert  <eggert@twinsun.com>
106281             Bruno Haible  <bruno@clisp.org>
106283         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
106284         Reported by John Hughes, see
106285         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
106287 2003-02-20  Bruno Haible  <bruno@clisp.org>
106289         * MODULES.html.sh (func_all_modules): Add poll.
106291 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
106293         * modules/poll: New file.
106295 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
106297         * lib/poll_.h: New file.
106298         * lib/poll.c: New file.
106300 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
106302         * m4/poll.m4: New file.
106304 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
106306         * modules/mathl: New file.
106308 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
106310         * lib/mathl.h: New file.
106311         * lib/acosl.c: New file.
106312         * lib/asinl.c: New file.
106313         * lib/atanl.c: New file.
106314         * lib/ceill.c: New file.
106315         * lib/cosl.c: New file.
106316         * lib/expl.c: New file.
106317         * lib/floorl.c: New file.
106318         * lib/frexpl.c: New file.
106319         * lib/ldexpl.c: New file.
106320         * lib/logl.c: New file.
106321         * lib/sincosl.c: New file.
106322         * lib/sinl.c: New file.
106323         * lib/sqrtl.c: New file.
106324         * lib/tanl.c: New file.
106325         * lib/trigl.c: New file.
106326         * lib/trigl.h: New file.
106328 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
106330         * m4/mathl.m4: New file.
106332 2003-02-18  Bruno Haible  <bruno@clisp.org>
106334         * MODULES.html.sh (func_all_modules): Add mathl.
106336 2003-02-17  Bruno Haible  <bruno@clisp.org>
106338         * modules/mkdtemp: New module.
106339         * MODULES.html.sh (func_all_modules): Add it.
106341 2003-02-17  Bruno Haible  <bruno@clisp.org>
106343         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
106345 2003-02-17  Bruno Haible  <bruno@clisp.org>
106347         * lib/mkdtemp.h: New file, from GNU gettext.
106348         * lib/mkdtemp.c: New file, from GNU gettext.
106350 2003-02-02  Jim Meyering  <jim@meyering.net>
106352         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
106353         e.g. glibc-2.2.93.
106355 2003-01-31  Bruno Haible  <bruno@clisp.org>
106357         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
106358         'rpl_rename'.
106359         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
106360         'rpl_strnlen'.
106361         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
106362         'rpl_strtod'.
106363         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
106364         'rpl_utime'.
106366 2003-01-31  Bruno Haible  <bruno@clisp.org>
106368         * lib/rename.c: #undef rename before defining rpl_rename.
106369         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
106371 2003-01-30  Bruno Haible  <bruno@clisp.org>
106373         * modules/vasnprintf, modules/vasprintf: New modules.
106374         * MODULES.html.sh (func_all_modules): Add them.
106376 2003-01-30  Bruno Haible  <bruno@clisp.org>
106378         * m4/signed.m4: New file, from GNU gettext.
106379         * m4/longdouble.m4: New file, from GNU gettext.
106380         * m4/wchar_t.m4: New file, from GNU gettext.
106381         * m4/wint_t.m4: New file, from GNU gettext.
106382         * m4/vasnprintf.m4: New file.
106383         * m4/vasprintf.m4: New file.
106385 2003-01-30  Bruno Haible  <bruno@clisp.org>
106387         * lib/printf-args.h: New file, from GNU gettext.
106388         * lib/printf-args.c: New file, from GNU gettext.
106389         * lib/printf-parse.h: New file, from GNU gettext.
106390         * lib/printf-parse.c: New file, from GNU gettext.
106391         * lib/vasnprintf.h: New file, from GNU gettext.
106392         * lib/vasnprintf.c: New file, from GNU gettext.
106393         * lib/asnprintf.c: New file, from GNU gettext.
106394         * lib/vasprintf.h: New file, from GNU gettext with modifications.
106395         * lib/vasprintf.c: New file, from GNU gettext.
106396         * lib/asprintf.c: New file, from GNU gettext.
106398 2003-01-29  Bruno Haible  <bruno@clisp.org>
106400         * modules/stpncpy: New module.
106401         * MODULES.html.sh (func_all_modules): Add it.
106403 2003-01-29  Bruno Haible  <bruno@clisp.org>
106405         * m4/stpncpy.m4: New file.
106407 2003-01-29  Bruno Haible  <bruno@clisp.org>
106409         * lib/stpncpy.h: New file, from GNU gettext with modifications.
106410         * lib/stpncpy.c: New file, from GNU gettext with modifications.
106412 2003-01-28  Bruno Haible  <bruno@clisp.org>
106414         * modules/c-ctype: New module.
106415         * MODULES.html.sh (func_all_modules): Add it.
106417 2003-01-28  Bruno Haible  <bruno@clisp.org>
106419         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
106420         Paul Eggert.
106421         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
106422         Paul Eggert.
106424 2003-01-27  Bruno Haible  <bruno@clisp.org>
106426         * modules/xsetenv: New module.
106427         * MODULES.html.sh (func_all_modules): Add it.
106429 2003-01-27  Bruno Haible  <bruno@clisp.org>
106431         * lib/xsetenv.h: New file, from GNU gettext.
106432         * lib/xsetenv.c: New file, from GNU gettext.
106434 2003-01-23  Jim Meyering  <jim@meyering.net>
106436         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
106437         from working on systems without dirfd (at least Irix and OSF1/Tru64).
106439 2003-01-23  Bruno Haible  <bruno@clisp.org>
106441         * modules/minmax: New module.
106442         * MODULES.html.sh (func_all_modules): Add it.
106444 2003-01-23  Bruno Haible  <bruno@clisp.org>
106446         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
106447         Eggert.
106449 2003-01-22  Bruno Haible  <bruno@clisp.org>
106451         * modules/exit: New module.
106452         * MODULES.html.sh (func_all_modules): Add it.
106454 2003-01-22  Bruno Haible  <bruno@clisp.org>
106456         * lib/exit.h: New file, from GNU gettext.
106458 2003-01-19  Bruno Haible  <bruno@clisp.org>
106460         * gnulib-tool: Recognize option --extract-maintainer.
106461         (func_get_maintainer): New function.
106462         * modules/*: Add Maintainer entry.
106464 2003-01-16  Jim Meyering  <jim@meyering.net>
106466         * m4/regex.m4: The `regex' struct is both input and output.
106467         Initialize it before each use.  Patch by Tim Waugh.
106469 2003-01-16  Bruno Haible  <bruno@clisp.org>
106471         * MODULES.html.sh: Add a table of contents. Add the module name as
106472         leftmost column. Add hyperlinks.
106474 2003-01-15  Bruno Haible  <bruno@clisp.org>
106476         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
106478 2003-01-15  Bruno Haible  <bruno@clisp.org>
106480         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
106481         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
106482         suffix.
106484 2003-01-15  Bruno Haible  <bruno@clisp.org>
106486         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
106488 2003-01-15  Bruno Haible  <bruno@clisp.org>
106490         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
106491         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
106493 2003-01-14  Jim Meyering  <jim@meyering.net>
106495         * lib/same.c (same_name): Tweak a comment.
106497 2003-01-14  Bruno Haible  <bruno@clisp.org>
106499         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
106500         when a string comparison is sufficient.
106502 2003-01-14  Bruno Haible  <bruno@clisp.org>
106504         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
106505         'unsigned int'.
106507 2003-01-14  Bruno Haible  <bruno@clisp.org>
106509         * lib/hash-pjw.c: Add comment about low quality of this function.
106511 2003-01-13  Bruno Haible  <bruno@clisp.org>
106513         * modules/stpcpy: Distribute lib/stpcpy.h.
106514         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
106516 2003-01-13  Bruno Haible  <bruno@clisp.org>
106518         * modules/*: Add a description.
106519         * modules/strpbrk: Fix Makefile.am snippet.
106520         * modules/strtoimax: Fix dependencies.
106521         * modules/strtoumax: Likewise.
106523 2003-01-13  Bruno Haible  <bruno@clisp.org>
106525         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
106526         * modules/alloca (Makefile.am): All object files depend on alloca.h.
106527         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
106529 2003-01-13  Bruno Haible  <bruno@clisp.org>
106531         * gnulib-tool (func_create_testdir): Store config/* files in the main
106532         directory.
106533         * config.rpath: Move to ...
106534         * config/config.rpath: ... here.
106535         * modules/gettext: Contains config/config.rpath, not config.rpath.
106536         * modules/iconv: Likewise.
106538 2003-01-12  Paul Eggert  <eggert@twinsun.com>
106540         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
106541         to avoid collisions with libcurses and libreadline.
106543         * m4/getstr.m4: Remove.
106544         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
106546 2003-01-12  Paul Eggert  <eggert@twinsun.com>
106548         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
106549         to avoid collisions with libcurses and libreadline.
106551         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
106552         * lib/getstr.h, getstr.c: Remove.
106553         * lib/getline.c: Include "getline.h", to check interface.
106554         Move body of old getstr.c here: this defines MIN_CHUNK and
106555         declares getdelim2, which is renamed from getstr.
106556         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
106558         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
106559         All uses changed.
106560         * lib/linebuffer.h: Likewise.
106561         (readline): Remove backward-compatibility macro.
106563 2003-01-12  Paul Eggert  <eggert@twinsun.com>
106565         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
106566         to avoid collisions with libcurses and libreadline.
106567         * getstr: Remove.
106568         * MODULES.html.sh: Remove getstr.
106569         * modules/getline: Depend on unlocked-io, not getstr.
106571 2003-01-12  Jim Meyering  <jim@meyering.net>
106573         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
106575 2003-01-10  Bruno Haible  <bruno@clisp.org>
106577         * modules/alloca: Change Makefile.am requirements. Simplify Include
106578         requirements. Add lib/alloca_.h to file list.
106580 2003-01-10  Bruno Haible  <bruno@clisp.org>
106582         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
106584 2003-01-10  Bruno Haible  <bruno@clisp.org>
106586         * lib/alloca_.h: New file.
106587         * lib/getdate.y: Unconditionally include alloca.h.
106588         * lib/makepath.c: Likewise.
106589         * lib/setenv.c: Likewise.
106590         * lib/userspec.c: Likewise.
106592 2003-01-09  Karl Berry  <karl@gnu.org>
106594         * MODULES.html.sh: include `dirname $0` in PATH, to find
106595         gnulib-tool.
106597 2003-01-09  Bruno Haible  <bruno@clisp.org>
106599         * modules/stdbool: Change configure.ac, Makefile.am requirements.
106600         Simplify Include requirements. Add lib/stdbool.h.in to file list.
106602 2003-01-09  Bruno Haible  <bruno@clisp.org>
106604         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
106606 2003-01-09  Bruno Haible  <bruno@clisp.org>
106608         * lib/stdbool.h.in: New file.
106610 2003-01-09  Bruno Haible  <bruno@clisp.org>
106612         * gnulib-tool (func_all_modules): Ignore files ending in ~.
106613         * MODULES.html.sh: Likewise.
106615 2003-01-08  Jim Meyering  <jim@meyering.net>
106617         * lib/full-write.c: Undefine and define-away `const' after inclusion
106618         of errno.h, not before.  Suggestion from Bruno Haible.
106620 2003-01-08  Bruno Haible  <bruno@clisp.org>
106622         * modules/full-read: Depend on full-write.
106624 2003-01-08  Bruno Haible  <bruno@clisp.org>
106626         * lib/safe-read.c: Include specification header first, to ensure its
106627         selfcontainedness.
106628         * lib/full-write.c: Likewise.
106630 2003-01-07  Jim Meyering  <jim@meyering.net>
106632         * lib/full-write.c: Rework so that it may serve to define full_read,
106633         too.
106634         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
106636 2003-01-07  Bruno Haible  <bruno@clisp.org>
106638         * lib/strtoimax.c: Include <stdint.h> as an alternative to
106639         <inttypes.h>.
106640         * lib/xstrtol.h: Likewise.
106641         * lib/xstrtoimax.c: Likewise.
106642         * lib/xstrtoumax.c: Likewise.
106643         * lib/human.h: Likewise.
106645         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
106646         on systems that have <inttypes.h> but not <stdint.h>.
106648 2003-01-07  Bruno Haible  <bruno@clisp.org>
106650         * MODULES.html.sh: Add copyright notice.
106651         (missed_files): Omit CVS directory entries.
106652         (func_module): Make it work with sed-3.02.
106653         * MODULES.txt: Remove file.
106655 2003-01-06  Jim Meyering  <jim@meyering.net>
106657         * lib/version-etc.c: Update year in translatable copyright string.
106659 2003-01-03  Karl Berry  <karl@gnu.org>
106661         * config/config.{guess,sub}: update from prep.
106663 2003-01-02  Karl Berry  <karl@gnu.org>
106665         * doc/COPYING.DOC: belatedly updated to 1.2.
106667 2003-01-01  Karl Berry  <karl@gnu.org>
106669         * gnulib-tool (func_verify_module): report module name $module in
106670         error message, not $1.
106671         * gnulib-tool (create-testdir): don't complain if destdir couldn't
106672         be created, only if it doesn't exist.
106673         * gnulib-tool (last_checkin_date): don't expand the $Date here.
106675 2002-12-31  Paul Eggert  <eggert@twinsun.com>
106677         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
106679 2002-12-31  Paul Eggert  <eggert@twinsun.com>
106681         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
106682         memcmp if strcoll doesn't work.
106684 2002-12-31  Bruno Haible  <bruno@clisp.org>
106686         * lib/utime.c (utime_null): No need to call ftruncate if the file was
106687         nonempty.
106689 2002-12-31  Bruno Haible  <bruno@clisp.org>
106691         * lib/memcoll.c (STRCOLL): New macro.
106692         (memcoll): Use it.
106694 2002-12-31  Bruno Haible  <bruno@clisp.org>
106696         * lib/localcharset.h: New file.
106697         * lib/localcharset.c: Include it.
106698         * lib/unicodeio.c: Likewise.
106700 2002-12-31  Bruno Haible  <bruno@clisp.org>
106702         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
106703         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
106705 2002-12-31  Bruno Haible  <bruno@clisp.org>
106707         * lib/getline.h: Include <stddef.h>, for size_t.
106709         * lib/unicodeio.h: Include <stddef.h>, for size_t.
106710         * lib/unicodeio.c: Don't include <stddef.h>.
106712 2002-12-31  Bruno Haible  <bruno@clisp.org>
106714         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
106715         HAVE_TM_ZONE.
106717 2002-12-24  Karl Berry  <karl@gnu.org>
106719         * config/config.guess: update from prep.
106721 2002-12-24  Bruno Haible  <bruno@clisp.org>
106723         General infrasructure.
106724         * m4/README: Rewritten.
106725         * m4/onceonly.m4: New file.
106726         * m4/onceonly_2_57.m4: New file.
106728         Module atexit.
106729         * m4/atexit.m4: New file.
106731         Module strtod.
106732         * m4/strtod.m4: New file.
106734         Module strtol.
106735         * m4/strtol.m4: New file.
106737         Module strtoul.
106738         * m4/strtoul.m4: New file.
106740         Module memchr.
106741         * m4/memchr.m4: New file.
106743         Module memcmp.
106744         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
106745         (jm_FUNC_MEMCMP): Invoke it.
106747         Module memcpy.
106748         * m4/memcpy.m4: New file.
106750         Module memmove.
106751         * m4/memmove.m4: New file.
106753         Module memset.
106754         * m4/memset.m4: New file.
106756         Module strcspn.
106757         * m4/strcspn.m4: New file.
106759         Module strpbrk.
106760         * m4/strpbrk.m4: New file.
106762         Module strstr.
106763         * m4/strstr.m4: New file.
106765         Module strerror.
106766         * m4/strerror.m4: New file.
106768         Module mktime.
106769         * m4/mktime.m4: Renamed from jm-mktime.m4.
106770         (gl_PREREQ_MKTIME): New macro.
106771         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
106773         Module malloc.
106774         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
106775         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
106776         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
106778         Module realloc.
106779         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
106780         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
106781         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
106783         Module strftime.
106784         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
106785         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
106786         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
106787         gl_TM_GMTOFF.
106788         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
106790         Module xalloc.
106791         * m4/xalloc.m4: New file.
106793         Module alloca.
106794         * m4/alloca.m4: New file.
106796         Module putenv.
106797         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
106798         (jm_FUNC_PUTENV): Invoke it.
106800         Module setenv.
106801         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
106802         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
106803         when invoked twice.
106804         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
106805         gt_FUNC_SETENV.
106807         Module memrchr.
106808         * m4/memrchr.m4: New file.
106810         Module stpcpy.
106811         * m4/stpcpy.m4: New file.
106813         Module strcase.
106814         * m4/strcase.m4: New file.
106816         Module strdup.
106817         * m4/strdup.m4: New file.
106819         Module strnlen.
106820         * m4/strnlen.m4: New file.
106822         Module strndup.
106823         * m4/strndup.m4: New file.
106825         Module xstrtod.
106826         * m4/xstrtod.m4: New file.
106828         Module xstrtol.
106829         * m4/xstrtol.m4: New file.
106831         Module getdate.
106832         * m4/getdate.m4: New file.
106834         Module unlocked-io.
106835         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
106836         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
106837         * m4/jm-glibc-io.m4n: Remove file.
106839         Module long-options.
106840         * m4/long-options.m4: New file.
106842         Module md5.
106843         * m4/md5.m4: New file.
106845         Module sha.
106846         * m4/sha.m4: New file.
106848         Module getstr.
106849         * m4/getstr.m4: New file.
106851         Module getline.
106852         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
106853         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
106854         <sys/types.h>, for size_t. Use the function name gnu_getline, not
106855         simply getline. Infoke gl_PREREQ_GETLINE.
106857         Module obstack.
106858         * m4/obstack.m4: New file.
106860         Module hash.
106861         * m4/hash.m4: New file.
106863         Module readtokens.
106864         * m4/readtokens.m4: New file.
106866         Module strverscmp.
106867         * m4/strverscmp.m4: New file.
106869         Module stdbool.
106870         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
106871         OSF/1.
106873         Module strtoll.
106874         * m4/strtoll.m4: New file.
106876         Module strtoull.
106877         * m4/strtoull.m4: New file.
106879         Module strtoimax.
106880         * m4/strtoimax.m4: New file.
106882         Module strtoumax.
106883         * m4/strtoumax.m4: New file.
106885         Module xstrtoimax.
106886         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
106887         jm_AC_PREREQ_XSTRTOIMAX.
106888         Moved the strtol prerequisites to strtol.m4.
106889         Moved the strtoll prerequisites to strtoll.m4.
106890         Moved the strtoimax prerequisites to strtoimax.m4.
106892         Module xstrtoumax.
106893         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
106894         jm_AC_PREREQ_XSTRTOUMAX.
106895         Moved the strtoul prerequisites to strtoul.m4.
106896         Moved the strtoull prerequisites to strtoull.m4.
106897         Moved the strtoumax prerequisites to strtoumax.m4.
106899         Module chown.
106900         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
106901         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
106903         Module dup2.
106904         * m4/dup2.m4: New file.
106906         Module ftruncate.
106907         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
106908         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
106910         Module getgroups.
106911         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
106912         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
106914         Module gettimeofday.
106915         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
106916         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
106917         gl_PREREQ_GETTIMEOFDAY.
106919         Module mkdir.
106920         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
106921         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
106923         Module mkstemp.
106924         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
106925         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
106926         jm_AC_TYPE_UINTMAX_T.
106927         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
106929         Module stat.
106930         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
106931         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
106933         Module lstat.
106934         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
106935         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
106937         Module timespec.
106938         * m4/timespec.m4 (gl_TIMESPEC): New macro.
106939         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
106940         * m4/st_mtim.m4: Indentation.
106942         Module nanosleep.
106943         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
106944         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
106945         gl_PREREQ_NANOSLEEP.
106947         Module regex.
106948         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
106949         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
106950         (gl_REGEX): New macro.
106952         Module rename.
106953         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
106954         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
106956         Module rmdir.
106957         * m4/rmdir.m4: New file.
106959         Module utime.
106960         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
106961         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
106962         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
106964         Module dirname.
106965         * m4/dirname.m4: New file.
106967         Module getopt.
106968         * m4/getopt.m4: New file.
106970         Module unistd-safer.
106971         * m4/unistd-safer.m4: New file.
106973         Module fnmatch.
106974         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
106975         declaration.
106976         (gl_PREREQ_FNMATCH_EXTRA): New macro.
106977         (gl_FUNC_FNMATCH_POSIX): New macro.
106978         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
106979         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
106980         simply fnmatch.
106982         Module exclude.
106983         * m4/exclude.m4: New file.
106985         Module human.
106986         * m4/human.m4: New file.
106988         Module acl.
106989         * m4/acl.m4: Nop.
106991         Module backupfile.
106992         * m4/backupfile.m4: New file.
106993         * m4/d-ino.m4: Indentation.
106995         Module fsusage.
106996         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
106997         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
106998         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
107000         Module dirfd.
107001         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
107002         requirements.
107004         Module euidaccess.
107005         * m4/euidaccess.m4: New file.
107007         Module file-type.
107008         * m4/file-type.m4: New file.
107010         Module fileblocks.
107011         * m4/fileblocks.m4: New file.
107013         Module filemode.
107014         * m4/filemode.m4: New file.
107016         Module isdir.
107017         * m4/isdir.m4: New file.
107019         Module lchown.
107020         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
107021         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
107023         Module makepath.
107024         * m4/makepath.m4: New file.
107026         Module modechange.
107027         * m4/modechange.m4: New file.
107029         Module mountlist.
107030         * m4/mountlist.m4: New file.
107031         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
107032         Indentation.
107034         Module path-concat.
107035         * m4/path-concat.m4: New file.
107037         Module pathmax.
107038         * m4/pathmax.m4: New file.
107040         Module same.
107041         * m4/same.m4: New file.
107043         Module save-cwd.
107044         * m4/save-cwd.m4: New file.
107046         Module savedir.
107047         * m4/savedir.m4: New file.
107049         Module xgetcwd.
107050         * m4/xgetcwd.m4: New file.
107051         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
107053         Module xreadlink.
107054         * m4/xreadlink.m4: New file.
107056         Module safe-read.
107057         * m4/safe-read.m4: New file.
107059         Module safe-write.
107060         * m4/safe-write.m4: New file.
107062         Module closeout.
107063         * m4/closeout.m4: New file.
107065         Module stdio-safer.
107066         * m4/stdio-safer.m4: New file.
107068         Module getpass.
107069         * m4/getpass.m4: New file.
107071         Module getugroups.
107072         * m4/getugroups.m4: New file.
107074         Module group-member.
107075         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
107076         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
107078         Module idcache.
107079         * m4/idcache.m4: New file.
107081         Module userspec.
107082         * m4/userspec.m4: New file.
107084         Module gettime.
107085         * m4/clock_time.m4: New file.
107086         * m4/gettime.m4: New file.
107088         Module settime.
107089         * m4/settime.m4: New file.
107091         Module posixtm.
107092         * m4/posixtm.m4: New file.
107094         Module gethostname.
107095         * m4/gethostname.m4: New file.
107097         Module canon-host.
107098         * m4/canon-host.m4: New file.
107100         Module gettext.
107101         * m4/codeset.m4: New file, from gettext-0.11.5.
107102         * m4/gettext.m4: New file, from gettext-0.11.5.
107103         * m4/glibc21.m4: New file, from gettext-0.11.5.
107104         * m4/iconv.m4: New file, from gettext-0.11.5.
107105         * m4/intdiv0.m4: New file, from gettext-0.11.5.
107106         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
107107         * m4/inttypes.m4: New file, from gettext-0.11.5.
107108         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
107109         * m4/isc-posix.m4: New file, from gettext-0.11.5.
107110         * m4/lcmessage.m4: New file, from gettext-0.11.5.
107111         * m4/lib-ld.m4: New file, from gettext-0.11.5.
107112         * m4/lib-link.m4: New file, from gettext-0.11.5.
107113         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
107114         * m4/progtest.m4: New file, from gettext-0.11.5.
107115         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
107116         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
107117         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
107119         Module localcharset.
107120         * m4/localcharset.m4: New file.
107122         Module hard-locale.
107123         * m4/hard-locale.m4: New file.
107125         Module mbswidth.
107126         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
107127         onceonly macros.
107128         * m4/mbrtowc.m4: Add comment.
107130         Module memcasecmp.
107131         * m4/memcasecmp.m4: New file.
107133         Module memcoll.
107134         * m4/memcoll.m4: New file.
107136         Module unicodeio.
107137         * m4/unicodeio.m4: New file.
107139         Module rpmatch.
107140         * m4/rpmatch.m4: New file.
107142         Module yesno.
107143         * m4/yesno.m4: New file.
107145         Module exitfail.
107146         * m4/exitfail.m4: New file.
107148         Module c-stack.
107149         * m4/c-stack.m4 (gl_C_STACK): New macro.
107150         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
107152         Module error.
107153         * m4/error.m4 (gl_ERROR): New macro.
107154         (jm_PREREQ_ERROR): Use onceonly macros.
107156         Module fatal.
107157         * m4/fatal.m4: New file.
107159         Module getloadavg.
107160         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
107161         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
107163         Module getpagesize.
107164         * m4/getpagesize.m4: New file.
107166         Module getusershell.
107167         * m4/getusershell.m4: New file.
107169         Module physmem.
107170         * m4/physmem.m4: New file.
107172         Module posixver.
107173         * m4/posixver.m4: New file.
107175         Module quotearg.
107176         * m4/quotearg.m4: New file.
107178         Module quote.
107179         * m4/quote.m4: New file.
107181         Module readutmp.
107182         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
107184         Module sig2str.
107185         * m4/sig2str.m4: New file.
107187         Other.
107188         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
107189         ulonglong.m4.
107190         * m4/intmax_t.m4: New file.
107191         * m4/d-type.m4: Indentation.
107192         * m4/jm-macros.m4: Update.
107193         * m4/prereq.m4 (jm_PREREQ): Update.
107194         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
107195         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
107196         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
107197         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
107198         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
107199         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
107200         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
107201         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
107202         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
107203         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
107204         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
107205         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
107206         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
107207         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
107208         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
107209         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
107210         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
107211         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
107212         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
107214 2002-12-24  Bruno Haible  <bruno@clisp.org>
107216         * MODULES.txt: Update according to m4/ changes.
107218         Module gettext.
107219         * config.rpath: New file, from gettext-0.11.5.
107221         * modules/*: New module descriptions.
107222         * gnulib-tool: New file.
107223         * MODULES.html.sh: New file.
107225 2002-12-21  Karl Berry  <karl@gnu.org>
107227         * doc/fdl.texi: update to version 1.2.
107229 2002-12-19  Karl Berry  <karl@gnu.org>
107231         * config/config.guess: update from prep.
107233 2002-12-18  Bruno Haible  <bruno@clisp.org>
107235         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
107236         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
107238 2002-12-17  Bruno Haible  <bruno@clisp.org>
107240         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
107241         stdlib.h, string.h.
107243 2002-12-17  Bruno Haible  <bruno@clisp.org>
107245         * lib/canon-host.c (strdup): Remove unused declaration.
107247         * lib/fsusage.c: Include full_read.h.
107248         (get_fs_usage): Use full_read instead of safe_read.
107250         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
107252 2002-12-12  Karl Berry  <karl@gnu.org>
107254         * config/config.guess: update from prep.
107256 2002-12-11  Bruno Haible  <bruno@clisp.org>
107258         * m4/setenv.m4: New file, from gettext-0.11.5.
107260 2002-12-11  Bruno Haible  <bruno@clisp.org>
107262         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
107263         not unsetenv().
107264         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
107265         modifications:
107267         2002-12-11  Bruno Haible  <bruno@clisp.org>
107269                 * setenv.c (alloca): Fall back to malloc.
107270                 (freea): New macro.
107271                 (setenv): Use freea() to free memory allocated with alloca().
107273         2002-11-13  Bruno Haible  <bruno@clisp.org>
107275                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
107276                 function declarations.
107277                 * unsetenv.c (unsetenv): Likewise.
107279         2002-03-04  Bruno Haible  <bruno@clisp.org>
107281                 Portability to AIX 4.3.3.
107282                 * unsetenv.c: New file, extracted from setenv.c.
107283                 * setenv.c: Move the unsetenv() function to unsetenv.c.
107285         2001-12-20  Bruno Haible  <bruno@clisp.org>
107287                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
107288                 use malloc instead. For SunOS 4.
107290         2001-12-11  Bruno Haible  <bruno@clisp.org>
107292                 * setenv.c: Declare alloca.
107293                 (compar_fn_t): New typedef.
107294                 (KNOWN_VALUE, STORE_VALUE): Use it.
107296         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
107297         setenv.h.
107299 2002-12-10  Paul Eggert  <eggert@twinsun.com>
107301         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
107302         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
107303         Choose values that are less likely to collide with system fnmatch
107304         options.
107305         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
107306         defined (e.g., a pure POSIX system).
107307         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
107308         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
107310 2002-12-06  Paul Eggert  <eggert@twinsun.com>
107312         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
107313         a pain in practice to deal with generated m4 files.  This change
107314         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
107316         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
107317         and jm-glibc-io.m4, as they are no longer a special case.
107318         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
107319         kludge and the auto-generation stuff.  Check only whether the
107320         functions are declared, not whether they exist, since older hosts
107321         that don't declare the functions can't use the optimization anyway.
107323 2002-12-06  Jim Meyering  <jim@meyering.net>
107325         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
107327         Merge in changes from libc's misc/error.c, in preparation
107328         for the merge of gnulib's changes back into libc.
107330         * lib/error.c (_): Define only if not already defined.
107331         Move definition to follow all #include directives.
107332         Include unlocked-io.h only if !_LIBC.
107333         [_LIBC]: Include <libio/libioP.h>.
107334         [USE_IN_LIBIO]: Include <libio/iolibio.h>
107335         (fflush): Tweak definition to use INTUSE.
107336         (putc): Define.
107338 2002-12-05  Paul Eggert  <eggert@twinsun.com>
107340         * lib/alloca.c [defined emacs]: Include "lisp.h".
107341         (xalloc_die) [defined emacs]: New macro.
107342         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
107343         [! defined emacs]: Include <xalloc.h>.
107344         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
107345         (pointer): Typedef to POINTER_TYPE *.
107346         (malloc): Remove decl; we now always use xmalloc.
107347         (alloca): Use old-style definition, since Emacs needs this.
107348         Check for arithmetic overflow when computing combined size.
107350 2002-12-04  Paul Eggert  <eggert@twinsun.com>
107352         Do not generate unlocked-io.h automatically, since it's easier to
107353         maintain it by hand.
107355         * lib/unlocked-io.h: New file, from GNU diffutils,
107356         but with proper copyright notice and attribution.
107357         * lib/gen-uio: Remove.
107358         * lib/Makefile.am: Add copyright notice.
107359         (libfetish_a_SOURCES): Add unlocked-io.h.
107360         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
107361         (DISTCLEANFILES, io_functions): Remove macros.
107362         (EXTRA_DIST): Remove gen_uio.
107363         (unlocked-io.h): Remove rule.
107365 2002-12-04  Jim Meyering  <jim@meyering.net>
107367         Reflect the fact that stat.c and lstat.c are no longer generated.
107368         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
107369         (DISTCLEANFILES): Likewise.
107370         (EXTRA_DIST): Likewise.
107371         (all_local): Don't depend on stat.c or lstat.c.
107372         (stat.c, lstat.c): Remove rules.
107373         (EXTRA_DIST): Remove xstat.in.
107375         * lib/xstat.in: Remove file.  Contents moved into stat.c.
107376         * lib/stat.c: New file.  Contents mostly from xstat.in.
107377         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
107378         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
107380         * lib/safe-read.c: Rework so that it may serve to define safe_write,
107381         too.
107382         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
107384 2002-12-03  Jim Meyering  <jim@meyering.net>
107386         * lib/safe-read.c, safe-write.c: Change variable names and comments,
107387         but not semantics, to minimize the differences between these two files.
107388         (safe_read): Change comment to mention SAFE_READ_ERROR.
107390         * lib/safe-read.c (IS_EINTR): Define.
107391         (safe_read): Use IS_EINTR in place of in-function cpp directives.
107393 2002-12-02  Jim Meyering  <jim@meyering.net>
107395         * lib/safe-read.c (EINTR): Define.
107396         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
107397         (INT_MAX): Provide fallback.
107398         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
107400         * lib/safe-read.h (SAFE_READ_ERROR): Define.
107402 2002-12-02  Bruno Haible  <bruno@clisp.org>
107404         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
107405         Define, taken from safe-read.c.
107406         (INT_MAX): Provide fallback.
107407         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
107408         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
107410         * lib/safe-read.c (EINTR): Remove definition.
107411         (safe_read): Don't use EINTR if it is absent.
107413 2002-12-01  Jim Meyering  <jim@meyering.net>
107415         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
107416         zero.
107417         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
107419 2002-11-27  Paul Eggert  <eggert@twinsun.com>
107421         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
107422         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
107423         with `if (! (value < limit)) abort ();', for readability.
107425 2002-11-26  Karl Berry  <karl@gnu.org>
107427         * lib/strdup.c: copy from libc again, with jim's ok.
107428         * lib/.cppi-disable: re-add strdup.c
107430 2002-11-25  Karl Berry  <karl@gnu.org>
107432         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
107433         instead of "strtol.c".
107435 2002-11-25  Karl Berry  <karl@gnu.org>
107437         * config/install-sh: update from automake for variable quoting, $0 in
107438         error msgs, etc.
107440         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
107441         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
107442         entry.
107444 2002-11-25  Jim Meyering  <jim@meyering.net>
107446         * lib/mktime.c: Sync from libc, now that it has the latest fix.
107448 2002-11-24  Karl Berry  <karl@gnu.org>
107450         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
107451         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
107453 2002-11-24  Jim Meyering  <jim@meyering.net>
107455         Update from coreutils:
107457         * lib/mktime.c: Merge in changes from libc.
107459         Avoid a link-time failure on some Linux systems.
107460         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
107461         (otherwise).
107462         (__mon_yday): Declare with the STATIC attribute.
107463         (__mktime_internal): Likewise.
107464         Based on a report from Greg Schafer.
107466 2002-11-23  Jim Meyering  <jim@meyering.net>
107468         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
107469         Use `unsigned', not `int', as type of index.
107471         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
107473         * lib/fsusage.c: Remove unneeded parentheses around operands of
107474         `defined'.
107476 2002-11-22  Paul Eggert  <eggert@twinsun.com>
107478         * lib/quotearg.h: Allow multiple inclusion by surrounding with
107479         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
107480         so that we can be included first.
107481         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
107482         * lib/quotearg.c: Include quotearg.h immediately after config.h.
107483         No need to include stddef.h or sys/types.h any more.
107484         Surround local include files with "", not "<>".
107485         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
107486         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
107487         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
107488         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
107489         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
107490         (ISPRINT): Remove; no longer needed now that we assume C89.
107492         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
107493         Preserve errno.
107495         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
107496         quotearg_char): Use SIZE_MAX rather than
107497         (size_t) -1 when we are talking about "infinity".
107499         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
107501 2002-11-22  Paul Eggert  <eggert@twinsun.com>
107503         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
107504         hint that one should use `if (! x) abort ();' rather than `assert
107505         (x);', and anyway it's one less thing to worry about configuring.
107506         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
107507         hash_rehash, hash_insert): Use abort rather than assert.
107509 2002-11-22  Bruno Haible  <bruno@clisp.org>
107511         * lib/safe-read.h: Assume C89. Add comments.
107512         (safe_read): Change return type to size_t.
107513         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
107514         byte counts > SSIZE_MAX correctly.
107515         * lib/safe-write.h: New file.
107516         * lib/safe-write.c: New file.
107517         * lib/full-read.h: New file.
107518         * lib/full-read.c: New file.
107519         * lib/full-write.h: Assume C89. Add comments.
107520         * lib/full-write.c: Include safe-write.h.
107521         (full_write): Rewritten to use safe_write.
107522         Suggested by Jim Meyering and Paul Eggert.
107524 2002-11-21  Jim Meyering  <jim@meyering.net>
107526         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
107528         Merge in changes from the coreutils.
107530         2002-09-25  Paul Eggert  <eggert@twinsun.com>
107531         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
107532         <stdint.h>.
107533         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
107534         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
107535         int.  Work more efficiently if X is the same width as uintmax_t.
107536         Do not compare X to -1, to avoid bogus compiler warning.
107537         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
107538         Don't assume that f_frsize and f_bsize are the same type.
107540         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
107541         warning on FreeBSD.
107543         * lib/makepath.c (make_path): Restore umask *before* creating the final
107544         component.
107545         (make_path): Minor reformatting.
107547         * lib/xmalloc.c: Adjust to work with new autoconf macros,
107548         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
107549         HAVE_MALLOC/HAVE_REALLOC.
107551         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
107552         dummy ones.  At least on GNU/Linux systems, `auto' means something
107553         else.
107554         From Michael Stone.
107556 2002-11-21  Bruno Haible  <bruno@clisp.org>
107558         Remove case insensitive option matching.
107559         * lib/argmatch.h (argcasematch): Remove declaration.
107560         (ARGCASEMATCH): Remove macro.
107561         (__xargmatch_internal): Remove case_sensitive argument.
107562         (XARGMATCH): Update.
107563         (XARGCASEMATCH): Remove macro.
107564         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
107565         case_sensitive argument.
107566         (argcasematch): Remove function.
107567         (__xargmatch_internal): Remove case_sensitive argument.
107568         (main): Use XARGMATCH instead of XARGCASEMATCH.
107570         * lib/xmalloc.c: Change compile-time error message. Add comment about
107571         required autoconf version.
107573 2002-11-20  Paul Eggert  <eggert@twinsun.com>
107575         Merge argmatch cleanups from Bison.  Assume C89.
107577         * lib/argmatch.c: Include config.h here, not in argmatch.h.
107578         Include stdlib.h, for EXIT_FAILURE.
107579         Always include <string.h>, since we assume C89.
107580         (EXIT_FAILURE): Remove pre-C89 bug workaround.
107581         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
107582         Include <stddef.h> instead, since it's all we need for size_t.
107583         (PARAMS): Remove.  All uses removed.
107584         (ARRAY_CARDINALITY): Do not bother to #undef.
107585         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
107586         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
107587         Remove unnecessary parentheses.
107588         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
107589         Insert necessary parentheses.
107590         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
107591         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
107593 2002-11-19  Bruno Haible  <bruno@clisp.org>
107595         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
107596         * lib/mbswidth.h: Include <stddef.h>, for size_t.
107598         * lib/mbswidth.h (PARAMS): Remove macro.
107599         (mbswidth, mbsnwidth): Use ANSI C function declarations.
107600         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
107602         * lib/gcd.h (PARAMS): Remove macro.
107603         (gcd): Use ANSI C function declarations.
107604         * lib/gcd.c (gcd): Likewise.
107606 2002-11-15  Bruno Haible  <bruno@clisp.org>
107608         * lib/strcspn.c: Include <stddef.h>.
107609         (strcspn): Use ANSI C function declaration. Change return type to
107610         size_t. Use NULL.
107611         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
107612         (strpbrk): Use NULL.
107613         * lib/strpbrk.h (PARAMS): Remove macro.
107614         (strpbrk): Use ANSI C function declaration.
107615         * lib/strstr.c: Don't include <sys/types.h>.
107616         * lib/strstr.h (PARAMS): Remove macro.
107617         (strstr): Use ANSI C function declarations.
107619 2002-11-14  Karl Berry  <karl@gnu.org>
107621         * config/mkinstalldirs: `do' on separate line, instead of
107622         `for var; do'.
107624 2002-11-06  Bruno Haible  <bruno@clisp.org>
107626         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
107627         * lib/gcd.c (gcd): Likewise.
107629 2002-11-05  Bruno Haible  <bruno@clisp.org>
107631         * lib/gcd.h: New file, from gettext-0.11.5.
107632         * lib/gcd.c: New file, from gettext-0.11.5.
107634 2002-11-05  Bruno Haible  <bruno@clisp.org>
107636         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
107637         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
107638         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
107639         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
107641         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
107642         <libintl.h>.
107643         * lib/makepath.c: Include gettext.h instead of <locale.h> and
107644         <libintl.h>.
107646         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
107647         * lib/human.c: Include gettext.h instead of <libintl.h>.
107648         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
107649         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
107650         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
107651         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
107652         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
107653         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
107654         (textdomain): Remove definition.
107655         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
107657         * lib/long-options.c: Remove include of <libintl.h> and definition of
107658         _.
107659         * lib/same.c: Remove include of <libintl.h> and definition of _.
107661 2002-11-04  Owen Taylor  <otaylor@redhat.com>
107663         * lib/config.charset: A few additions for Solaris.
107665 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
107667         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
107668         * lib/localcharset.c (locale_charset): Declare as extern "C".
107670 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
107672         * lib/config.charset: msdos in uk_UA uses CP1125.
107674 2002-11-04  Bruno Haible  <bruno@clisp.org>
107676         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
107677         * lib/strcase.h: New file, from GNU gettext-0.11.5.
107678         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
107679         * lib/strstr.h: New file, from GNU gettext-0.11.5.
107680         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
107682 2002-11-04  Bruno Haible  <bruno@clisp.org>
107684         * lib/localcharset.c (locale_charset): Don't return an empty string.
107686 2002-11-04  Bruno Haible  <bruno@clisp.org>
107688         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
107689         aliases.
107691 2002-11-04  Bruno Haible  <bruno@clisp.org>
107693         * lib/config.charset: Update for newest glibc. Add canonical names
107694         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
107696 2002-11-04  Bruno Haible  <bruno@clisp.org>
107698         * lib/config.charset: Add support for NetBSD.
107700 2002-11-04  Bruno Haible  <bruno@clisp.org>
107702         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
107704 2002-11-01  Bruno Haible  <bruno@clisp.org>
107706         * configure.in: Add AC_CONFIG_AUX_DIR call.
107707         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
107708         test/Makefile.
107709         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
107711 2002-09-28  Karl Berry  <karl@gnu.org>
107713         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
107714         installed automake until the next release, since changes have been
107715         made.
107717 2002-09-25  Karl Berry  <karl@gnu.org>
107719         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
107720         * lib/getopt*: copy from libc/posix.
107721         * lib/gettext.h: copy from gettext.
107722         * lib/.cppi-disable: add strdup.c, gettext.h.
107724 2002-09-25  Karl Berry  <karl@gnu.org>
107726         * config/srclist.txt: enable gettext.h check.
107727         * config/config.{guess,sub}: update from prep.
107728         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
107729                 from automake 1.6.3.
107730         See srclist*.
107732 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
107734         * regex.c (PATFETCH): Remove the translating fetch.
107735         (PATFETCH_RAW): Rename to PATFETCH.
107736         (set_image_of_range): New fun.
107737         (SET_RANGE_TABLE_WORK_AREA): Use it.
107738         (regex_compile): Don't translate the pattern chars so eagerly.
107739         Only do it when inserting an `exactn' bytecode or when handling
107740         a char-range.
107741         (mutually_exclusive_p): Avoid empty statement.
107743 2002-07-06  Jim Meyering  <meyering@lucent.com>
107745         * m4/README: Don't mention Makefile.am.in.
107746         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
107748 2002-07-01  Jim Meyering  <meyering@lucent.com>
107750         * lib/c-stack.c: Include sys/time.h.
107751         From Volker Borchert.
107753 2002-06-26  Paul Eggert  <eggert@twinsun.com>
107755         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
107757 2002-06-26  Paul Eggert  <eggert@twinsun.com>
107759         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
107760         New macro.  Use it uniformly instead of
107761         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
107762         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
107763         reported by Vin Shelton.
107765 2002-06-22  Paul Eggert  <eggert@twinsun.com>
107767         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
107768         Do not assume SA_SIGINFO behavior.
107769         Bug reported by Jim Meyering on NetBSD 1.5.2.
107771 2002-06-22  Jim Meyering  <meyering@lucent.com>
107773         * m4/c-stack.m4: New file, from diffutils-2.8.2.
107774         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
107776         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
107777         now that configure.ac uses AC_GNU_SOURCE.
107778         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
107779         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
107781         Update to latest tools.  Suggestions from Paul Eggert.
107782         * m4/stdbool.m4: New file, from diffutils-2.8.2.
107783         * m4/gnu-source.m4: Update from diffutils-2.8.2.
107784         * m4/fnmatch.m4: Likewise.
107785         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
107786         to AC_HEADER_STDBOOL
107788 2002-06-22  Jim Meyering  <meyering@lucent.com>
107790         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
107791         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
107793 2002-06-22  Jim Meyering  <meyering@lucent.com>
107795         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
107797         * lib/exitfail.c, exitfail.h: Likewise.
107798         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
107800         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
107801         of fnmatch.h.
107802         (EXTRA_DIST): Add fnmatch_loop.c.
107803         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
107805         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
107806         * lib/fnmatch.c: Update from diffutils-2.8.2.
107807         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
107808         * lib/fnmatch.h: Remove file.
107810 2002-06-21  Jim Meyering  <meyering@lucent.com>
107812         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
107813         * m4/mbrtowc.m4: Likewise.
107815         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
107816         * m4/mbswidth.m4: Reflect name change:
107817         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
107818         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
107820         * m4/lib-link.m4: Update from gettext-0.11.2.
107821         * m4/gettext.m4: Likewise.
107823         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
107824         From Alfred M. Szmidt.
107826 2002-06-18  Paul Eggert  <eggert@twinsun.com>
107828         * lib/file-type.h: Report an error if neither S_ISREG nor
107829         S_IFREG is defined, instead of using a test specific to glibc
107830         2.2.  This should be safe, since POSIX requires S_ISREG and
107831         Unix Version 7 had S_IFREG.  We don't need to check for
107832         <sys/types.h> since we don't use any symbols that it defines.
107834 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
107836         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
107837         $@-t, so that each temporary file name is unique and valid in the first
107838         8 characters, for operation under DOS.
107840 2002-06-15  Paul Eggert  <eggert@twinsun.com>
107842         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
107844 2002-06-15  Jim Meyering  <meyering@lucent.com>
107846         Work even with DJGPP 2.03, which lacks support for symlinks.
107847         From Richard Dawe.
107848         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
107849         is defined.
107850         * lib/lchown.c (S_ISLNK): Likewise.
107852 2002-06-15  Jim Meyering  <meyering@lucent.com>
107854         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
107855         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
107856         have been included before this file.
107858 2002-06-14  Jim Meyering  <meyering@lucent.com>
107860         * lib/file-type.h: Use the version from diffutils-2.8.2.
107861         * lib/file-type.c: Likewise.
107863 2002-06-07  Jim Meyering  <meyering@lucent.com>
107865         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
107866         They're needed at least for NetBSD 1.5.2.
107867         ($statxfs_includes): Include those same headers.
107868         ($statxfs_includes): Include sys/vfs.h if available.
107869         ($statxfs_includes): Likewise for sys/statvfs.h.
107870         Check for the following members in both structs statfs and statvfs:
107871         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
107873 2002-06-01  Jim Meyering  <meyering@lucent.com>
107875         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
107876         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
107878 2002-05-28  Jim Meyering  <meyering@lucent.com>
107880         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
107881         Reported by Volker Borchert.
107883 2002-05-27  Jim Meyering  <meyering@lucent.com>
107885         Fix a problem seen only on nonconforming systems whereby ls.c's
107886         use of localtime, and then of gettimeofday would cause trouble:
107887         the localtime call used to initialize rpl_gettimeofday's save
107888         mechanism would clobber ls's current local time information so
107889         that in any long listing the first file would always be listed
107890         with date 1970-01-01.  Analysis by Volker Borchert.
107892         * lib/gettimeofday.c (localtime): Undefine.
107893         (rpl_localtime): New function.
107895 2002-05-27  Jim Meyering  <meyering@lucent.com>
107897         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
107898         localtime.
107900         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
107901         use the replacement function; it wouldn't resolve at link time.
107902         Reported by Volker Borchert.
107904 2002-05-22  Jim Meyering  <meyering@lucent.com>
107906         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
107907         file-type.h.
107908         * lib/file-type.h: New file.
107909         * lib/file-type.c (file_type): New file/function.  Extracted from
107910         diffutils.
107912 2002-04-30  Jim Meyering  <meyering@lucent.com>
107914         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
107916 2002-04-29  Paul Eggert  <eggert@twinsun.com>
107918         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
107920 2002-04-29  Paul Eggert  <eggert@twinsun.com>
107922         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
107923         Do not check for alloca.h (no longer used) or stdbool.h (was never
107924         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
107926 2002-04-29  Paul Eggert  <eggert@twinsun.com>
107928         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
107930 2002-04-29  Jim Meyering  <meyering@lucent.com>
107932         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
107933         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
107934         Use AC_FUNC_STRNLEN here instead.
107936         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
107937         With autoconf-2.53a, it's part of AC_PROG_CC.
107939 2002-04-28  Paul Eggert  <eggert@twinsun.com>
107941         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
107942         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
107944 2002-04-28  Paul Eggert  <eggert@twinsun.com>
107946         * lib/sig2str.h, lib/sig2str.c: New files.
107947         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
107949 2002-04-28  Paul Eggert  <eggert@twinsun.com>
107951         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
107952         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
107953         of 127, since 64 is the largest conceivable number for ancient
107954         nonstandard hosts.
107955         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
107957 2002-04-28  Jim Meyering  <meyering@lucent.com>
107959         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
107961 2002-04-24  Jim Meyering  <meyering@lucent.com>
107963         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
107964         (jm_PREREQ): Use it.
107966         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
107967         mach/mach.h fcntl.h.
107968         Check for this function: setlocale.
107970 2002-04-24  Jim Meyering  <meyering@lucent.com>
107972         * lib/gettext.h: New file, from Gettext.
107973         * lib/Makefile.am (INCLUDES): Remove -I../intl.
107974         (libfetish_a_SOURCES): Add gettext.h.
107976 2002-04-16  Jim Meyering  <meyering@lucent.com>
107978         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
107979         ut_pid, ut_id, ut_exit.
107981 2002-04-16  Jim Meyering  <meyering@lucent.com>
107983         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
107984         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
107985         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
107987 2002-04-12  Jim Meyering  <meyering@lucent.com>
107989         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
107990         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
107991         existence of the getmntinfo function.  Needed for Darwin 5.3.
107993         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
107994         This is necessary at least on Darwin 5.3.
107996         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
107997         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
107998         strnlen.o in the library, and that makes some versions of ranlib
107999         object.
108001 2002-04-12  Jim Meyering  <meyering@lucent.com>
108003         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
108005 2002-04-09  Jim Meyering  <meyering@lucent.com>
108007         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
108008         to be more precise.  Rather than saying we're checking whether the
108009         function `works', say what we're testing.
108010         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
108011         Reported by Bruno Haible.
108013 2002-03-10  Jim Meyering  <meyering@lucent.com>
108015         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
108016         Suggestion from Santiago Vila.
108018 2002-03-08  Jim Meyering  <meyering@lucent.com>
108020         * lib/rename.c: Mention that this wrapper is needed also on
108021         mips-dec-ultrix4.4 systems.
108023 2002-03-02  Jim Meyering  <meyering@lucent.com>
108025         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
108026         not HAVE_CLOCK_SETTIME.
108028 2002-02-27  Paul Eggert  <eggert@twinsun.com>
108030         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
108031         Check for clock_settime.
108033 2002-02-27  Paul Eggert  <eggert@twinsun.com>
108035         * lib/nanosleep.h: Rename to....
108036         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
108038         * lib/gettime.c: New file.
108039         * lib/settime.c: New file.
108040         * lib/stime.c: Remove.
108042         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
108043         timespec.h.  Remove nanosleep.h.
108045 2002-02-25  Paul Eggert  <eggert@twinsun.com>
108047         * m4/acl.m4: New file.
108048         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
108049         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
108051 2002-02-25  Paul Eggert  <eggert@twinsun.com>
108053         * lib/acl.c, lib/acl.h: New files.
108054         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
108056 2002-02-24  Jim Meyering  <meyering@lucent.com>
108058         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
108059         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
108060         cause trouble.  Reported by Nelson Beebe.
108062 2002-02-23  Paul Eggert  <eggert@twinsun.com>
108064         * lib/path-concat.c (xpath_concat): Reorder code to pacify
108065         compilers that don't know that xalloc_die never returns.
108067 2002-02-20  Jim Meyering  <meyering@lucent.com>
108069         * lib/getdate.c: Regenerate using bison-1.33.
108071 2002-02-17  Jim Meyering  <meyering@lucent.com>
108073         * config/config.guess (main): Don't use `head -1'; it's no longer
108074         portable. Use `sed 1q' instead.
108076 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
108078         * m4/codeset.m4: Upgrade to gettext-0.11.
108079         * m4/gettext.m4: Upgrade to gettext-0.11.
108080         * m4/glibc21.m4: Upgrade to gettext-0.11.
108081         * m4/iconv.m4: Upgrade to gettext-0.11.
108082         * m4/isc-posix.m4: Upgrade to gettext-0.11.
108083         * m4/lcmessage.m4: Upgrade to gettext-0.11.
108084         * m4/lib-ld.m4: New file, from gettext-0.11.
108085         * m4/lib-link.m4: New file, from gettext-0.11.
108086         * m4/lib-prefix.m4: New file, from gettext-0.11.
108087         * m4/progtest.m4: Upgrade to gettext-0.11.
108089 2002-02-15  Paul Eggert  <eggert@twinsun.com>
108091         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
108092         (jm_PREREQ): Use it.
108094 2002-02-15  Paul Eggert  <eggert@twinsun.com>
108096         * lib/posixver.c, lib/posixver.h: New files.
108097         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
108099 2002-02-02  Paul Eggert  <eggert@twinsun.com>
108100             Bruno Haible  <bruno@clisp.org>
108102         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
108103         (fwrite_success_callback): New declaration.
108104         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
108105         print_unicode_char. Call failure callback instead of error.
108106         (fwrite_success_callback): New function.
108107         (exit_failure_callback): New function.
108108         (fallback_failure_callback): New function.
108109         (print_unicode_char): Call unicode_to_mb.
108111 2002-01-26  Jim Meyering  <meyering@lucent.com>
108113         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
108114         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
108116 2002-01-26  Jim Meyering  <meyering@lucent.com>
108118         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
108120 2002-01-22  Paul Eggert  <eggert@twinsun.com>
108122         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
108124 2002-01-22  Jim Meyering  <meyering@lucent.com>
108126         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
108127         Otherwise, some versions of automake would omit the rule that makes
108128         Makefile from Makefile.in.
108130 2002-01-21  Paul Eggert  <eggert@twinsun.com>
108132         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
108133         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
108134         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
108135         (memcoll): Set errno to zero if there is no error.
108137         * lib/quotearg.c (quotearg_buffer_restyled):
108138         Fix bug with quoting buffers containing NUL when backslashing escapes.
108139         This bug was exposed by the other changes in this patch.
108140         (quotearg_n_options): New arg ARGSIZE.
108141         All callers changed.
108142         (quoting_options_from_style): New function.
108143         (quotearg_n_style): Use it.
108144         (quotearg_n_style_mem): New function.
108146         * lib/quotearg.h (quotearg_n_style_mem): New function.
108148 2002-01-19  Jim Meyering  <meyering@lucent.com>
108150         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
108151         Remove useless quotes: DF_PROG="df".
108152         * m4/strnlen.m4: New file.
108154 2002-01-16  Paul Eggert  <eggert@twinsun.com>
108156         * lib/backupfile.c (ISDIGIT): Comment fix.
108157         * lib/getdate.y (ISDIGIT): Likewise.
108158         * lib/posixtm.c (ISDIGIT, year): Likewise.
108159         * lib/strverscmp.c (ISDIGIT): Likewise.
108160         * lib/userspec.c (ISDIGIT): Likewise.
108162 2002-01-16  Jim Meyering  <meyering@lucent.com>
108164         * lib/getdate.y: Add three semicolons, each just before a closing
108165         brace. Bison (as of version 1.31) no longer papers over that mistake.
108167 2002-01-05  Jim Meyering  <meyering@lucent.com>
108169         * lib/version-etc.c (version_etc_copyright): Update copyright year.
108171 2001-12-19  Paul Eggert  <eggert@twinsun.com>
108173         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
108174         not silently exit merely because the output buffer happens to
108175         have nothing pending.
108177 2001-12-18  Paul Eggert  <eggert@twinsun.com>
108179         See the big note in ../ChangeLog.
108180         * lib/human.c (suffixes): Prefer K to k for 1024.
108181         (generate_suffix_backwards): New function.
108182         (human_readable_inexact): Use it.
108183         * lib/xstrtol.c (__xstrtol): If there is no number but there
108184         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
108185         Accept 'K' as well as 'k'.
108187 2001-12-15  Jim Meyering  <meyering@lucent.com>
108189         * lib/regex.h (__restrict_arr): Update from libc.
108191         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
108192         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
108193         (STREQ): Define.
108195 2001-12-14  Jim Meyering  <meyering@lucent.com>
108197         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
108198         Suggestion from Bruno Haible.
108200 2001-12-10  Jim Meyering  <meyering@lucent.com>
108202         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
108203         xrealloc, Instead, include "xalloc.h".
108204         (initbuffer): Don't cast xmalloc return value to char*.
108205         (readline): Reword comment.
108206         Don't cast xrealloc return value to char*
108207         Return NULL, not 0.
108209 2001-12-09  Jim Meyering  <meyering@lucent.com>
108211         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
108212         about `signed and unsigned type in conditional expression'.
108213         * lib/posixtm.c (posix_time_parse): Likewise.
108215         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
108217         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
108218         to avoid a pedantic warning.
108220         * lib/getstr.c: Don't include assert.h.
108221         (getstr): Remove warning-evoking assertions.
108222         Return -1 if offset parameter is out of bounds.
108223         Change the type of a local from int to size_t.
108225         * lib/strftime.c (my_strftime_localtime_r): Include this function
108226         definition in the `#if ! HAVE_TM_GMTOFF' block.
108228         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
108229         Include xalloc.h instead.
108231 2001-12-02  Jim Meyering  <meyering@lucent.com>
108233         * lib/tempname.c: Don't declare getenv, thus reverting the change of
108234         2001-11-18.  It's no longer necessary, now that stdlib.h is always
108235         included.
108237         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
108238         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
108240 2001-11-30  Akim Demaille  <akim@epita.fr>
108242         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
108243         before being defined.
108245 2001-11-27  Paul Eggert  <eggert@twinsun.com>
108247         * lib/quotearg.h (quotearg_n, quotearg_n_style):
108248         First arg is int, not unsigned.
108249         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
108250         (SIZE_MAX, UINT_MAX): New macros.
108251         (quotearg_n_options): Abort if N is negative.
108252         Avoid overflow check on hosts where size_t is 64 bits and int
108253         is 32 bits, as overflow is impossible there.
108254         Fix off-by-one typo that caused unnecessary reallocation.
108256 2001-11-27  Jim Meyering  <meyering@lucent.com>
108258         * lib/tempname.c: Merge with version from libc.
108259         * lib/regex.c: Likewise.
108261         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
108262         systems for which STDC_HEADERS is 0, it was not included, resulting in
108263         a warning about an integer-to-pointer conversion problem with getenv.
108264         Reported by Volker Borchert.
108266 2001-11-26  Jim Meyering  <meyering@lucent.com>
108268         * lib/gtod.h: Remove file.
108269         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
108270         * lib/gettimeofday.c: Don't include gtod.h.
108271         (GTOD_init): Remove function.
108272         (rpl_gettimeofday): Do its job here instead, rather than aborting.
108273         Suggestion from Volker Borchert.
108275 2001-11-23  Jim Meyering  <meyering@lucent.com>
108277         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
108278         it.
108279         * lib/hash.c (struct hash_table): Define it here instead.
108281 2001-11-22  Jim Meyering  <meyering@lucent.com>
108283         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
108285 2001-11-20  Jim Meyering  <meyering@lucent.com>
108287         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
108288         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
108290 2001-11-19  Jim Meyering  <meyering@lucent.com>
108292         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
108293         directory.  Use "conftestXXXXXX" as the template.
108294         Suggestion from Paul Eggert.
108296         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
108297         immediately, so the test doesn't mistakenly hit the max-open-files
108298         limit.
108300 2001-11-18  Paul Eggert  <eggert@twinsun.com>
108302         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
108303         (TEMPORARIES): New macro.
108304         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
108305         removes an artificial limitation (e.g. HP-UX 10.20, where
108306         TMP_MAX is 17576).
108308 2001-11-18  Jim Meyering  <meyering@lucent.com>
108310         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
108312 2001-11-18  Jim Meyering  <meyering@lucent.com>
108314         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
108315         on SunOS 4.
108317         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
108318         files will be created before anything else.
108320 2001-11-17  Paul Eggert  <eggert@twinsun.com>
108322         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
108323         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
108325 2001-11-17  Jim Meyering  <meyering@lucent.com>
108327         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
108328         Prompted by a report from Bob Proulx.
108330         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
108331         Instead, require UTILS_FUNC_MKSTEMP.
108333 2001-11-17  Jim Meyering  <meyering@lucent.com>
108335         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
108336         Now, that's done as part of AC_FUNC_STRTOD.
108338 2001-11-17  Jim Meyering  <meyering@lucent.com>
108340         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
108341         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
108342         rather than group writable.  Patch by Juan F. Codagnone.
108344         * lib/readtokens.c: Remove explicit declarations of xmalloc and
108345         xrealloc, Instead, include "xalloc.h".
108347         * lib/mountlist.c: Include unlocked-io.h after all system headers.
108348         Remove explicit declarations of xmalloc, xrealloc,
108349         and xstrdup.  Instead, include "xalloc.h".
108351         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
108352         unlocked-io.h.
108353         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
108354         Likewise.
108355         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
108357         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
108358         Reported by Padraig Brady.
108360         * lib/mkstemp.c: #undef mkstemp.
108361         Include config.h.
108362         (rpl_mkstemp): Rename from mkstemp.
108363         Protoize.
108365 2001-11-16  Jim Meyering  <meyering@lucent.com>
108367         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
108368         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
108369         determine the amount of total physical memory, use pstat_getstatic.
108370         HPUX-11 doesn't define _SC_PHYS_PAGES.
108371         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
108372         If sysconf couldn't be used to determine the amount of available
108373         physical memory, use both pstat_getstatic and pstat_getdynamic.
108374         Based on a patch from Bob Proulx.
108376 2001-11-10  Jim Meyering  <meyering@lucent.com>
108378         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
108379         (jm_PREREQ): Use it.
108381 2001-11-09  Jim Meyering  <meyering@lucent.com>
108383         * m4/jm-macros.m4: Require autoconf-2.52f.
108384         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
108385         Use these AC_-prefixed names, not the AM_-prefixed ones.
108387         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
108389 2001-11-05  Jim Meyering  <meyering@lucent.com>
108391         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
108393 2001-11-04  Jim Meyering  <meyering@lucent.com>
108395         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
108396         $DEFS.
108398 2001-11-03  Jim Meyering  <meyering@lucent.com>
108400         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
108401         of AC_DEFUN.
108403         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
108404         know the name of the variable in the macro definition.
108406 2001-11-03  Jim Meyering  <meyering@lucent.com>
108408         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
108409         in argmatch_to_argument call.
108411         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
108412         argument.
108414         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
108415         e.g., a fault due to an attempt to free a NULL pointer.
108417 2001-11-01  Jim Meyering  <meyering@lucent.com>
108419         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
108420         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
108422 2001-11-01  Jim Meyering  <meyering@lucent.com>
108424         * lib/dirfd.c, lib/dirfd.h: New files.
108425         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
108427         * lib/hash.c (hash_print) [TESTING]: Clean up.
108429 2001-10-22  Paul Eggert  <eggert@twinsun.com>
108431         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
108432         to avoid a warning if -Wall.
108434 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
108436         * README: New file
108437         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
108438         (per RMS's instructions, this is now the canonical source)
108439         * lgpl/, gpl/: New directories.
108441 2001-10-21  Paul Eggert  <eggert@twinsun.com>
108443         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
108445 2001-10-21  Jim Meyering  <meyering@lucent.com>
108447         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
108448         this code would end up calling gettext even in packages built
108449         with --disable-nls.
108450         * lib/getopt.c (_): Likewise.
108451         * lib/regex.c (_): Likewise.
108453 2001-10-20  Paul Eggert  <eggert@twinsun.com>
108455         * m4/error.m4 (jm_PREREQ_ERROR):
108456         Do not invoke AC_CHECK_FUNCS with strerror_r, as
108457         AC_FUNC_STRERROR_R does that.
108458         Check for strerror declaration.
108460         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
108461         are supposed to have them these days.
108462         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
108463         Merge changes from latest Autoconf CVS.
108464         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
108465         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
108466         POSIX decided to standardize on the int flavor of strerror_r.
108468 2001-10-20  Paul Eggert  <eggert@twinsun.com>
108470         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
108471         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
108472         Use strerror_r that is only a macro, even if it is not a function.
108473         (strerror): Check for HAVE_DECL_STRERROR before declaring.
108474         (private_strerror): Use prototypes, not old-style function definition.
108475         (print_errno_message): New function.
108476         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
108477         char*-flavored one.
108478         (error_tail, error, error_at_line): Use it.
108480 2001-10-11  Jim Meyering  <meyering@lucent.com>
108482         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
108483         and quote_n (1, ... to avoid clobbering a buffer.
108485 2001-10-05  Jim Meyering  <meyering@lucent.com>
108487         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
108488         hash-pjw.h.
108489         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
108490         * lib/hash-pjw.h: New file.
108492 2001-09-30  Jim Meyering  <meyering@lucent.com>
108494         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
108495         `struct fsstat' has the `f_fstypename' member.
108496         Use that to define FS_TYPE, which is now used to make
108497         the getfsstat link test tighter.
108499 2001-09-30  Jim Meyering  <meyering@lucent.com>
108501         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
108502         Include <sys/ucred.h>, for Apple Darwin.
108503         Include sys/mount.h and sys/fs_types.h only if available.
108504         (FS_TYPE): Define.
108505         (read_filesystem_list): Use FS_TYPE.
108507 2001-09-29  Paul Eggert  <eggert@twinsun.com>
108509         * lib/exclude.c (excluded_filename): 0 -> false, since it's
108510         a boolean context.
108512 2001-09-29  Jim Meyering  <meyering@lucent.com>
108514         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
108515         [one-argument getmntent function]): Include stdio.h before mntent.h.
108516         SunOS 4.1.x needs it for the declaration of `FILE'.
108517         Patch by Volker Borchert.
108519         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
108520         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
108521         sys/fs_types.h, and make the link-test for getfsstat guard #include
108522         directives with appropriate #if HAVE_*_H tests so that we can
108523         detect getfsstat on Apple Darwin1.3.7 systems.
108524         Reported by Nelson Beebe.
108525         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
108527 2001-09-28  Paul Eggert  <eggert@twinsun.com>
108529         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
108530         #defines strtoimax.  Also treat the other strto* functions
108531         like strtoimax.
108533         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
108534         Check for strtoul and strtoumax,
108535         as those declarations are made even in the signed case.
108536         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
108537         Likewise, for strtol and strtoimax.
108539 2001-09-28  Paul Eggert  <eggert@twinsun.com>
108541         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
108542         #defines strtoimax.  Also treat the other strto* functions
108543         like strtoimax.
108545         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
108546         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
108547         (strtoimax, strtoumax): Do not declare if already defined as a macro.
108549 2001-09-26  Jim Meyering  <meyering@lucent.com>
108551         Most macros in unlocked-io.h had the wrong number of arguments.
108552         * lib/gen-uio: New script.
108553         (USE_UNLOCKED_IO): Define to 1 if not already defined.
108554         * lib/unlocked-io.hin: Remove file.
108555         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
108556         rather than trying to embed it here.
108557         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
108558         Reported by Padraig Brady.
108560 2001-09-25  Volker Borchert  <bt@teknon.de>
108562         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
108563         `result'.
108565 2001-09-24  Jim Meyering  <meyering@lucent.com>
108567         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
108569 2001-09-23  Jim Meyering  <meyering@lucent.com>
108571         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
108572         instead of the mere test for existence of mntent.h.  The latter
108573         would get a false-positive on AIX 3.4 systems.
108574         In the outer getmntent if-block, don't die if neither of the getmntent
108575         tests succeeds.  Instead, just fall through and continue with the
108576         remaining tests.
108578 2001-09-23  Jim Meyering  <meyering@lucent.com>
108580         * lib/mountlist.c: Remove useless parentheses in #if directives.
108581         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
108582         the deprecated MOUNTED symbol is no longer defined in mntent.h.
108584 2001-09-22  Jim Meyering  <meyering@lucent.com>
108586         * m4/gettext.m4: New file.  From gettext.
108587         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
108588         * m4/progtest.m4: Likewise
108589         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
108590         * m4/glibc21.m4: Likewise.
108592         * m4/libintl.m4: Remove.  No longer used.
108594 2001-09-22  Jim Meyering  <meyering@lucent.com>
108596         * lib/localcharset.c: Update from latest gettext.
108597         * lib/config.charset: Likewise.
108599 2001-09-20  Jim Meyering  <meyering@lucent.com>
108601         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
108602         strtoimax.
108603         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
108604         strtoumax.
108606 2001-09-20  Jim Meyering  <meyering@lucent.com>
108608         * lib/xstrtol.c (strtoimax): Guard declaration with
108609         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
108610         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
108611         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
108612         (strtoumax): Likewise, for completeness (it wasn't necessary).
108614 2001-09-17  Paul Eggert  <eggert@twinsun.com>
108616         * lib/strtoimax.c (HAVE_LONG_LONG):
108617         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
108618         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
108619         to work around bug in IBM C compiler.
108621 2001-09-17  Jim Meyering  <meyering@lucent.com>
108623         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
108624         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
108625         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
108626         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
108627         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
108628         whenever the right hand side need not be expanded by the shell.
108630 2001-09-16  Paul Eggert  <eggert@twinsun.com>
108632         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
108633         library.  It's not correct, as some older glibcs are buggy.
108634         fnmatch wasn't fixed until glibc 2.2.
108636         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
108637         special shell magic here.
108639 2001-09-16  Jim Meyering  <meyering@lucent.com>
108641         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
108642         * m4/jm-macros.m4: Require it.
108644 2001-09-16  Jim Meyering  <meyering@lucent.com>
108646         * lib/mkdir.c: New file.
108648 2001-09-15  Jim Meyering  <meyering@lucent.com>
108650         * m4/jm-macros.m4: Check for help2man.
108652 2001-09-11  Jim Meyering  <meyering@lucent.com>
108654         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
108655         The body, by Paul Eggert, was moved here from configure.in.
108656         * m4/jm-macros.m4: Require UTILS_HOST_OS.
108658 2001-09-04  Paul Eggert  <eggert@twinsun.com>
108660         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
108661         (jm_PREREQ): Use it.
108663 2001-09-04  Paul Eggert  <eggert@twinsun.com>
108665         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
108666         Use ssize_t, not int, to store result of readlink.
108667         Check for ssize_t overflow as well as size_t overflow,
108668         as POSIX says the result of readlink is implementation-defined
108669         when ssize_t overflows.
108670         Remove unnecessary cast to char*.
108671         Use free+malloc instead of realloc, as the storage doesn't need
108672         to be preserved and it's clearer and can be more efficient that way.
108673         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
108674         * lib/xreadlink.h (xreadlink): Update prototype.
108676 2001-09-04  Paul Eggert  <eggert@twinsun.com>
108678         * lib/xgetcwd.c: Revert some of the previous change; intead,
108679         fix the HAVE_GETCWD_NULL code to behave more like the
108680         !HAVE_GETCWD_NULL code used to.
108682         Include "xalloc.h".
108683         (xgetcwd): Do not return NULL when memory is exhausted; instead,
108684         invoke xalloc_die.
108686 2001-09-03  Paul Eggert  <eggert@twinsun.com>
108688         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
108689         sys/param.h, as pathmax.h includes them.
108691 2001-09-03  Paul Eggert  <eggert@twinsun.com>
108693         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
108694         (jm_PREREQ_XGETCWD): New macro.
108696         * m4/getcwd.m4: New file.
108698 2001-09-03  Paul Eggert  <eggert@twinsun.com>
108700         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
108701         like the HAVE_GETCWD_NULL code.
108702         Include pathmax.h if not HAVE_GETCWD.
108703         Do not include xalloc.h.
108704         (INITIAL_BUFFER_SIZE): New symbol.
108705         Do not use xmalloc / xrealloc, since the caller is responsible for
108706         handling errors.  Preserve errno around `free' during failure.
108707         Do not overrun buffer when using getwd.
108709 2001-09-03  Paul Eggert  <eggert@twinsun.com>
108711         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
108712         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
108713         getcwd (NULL, 0).
108715 2001-09-03  Paul Eggert  <eggert@twinsun.com>
108717         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
108718         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
108719         spotted by Jim Meyering.
108721 2001-09-03  Jim Meyering  <meyering@lucent.com>
108723         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
108724         failure.
108726 2001-09-02  Jim Meyering  <meyering@lucent.com>
108728         * lib/error.c: Update from GNU libc.
108730 2001-09-01  Jim Meyering  <meyering@lucent.com>
108732         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
108733         Used by df.
108735 2001-09-01  Jim Meyering  <meyering@lucent.com>
108737         * lib/xreadlink.c: New file.
108738         * lib/xreadlink.h: New file.
108739         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
108740         xreadlink.h.
108742         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
108743         doesn't conflict with sparc Solaris 7's definition in
108744         /usr/include/sys/int_types.h.
108746         * lib/exclude.c: Use `""', not `<>' to #include non-system header
108747         files.
108748         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
108749         and strncasecmp as r-values.  Unixware didn't have declarations.
108751 2001-08-31  Paul Eggert  <eggert@twinsun.com>
108753         * lib/xstrtol.h: Add copyright notice.
108754         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
108755         LONGINT_INVALID_SUFFIX_CHAR.
108757 2001-08-31  Paul Eggert  <eggert@twinsun.com>
108759         * lib/xstrtol.c (strtoimax): New decl.
108761 2001-08-31  Paul Eggert  <eggert@twinsun.com>
108763         * lib/xgetcwd.c: Don't include pathmax.h.
108764         Include stdlib.h and unistd.h if available.
108765         Include xalloc.h.
108766         (xmalloc, xstrdup, free): Remove decls.
108767         (xgetcwd): Don't assume sizes fit in unsigned.
108768         Check for overflow when computing sizes.
108769         Simplify reallocation code.
108771 2001-08-31  Paul Eggert  <eggert@twinsun.com>
108773         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
108774         a directory's st_size can have an arbitrary value, so the old
108775         usage could waste an arbitrary amount of memory.  All uses
108776         changed.
108777         * lib/savedir.h: Update prototype.
108779 2001-08-31  Paul Eggert  <eggert@twinsun.com>
108781         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
108783         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
108784         old strtoimax.c.
108786         Also, make the following further changes to make this file's
108787         configuration more similar to that of strtol.c:
108788         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
108789         (strtoumax, uintmax_t, strtoull, strtol): Remove.
108790         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
108791         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
108792         changed to signed values.
108794         And make the following changes as well:
108795         Fix copyright notice, as 1999 was missing.
108796         (verify): New macro.
108797         (strtoimax): Check sizes at compile-time, not run-time.
108798         Prefer strtol to strtoll if both work.
108799         (main): Remove; it was not that useful and was a pain to maintain.
108801         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
108803 2001-08-31  Jim Meyering  <meyering@lucent.com>
108805         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
108806         Use an initial, malloc'd, buffer of length 128 rather than
108807         a statically allocated one of length 1024.
108809 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108811         Simplify code, partly by assuming autoconf 2.52 semantics.
108813         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
108815         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
108816         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
108817         All uses removed.
108818         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
108819         Move AC_REQUIRE to next-to-top level, to avoid confusion.
108820         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
108821         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
108822         jm_AC_HEADER_INTTYPES_H.
108823         * m4/jm-macros.m4 (jm_MACROS): Likewise.
108825         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
108827         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
108828         Quote first arg of AC_DEFUN.
108829         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
108830         since they are needed to parse the include file even if we need
108831         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
108832         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
108833         but with opposite signedness.
108835 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108837         Merge 'exclude' changes from tar 1.13.22.
108838         This fixes one or two unlikely storage allocation overflow bugs,
108839         but doesn't change user-visible behavior otherwise.
108841 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108843         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
108844         (jm_PREREQ_EXCLUDE): New macro.
108846 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108848         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
108849         tm to be declared.
108851 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108853         * lib/hash.c: Remove '2001' from copyright notice.
108855 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108857         * lib/full-write.h: New file.
108858         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
108859         * lib/full-write.c: Correct credits, as cccp.c no longer
108860         exists and anyway it was so heavily changed from the old cccp
108861         code as to be unrecognizable.  Include full-write.h.
108862         (full_write): Return size_t, with short writes meaning failure.
108863         All callers changed.  This fixes a bug with large buffers
108864         on 64-bit hosts.
108865         * lib/utime.c: Include full-write.h.
108867 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108869         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
108870         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
108871         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
108872         Include if available.
108873         (<xalloc.h>): Include
108874         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
108875         (verify): New macro.  Use it to verify that EXCLUDE macros do not
108876         collide with FNM macros.
108877         (struct patopts): New struct.
108878         (struct exclude): Use it, as exclude patterns now come with options.
108879         (new_exclude): Support above changes.
108880         (new_exclude, add_exclude_file):
108881         Initial size must now be a power of two to simplify overflow checking.
108882         (free_exclude, fnmatch_no_wildcards): New function.
108883         (excluded_filename): No longer requires options arg, as the options
108884         are determined by add_exclude.  Now returns bool, not int.
108885         (excluded_filename, add_exclude):
108886         Add support for the fancy new exclusion options.
108887         (add_exclude, add_exclude_file): Now takes int options arg.
108888         Check for arithmetic overflow when computing sizes.
108889         (add_exclude_file): xrealloc might modify errno, so don't
108890         realloc until after errno might be used.
108892         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
108893         New macros.
108894         (free_exclude): New decl.
108895         (add_exclude, add_exclude_file): Now takes int options arg.
108896         (excluded_filename): No longer requires options arg, as the options
108897         are determined by add_exclude.  Now returns bool, not int.
108899 2001-08-30  Paul Eggert  <eggert@twinsun.com>
108901         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
108903 2001-08-27  Jim Meyering  <meyering@lucent.com>
108905         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
108907         * lib/version-etc.c (N_): Remove definition.
108908         Revert most of last change.
108909         Instead, simply don't mark the `Copyright...' string for translation.
108910         Based on advice from Paul Eggert.
108912         * lib/strtoxmax.c: Tweak comment.
108914 2001-08-26  Jim Meyering  <meyering@lucent.com>
108916         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
108918         * m4/xstrtoimax.m4: New file.
108919         * m4/xstrtoumax.m4: Add comments explaining why we
108920         AC_REPLACE_FUNCS(strtol).
108922 2001-08-26  Jim Meyering  <meyering@lucent.com>
108924         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
108925         of copyright with `%s' so translators don't get an untranslated
108926         message in 2002.
108927         (COPYRIGHT_YEAR): Define.
108928         (version_etc): Use fprintf rather than fputs.
108929         Suggestion from Ulrich Drepper.
108931         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
108933         * lib/strtoll.c: New file, from GNU libc.
108934         * lib/xstrtoimax.c: New file.
108936         * lib/xstrtol.h: Add xstrtoimax.
108937         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
108938         * lib/strtoimax.c: New file.  Likewise, but first define
108939         STRTOUXMAX_SIGNED.
108941         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
108942         ...
108943         * lib/strtoxmax.c: ... then renamed to this.
108945 2001-08-18  Paul Eggert  <eggert@twinsun.com>
108947         * m4/inttypes.m4: Add AC_PREREQ(2.13).
108948         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
108949         (jm_AC_TYPE_INTMAX_T): New macro.
108950         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
108952         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
108954         * m4/longlong.m4: Renamed from ulonglong.m4.
108955         * m4/inttypes.m4: Renamed from inttypes_h.m4.
108956         * m4/uintmax_t.m4: Removed.
108958 2001-08-13  Paul Eggert  <eggert@twinsun.com>
108960         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
108961         Port to Solaris 8, where 'sed' requires a space after the 'r'
108962         command, and where sh dislikes "$/".  Clean up the spacing a bit.
108963         Redirect output to $tmp just once.
108965 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
108967         * lib/addext.c (<errno.h>): Include.
108968         (errno): Declare if not defined.
108969         (addext): Work correctly when pathconf returns -1 and leaves
108970         errno alone because there is no limit.  Also, work even if
108971         pathconf returns a value greater than SIZE_MAX.
108973 2001-08-12  Jim Meyering  <meyering@lucent.com>
108975         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
108976         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
108977         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
108978         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
108979         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
108980         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
108981         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
108982         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
108983         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
108984         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
108985         utime.m4, utimes.m4, xstrtoumax.m4:
108986         Quote the first argument in each use of AC_DEFUN.
108988 2001-08-12  Jim Meyering  <meyering@lucent.com>
108990         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
108991         Simply `return getcwd (NULL, 0);'.
108992         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
108993         Use 1300 as initial value for length, not PATH_MAX.
108995         * lib/pathmax.h: Clean up cpp syntax.
108997 2001-08-12  Jim Meyering  <meyering@lucent.com>
108999         * lib/gettimeofday.c: New file.
109000         * lib/gtod.h: New file.
109001         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
109003 2001-08-05  Jim Meyering  <meyering@lucent.com>
109005         * m4/jm-macros.m4: Require autoconf-2.52.
109007 2001-08-04  Jim Meyering  <meyering@lucent.com>
109009         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
109010         stmt, to get in sync with glibc.
109012 2001-08-03  Paul Eggert  <eggert@twinsun.com>
109014         The following changes are from gettext 0.10.39 as maintained by
109015         Bruno Haible.
109017         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
109018         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
109019         with inverted sense.  All uses changed.
109021         * lib/mbswidth.c: Don't include <limits.h>.
109022         Include <stdlib.h> and <string.h> unconditionally.
109023         (iswcntrl, mbsinit, ISCNTRL): New macros.
109024         (mbsnwidth): Use K&R style function declarations.
109025         Don't bother checking for MB_LEN_MAX == 1, since the compiler
109026         can optimize it when MB_CUR_MAX == 1.
109027         The width of control characters is zero, not 1.
109029 2001-08-03  Paul Eggert  <eggert@twinsun.com>
109031         The following changes are from gettext 0.10.39 as maintained by
109032         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
109034         * m4/codeset.m4: Upgrade to serial AM1.
109035         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
109036         all uses changed.  Quote first arg of AC_DEFUN.
109037         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
109039         * m4/iconv.m4: Upgrade to serial AM2.
109040         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
109041         Add --with-libconv-prefix.
109042         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
109043         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
109044         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
109045         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
109046         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
109048         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
109049         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
109050         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
109051         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
109052         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
109053         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
109054         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
109055         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
109056         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
109058         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
109059         string.h any more.
109061         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
109062         not the default value.
109064         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
109065         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
109066         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
109067         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
109068         Also check for iswcntrl, used for wcwidth fallback.
109069         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
109070         to Autoconf 2.13.
109072 2001-08-03  Jim Meyering  <meyering@lucent.com>
109074         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
109075         as it was in the original.  Reported by Paul Eggert.
109077 2001-07-16  Jim Meyering  <meyering@lucent.com>
109079         * m4/gettimeofday.m4: New file.
109080         Prompted by a report from Bernhard Baehr.
109082 2001-07-15  Jim Meyering  <meyering@lucent.com>
109084         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
109085         stuff. Now it's in ../Makefile.cfg.
109087 2001-07-15  Jim Meyering  <meyering@lucent.com>
109089         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
109090         (BUILT_SOURCES): Add unlocked-io.h.
109091         (io_functions): Define.
109092         (unlocked-io.h): New rule.
109093         (DISTCLEANFILES): Add unlocked-io.h.
109094         (all-local): Depend on unlocked-io.h, to ensure it is created.
109096         * lib/unlocked-io.hin: New file
109098         * lib/regex.c: Update from glibc.
109100 2001-07-05  Jim Meyering  <meyering@lucent.com>
109102         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
109103         recommendation.
109104         (libfetish_a_SOURCES): Put all .h files here instead.
109105         Remove a thus-exposed (better checks in automake) duplicate and
109106         two unnecessary .h files.
109108 2001-07-04  Jim Meyering  <meyering@lucent.com>
109110         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
109111         that generates jm-glibc-io.m4 so that it doesn't trigger any make
109112         distcheck failure.
109114 2001-07-02  Jim Meyering  <meyering@lucent.com>
109116         The following changes were prompted by suggestions from Bruno Haible.
109118         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
109119         is now generated.
109120         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
109121         definition of EXTRA_DIST.
109122         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
109123         ensure that the generated file is created/updated whenever the list
109124         of $(unlocked_functions) is changed.
109125         (jm-glibc-io.m4): New rule.
109126         (unlocked-io.h): New rule -- currently unused.
109128 2001-06-24  Jim Meyering  <meyering@lucent.com>
109130         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
109131         unmatched right bracket, rather than kludging it with an extra,
109132         falsely-matching quote in a comment.  Patch by Akim Demaille.
109134 2001-06-11  Jim Meyering  <meyering@lucent.com>
109136         * lib/regex.c: Update from GNU libc.
109138 2001-05-27  Jim Meyering  <meyering@lucent.com>
109140         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
109141         Check for ut_type in struct utmp.
109143 2001-05-27  Jim Meyering  <meyering@lucent.com>
109145         * lib/readutmp.h (UT_TYPE): Define.
109147 2001-05-24  Jim Meyering  <meyering@lucent.com>
109149         * lib/argmatch.c: Include "quote.h".
109150         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
109151         quote function.  Reported by Göran Uddeborg.
109153 2001-05-22  Jim Meyering  <meyering@lucent.com>
109155         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
109156         now that we use the package-supplied version unconditionally.
109157         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
109159 2001-05-21  Jim Meyering  <meyering@lucent.com>
109161         * m4/regex.m4: Change a couple backticks to single quotes to avoid
109162         shell syntax errors.
109164 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
109166         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
109168 2001-05-20  Paul Eggert  <eggert@twinsun.com>
109170         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
109171         Don't bother to check library strftime, since
109172         we'll be using our own my_strftime function anyway.
109173         Define my_strftime instead of strftime.
109175 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
109177         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
109178         which is not yet declared.
109180 2001-05-15  Jim Meyering  <meyering@lucent.com>
109182         * m4/regex.m4: Use proper quoting so brackets appear in the test
109183         program.
109184         Reported by, and with help from, Bruno Haible.
109186 2001-05-13  Jim Meyering  <meyering@lucent.com>
109188         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
109189         undefined.
109191 2001-05-11  Paul Eggert  <eggert@twinsun.com>
109193         dirname code cleanup.  base_name now behaves more compatibly
109194         with POSIX basename when given file names that have trailing
109195         slashes, and similarly for dir_name.  Add new primitives
109196         base_len and dir_len.  Put the directory-name-related decls
109197         into dirname.h.
109199         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
109200         * lib/backupfile.c (base_name): Likewise.
109201         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
109202         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
109203         * lib/makepath.c (strip_trailing_slashes): Likewise.
109204         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
109205         ISSLASH): Likewise.
109206         * lib/rename.c (strip_trailing_slashes): Likewise.
109207         * lib/same.c (base_name): Likewise.
109208         * lib/stripslash.c (ISSLASH): Likewise.
109210         * lib/addext.c: Include <dirname.h> after size_t is defined.
109211         * lib/backupfile.c: Likewise.
109213         * lib/addext.c (addext): Use base_len to trim redundant
109214         trailing slashes instead of doing it ourselves.
109215         But do not trim the last slash if it is not redundant.
109217         * lib/backupfile.c (find_backup_file_name,
109218         max_backup_version): Use base_len instead of rolling it ourselves.
109219         Handle the case of "" and (on DOS) "C:" correctly.
109221         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
109222         needed. Include <string.h>, <dirname.h>.
109223         (base_name): Allow file names ending in slashes, other than names
109224         that are all slashes.  In this case, return the basename followed
109225         by the slashes.  This is more general, and can be used in places
109226         where the original base_name purposely had an assertion failure.
109227         (base_len): New function.
109229         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
109230         Do not include <assert.h>; no longer needed.
109231         Include xalloc.h.
109232         (memrchr): Remove decl.
109233         (dir_name_r): Remove.
109234         (dir_len): Renamed from dirlen.  All callers changed.
109235         Rewrite in terms of base_name, for simplicity and consistency.
109236         (dir_name): Never return NULL.  All callers changed.
109237         Do not include <stdlib.h> in test program; no longer needed.
109238         return 0; is fine for test program.
109240         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
109241         New macros.
109242         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
109244         * lib/path-concat.c (path_concat): Use base_len to compute
109245         base length, not strlen; this means we cannot rely on memcpy
109246         to null-terminate.
109248         * lib/same.c (STREQ): Remove.
109249         (same_name): Handle the case where the basename ends in trailing '/'.
109251         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
109252         a slash was stripped.  Do not strip the last slash after a
109253         file system prefix.
109255 2001-05-11  Paul Eggert  <eggert@twinsun.com>
109257         * lib/Makefile.am (libfetish_a_SOURCES):
109258         Add strftime.c, since we now compile it on all hosts.
109260         * lib/strftime.c (my_strftime):
109261         Define to nstrftime if emacs, but only if my_strftime is not defined.
109262         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
109263         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
109264         Add one more extra argument: a nanoseconds value.
109265         All uses changed.
109266         (ns): New macro.
109267         (my_strftime function): Add %N format.
109268         (emacs_strftimeu): Renamed from emacs_strftime,
109269         with extra ut argument.
109271 2001-05-09  Paul Eggert  <eggert@twinsun.com>
109273         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
109275 2001-04-21  Jim Meyering  <meyering@lucent.com>
109277         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
109278         doesn't interfere.
109280 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
109282         * m4/ftruncate.m4: Check for chsize.
109283         Link with ftruncate.o unconditionally if ftruncate is missing.
109284         This was required when cross-compiling to i586-mingw32msvc.
109286 2001-04-08  Jim Meyering  <meyering@lucent.com>
109288         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
109289         recomputed; that's necessary when the offset spans a DST transition.
109290         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
109292 2001-04-02  Jim Meyering  <meyering@lucent.com>
109294         * lib/regex.h, regex.c: Update from GNU libc.
109296 2001-03-24  Jim Meyering  <meyering@lucent.com>
109298         * m4/jm-macros.m4: Require autoconf-2.49d.
109300 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
109302         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
109304 2001-03-19  Paul Eggert  <eggert@twinsun.com>
109306         * lib/version-etc.c (version_etc_copyright): Update to 2001.
109308 2001-03-17  Jim Meyering  <meyering@lucent.com>
109310         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
109311         now that the version in autoconf is equivalent.
109312         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
109314         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
109315         Suggestion from Akim Demaille.
109317         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
109318         (jm_PREREQ_TEMPNAME): New function.
109320 2001-03-16  Paul Eggert  <eggert@twinsun.com>
109322         * lib/tempname.c (uint64_t): Define to uintmax_t if
109323         not defined, and if UINT64_MAX is not defined.
109324         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
109325         Reported by John David Anglin.
109327 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
109329         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
109330         resolve alias if codeset is empty.
109331         * lib/config.charset (BeOS): Use wildcard syntax.
109333 2001-03-13  Jim Meyering  <meyering@lucent.com>
109335         * lib/path-concat.c (path_concat)
109336         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
109337         concatenating e.g., `C:' and `foo'.
109338         From Bruno Haible.
109340 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
109342         * lib/localcharset.c (locale_charset): Don't use
109343         setlocale(LC_CTYPE,NULL). Don't return NULL.
109344         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
109346 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
109348         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
109349         support for DOS/DJGPP.
109351 2001-03-01  Paul Eggert  <eggert@twinsun.com>
109353         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
109354         lacks mkstemp.  Compile our own tempname.c if we compile our own
109355         mkstemp.c, as mkstemp relies on tempname.
109357 2001-03-01  Jim Meyering  <meyering@lucent.com>
109359         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
109360         AH_VERBATIM really does output its argument verbatim.
109362 2001-02-28  Paul Eggert  <eggert@twinsun.com>
109364         * lib/Makefile.am (libfetish_a_SOURCES):
109365         Add dup-safer.c, fopen-safer.c.
109366         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
109368         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
109369         * lib/unistd-safer.h: New files.
109371 2001-02-25  Paul Eggert  <eggert@twinsun.com>
109373         The mkstemp replacement is taken from glibc 2.2.2, with some
109374         portability fixes for use outside glibc, as follows:
109376         * lib/tempname.c (struct_stat64): New macro.
109377         (direxists, __gen_tempname): Use it.
109378         This avoids a portability problem with Solaris 8.
109380         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
109381         (<stddef.h>, <stdint.h>, <string.h>):
109382         Include only if STDC_HEADERS || _LIBC.
109383         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
109384         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
109385         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
109386         (__set_errno): Define this macro if <errno.h> doesn't.
109387         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
109388         Define these macros if <stdio.h> doesn't.
109389         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
109390         Define these macros if <sys/stat.h>
109391         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
109392         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
109393         __xstat64): Define if not _LIBC.
109394         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
109395         (__gen_tempname): Invoke gettimeofday only if
109396         HAVE_GETTIMEOFDAY || _LIBC;
109397         otherwise, fall back on plain "time".
109398         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
109400         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
109402         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
109404 2001-02-18  Paul Eggert  <eggert@twinsun.com>
109406         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
109408 2001-02-17  Paul Eggert  <eggert@twinsun.com>
109410         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
109411         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
109412         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
109413         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
109415 2001-02-17  Paul Eggert  <eggert@twinsun.com>
109417         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
109418         Remove workaround macros for hosts that have mbrtowc but not
109419         mbstate_t, as we now insist on proper declarations for both
109420         before using mbrtowc.
109422 2001-02-17  Jim Meyering  <meyering@lucent.com>
109424         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
109425         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
109426         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
109427         UnixWare 7.1.1.
109429         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
109430         rather than AC_CACHE_VAL.
109432 2001-02-17  Jim Meyering  <meyering@lucent.com>
109434         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
109435         around included file name.
109437         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
109439         * lib/strftime.c: Update from GNU libc (the only changes were to
109440         comments).
109442 2001-02-17  Jim Meyering  <meyering@lucent.com>
109444         * lib/regex.c: Update from libc.
109446 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
109448         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
109449         clash.
109451 2001-02-16  Paul Eggert  <eggert@twinsun.com>
109453         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
109454         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
109455         Reported by Mark Hounschell via Paul Eggert.
109457 2001-02-07  Jim Meyering  <meyering@lucent.com>
109459         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
109461 2001-02-05  Jim Meyering  <meyering@lucent.com>
109463         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
109464         it includes the patch required for `large file' support with at least
109465         HP-UX's 10.20 /bin/cc.
109467 2001-02-03  Jim Meyering  <meyering@lucent.com>
109469         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
109470         AS_IF, now that it works once again (mysteriously).
109471         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
109473 2001-01-30  Jim Meyering  <meyering@lucent.com>
109475         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
109476         * m4/chown.m4: Rename conftestchown to conftest.chown.
109477         * m4/rename.m4: s/conftestdir/conftest.d1/ and
109478         s/conftestdir2/conftest.d2/.
109479         * m4/utimes.m4: s/conftestdata/conftest.data/
109480         Inspired by Pavel Roskin's change in autoconf.
109482 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
109484         * lib/config.charset: Update for FreeBSD 4.2.
109486 2001-01-27  Jim Meyering  <meyering@lucent.com>
109488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
109489         a use of AS_IF.
109490         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
109492 2001-01-26  Jim Meyering  <meyering@lucent.com>
109494         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
109495         quotearg.c includes it.
109497 2001-01-26  Jim Meyering  <meyering@lucent.com>
109499         * lib/quotearg.c: Include stddef.h.
109500         * lib/quote.c: Include stddef.h.
109501         Reported by Axel Kittenberger.
109503         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
109504         line in double quotes so that it evokes a better diagnostic.
109505         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
109506         Reported by Axel Kittenberger.
109508 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
109510         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
109511         as if it was a `charset'.
109513 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
109515         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
109516         has const.
109518 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
109520         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
109521         to avoid a warning.  Add back 'const' to inptr.
109523 2001-01-20  Jim Meyering  <meyering@lucent.com>
109525         Be sure that headers are checked before used in code compiled
109526         for the type checks.
109527         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
109528         In place of that, invoke jm_CHECK_ALL_TYPES.
109529         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
109530         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
109531         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
109532         The check for ssize_t was mistakenly run before the test for unistd.h.
109534         The configure-time check for stdbool.h was missing.
109535         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
109536         (jm_PREREQ_HASH): New function.
109538 2001-01-17  Jim Meyering  <meyering@lucent.com>
109540         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
109541         for autoconf-2.49c.
109542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
109544 2001-01-16  Jim Meyering  <meyering@lucent.com>
109546         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
109547         From Bruno Haible.
109549 2001-01-14  Jim Meyering  <meyering@lucent.com>
109551         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
109552         foo and bar.  Create conftestdir/ in the script, not in the C code.
109553         Remove directories in the script, not in the C code.
109554         Remove conftestdir{,2} before trying to create the directory.
109555         Make the entire configure script fail if the mkdir fails.
109557 2001-01-14  Jim Meyering  <meyering@lucent.com>
109559         * lib/rename.c: New file.  From Volker Borchert.
109560         Include stdlib.h, string.h or strings.h, and xalloc.h.
109561         Use strip_trailing_slashes rather than open-coding it.
109563 2001-01-03  Paul Eggert  <eggert@twinsun.com>
109565         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
109567 2001-01-03  Jim Meyering  <meyering@lucent.com>
109569         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
109570         of local `inptr' to avoid warning with some system declarations of
109571         iconv.
109573 2001-01-02  Volker Borchert  <bt@teknon.de>
109575         * m4/rename.m4: New file.
109576         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
109578 2001-01-01  Jim Meyering  <meyering@lucent.com>
109580         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
109581         even on systems with utmpx.h.  It's necessary for the declaration of
109582         utmp's ut_user member.  Reported by Andreas Jaeger.
109584         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
109585         available. They are required for the declarations of getgrgid and
109586         getpwuid resp.
109587         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
109588         Reported by Andreas Jaeger.
109590 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
109592         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
109593         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
109594         so `make install' also works in VPATH builds.
109596 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
109598         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
109599         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
109600         can be used in subdirectories.
109602 2000-12-29  Paul Eggert  <eggert@twinsun.com>
109604         * lib/modechange.c: Do not assume that mode_t uses the
109605         traditional octal encoding.  E.g. "chmod 1 FOO" should set
109606         the other-execute bit of FOO even if S_IXOTH != 1.
109608         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
109609         WOTH, XOTH, ALLM): New macros.
109610         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
109611          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
109612         Use them.
109613         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
109614         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
109615         (mode_compile):
109616         No need to use uintmax_t; unsigned long is long enough.
109617         Don't bother to get suffix since we don't use it.
109619 2000-12-26  Jim Meyering  <meyering@lucent.com>
109621         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
109622         better with autoheader.
109624 2000-12-24  Jim Meyering  <meyering@lucent.com>
109626         * lib/hash.c (is_prime): Return explicit boolean values.
109627         (hash_get_first): Return NULL to appease Irix5.6's 89.
109628         Reported by Nelson Beebe.
109630 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
109632         * lib/localcharset.c (locale_charset): Add support for Win32.
109634 2000-12-18  Paul Eggert  <eggert@twinsun.com>
109636         * lib/physmem.h, lib/physmem.c: New files.
109638         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
109639         (noinst_HEADERS): Add physmem.h.
109641         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
109642         't' for compatibility with Solaris 8 sort.
109644 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
109646         * lib/config.charset: Add support for BeOS.
109648 2000-12-17  Jim Meyering  <meyering@lucent.com>
109650         * m4/dos.m4 (jm_AC_DOS): New file and macro.
109651         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
109653 2000-12-16  Jim Meyering  <meyering@lucent.com>
109655         This bug had a serious impact on chown: `chown N:M FILE' (for integer
109656         N and M) would have treated it like `chown N:N FILE'.
109658         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
109660 2000-12-16  Jim Meyering  <meyering@lucent.com>
109662         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
109663         SHELLS_FILE to a file name that's useful on djgpp systems.
109664         Include stdlib.h.
109665         (ADDITIONAL_DEFAULT_SHELLS): Define.
109666         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
109667         Based mostly on a patch from Prashant TR.
109669 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
109671         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
109672         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
109673         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
109675 2000-12-08  Andreas Schwab  <schwab@suse.de>
109677         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
109678         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
109680 2000-12-07  Jim Meyering  <meyering@lucent.com>
109682         * lib/stripslash.c (ISSLASH): Define.
109683         (strip_trailing_slashes): Use ISSLASH rather than comparing against
109684         `/'.
109685         From Prashant TR.
109687         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
109688         (dir_name_r): Declare this function as static.
109689         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
109690         manifest itself on a name containing a mix of slashes and
109691         backslashes.
109692         Make this function work with names starting with a DOS-style
109693         drive letter and colon prefix.
109694         (dir_name): Append `.' if necessary.
109695         Based mostly on patches from Prashant TR and Eli Zaretskii.
109697         * lib/dirname.h (dir_name_r): Remove prototype.
109699 2000-12-06  Paul Eggert  <eggert@twinsun.com>
109701         * m4/off_t-format.m4: Remove this file.
109702         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
109704 2000-12-06  Jim Meyering  <meyering@lucent.com>
109706         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
109707         replacement strtoull, we may well need the replacement strtoul, too.
109708         Check for declarations of strtoul and strtoull.
109709         Check for strtol.  Mainly as a cue to cause automake to include
109710         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
109711         Check for limits.h -- strtol.c needs it.
109713 2000-12-05  Jim Meyering  <meyering@lucent.com>
109715         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
109717 2000-12-04  Jim Meyering  <meyering@lucent.com>
109719         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
109720         Also include memory.h, stdlib.h, unistd.h if appropriate.
109721         Reported by Andreas Jaeger (conflicting declaration of malloc).
109723 2000-12-02  Jim Meyering  <meyering@lucent.com>
109725         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
109726         * m4/jm-macros.m4 (jm_MACROS): require it.
109728 2000-12-02  Jim Meyering  <meyering@lucent.com>
109730         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
109732 2000-12-01  Paul Eggert  <eggert@twinsun.com>
109734         * lib/memrchr.c: Include <config.h> before any system include file.
109736 2000-11-30  Jim Meyering  <meyering@lucent.com>
109738         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
109740 2000-11-30  Jim Meyering  <meyering@lucent.com>
109742         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
109744 2000-11-29  Paul Eggert  <eggert@twinsun.com>
109746         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
109748 2000-11-26  Jim Meyering  <meyering@lucent.com>
109750         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
109752 2000-11-22  Paul Eggert  <eggert@twinsun.com>
109754         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
109755         size of (size_t) -1; it's not portable.
109757 2000-11-17  Jim Meyering  <meyering@lucent.com>
109759         * lib/strstr.c: Update from GNU libc.
109761 2000-11-17  Akim Demaille  <akim@epita.fr>
109763         * lib/obstack.h: Formatting changes.
109764         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
109765         prevent type checking.
109766         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
109767         cast the value to (void *): assigning a `foo *' to a `void *'
109768         variable is valid.
109769         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
109771 2000-11-16  Jim Meyering  <meyering@lucent.com>
109773         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
109775 2000-11-11  Jim Meyering  <meyering@lucent.com>
109777         * lib/error.c: Add a couple #includes, merging from GNU libc version.
109779 2000-11-10  Jim Meyering  <meyering@lucent.com>
109781         * lib/obstack.h: Update from GNU libc.
109782         * lib/obstack.c: Likewise.
109784 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
109786         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
109788 2000-11-06  Paul Eggert  <eggert@twinsun.com>
109790         * lib/getusershell.c (setusershell): Use rewind rather than
109791         fseek/fseeko, to avoid configuration hassles with fseeko.
109792         Don't bother opening SHELLS_FILE if shellstream is NULL;
109793         it's not necessary.
109795 2000-11-05  Jim Meyering  <meyering@lucent.com>
109797         * lib/makepath.h (make_dir): Declare.
109798         * lib/makepath.c (make_dir): Remove `static' attribute.
109799         Tweak a comment.
109801 2000-11-04  Jim Meyering  <meyering@lucent.com>
109803         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
109805 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
109807         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
109808         last one in a bucket, advance to the next bucket.
109810 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
109812         * lib/fnmatch.c: Do not comment out all the code if we are using
109813         the GNU C library, because in some cases we are replacing buggy
109814         code in the GNU C library itself.
109816 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
109818         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
109819         (regex_compile): Catch bogus \(\1\).
109821 2000-10-30  Paul Eggert  <eggert@twinsun.com>
109823         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
109824         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
109825         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
109827 2000-10-30  Paul Eggert  <eggert@twinsun.com>
109829         * lib/error.h, getline.h, modechange.h:
109830         Remove "2000" from Copyright line, as the file hasn't been
109831         changed this year other than in the copyright notice.
109833         * lib/xalloc.h: Add "2000" to Copyright line, as this file
109834         was changed this year.
109836 2000-10-29  Jim Meyering  <meyering@lucent.com>
109838         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
109839         renaming.
109840         * m4/ls-mntd-fs.m4: Likewise
109842 2000-10-29  Jim Meyering  <meyering@lucent.com>
109844         * lib/xstat.in: Fix grammar in comment.
109846 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
109848         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
109849         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
109850         doesn't define __restrict_arr.
109852 2000-10-28  Jim Meyering  <meyering@lucent.com>
109854         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
109855         (jm_PREREQ_MEMCHR): New function.
109857 2000-10-28  Jim Meyering  <meyering@lucent.com>
109859         * lib/memchr.c: Update from libc.
109860         Adjust for portability:
109861         [HAVE_STDLIB_H]: Include stdlib.h.
109862         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
109863         Undef __memchr, too.
109864         [!weak_alias]: Define __memchr to memchr.
109866         * lib/regex.c: Update from libc.
109867         * lib/regex.h: Likewise.
109868         * lib/getopt1.c: Likewise.
109869         * lib/memcmp.c: Likewise.
109871         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
109872         Avoid using fseek, when possible -- it's broken by design.
109873         Patch by Ulrich Drepper.
109875 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
109877         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
109878         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
109879         Giving in to popular pressure to shut up the compiler with casts.
109881 2000-10-26  Jim Meyering  <meyering@lucent.com>
109883         * lib/strftime.c: Update from libc.
109885 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
109887         * regex.c: More `unsigned char' -> `re_char' changes.
109888         Also change several `int' into `re_wchar_t'.
109889         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
109890         (PUSH_FAILURE_POINTER): Don't cast any more.
109891         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
109892         We want GCC to complain, since this piece of code makes
109893         re_match non-reentrant, which *should* be fixed.
109894         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
109895         (EXTEND_BUFFER): Use RETALLOC.
109896         (SET_LIST_BIT): Don't cast.
109897         (re_wchar_t): New type.
109898         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
109899         that those two functions will always properly return.
109900         (IMMEDIATE_QUIT_CHECK): Cast to void.
109901         (analyse_first): Use recursion rather than an explicit stack.
109902         (re_compile_fastmap): Can't fail anymore.
109903         (re_search_2): Don't check re_compile_fastmap for failure.
109904         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
109905         Now also sets the new value (passed in a new argument).
109906         (re_match_2_internal): Use it.
109907         Also, use a new var `reg' of type size_t when looping through regs
109908         rather than reuse the inappropriate `mcnt'.
109910 2000-10-25  Jim Meyering  <meyering@lucent.com>
109912         * lib/obstack.c: Update from libc.
109914 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
109916         * regex.c (regex_compile): Change the way of handling a range from
109917         a char less than 256 to a char not less than 256.
109919 2000-10-24  Andrew Innes  <andrewi@gnu.org>
109921         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
109922         NT-Emacs only.
109923         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
109924         so that re_search functions only quit when callers expect them to.
109926 2000-10-23  Jim Meyering  <meyering@lucent.com>
109928         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
109929         wrong.  That set_locale call must not have any side effects.
109930         From Paul Eggert.
109932 2000-10-22  Jim Meyering  <meyering@lucent.com>
109934         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
109935         [CYCLIC]: Remove now-unused definition.
109937         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
109938         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
109939         Suggestion from Ulrich Drepper.
109941 2000-10-21  Jim Meyering  <meyering@lucent.com>
109943         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
109944         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
109945         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
109947 2000-10-21  Jim Meyering  <meyering@lucent.com>
109949         * lib/dirname.c (memrchr): Declare if necessary.
109950         (dir_name): Remove the restriction that there be no
109951         trailing slashes.  Now, this code skips past them, effectively
109952         ignoring them.
109953         [TEST_DIRNAME] (main): New unit tests.
109955         * lib/memrchr.c: New file from GNU libc.
109956         Undef __memrchr, too.
109957         [!weak_alias]: Define __memrchr to memrchr.
109958         Guard weak_alias use with `#ifdef weak_alias'.
109960 2000-10-21  Jim Meyering  <meyering@lucent.com>
109962         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
109963         (dir_name): Use dir_name_r.
109964         * lib/dirname.h (dir_name_r): Declare it.
109966 2000-10-17  Jim Meyering  <meyering@lucent.com>
109968         * lib/quote.h (PARAMS): Define and use.
109969         Reported by Akim Demaille.
109971         * lib/getopt.c: Update from libc.
109973 2000-10-16  Jim Meyering  <meyering@lucent.com>
109975         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
109976         setlocale.
109977         From Jan Fedak.
109979 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
109981         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
109983 2000-09-25  Jim Meyering  <meyering@lucent.com>
109985         * lib/md5.h (rol): Define (from GnuPG).
109987         * lib/sha.c: Give credit (GnuPG) where due.
109988         (M): Use rol rather than open-coding it.
109989         Add a FIXME comment.
109991 2000-09-21  Jim Meyering  <meyering@lucent.com>
109993         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
109994         Reported by Michael Stone.
109996 2000-09-20  Jim Meyering  <meyering@lucent.com>
109998         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
109999         (noinst_HEADERS): Add sha.h.
110000         Based on code from Scott G. Miller and from GnuPG.
110002 2000-09-18  Jim Meyering  <meyering@lucent.com>
110004         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
110005         LIBS. Otherwise, everyone ends up linking with -lelf for some
110006         configurations.
110007         Reported by Mike Stone.
110009 2000-09-15  Jim Meyering  <meyering@lucent.com>
110011         * lib/regex.c: Update from libc.
110013 2000-09-10  Jim Meyering  <meyering@lucent.com>
110015         * lib/getopt.c (_getopt_internal): Update from glibc.
110017 2000-09-09  Jim Meyering  <meyering@lucent.com>
110019         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
110020         think it should be used as a general replacement for isascii.
110021         * lib/fnmatch.c: Likewise.
110022         * lib/mbswidth.c: Likewise
110023         * lib/regex.c: Likewise.
110025         Don't use atoi.
110026         * lib/userspec.c: Include sys/param.h and limits.h.
110027         Include xstrtol.h.
110028         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
110029         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
110030         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
110031         UID, GID.  Check range.
110033 2000-09-06  Jim Meyering  <meyering@lucent.com>
110035         * lib/getopt.c (_getopt_internal): Update from glibc.
110037 2000-08-30  Jim Meyering  <meyering@lucent.com>
110039         * lib/strftime.c: Merge in changes from GNU libc.
110041 2000-08-26  Jim Meyering  <meyering@lucent.com>
110043         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
110044         * m4/fpending.m4: New file.
110046 2000-08-26  Jim Meyering  <meyering@lucent.com>
110048         * lib/closeout.c: Include "__fpending.h".
110049         (close_stdout_status): Return right away if there's nothing to flush.
110051         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
110052         * lib/__fpending.c: New file.
110053         * lib/__fpending.h: New file.
110055 2000-08-20  Jim Meyering  <meyering@lucent.com>
110057         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
110058         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
110059         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
110061 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
110063         Improve fileutils installation on systems where running
110064         programs (like install) can't be unlinked.
110065         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
110066         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
110068 2000-08-07  Paul Eggert  <eggert@twinsun.com>
110070         Standardize on "memory exhausted" instead of "Memory exhausted"
110071         or "virtual memory exhausted".
110072         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
110073         "virtual memory exhausted".
110074         * lib/same.c (same_name): Invoke xalloc_die instead of printing
110075         our own message.
110076         * lib/userspec.c (parse_user_spec): Likewise.
110077         * lib/bumpalloc.h: comment fix
110078         * lib/same.c, userspec.c: Include xalloc.h.
110080         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
110081         not char *const and pointing to a constant array.
110082         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
110083         (xrealloc): Comment fix.
110085         * lib/userspec.c (parse_user_spec):
110086         Don't translate a message until just before returning,
110087         to avoid unnecessary translation.
110089 2000-08-07  Jim Meyering  <meyering@lucent.com>
110091         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
110092         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
110093         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
110094         getgroups.c, gethostname.c, getopt.h, group-member.c,
110095         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
110096         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
110097         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
110098         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
110099         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
110100         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
110101         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
110102         yesno.c: Back out Copyright date changes for each file with no change
110103         this year.  This eases coordination with other programs using the same
110104         source code modules.  From Paul Eggert.
110106 2000-08-06  Paul Eggert  <eggert@twinsun.com>
110108         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
110109         not char, for compatibility with glibc 2.1.3 strftime.c.
110111 2000-08-03  Greg McGary  <greg@mcgary.org>
110113         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
110114         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
110115         (EXTEND_BUFFER): Use them.
110117 2000-08-01  Jim Meyering  <meyering@lucent.com>
110119         * lib/dirname.c (ISSLASH): Define.
110120         (BACKSLASH_IS_PATH_SEPARATOR): Define.
110121         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
110122         both `\' and `/' may be use as path separators.
110123         Based on a patch from Prashant TR.
110125 2000-07-31  Paul Eggert  <eggert@twinsun.com>
110127         * lib/quotearg.c (quotearg_n_options): Don't make the initial
110128         slot vector a constant, since it might get modified.
110130 2000-07-31  Jim Meyering  <meyering@lucent.com>
110132         * lib/xmalloc.c: Use `virtual memory exhausted', not
110133         `Memory exhausted'.
110134         * lib/obstack.c (print_and_abort): Likewise.
110136 2000-07-30  Paul Eggert  <eggert@twinsun.com>
110138         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
110139         buffer, so that the caller can always quote one small
110140         component of a "memory exhausted" message in slot 0.
110141         From a suggestion by Jim Meyering.
110143 2000-07-30  Jim Meyering  <meyering@lucent.com>
110145         * lib/makepath.c (make_path): Quote the other instance, too.
110147         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
110148         (STATIC_BUF_SIZE): Define.
110149         (quotearg_n_options): Use only statically allocated storage when
110150         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
110151         than STATIC_BUF_SIZE.
110153 2000-07-29  Jim Meyering  <meyering@lucent.com>
110155         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
110156         * lib/dirname.c (dir_name): Likewise.
110158         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
110159         `/'.
110161         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
110162         (dir_name): Assert that there are no trailing slashes.
110164 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
110166         * lib/mbswidth.h (mbswidth): Add a flags argument.
110167         (mbswidth): New declaration.
110168         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
110169         * lib/mbswidth.c (mbswidth): Add a flags argument.
110170         (mbsnwidth): New function.
110172 2000-07-24  Jim Meyering  <meyering@lucent.com>
110174         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
110176 2000-07-23  Paul Eggert  <eggert@twinsun.com>
110178         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
110180 2000-07-23  Paul Eggert  <eggert@twinsun.com>
110182         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
110183         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
110184         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
110185         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
110186         invoke multibyte primitives.
110188 2000-07-23  Paul Eggert  <eggert@twinsun.com>
110190         * lib/quotearg.c:
110191         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
110192         so that mbstate_t is always defined.
110194         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
110195         be 1 in at least one GCC installation, and this configuration
110196         error is likely to be common.  Ignoring MB_LEN_MAX hurts
110197         performance on hosts that have mbrtowc but have only unibyte
110198         locales, but I assume these hosts are rare.
110200 2000-07-23  Paul Eggert  <eggert@twinsun.com>
110202         * lib/mbswidth.c (_XOPEN_SOURCE):
110203         Don't define; this causes problems on Solaris 7.
110204         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
110206 2000-07-23  Jim Meyering  <meyering@lucent.com>
110208         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
110209         too: getgrgid, getpwuid, getuid.
110211 2000-07-23  Jim Meyering  <meyering@lucent.com>
110213         * lib/basename.c (base_name): Add an assertion.
110215 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
110217         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
110218         shadow its mbsinit function.
110220 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
110222         * lib/mbswidth.h: New file.
110223         * lib/mbswidth.c: New file.
110224         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
110225         (noinst_HEADERS): Add mbswidth.h.
110227 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
110229         * lib/config.charset: Add support for FreeBSD. Improve support for
110230         HP-UX and IRIX 6.
110232 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
110234         * m4/mbswidth.m4: New file.
110235         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
110237 2000-07-15  Jim Meyering  <meyering@lucent.com>
110239         * lib/makepath.c: Include quote.h.
110240         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
110241         corresponding argument in a `quote (...)' call.
110242         Give better diagnostics.
110244         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
110245         (noinst_HEADERS): Add quote.h.
110247         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
110248         from tar's src/misc.c.
110249         * lib/quote.h: New file.  Prototypes for same.
110251 2000-07-14  Paul Eggert  <eggert@twinsun.com>
110253         From a suggestion by Bruno Haible.
110254         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
110255         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
110256         to decide whether to define the BeOS workaround macro;
110257         this adjusts to the change to AC_MBSTATE_T.
110259 2000-07-14  Jim Meyering  <meyering@lucent.com>
110261         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
110262         jm_AC_TYPE_UINTMAX_T.
110264 2000-07-13  Paul Eggert  <eggert@twinsun.com>
110266         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
110268         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
110269         quotearg_buffer_restyled): Add support for
110270         clocale_quoting_style.  Undo previous change to
110271         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
110272         and "{RIGHT QUOTATION MARK}" msgids.
110274 2000-07-10  Paul Eggert  <eggert@twinsun.com>
110276         From a suggestion by Bruno Haible.
110277         * m4/mbstate_t.m4 (AC_MBSTATE_T):
110278         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
110279         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
110280         and mbstate_t, to a single-part test that simply defines mbstate_t.
110281         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
110282         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
110284 2000-07-10  Jim Meyering  <meyering@lucent.com>
110286         * m4/strerror_r.m4: Mirror the correction made in autoconf.
110288         * m4/gnu-source.m4: Output to confdefs.h directly.
110289         Suggestion from Akim Demaille.
110291 2000-07-09  Paul Eggert  <eggert@twinsun.com>
110293         The old behavior of quoting `like this' doesn't look good with
110294         newer, ISO-style fonts.  See:
110295         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
110297         Instead, quote "like this" by default.  Let the translator
110298         tailor the locale-specific quoting behavior by providing
110299         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
110301         * lib/quotearg.c (N_): New macro.
110302         (gettext_default): New function.
110303         (quotearg_buffer_restyled): Use
110304         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
110305         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
110307 2000-07-09  Jim Meyering  <meyering@lucent.com>
110309         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
110310         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
110312         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
110313         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
110315 2000-07-09  Jim Meyering  <meyering@lucent.com>
110317         * lib/Most files: Update copyright dates to include 2000.
110319 2000-07-08  Jim Meyering  <meyering@lucent.com>
110321         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
110322         if not defined.
110323         (xgethostname): Remove now-unnecessary #ifdef.
110324         Move declaration of `err' into loop where it's used.
110326 2000-07-05  Paul Eggert  <eggert@twinsun.com>
110327         and Bruno Haible  <haible@clisp.cons.org>
110329         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
110330         only if the test for an object-type mbstate_t fails.  This
110331         prevents us from mistakenly reporting that mbstate_t is a
110332         system object type after we "#define mbstate_t int" to work
110333         around its lack.
110335 2000-07-05  Paul Eggert  <eggert@twinsun.com>
110336         and Bruno Haible  <haible@clisp.cons.org>
110338         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
110340 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
110342         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
110343         to strerror_r.
110344         Include <ctype.h> for use of isalpha.
110346 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
110348         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
110349         by allocating a larger buffer. Test the gethostname return value for
110350         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
110351         returns an error and ENAMETOOLONG isn't defined.
110353 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
110355         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
110356         dimension.
110358 2000-07-04  Jim Meyering  <meyering@lucent.com>
110360         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
110361         of the deprecated AC_CHECKING.
110363 2000-07-04  Jim Meyering  <meyering@lucent.com>
110365         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
110366         Reported by Bruno Haible.
110368 2000-07-04  Jim Meyering  <meyering@lucent.com>
110370         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
110371         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
110372         lacks mbrtowc.
110374 2000-07-03  Paul Eggert  <eggert@twinsun.com>
110376         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
110377         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
110379 2000-07-03  Paul Eggert  <eggert@twinsun.com>
110380         and Bruno Haible  <haible@clisp.cons.org>
110382         * lib/quotearg.c (mbrtowc):
110383         Assign to *pwc, and return 1 only if result is nonzero.
110384         (iswprint): Use ISPRINT when substituting our own mbrtowc.
110386 2000-07-03  Jim Meyering  <meyering@lucent.com>
110388         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
110390 2000-07-03  Jim Meyering  <meyering@lucent.com>
110392         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
110393         This is necessary to get a definition of e.g., UTMP_FILE on
110394         HP-UX 10.20.
110395         From Bob Proulx.
110397 2000-07-02  Jim Meyering  <meyering@lucent.com>
110399         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
110401         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
110402         AC_LIBOBJ(function_name).
110403         * m4/chown.m4: Likewise.
110404         * m4/fnmatch.m4: Likewise.
110405         * m4/ftruncate.m4: Likewise.
110406         * m4/getgroups.m4: Likewise.
110407         * m4/getline.m4: Likewise.
110408         * m4/group-member.m4: Likewise.
110409         * m4/jm-macros.m4: Likewise.
110410         * m4/lstat.m4: Likewise.
110411         * m4/malloc.m4: Likewise.
110412         * m4/memcmp.m4: Likewise.
110413         * m4/nanosleep.m4: Likewise.
110414         * m4/putenv.m4: Likewise.
110415         * m4/realloc.m4: Likewise.
110416         * m4/regex.m4: Likewise.
110417         * m4/stat.m4: Likewise.
110418         * m4/strftime.m4: Likewise.
110420 2000-07-02  Jim Meyering  <meyering@lucent.com>
110422         * lib/quotearg.c (mbstate_t): Don't define here.
110424 2000-07-02  Jim Meyering  <meyering@lucent.com>
110426         * lib/nanosleep.c (SIGCONT): Define if not already defined.
110428 2000-07-01  Jim Meyering  <meyering@lucent.com>
110430         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
110432 2000-07-01  Jim Meyering  <meyering@lucent.com>
110434         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
110435         problem.
110437 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
110439         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
110440         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
110442 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
110444         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
110445         per change in ../m4/ls-mntd-fs.m4.
110446         (read_filesystem_list): Ignore symbolic links.
110448 2000-06-29  Jim Meyering  <meyering@lucent.com>
110450         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
110451         for declaration of strcmp.
110453         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
110455         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
110456         Avoid warning by casting result to `char *' to remove `const'.
110458 2000-06-28  Jim Meyering  <meyering@lucent.com>
110460         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
110461         included by quotearg.c, for which we perform this test.  From
110462         Bruno Haible.
110464 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
110466         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
110467         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
110468         <utmpx.h> exists, put readutmp.o into LIBOBJS.
110470 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
110472         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
110474 2000-06-26  Paul Eggert  <eggert@twinsun.com>
110476         savedir now sets errno on failure and invokes xmalloc to get memory.
110477         Fix a couple of other minor bugs while we're at it.
110479         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
110480         (NAMLEN): Remove macro.
110481         (malloc, realloc): Remove decls.
110482         (stpcpy): Likewise.
110483         ("xalloc.h"): Include.
110484         (NAME_SIZE_DEFAULT): New macro.
110485         (savedir): Use xmalloc / xrealloc to allocate memory.
110486         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
110487         Skip "" directory entries.
110488         Use strlen to calculate directory entry length, since the old method
110489         is rarely used these days and isn't worth supporting.
110490         Don't use a pointer after freeing it.
110491         Check for integer overflow when calculating allocation size.
110492         Use memcpy to copy entries, instead of stpcpy.
110493         Set errno properly when returning NULL.
110494         Check for readdir error.
110496 2000-06-26  Jim Meyering  <meyering@lucent.com>
110498         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
110500 2000-06-25  Jim Meyering  <meyering@lucent.com>
110502         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
110503         Linux header bug when _XOPEN_SOURCE is defined to 500.
110505 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
110507         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
110508         deficiency.
110510 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
110512         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
110513         Include xalloc.h.
110514         Don't include <stdlib.h>.  Don't declare malloc, realloc.
110516 2000-06-24  Jim Meyering  <meyering@lucent.com>
110518         * m4/strerror_r.m4: Revive this file -- to try out an experimental
110519         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
110520         for which strerror does return char*, but which lacks a conveniently
110521         accessible declaration of the function.  If the compile-test says
110522         strerror_r doesn't work, then resort to a `run'-test that works on
110523         BeOS and segfaults on DEC Unix.
110525 2000-06-24  Jim Meyering  <meyering@lucent.com>
110527         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
110529 2000-06-23  Paul Eggert  <eggert@twinsun.com>
110531         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
110532         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
110534 2000-06-23  Paul Eggert  <eggert@twinsun.com>
110536         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
110537         (mbrtowc, mbstate_t): Define substitutes if
110538         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
110539         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
110540         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
110542 2000-06-23  Jim Meyering  <meyering@lucent.com>
110544         * m4/afs.m4: Add missing AC_MSG_RESULT.
110545         Reported by Bruno Haible.
110547         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
110548         Suggestion from Bruno Haible.
110550 2000-06-23  Jim Meyering  <meyering@lucent.com>
110552         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
110554 2000-06-21  Jim Meyering  <meyering@lucent.com>
110556         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
110558 2000-06-21  Jim Meyering  <meyering@lucent.com>
110560         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
110561         (noinst_HEADERS): Add getstr.h.
110563         * lib/getline.c (getstr): Move into a separate file.
110564         * lib/getstr.c (getstr): New file, extracted from getline.c, with
110565         the following changes: new parameter, delim2; both delim[12]
110566         parameters have type `int', not `char'.  The latter would lose
110567         with 8-bit delimiters.
110568         * lib/getstr.h: New file.
110570 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
110572         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
110573         than 1024, return a memory chunk of least possible size, instead
110574         of size PATH_MAX + 2. In the loop, increment the size proportionally.
110575         Use free/xmalloc instead of xrealloc to avoid copying for very long
110576         paths.
110578 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
110580         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
110581         the empty string.
110583 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
110585         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
110586         address, not strdup.  Include <stdlib.h> and don't declare free().
110588 2000-06-19  Jim Meyering  <meyering@lucent.com>
110590         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
110592 2000-06-18  Jim Meyering  <meyering@lucent.com>
110594         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
110596         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
110597         `checking whether...' message to be consistent with that of the
110598         lstat test.
110600 2000-06-18  Jim Meyering  <meyering@lucent.com>
110602         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
110603         Besides, these days every porting target provides a mkdir function.
110605         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
110606         needed. (this snippet comes from src/system.h).
110608 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
110610         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
110612 2000-06-15  Paul Eggert  <eggert@twinsun.com>
110614         * lib/human.c (adjust_value): New function.
110615         (human_readable_inexact): Apply rounding style even when
110616         printing approximate values.
110618 2000-06-14  Paul Eggert  <eggert@twinsun.com>
110620         * lib/human.c (human_readable_inexact): Allow an input block
110621         size that is not a multiple of the output block size, and vice versa.
110622         Reported by Piergiorgio Sartor.
110624 2000-06-14  Paul Eggert  <eggert@twinsun.com>
110626         * lib/getdate.y (get_date): Apply relative times after time
110627         zone indicator, not before.  Reported by Todd A. Jacobs.
110629 2000-06-13  Jim Meyering  <meyering@lucent.com>
110631         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
110633         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
110635 2000-06-12  Paul Eggert  <eggert@twinsun.com>
110637         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
110639 2000-06-12  Jim Meyering  <meyering@lucent.com>
110641         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
110642         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
110643         optional argument.
110644         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
110645         the optional argument, `lib'.
110647 2000-06-08  Jim Meyering  <meyering@lucent.com>
110649         * m4/largefile.m4: Remove file (now that it's part of autoconf).
110651 2000-06-04  Paul Eggert  <eggert@twinsun.com>
110653         Rewrite largefile configuration so that we don't need to run
110654         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
110655         AC_CANONICAL_HOST in configure.in -- jmm]
110657         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
110658         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
110659         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
110660         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
110661         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
110662         All uses changed.
110663         Instead of inspecting the output of getconf, try to compile the
110664         test program without and with the macro definition.
110665         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
110666         for getconf.  Instead, check for the needed flags by compiling
110667         test programs.
110669 2000-06-04  Paul Eggert  <eggert@twinsun.com>
110671         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
110673 2000-06-04  Jim Meyering  <meyering@lucent.com>
110675         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
110676         SunOS 4.1.4 for which gid_t is an unsigned type.
110678 2000-06-03  Jim Meyering  <meyering@lucent.com>
110680         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
110681         now that autoconf requires that.
110683         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
110684         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
110685         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
110687 2000-06-03  Jim Meyering  <meyering@lucent.com>
110689         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
110691 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
110693         * m4/glibc21.m4: New file.
110694         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
110696 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
110698         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
110699         newer, don't install charset.alias.
110700         * lib/config.charset: Change the Linux/glibc rules so they become empty
110701         on glibc-2.1 or newer.
110703 2000-06-02  Jim Meyering  <meyering@lucent.com>
110705         * lib/mountlist.c: Back out last change.  Instead, do this...
110706         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
110707         me_dummy member using the same `ignore'-testing code.
110708         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
110709         fs_type strings.
110710         From Mark D. Roth.
110712 2000-05-29  Jim Meyering  <meyering@lucent.com>
110714         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
110715         mounts with the `ignore' attribute.  Based on a patch from
110716         Mark D. Roth.
110718 2000-05-28  Jim Meyering  <meyering@lucent.com>
110720         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
110721         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
110722         * m4/stat.m4: Likewise.
110723         * m4/lstat.m4: Likewise.
110724         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
110726         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
110727         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
110729 2000-05-26  Jim Meyering  <meyering@lucent.com>
110731         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
110733 2000-05-24  Jim Meyering  <meyering@lucent.com>
110735         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
110736         autoconf requires that.
110737         * m4/lib-check.m4: Likewise.
110738         * m4/jm-macros.m4: Likewise.
110739         * m4/strftime.m4: Likewise.
110741         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
110742         AC_CHECK_DECLS, now that autoconf requires that.
110744 2000-05-22  Jim Meyering  <meyering@lucent.com>
110746         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
110747         * m4/lstat.m4: Likewise.
110749 2000-05-22  Jim Meyering  <meyering@lucent.com>
110751         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
110753 2000-05-20  Jim Meyering  <meyering@lucent.com>
110755         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
110756         (jm_PREREQ): Use it.
110758 2000-05-18  Jim Meyering  <meyering@lucent.com>
110760         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
110761         back, too, since it may have been modified by allocate_entry.
110762         (hash_delete): Rewrite to use neither the assignment operator
110763         nor the comma operator in an if-expression.
110765 2000-05-15  Paul Eggert  <eggert@twinsun.com>
110767         * lib/closeout.c:
110768         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
110769         Remove; no longer needed.
110770         "quotearg.h": Add include.
110771         (file_name): Do not bother to explicitly initialize to NULL; it's less
110772         efficient on some hosts.
110773         (close_stdout_status): Remove test as to whether stdout was already
110774         closed; it breaks for the case "echo x | sort >&-".
110775         Quote file name colons.
110776         Do not assume that _("write error") lacks format strings.
110778 2000-05-15  Jim Meyering  <meyering@lucent.com>
110780         * lib/version-etc.c (version_etc_copyright): Update the copyright
110781         string used in all --version output.
110783 2000-05-14  Jim Meyering  <meyering@lucent.com>
110785         * lib/closeout.c (close_stdout_set_file_name): New function.
110786         (close_stdout_status): Use new file-scoped global.
110787         Return right away if fstat says the stdout file descriptor is invalid.
110788         * lib/closeout.h (close_stdout_set_file_name): Declare.
110790 2000-05-10  Jim Meyering  <meyering@lucent.com>
110792         * lib/closeout.c [default_exit_status]: New file-scoped variable.
110793         (close_stdout_set_status): New function.
110794         * lib/closeout.h (close_stdout_set_status): Declare.
110796 2000-05-09  Jim Meyering  <meyering@lucent.com>
110798         * m4/gettext.m4: Rename this...
110799         * m4/libintl.m4: ...to this.
110801 2000-05-08  Jim Meyering  <meyering@lucent.com>
110803         * lib/long-options.c: Don't include closeout.h.
110804         (parse_long_options): Don't call close_stdout for --version.
110806 2000-05-06  Paul Eggert  <eggert@twinsun.com>
110808         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
110809         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
110810         2.1.3 bug.  This avoids a clash when files like regex.c define
110811         _GNU_SOURCE.
110813 2000-05-06  Jim Meyering  <meyering@lucent.com>
110815         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
110816         (AC_REPLACE_FUNCS): Add strnlen.
110818         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
110819         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
110821         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
110822         AC_SEARCH_LIBS call for nanosleep.
110823         (LIB_NANOSLEEP): Set and AC_SUBST.
110825 2000-05-06  Jim Meyering  <meyering@lucent.com>
110827         * lib/strnlen.c: Undefine __strnlen and strnlen.
110828         [!weak_alias]: Define __strnlen to strnlen.
110830         * lib/atexit.c: New file, from libiberty.
110832 2000-05-06  Jim Meyering  <meyering@lucent.com>
110834         * lib/closeout.c (close_stdout_status): Also check for errors on the
110835         stderr stream.
110837 2000-05-05  Jim Meyering  <meyering@lucent.com>
110839         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
110840         AC_SEARCH_LIBS call for clock_gettime.
110841         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
110843         * m4/search-libs.m4: Update from autoconf.
110845         su doesn't work on Solaris 2.6.
110846         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
110847         <shadow.h>.  Reported by Dragos Harabor.
110849 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
110851         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
110852         memcpy instead of xmalloc, xrealloc, path_concat.
110853         (locale_charset): Treat empty environment variables as absent.
110854         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
110856 2000-05-04  Jim Meyering  <meyering@lucent.com>
110858         * lib/getopt.c: Update from glibc.
110859         * lib/obstack.c: Likewise.
110860         * lib/obstack.h: Likewise.
110861         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
110862         file
110864         * lib/regex.h: Likewise.
110865         * lib/strndup.c: Likewise.
110866         * lib/strnlen.c: New file, from glibc.
110868 2000-05-03  Jim Meyering  <meyering@lucent.com>
110870         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
110872 2000-05-02  Paul Eggert  <eggert@twinsun.com>
110874         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
110875         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
110876         compile-time test, rather than inspecting host and OS, to
110877         decide whether to define _LARGEFILE_SOURCE.
110879 2000-05-01  Jim Meyering  <meyering@lucent.com>
110881         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
110883         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
110884         Based on a patch from Bruno Haible.
110886 2000-05-01  Jim Meyering  <meyering@lucent.com>
110888         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
110890 2000-04-29  Jim Meyering  <meyering@lucent.com>
110892         * lib/path-concat.c: Declare strdup only if it's not defined.
110893         * lib/canon-host.c: Likewise.
110895 2000-04-28  Jim Meyering  <meyering@lucent.com>
110897         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
110898         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
110899         is included first, then limits.h is included by locale.h by libintl.h.
110900         From John David Anglin.
110902 2000-04-25  Jim Meyering  <meyering@lucent.com>
110904         * lib/makepath.c (S_IRWXUGO): Define.
110905         (make_path): Always perform explicit chmod if MODE specifies any
110906         of the `special' permission bits.  Prompted by a bug report against
110907         install from Mate Wierdl and Joost van Baal.
110909 2000-04-18  Jim Meyering  <meyering@lucent.com>
110911         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
110912         (jm_PREREQ): Use it.
110914 2000-04-18  Jim Meyering  <meyering@lucent.com>
110916         * lib/README: New file.
110918         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
110919         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
110921 2000-04-17  Jim Meyering  <meyering@lucent.com>
110923         Get it right :-)
110924         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
110925         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
110926         Suggestion from Akim Demaille.
110928 2000-04-17  Jim Meyering  <meyering@lucent.com>
110930         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
110931         the definition of it to rpl_strftime also defined-away the system's
110932         declaration.
110934 2000-04-15  Jim Meyering  <meyering@lucent.com>
110936         Use `C' to denote so-called `contiguous' files, the same way
110937         that tar does.
110938         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
110939         (ftypelet): Use S_ISCTG.
110940         From Michael Deutschmann.
110942 2000-04-14  Jim Meyering  <meyering@lucent.com>
110944         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
110945         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
110946         clobbered.
110948 2000-04-14  Jim Meyering  <meyering@lucent.com>
110950         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
110952 2000-04-13  Jim Meyering  <meyering@lucent.com>
110954         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
110955         AH_VERBATIM to insert required #ifndef into config.h.in.
110956         Suggestion from Akim Demaille.
110958 2000-04-12  Jim Meyering  <meyering@lucent.com>
110960         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
110961         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
110962         Christian Krackowizer.
110964         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
110965         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
110966         (AC_SYS_LARGEFILE): Require.
110967         (AM_C_PROTOTYPES): Require.
110969 2000-04-08  Jim Meyering  <meyering@lucent.com>
110971         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
110972         names don't conflict.  Reported by Eli Zaretskii.
110974 2000-04-07  Jim Meyering  <meyering@lucent.com>
110976         * lib/putenv.c: Move inclusion of errno.h so it follows that of
110977         sys/types.h, to work around system header problems on AIX 3.2.5.
110978         From Bruno Haible.
110980 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
110982         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
110983         bug.  Deal with the different error behavior of Irix iconv.
110985 2000-04-05  Paul Eggert  <eggert@twinsun.com>
110987         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
110988         IRIX if the installer said otherwise.
110990 2000-04-05  Jim Meyering  <meyering@lucent.com>
110992         Portability tweaks required for ultrix4.3.
110993         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
110994         (jm_CHECK_DECLS): Add getutent to the list of functions.
110995         (_jm_DECL_HEADERS): Add utmpx.h.
110996         From John David Anglin.
110998         * m4/strftime.m4: Back out the 2000-04-02 change.
110999         Instead of that change, simply undefine putenv in the test program.
111001 2000-04-05  Jim Meyering  <meyering@lucent.com>
111003         Portability tweaks required for ultrix4.3.
111004         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
111005         getutent.
111006         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
111007         * lib/canon-host.c: Declare strdup.
111008         * lib/path-concat.c: Likewise.
111009         From John David Anglin.
111011 2000-04-04  Jim Meyering  <meyering@lucent.com>
111013         Be more DOS 8.3-friendly.
111014         * lib/ref-add.sin: Renamed from ref-add.sed.in.
111015         * lib/ref-del.sin: Renamed from ref-del.sed.in.
111016         * lib/Makefile.am: Reflect renaming.
111017         Reported by Eli Zaretskii.
111019         Use a temporary file name that won't clash with `charset.alias'
111020         in the DOS 8.3 name space.
111021         * lib/Makefile.am (charset_tmp): Define.
111022         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
111023         (uninstall-local): Likewise.
111024         Reported by Eli Zaretskii.
111026 2000-04-03  Jim Meyering  <meyering@lucent.com>
111028         * m4/gettext.m4: Fix typo in comment.
111030         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
111031         textutils/configure.in).  Suggestion from Paul Eggert.
111032         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
111034 2000-04-02  Paul Eggert  <eggert@twinsun.com>
111036         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
111037         variable in the shell rather than using putenv, which isn't
111038         portable.  This avoids the configure-time inter-test dependency
111039         on the potentially-renamed putenv function.
111041 2000-03-30  Paul Eggert  <eggert@twinsun.com>
111043         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
111044         before checking struct stat.st_blksize, so that
111045         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
111047 2000-03-29  Paul Eggert  <eggert@twinsun.com>
111049         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
111050         since strftime.c uses HAVE_STRFTIME to decide whether to use
111051         the underlying strftime.
111053 2000-03-29  Paul Eggert  <eggert@twinsun.com>
111055         * lib/time/strftime.c (my_strftime): Make sure we call the system
111056         strftime, not ourselves, when invoking the underlying strftime.
111058 2000-03-24  Jim Meyering  <meyering@lucent.com>
111060         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
111061         (charset_alias): Define.
111062         (install-exec-local): Factor out common code.
111063         (uninstall-local): Split lines longer than 80.
111064         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
111065         (SUFFIXES): Define.
111066         (.sed.in.sed): New rule.  Don't redirect directly to $@.
111067         (CLEANFILES): Add ref-add.sed and ref-del.sed.
111069 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
111071         * lib/config.charset: Output a line containing "Packages using this
111072         file".
111073         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
111074         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
111075         ref-del.sed): New rules.
111077 2000-03-17  Jim Meyering  <meyering@lucent.com>
111079         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
111080         Otherwise, include <strings.h>
111082 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
111084         * lib/unicodeio.c (utf8_wctomb): New function.
111085         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
111086         format instead of in UCS-4 with platform dependent endianness.
111088 2000-03-10  Jim Meyering  <meyering@lucent.com>
111090         * m4/lib-check.m4: Look for getspnam in -lgen, too.
111091         From Marco Franzen.
111093 2000-03-07  Paul Eggert  <eggert@twinsun.com>
111095         * lib/savedir.c (savedir): Work even if directory size is
111096         negative; this can happen with some screwy NFS configurations.
111098 2000-03-06  Jim Meyering  <meyering@lucent.com>
111100         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
111101         if it's NULL (because we ran out of memory).  From Bruno Haible.
111103 2000-03-05  Jim Meyering  <meyering@lucent.com>
111105         * lib/localcharset.c ("path-concat.h"): Include.
111106         (get_charset_aliases): Use path_concat instead of ANSI string
111107         concatenation.
111109         * lib/unicodeio.h (PARAMS): Define.
111110         Use it to guard prototype.
111112 2000-03-04  Jim Meyering  <meyering@lucent.com>
111114         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
111115         for lib/localcharset.c.
111117 2000-03-04  Jim Meyering  <meyering@lucent.com>
111119         * lib/Makefile.am (install-exec-local): Create $(libdir) before
111120         installing into it.
111121         (uninstall-local): Uncomment this rule so `make distcheck' works
111122         once again.
111124         * lib/unicodeio.c (<errno.h>): Include it.
111125         (errno): Declare if not defined.
111127         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
111129         * lib/config.charset: New version, incorporating remarks from a linux
111130         i18n mailing list.  From Bruno Haible.
111132 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
111134         * m4/codeset.m4: New file.
111135         * m4/iconv.m4: New file.
111136         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
111138 2000-03-03  Jim Meyering  <meyering@lucent.com>
111140         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
111142 2000-03-02  Jim Meyering  <meyering@lucent.com>
111144         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
111145         the messages come out on separate lines.
111147         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
111148         rather than jm_CHECK_DECLARATIONS.
111149         * m4/decl.m4: Remove now-unused file.
111151         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
111152         geteuid.
111154 2000-03-02  Jim Meyering  <meyering@lucent.com>
111156         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
111158 2000-03-01  Jim Meyering  <meyering@lucent.com>
111160         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
111161         * lib/unicodeio.c: Likewise.
111163 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
111165         * lib/config.charset: New file.
111166         * lib/localcharset.c: New file.
111167         * lib/unicodeio.h, lib/unicodeio.c: New files.
111168         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
111169         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
111170         (noinst_HEADERS): Add unicodeio.h.
111171         (all-local, install-exec-local, charset.alias): New targets.
111173 2000-02-28  Paul Eggert  <eggert@twinsun.com>
111175         * lib/quotearg.c (ALERT_CHAR): New macro.
111176         (quotearg_buffer_restyled): Use it.
111178 2000-02-27  Jim Meyering  <meyering@lucent.com>
111180         * m4/check-decl.m4: Add getenv to the list.
111182 2000-02-27  Jim Meyering  <meyering@lucent.com>
111184         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
111185         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
111187         * lib/backupfile.c: Guard inclusion of stdlib.h with
111188         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
111189         Declare malloc if needed.
111191         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
111192         `#ifndef HAVE_DECL..'
111193         now that autoconf always defines the HAVE_DECL_ symbols.
111194         * lib/human.c: Likewise.
111195         * lib/same.c: Likewise.
111196         * lib/strtoumax.c: Likewise.
111198         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
111199         declaration check was not run.
111200         * lib/hash.c: Likewise.
111201         * lib/human.c: Likewise.
111202         * lib/same.c: Likewise.
111203         * lib/strtoumax.c: Likewise.
111205         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
111206         `.', then first look up the entire `.'-containing string as a login
111207         name.
111209 2000-02-23  Jim Meyering  <meyering@lucent.com>
111211         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
111212         in place of my hack.
111214 2000-02-18  Paul Eggert  <eggert@twinsun.com>
111216         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
111217         (textint): New typedef.
111218         (parser_control): Member year changed from int to textint.
111219         All uses changed.
111220         (YYSTYPE): Removed; replaced by %union with int and textint members.
111221         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
111222         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
111223         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
111224         (tSNUMBER, tUNUMBER): Now of type <textintval>.
111225         (date, number, to_year): Use width of number in digits, not its value,
111226         to determine whether it's a 2-digit year, or a 2-digit time.
111227         (yylex): Store number of digits of numeric tokens.
111228         Reported by John Kendall.
111230         (parser_control): Changed from struct parser_control to typedef (for
111231         consistency).  All uses changed.
111233         (tID): Removed; not used.
111234         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
111236 2000-02-14  Paul Eggert  <eggert@twinsun.com>
111238         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
111239         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
111241 2000-02-12  Jim Meyering  <meyering@lucent.com>
111243         * lib/userspec.c (ISDIGIT): Define it.
111244         (isdigit): Remove definition.
111245         (is_number): Use ISDIGIT, not isdigit.
111246         <libintl.h>: Include.
111247         (_ and N_): Define.
111248         (parse_user_spec): Mark translatable strings.
111250 2000-02-10  Jim Meyering  <meyering@lucent.com>
111252         With these changes, nanosleep.[ch] are finally enough like the other
111253         lib/* replacement files to compile on a few more losing systems.
111255         * lib/nanosleep.h: Don't include config.h.
111256         Remove prototype from declaration of nanosleep.
111257         (PARAMS): Remove now-unneeded definition.
111258         * lib/nanosleep.c: #undef nanosleep.
111259         (rpl_nanosleep): Rename from nanosleep.
111261 2000-02-10  Jim Meyering  <meyering@lucent.com>
111263         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
111264         gnu_nanosleep to rpl_nanosleep.
111266 2000-02-09  Jim Meyering  <meyering@lucent.com>
111268         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
111269         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
111271 2000-02-08  Akim Demaille  <akim@epita.fr>
111273         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
111274         `[' and `]' and remove uses of `changequote'.
111275         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
111276         (AC_SYS_LARGEFILE): Likewise.
111277         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
111278         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
111279         of changequote.
111280         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
111281         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
111282         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
111283         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
111285 2000-02-05  Jim Meyering  <meyering@lucent.com>
111287         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
111288         Remove explicit use of AC_HEADER_TIME.  It is required by
111289         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
111290         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
111291         in autoconf whereby the expansion of the latter ended up preceding
111292         the expansion of its prerequisite, AC_HEADER_TIME.
111293         Reported by Volker Borchert.
111295 2000-02-03  Jim Meyering  <meyering@lucent.com>
111297         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
111299 2000-02-03  Jim Meyering  <meyering@lucent.com>
111301         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
111302         rather than with `#if HAVE_UTMPNAME'.
111304 2000-02-02  Jim Meyering  <meyering@lucent.com>
111306         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
111307         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
111308         Reported by Eli Zaretskii.
111310 2000-02-01  Jim Meyering  <meyering@lucent.com>
111312         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
111314 2000-01-31  Jim Meyering  <meyering@lucent.com>
111316         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
111317         functions.  Add the time.h and sys/time.h headers along with the
111318         AC_REQUIRE'ment of AC_HEADER_TIME.
111320 2000-01-31  Jim Meyering  <meyering@lucent.com>
111322         * lib/nanosleep.h (nanosleep): Guard declaration with
111323         `#if ! HAVE_DECL_NANOSLEEP'.
111324         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
111325         the declaration in that vendor's sys/timers.h.
111326         Reported by Christian Krackowizer.
111328         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
111329         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
111330         (ISPRINT): Likewise.
111331         Reported by Tom Tromey.
111333 2000-01-30  Jim Meyering  <meyering@lucent.com>
111335         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
111337         * m4/prereq.m4 (utmp_includes): Define.
111338         Check for ut_user and ut_name members in both struct utmpx
111339         and struct utmp.
111341 2000-01-30  Jim Meyering  <meyering@lucent.com>
111343         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
111344         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
111345         header files where only utmpx.ut_user is declared.
111347         * lib/readutmp.h (UT_USER): Define.
111349 2000-01-29  Jim Meyering  <meyering@lucent.com>
111351         * m4/lib-check.m4: New file containing library-related checks from
111352         fileutils and sh-utils (textutils had none).
111354 2000-01-28  Jim Meyering  <meyering@lucent.com>
111356         * m4/perl.m4: Change format of warning message to look more like that
111357         from the missing script.  Suggestion from François Pinard.
111359 2000-01-25  Jim Meyering  <meyering@lucent.com>
111361         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
111362         well as time.h in the compile check.
111363         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
111364         Fix typo in cross-compiling case: s/yes/no/.
111366 2000-01-23  Jim Meyering  <meyering@lucent.com>
111368         * m4/jm-macros.m4: Move df-related tests here from
111369         fileutils/configure.in
111371         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
111372         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
111374         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
111375         s/space/ac_fsusage_space/.
111376         (jm_FILE_SYSTEM_USAGE): Take two parameters.
111378         * m4/ftruncate.m4: New file (derived from part of
111379         fileutils/configure.in).
111380         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
111381         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
111383         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
111384         AC_SUBST these here, rather than just in sh-util/configure.in, so
111385         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
111386         all the same.
111387         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
111388         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
111389         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
111390         (AC_SUBST(POW_LIBM)): Likewise.
111391         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
111393 2000-01-23  Jim Meyering  <meyering@lucent.com>
111395         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
111396         obstack.c.
111398 2000-01-22  Jim Meyering  <meyering@lucent.com>
111400         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
111402         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
111404         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
111405         configure.in
111406         (AC_CHECK_HEADERS): Likewise for sh-utils.
111407         (AC_CHECK_HEADERS): Likewise for textutils.
111408         Merge the three lists of headers.
111410         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
111411         from fileutils' configure.in.
111413         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
111414         code. Moved tests into their own function (_jm_DECL_HEADERS) in
111415         check-decl.m4.
111417         * m4/check-decl.m4: Use #if rather than #ifdef.
111418         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
111419         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
111420         (_jm_DECL_HEADERS): Define new function.
111421         (jm_CHECK_DECLARATIONS): Require it.
111423 2000-01-22  Jim Meyering  <meyering@lucent.com>
111425         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
111426         [! HAVE_DECL_STRTOULL]: Declare strtoull.
111427         Required for some AIX systems.  Reported by Christian Krackowizer.
111428         [TESTING] (main): New function.
111430         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
111431         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
111432         letters.
111434         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
111435         iswprint.
111437         * lib/strverscmp.c (ISDIGIT): Define.
111438         (strverscmp): Use ISDIGIT, not isdigit.
111440 2000-01-19  Jim Meyering  <meyering@lucent.com>
111442         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
111443         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
111444         defines `struct timespec' in <sys/time.h>
111446         * m4/c-bs-a.m4: Remove uses of changequote altogether.
111447         Thanks to Akim for explaining.
111449 2000-01-17  Paul Eggert  <eggert@twinsun.com>
111451         * lib/nanosleep.c (nanosleep):
111452         Don't use SA_INTERRUPT to decide whether to call sigaction, as
111453         POSIX.1 doesn't require SA_INTERRUPT and some systems
111454         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
111455         it's been part of POSIX.1 since day 1 (in 1988).
111457 2000-01-17  Jim Meyering  <meyering@lucent.com>
111459         * lib/interlock: Remove unused file.  Reported by François Pinard.
111461 2000-01-16  Paul Eggert  <eggert@twinsun.com>
111463         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
111464         alert, backslash, formfeed, and vertical tab unnecessarily in
111465         shell quoting style.
111467 2000-01-16  Jim Meyering  <meyering@lucent.com>
111469         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
111470         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
111471         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
111472         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
111474 2000-01-16  Jim Meyering  <meyering@lucent.com>
111476         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
111477         because the latter didn't work.
111479 2000-01-15  Jim Meyering  <meyering@lucent.com>
111481         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
111482         (AC_REPLACE_FUNCS): Add memcpy and memset.
111483         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
111484         Add strpbrk.
111485         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
111487 2000-01-12  Jim Meyering  <meyering@lucent.com>
111489         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
111490         (jm_PREREQ): Use it.
111491         (jm_PREREQ_READUTMP): New macro.
111492         (jm_PREREQ): Use it.
111494 2000-01-11  Paul Eggert  <eggert@twinsun.com>
111496         Quote multibyte characters correctly.
111497         * m4/c-bs-a.m4: New file.
111498         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
111499         (jm_PREREQ): Use it.
111501 2000-01-11  Paul Eggert  <eggert@twinsun.com>
111503         * m4/uintmax_t.m4: Port to autoconf 2.13.
111505 2000-01-08  Jim Meyering  <meyering@ascend.com>
111507         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
111508         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
111510 2000-01-04  Jim Meyering  <meyering@ascend.com>
111512         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
111513         jm_STRUCT_DIRENT_D_TYPE.
111514         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
111515         jm_STRUCT_DIRENT_D_INO.
111516         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
111517         jm_STRUCT_UTIMBUF.
111518         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
111519         renamings.
111520         * m4/utime.m4: Likewise.
111522         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
111523         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
111525 2000-01-03  Paul Eggert  <eggert@twinsun.com>
111527         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
111528         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
111530 2000-01-02  Jim Meyering  <meyering@ascend.com>
111532         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
111533         remember if this is necessary.
111535 1999-12-26  Jim Meyering  <meyering@ascend.com>
111537         * m4/jm-macros.m4: Use it here.
111538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
111540 1999-12-23  Jim Meyering  <meyering@ascend.com>
111542         * m4/jm-macros.m4: Check for clock_gettime (moved from
111543         fileutils/configure.in)
111544         Check for gettimeofday.
111546 1999-12-20  Jim Meyering  <meyering@ascend.com>
111548         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
111549         autoconf-2.14a-1999-12-20.
111551 1999-12-19  Jim Meyering  <meyering@ascend.com>
111553         * m4/lstat-slash.m4: New file.
111554         * m4/jm-macros.m4: Use the new macro:
111555         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111557 1999-12-07  Jim Meyering  <meyering@ascend.com>
111559         * m4/perl.m4: Require that File::Compare be available, too.
111560         Too many systems seem to lack it.
111562         * m4/strftime.m4: Add checks for most of the cpp macros tested in
111563         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
111565 1999-11-18  Paul Eggert  <eggert@twinsun.com>
111567         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
111568         problem with the QNX 4.25 shell, which doesn't propagate exit
111569         status of failed commands inside shell assignments.
111571 1999-11-17  Jim Meyering  <meyering@ascend.com>
111573         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
111575 1999-11-07  Jim Meyering  <meyering@ascend.com>
111577         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
111579 1999-11-06  Jim Meyering  <meyering@ascend.com>
111581         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
111582         * m4/jm-macros.m4 (jm_MACROS): Use it here.
111584 1999-11-05  Jim Meyering  <meyering@ascend.com>
111586         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
111587         configure.in of textutils, fileutils, and sh-utils into this one
111588         (shared between those packages) file.
111589         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
111590         AC_STRUCT_ST_BLKSIZE.
111592 1999-11-03  Jim Meyering  <meyering@ascend.com>
111594         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
111595         of AC_CHECK_TYPE checks includes unistd.h.
111596         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
111597         Suggestion from Akim Demaille.
111599 1999-10-30  Jim Meyering  <meyering@ascend.com>
111601         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
111602         m4-quoted string.
111603         * m4/ls-mntd-fs.m4: Likewise.
111604         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
111605         * m4/jm-winsz1.m4: Likewise.
111607         * m4/const.m4: Remove file, since the fix made it into the experimental
111608         version of autoconf.
111609         * m4/mktime.m4: Likewise.
111611         * m4/check-type.m4: Remove file, now that the latest version of
111612         AC_CHECK_TYPE takes a third arg to specify additional #includes.
111614         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
111615         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
111616         AC_CHECK_TYPE.
111618 1999-10-04  Jim Meyering  <meyering@ascend.com>
111620         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
111622 1999-09-22  Paul Eggert  <eggert@twinsun.com>
111624         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
111625         2.95.1 bug with HP-UX 10.20.
111627 1999-09-17  Jim Meyering  <meyering@ascend.com>
111629         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
111630         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
111631         due to missing strdup (against sh-utils-2.0).
111633 1999-08-29  Jim Meyering  <meyering@ascend.com>
111635         * m4/jm-macros.m4: Require jm_BISON.
111636         * m4/bison.m4: New file.
111638 1999-08-17  Paul Eggert  <eggert@twinsun.com>
111640         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
111641         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
111643 1999-08-05  Jim Meyering  <meyering@ascend.com>
111645         * m4/getline.m4: Rename test file from conftestdata to conftest.data
111646         to avoid conflicts with `conftest' on 8+3 filesystems.
111647         Suggestion from Eli Zaretskii.
111649 1999-08-04  Jim Meyering  <meyering@ascend.com>
111651         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
111652         fileutils and sh-utils (textutils's getline test was inadequate).
111653         (AM_FUNC_GETLINE): Run this test.
111654         (AC_CHECK_FUNCS): Check for getdelim.
111655         Reported by Bob Proulx.
111657 1999-08-02  Jim Meyering  <meyering@ascend.com>
111659         * m4/jm-macros.m4: Add a comment.
111661 1999-08-01  Paul Eggert  <eggert@twinsun.com>
111663         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
111664         <inttypes.h> defines strtoumax as a macro (and not as a
111665         function).
111667 1999-08-01  Paul Eggert  <eggert@twinsun.com>
111669         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
111670         that we can shift, multiply and divide unsigned long long
111671         values; Ultrix cc can't do it.
111673 1999-08-01  Paul Eggert  <eggert@twinsun.com>
111675         * m4/mktime.m4: New file, which is a preview of what should appear
111676         in the next public autoconf release.
111678 1999-08-01  Paul Eggert  <eggert@twinsun.com>
111680         * m4/lfs.m4: Remove this file.
111681         * m4/largefile.m4: New file.  It contains the old contents of
111682         lfs.m4, except that all names with prefix AC_LFS have been
111683         changed to use the prefix AC_SYS_LARGEFILE instead, to be
111684         compatible with future autoconf versions.  Also, some minor m4
111685         quoting problems have been fixed.
111687 1999-08-01  Paul Eggert  <eggert@twinsun.com>
111689         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
111690         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
111691         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
111692         and simplify the shell code.
111694 1999-08-01  Jim Meyering  <meyering@ascend.com>
111696         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
111697         m4.
111699 1999-07-20  Jim Meyering  <meyering@ascend.com>
111701         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
111703 1999-07-15  Jim Meyering  <meyering@ascend.com>
111705         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
111707 1999-05-22  Jim Meyering  <meyering@ascend.com>
111709         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
111711 1999-05-20  Jim Meyering  <meyering@ascend.com>
111713         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
111714         Add a colon after each `then' in case $4 is empty.
111716 1999-05-16  Jim Meyering  <meyering@ascend.com>
111718         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
111720 1999-05-10  Jim Meyering  <meyering@ascend.com>
111722         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
111724         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
111725         AC_FUNC_MKTIME.
111727 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
111729         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
111731 1999-05-04  Paul Eggert  <eggert@twinsun.com>
111733         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
111734         not CPPFLAGS, so that linking works correctly in IRIX.
111736 1999-04-30  Paul Eggert  <eggert@twinsun.com>
111738         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
111740 1999-04-20  Paul Eggert  <eggert@twinsun.com>
111742         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
111743         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
111744         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
111745         jm_AC_TYPE_UNSIGNED_LONG_LONG.
111746         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
111748         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
111750 1999-04-20  Jim Meyering  <meyering@ascend.com>
111752         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
111753         AC_REPLACE xstroull if necessary.  From Paul Eggert.
111754         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
111756 1999-04-18  Jim Meyering  <meyering@ascend.com>
111758         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
111759         * m4/jm-macros.m4: Use it.
111761 1999-04-06  Jim Meyering  <meyering@ascend.com>
111763         * m4/strftime.m4: Remove test for %f.
111765 1999-03-29  Jim Meyering  <meyering@ascend.com>
111767         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
111768         superset of the AC_TYPE_* checks in the textutils, fileutils,
111769         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
111770         AC_TYPE_PID_T.
111772 1999-03-28  Jim Meyering  <meyering@ascend.com>
111774         * m4/jm-macros.m4: Define GNU_PACKAGE here.
111775         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
111776         replaced e.g., in the *.sh files of the sh-utils.
111778 1999-03-20  Jim Meyering  <meyering@ascend.com>
111780         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
111781         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
111782         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
111784 1999-03-19  Jim Meyering  <meyering@ascend.com>
111786         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
111788 1999-03-12  Jim Meyering  <meyering@ascend.com>
111790         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
111792 1999-03-07  Jim Meyering  <meyering@ascend.com>
111794         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
111795         declared.
111797 1999-02-17  Jim Meyering  <meyering@ascend.com>
111799         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
111800         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
111802 1999-02-07  Jim Meyering  <meyering@ascend.com>
111804         * m4/group-member.m4: New file -- extracted from sh-utils'
111805         configure.in.
111807         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
111808         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
111810 1999-02-06  Jim Meyering  <meyering@ascend.com>
111812         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
111813         * m4/fnmatch.m4: Likewise.
111814         * m4/getgroups.m4: Likewise.
111815         * m4/lstat.m4: Likewise.
111816         * m4/malloc.m4: Likewise.
111817         * m4/putenv.m4: Likewise.
111818         * m4/realloc.m4: Likewise.
111819         * m4/regex.m4: Likewise.
111820         * m4/stat.m4: Likewise.
111821         * m4/strftime.m4: Likewise.
111822         Suggestion from Alain Magloire.
111824         * m4/chown.m4: Use `.$ac_objext', not `.o'.
111825         * m4/fnmatch.m4: Likewise.
111826         * m4/getgroups.m4: Likewise.
111827         * m4/getline.m4: Likewise.
111828         * m4/lstat.m4: Likewise.
111829         * m4/malloc.m4: Likewise.
111830         * m4/memcmp.m4: Likewise.
111831         * m4/putenv.m4: Likewise.
111832         * m4/realloc.m4: Likewise.
111833         * m4/regex.m4: Likewise.
111834         * m4/stat.m4: Likewise.
111835         * m4/strftime.m4: Likewise.
111836         Suggestion from Alain Magloire.
111838         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
111839         an argument.
111841         * m4/regex.m4: Add a run-time Test for proper operation of
111842         re_compile_pattern.
111844 1999-01-31  Jim Meyering  <meyering@ascend.com>
111846         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
111848 1999-01-30  Jim Meyering  <meyering@ascend.com>
111850         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
111852         * m4/jm-mktime.m4: Make this a wrapper around the official
111853         AM_FUNC_MKTIME rather than my private copy, now that the official one
111854         is up to date.
111855         * m4/mktime.m4: Remove file.
111857         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
111858         * m4/uptime.m4: Likewise.
111859         * m4/uintmax_t.m4: Likewise.
111861 1999-01-28  Jim Meyering  <meyering@ascend.com>
111863         * m4/jm-macros.m4: Use jm_AFS.
111864         * m4/afs.m4: New file (from fileutils' configure.in).
111866         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
111867         * m4/chown.m4: Likewise.
111868         * m4/d-ino.m4: Likewise.
111869         * m4/d-type.m4: Likewise.
111870         * m4/fnmatch.m4: Likewise.
111871         * m4/getgroups.m4: Likewise.
111872         * m4/gettext.m4: Likewise.
111873         * m4/jm-mktime.m4: Likewise.
111874         * m4/jm-winsz2.m4: Likewise.
111875         * m4/lcmessage.m4: Likewise.
111876         * m4/ls-mntd-fs.m4: Likewise.
111877         * m4/malloc.m4: Likewise.
111878         * m4/memcmp.m4: Likewise.
111879         * m4/putenv.m4: Likewise.
111880         * m4/realloc.m4: Likewise.
111881         * m4/st_mtim.m4: Likewise.
111882         * m4/strftime.m4: Likewise.
111884 1999-01-16  Jim Meyering  <meyering@ascend.com>
111886         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
111887         (ARGMATCH_DIE_DECL): Define.
111889 1999-01-12  Jim Meyering  <meyering@ascend.com>
111891         * m4/Makefile.am.in: Rewrite to avoid using fmt.
111892         Reported by Lars Hecking.
111894 1999-01-10  Jim Meyering  <meyering@ascend.com>
111896         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
111897         gross kludge.
111898         * m4/inttypes_h.m4: Likewise.
111899         * m4/lstat.m4: Likewise.
111900         * m4/malloc.m4: Likewise.
111901         * m4/readdir.m4: Likewise.
111902         * m4/realloc.m4: Likewise.
111903         * m4/st_dm_mode.m4: Likewise.
111904         * m4/stat.m4: Likewise.
111905         * m4/utimbuf.m4: Likewise.
111906         * m4/utimes.m4: Likewise.
111908         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
111909         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
111910         comments in config.h.in are meaningful.
111912         * m4/jm-macros.m4: Require autoconf-2.13 here.
111914         * m4/regex.m4: By default, don't use the included regex.c on systems
111915         with glibc 2.  Suggestion from Uli Drepper.
111917 1999-01-02  Jim Meyering  <meyering@ascend.com>
111919         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
111921 1998-12-18  Jim Meyering  <meyering@ascend.com>
111923         * m4/Makefile.am.in (Makefile.am): Simplify rule.
111924         Based on a suggestion from Lars Hecking.
111926 1998-11-16  Paul Eggert  <eggert@twinsun.com>
111928         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
111930 1998-11-16  Jim Meyering  <meyering@ascend.com>
111932         * m4/lfs.m4: Double-quote the `uname...` expression.
111934 1998-11-14  Jim Meyering  <meyering@ascend.com>
111936         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
111937         * m4/stat.m4: Likewise.
111939 1998-11-03  Jim Meyering  <meyering@ascend.com>
111941         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
111942         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
111944 1998-10-18  Jim Meyering  <meyering@ascend.com>
111946         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
111948 1998-10-17  Jim Meyering  <meyering@ascend.com>
111950         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
111951         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
111952         calls for those previously hard-coded headers.  Instead, take a new
111953         parameter.
111954         (jm_CHECK_DECLARATIONS): Reflect interface change.
111955         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
111956         (jm_CHECK_DECL_LOCALTIME_R): New macro.
111958         * m4/mktime.m4: Test for spring-forward gap before long-running test.
111960 1998-10-14  Jim Meyering  <meyering@ascend.com>
111962         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
111963         instead of "TZ=America/Vancouver".  From Paul Eggert.
111965 1998-10-11  Jim Meyering  <meyering@ascend.com>
111967         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
111968         This adds a test for a recently added compatibility fix for mktime.c.
111969         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
111971 1998-09-27  Jim Meyering  <meyering@ascend.com>
111973         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
111975         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
111976         ../configure.in, including a change from Gordon Matzigkeit to allow
111977         cross-compiling for the Hurd.
111979         * m4/glibc.m4: New file/macro to test for the GNU C Library
111980         versions 1 and 2.  From Gordon Matzigkeit.
111981         Indent.
111983 1998-09-21  Jim Meyering  <meyering@ascend.com>
111985         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
111987 1998-08-18  Paul Eggert  <eggert@twinsun.com>
111989         Port nanosecond-resolution times to UnixWare 2.1.2 and
111990         pedantic Solaris 2.6.
111992         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
111993         AC_STRUCT_ST_MTIM.
111994         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
111995         Generate name of ns member, instead of just 1 or undef.
111996         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
111998 1998-08-15  Jim Meyering  <meyering@ascend.com>
112000         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
112001         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
112002         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
112003         instead of jm_TYPE_SSIZE_T.
112005 1998-08-12  Jim Meyering  <meyering@ascend.com>
112007         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
112009 1998-08-02  Jim Meyering  <meyering@ascend.com>
112011         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
112012         in acconfig.h manually.
112014 1998-07-31  Paul Eggert  <eggert@twinsun.com>
112016         * m4/st_mtim.m4: New file.
112018 1998-07-28  Jim Meyering  <meyering@ascend.com>
112020         * m4/utimes.m4: Undef stat.
112022 1998-07-25  Jim Meyering  <meyering@ascend.com>
112024         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
112025         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
112027 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
112029         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
112030         uid and gid actually remain unchanged.
112032 1998-07-07  Jim Meyering  <meyering@ascend.com>
112034         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
112036 1998-07-04  Jim Meyering  <meyering@ascend.com>
112038         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
112039         to prove that this macro can be used in packages without regex.c.
112041 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
112043         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
112044         is to be used.
112046 1998-07-03  Jim Meyering  <meyering@ascend.com>
112048         * m4/gettext.m4: Add -lintl if it's found to be necessary.
112050         * m4/gettext.m4: New file -- from gettext-0.10.35.
112051         * m4/lcmessage.m4: Likewise.
112052         * m4/progtest.m4: Likewise.
112054         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
112055         * m4/jm-macros.m4: Require the new macro.
112057 1998-06-29  Jim Meyering  <meyering@ascend.com>
112059         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
112060         for the definition of NGROUPS (used in a system header included
112061         by sys/mount.h).
112063 1998-06-28  Jim Meyering  <meyering@ascend.com>
112065         * m4/ls-mntd-fs.m4: New file.
112066         * m4/fstypename.m4: New file.
112068         * m4/jm-macros.m4: Require the new macro.
112069         * m4/jm-glibc-io.m4: New file.
112071 1998-05-19  Jim Meyering  <meyering@ascend.com>
112073         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
112074         * m4/lchown.m4: New file.
112076         * m4/Makefile.am.in: New file.
112077         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
112079 1998-05-14  Jim Meyering  <meyering@ascend.com>
112081         * m4/Makefile.am (EXTRA_DIST): Add them.
112082         * m4/jm-macros.m4: New file.
112083         * m4/utimbuf.m4: New file.
112085 1998-05-12  Jim Meyering  <meyering@ascend.com>
112087         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
112089 1998-05-11  Jim Meyering  <meyering@ascend.com>
112091         * m4/isc-posix.m4: New file.
112093 1998-05-10  Jim Meyering  <meyering@ascend.com>
112095         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
112097 1998-05-09  Jim Meyering  <meyering@ascend.com>
112099         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
112100         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
112101         with automake.
112103         * m4/ssize_t.m4: New file.
112104         * m4/mktime.m4: Remove file -- the new automake has this now.
112106 1998-04-26  Jim Meyering  <meyering@ascend.com>
112108         * m4/assert.m4: New file.
112109         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
112111 1998-04-05  Jim Meyering  <meyering@ascend.com>
112113         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
112114         (jm_PREREQ): Use it here.
112116 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
112118         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
112119         in acconfig.h.
112121 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
112123         * m4/prereq.m4: New file.
112124         * m4/error.m4: New file.
112125         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
112127 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
112129         * m4/getline.m4: Don't set am_cv_func_working_getline before the
112130         cache-check for the same variable -- that defeated the purpose of
112131         the test; the test program was never run.  This was a problem only
112132         on systems with losing getline functions -- HP-UX 10.20 is one.
112133         Reported by Bjorn Helgaas.
112135 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
112137         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
112139 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
112141         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
112143         * m4/const.m4: New file.  Use an initializer in this declaration
112144         typedef int charset[2]; const charset x;
112145         Reported by Bob Glickstein.
112147 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
112149         * m4/chown.m4: Fix reversed types on -1 args to chown.
112150         From Kaveh Ghazi.
112152 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
112154         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
112155         Add lseek and memchr.
112157         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
112158         T.E.Dickey <dickey@clark.net> said that some older preprocessors
112159         have a 20-character limit on names.
112161 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
112163         * m4/inttypes_h.m4: New file.
112164         * m4/uintmax_t.m4: New file.
112165         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
112168         -----
112170         Local Variables:
112171         coding: utf-8
112172         End:
112174         Copyright (C) 1997-2017 Free Software Foundation, Inc.
112176         Copying and distribution of this file, with or without
112177         modification, are permitted provided the copyright notice
112178         and this notice are preserved.